@wix/auto_sdk_ecom_current-cart 1.0.185 → 1.0.187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +9 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +9 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +9 -9
- package/build/internal/cjs/index.typings.d.ts +9 -9
- package/build/internal/es/index.d.mts +9 -9
- package/build/internal/es/index.typings.d.mts +9 -9
- package/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -4999
- package/build/cjs/schemas.js +0 -8346
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -4999
- package/build/es/schemas.mjs +0 -8292
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -4999
- package/build/internal/es/schemas.d.mts +0 -4999
- package/schemas/package.json +0 -3
|
@@ -3402,7 +3402,7 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
|
|
|
3402
3402
|
* Retrieves the current site visitor/member's cart.
|
|
3403
3403
|
*
|
|
3404
3404
|
* >**Notes:**
|
|
3405
|
-
* > + A 'current cart' is automatically created when the site visitor/member adds an item to their cart, or when calling [Add To Current Cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/
|
|
3405
|
+
* > + A 'current cart' is automatically created when the site visitor/member adds an item to their cart, or when calling [Add To Current Cart](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/add-to-current-cart).
|
|
3406
3406
|
* > + Calling this method before adding an item to the cart returns a 404 error.
|
|
3407
3407
|
* > + This method doesn't calculate or return price totals. To get estimated totals including tax, shipping, and discounts, use [Estimate Current Cart Totals](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/purchase-flow/cart/cart/estimate-current-cart-totals).
|
|
3408
3408
|
* > + This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
@@ -3423,7 +3423,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<Cart, `lineItems` |
|
|
|
3423
3423
|
*
|
|
3424
3424
|
* >**Notes:**
|
|
3425
3425
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3426
|
-
* >+ This method requires
|
|
3426
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
3427
3427
|
* >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
|
|
3428
3428
|
* @public
|
|
3429
3429
|
* @requiredField options.lineItems.catalogReference
|
|
@@ -3461,7 +3461,7 @@ interface UpdateCurrentCartOptions {
|
|
|
3461
3461
|
*
|
|
3462
3462
|
* >**Notes:**
|
|
3463
3463
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3464
|
-
* >+ This method requires
|
|
3464
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
3465
3465
|
* >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
|
|
3466
3466
|
* @public
|
|
3467
3467
|
* @requiredField options.customLineItems.itemType
|
|
@@ -3505,7 +3505,7 @@ interface AddToCurrentCartOptions {
|
|
|
3505
3505
|
* Removes line items from the current site visitor's cart.
|
|
3506
3506
|
*
|
|
3507
3507
|
* >**Notes:**
|
|
3508
|
-
* >+ This method requires
|
|
3508
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3509
3509
|
* >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
|
|
3510
3510
|
* @public
|
|
3511
3511
|
* @requiredField lineItemIds
|
|
@@ -3526,7 +3526,7 @@ declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<
|
|
|
3526
3526
|
*
|
|
3527
3527
|
* >**Notes:**
|
|
3528
3528
|
* >+ `channelType` is a required field.
|
|
3529
|
-
* >+ This method requires
|
|
3529
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3530
3530
|
* @public
|
|
3531
3531
|
* @param options - Checkout creation options.
|
|
3532
3532
|
* @permissionId ECOM.CREATE_CHECKOUT_FROM_CART
|
|
@@ -3559,7 +3559,7 @@ interface CreateCheckoutFromCurrentCartOptions {
|
|
|
3559
3559
|
* Removes the coupon from the current site visitor's cart.
|
|
3560
3560
|
*
|
|
3561
3561
|
* >**Notes:**
|
|
3562
|
-
* >+ This method requires
|
|
3562
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3563
3563
|
* >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
|
|
3564
3564
|
* @public
|
|
3565
3565
|
* @permissionId ECOM.MODIFY_CARTS
|
|
@@ -3582,7 +3582,7 @@ declare function removeCouponFromCurrentCart(): Promise<NonNullablePaths<RemoveC
|
|
|
3582
3582
|
* then the `quantity` returned in the response is the total amount of remaining stock.
|
|
3583
3583
|
*
|
|
3584
3584
|
* >**Notes:**
|
|
3585
|
-
* >+ This method requires
|
|
3585
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3586
3586
|
* >+ After a cart is updated, call [Refresh Cart](https://dev.wix.com/docs/sdk/frontend-modules/ecom/refresh-cart) to update the cart's UI elements and trigger the Cart Updated event.
|
|
3587
3587
|
* @param lineItems - Line item IDs and their new quantity.
|
|
3588
3588
|
* @public
|
|
@@ -3607,7 +3607,7 @@ declare function updateCurrentCartLineItemQuantity(lineItems: LineItemQuantityUp
|
|
|
3607
3607
|
* >+ Line item discounts are already calculated and applied to the cart.
|
|
3608
3608
|
* >+ Not passing any properties only estimates the cart items price totals, without considering shipping and billing information.
|
|
3609
3609
|
* >+ Calling this method before adding an item to the cart returns a 404 error, as the cart doesn't exist yet.
|
|
3610
|
-
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/
|
|
3610
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3611
3611
|
* @public
|
|
3612
3612
|
* @param options - Total estimation options.
|
|
3613
3613
|
* @permissionId ECOM.READ_CARTS
|
|
@@ -3654,7 +3654,7 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
3654
3654
|
* Deletes the current site visitor's cart.
|
|
3655
3655
|
*
|
|
3656
3656
|
* >**Note:**
|
|
3657
|
-
* >This method requires
|
|
3657
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3658
3658
|
* @public
|
|
3659
3659
|
* @permissionId ECOM.MODIFY_CARTS
|
|
3660
3660
|
* @applicableIdentity APP
|