@wix/auto_sdk_ecom_current-cart 1.0.186 → 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 +2 -2
|
@@ -8,7 +8,7 @@ interface GetCurrentCartSignature {
|
|
|
8
8
|
* Retrieves the current site visitor/member's cart.
|
|
9
9
|
*
|
|
10
10
|
* >**Notes:**
|
|
11
|
-
* > + 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/
|
|
11
|
+
* > + 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).
|
|
12
12
|
* > + Calling this method before adding an item to the cart returns a 404 error.
|
|
13
13
|
* > + 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).
|
|
14
14
|
* > + This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
@@ -26,7 +26,7 @@ interface UpdateCurrentCartSignature {
|
|
|
26
26
|
*
|
|
27
27
|
* >**Notes:**
|
|
28
28
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
29
|
-
* >+ This method requires
|
|
29
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
30
30
|
* >+ 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.
|
|
31
31
|
* @param - Current cart update options.
|
|
32
32
|
* @returns Updated Cart.
|
|
@@ -41,7 +41,7 @@ interface AddToCurrentCartSignature {
|
|
|
41
41
|
*
|
|
42
42
|
* >**Notes:**
|
|
43
43
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
44
|
-
* >+ This method requires
|
|
44
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
45
45
|
* >+ 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.
|
|
46
46
|
* @param - Items to be added to the current cart.
|
|
47
47
|
* @deprecated Replaced by Cart V2 Add Line Items To Current Cart.
|
|
@@ -54,7 +54,7 @@ interface RemoveLineItemsFromCurrentCartSignature {
|
|
|
54
54
|
* Removes line items from the current site visitor's cart.
|
|
55
55
|
*
|
|
56
56
|
* >**Notes:**
|
|
57
|
-
* >+ This method requires
|
|
57
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
58
58
|
* >+ 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.
|
|
59
59
|
* @param - IDs of the line items to remove from the cart.
|
|
60
60
|
* @deprecated Replaced by Cart V2 Remove Line Items From Current Cart.
|
|
@@ -71,7 +71,7 @@ interface CreateCheckoutFromCurrentCartSignature {
|
|
|
71
71
|
*
|
|
72
72
|
* >**Notes:**
|
|
73
73
|
* >+ `channelType` is a required field.
|
|
74
|
-
* >+ This method requires
|
|
74
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
75
75
|
* @param - Checkout creation options.
|
|
76
76
|
* @deprecated Cart V2 has no equivalent method. Cart V2 has no separate checkout step: prepare the cart, then call Place Order directly.
|
|
77
77
|
*/
|
|
@@ -83,7 +83,7 @@ interface RemoveCouponFromCurrentCartSignature {
|
|
|
83
83
|
* Removes the coupon from the current site visitor's cart.
|
|
84
84
|
*
|
|
85
85
|
* >**Notes:**
|
|
86
|
-
* >+ This method requires
|
|
86
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
87
87
|
* >+ 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.
|
|
88
88
|
* @deprecated Replaced by Cart V2 Remove Coupon From Current Cart.
|
|
89
89
|
*/
|
|
@@ -103,7 +103,7 @@ interface UpdateCurrentCartLineItemQuantitySignature {
|
|
|
103
103
|
* then the `quantity` returned in the response is the total amount of remaining stock.
|
|
104
104
|
*
|
|
105
105
|
* >**Notes:**
|
|
106
|
-
* >+ This method requires
|
|
106
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
107
107
|
* >+ 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.
|
|
108
108
|
* @param - Line item IDs and their new quantity.
|
|
109
109
|
* @deprecated Replaced by Cart V2 Update Line Items In Current Cart.
|
|
@@ -124,7 +124,7 @@ interface EstimateCurrentCartTotalsSignature {
|
|
|
124
124
|
* >+ Line item discounts are already calculated and applied to the cart.
|
|
125
125
|
* >+ Not passing any properties only estimates the cart items price totals, without considering shipping and billing information.
|
|
126
126
|
* >+ Calling this method before adding an item to the cart returns a 404 error, as the cart doesn't exist yet.
|
|
127
|
-
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/
|
|
127
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
128
128
|
* @param - Total estimation options.
|
|
129
129
|
* @deprecated Replaced by Cart V2 Estimate Current Cart.
|
|
130
130
|
*/
|
|
@@ -136,7 +136,7 @@ interface DeleteCurrentCartSignature {
|
|
|
136
136
|
* Deletes the current site visitor's cart.
|
|
137
137
|
*
|
|
138
138
|
* >**Note:**
|
|
139
|
-
* >This method requires
|
|
139
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
140
140
|
* @deprecated Replaced by Cart V2 Delete Current Cart.
|
|
141
141
|
*/
|
|
142
142
|
(): Promise<void>;
|
|
@@ -3867,7 +3867,7 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
|
|
|
3867
3867
|
* Retrieves the current site visitor/member's cart.
|
|
3868
3868
|
*
|
|
3869
3869
|
* >**Notes:**
|
|
3870
|
-
* > + 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/
|
|
3870
|
+
* > + 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).
|
|
3871
3871
|
* > + Calling this method before adding an item to the cart returns a 404 error.
|
|
3872
3872
|
* > + 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).
|
|
3873
3873
|
* > + This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
@@ -3888,7 +3888,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<Cart, `lineItems` |
|
|
|
3888
3888
|
*
|
|
3889
3889
|
* >**Notes:**
|
|
3890
3890
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3891
|
-
* >+ This method requires
|
|
3891
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
3892
3892
|
* >+ 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.
|
|
3893
3893
|
* @public
|
|
3894
3894
|
* @requiredField options.lineItems.catalogReference
|
|
@@ -3926,7 +3926,7 @@ interface UpdateCurrentCartOptions {
|
|
|
3926
3926
|
*
|
|
3927
3927
|
* >**Notes:**
|
|
3928
3928
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3929
|
-
* >+ This method requires
|
|
3929
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
3930
3930
|
* >+ 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.
|
|
3931
3931
|
* @public
|
|
3932
3932
|
* @requiredField options.customLineItems.itemType
|
|
@@ -3970,7 +3970,7 @@ interface AddToCurrentCartOptions {
|
|
|
3970
3970
|
* Removes line items from the current site visitor's cart.
|
|
3971
3971
|
*
|
|
3972
3972
|
* >**Notes:**
|
|
3973
|
-
* >+ This method requires
|
|
3973
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3974
3974
|
* >+ 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.
|
|
3975
3975
|
* @public
|
|
3976
3976
|
* @requiredField lineItemIds
|
|
@@ -3991,7 +3991,7 @@ declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<
|
|
|
3991
3991
|
*
|
|
3992
3992
|
* >**Notes:**
|
|
3993
3993
|
* >+ `channelType` is a required field.
|
|
3994
|
-
* >+ This method requires
|
|
3994
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3995
3995
|
* @public
|
|
3996
3996
|
* @param options - Checkout creation options.
|
|
3997
3997
|
* @permissionId ECOM.CREATE_CHECKOUT_FROM_CART
|
|
@@ -4024,7 +4024,7 @@ interface CreateCheckoutFromCurrentCartOptions {
|
|
|
4024
4024
|
* Removes the coupon from the current site visitor's cart.
|
|
4025
4025
|
*
|
|
4026
4026
|
* >**Notes:**
|
|
4027
|
-
* >+ This method requires
|
|
4027
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4028
4028
|
* >+ 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.
|
|
4029
4029
|
* @public
|
|
4030
4030
|
* @permissionId ECOM.MODIFY_CARTS
|
|
@@ -4047,7 +4047,7 @@ declare function removeCouponFromCurrentCart(): Promise<NonNullablePaths<RemoveC
|
|
|
4047
4047
|
* then the `quantity` returned in the response is the total amount of remaining stock.
|
|
4048
4048
|
*
|
|
4049
4049
|
* >**Notes:**
|
|
4050
|
-
* >+ This method requires
|
|
4050
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4051
4051
|
* >+ 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.
|
|
4052
4052
|
* @param lineItems - Line item IDs and their new quantity.
|
|
4053
4053
|
* @public
|
|
@@ -4072,7 +4072,7 @@ declare function updateCurrentCartLineItemQuantity(lineItems: LineItemQuantityUp
|
|
|
4072
4072
|
* >+ Line item discounts are already calculated and applied to the cart.
|
|
4073
4073
|
* >+ Not passing any properties only estimates the cart items price totals, without considering shipping and billing information.
|
|
4074
4074
|
* >+ Calling this method before adding an item to the cart returns a 404 error, as the cart doesn't exist yet.
|
|
4075
|
-
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/
|
|
4075
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4076
4076
|
* @public
|
|
4077
4077
|
* @param options - Total estimation options.
|
|
4078
4078
|
* @permissionId ECOM.READ_CARTS
|
|
@@ -4119,7 +4119,7 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
4119
4119
|
* Deletes the current site visitor's cart.
|
|
4120
4120
|
*
|
|
4121
4121
|
* >**Note:**
|
|
4122
|
-
* >This method requires
|
|
4122
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4123
4123
|
* @public
|
|
4124
4124
|
* @permissionId ECOM.MODIFY_CARTS
|
|
4125
4125
|
* @applicableIdentity APP
|
|
@@ -8,7 +8,7 @@ interface GetCurrentCartSignature {
|
|
|
8
8
|
* Retrieves the current site visitor/member's cart.
|
|
9
9
|
*
|
|
10
10
|
* >**Notes:**
|
|
11
|
-
* > + 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/
|
|
11
|
+
* > + 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).
|
|
12
12
|
* > + Calling this method before adding an item to the cart returns a 404 error.
|
|
13
13
|
* > + 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).
|
|
14
14
|
* > + This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
@@ -26,7 +26,7 @@ interface UpdateCurrentCartSignature {
|
|
|
26
26
|
*
|
|
27
27
|
* >**Notes:**
|
|
28
28
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
29
|
-
* >+ This method requires
|
|
29
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
30
30
|
* >+ 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.
|
|
31
31
|
* @param - Current cart update options.
|
|
32
32
|
* @returns Updated Cart.
|
|
@@ -41,7 +41,7 @@ interface AddToCurrentCartSignature {
|
|
|
41
41
|
*
|
|
42
42
|
* >**Notes:**
|
|
43
43
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
44
|
-
* >+ This method requires
|
|
44
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
45
45
|
* >+ 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.
|
|
46
46
|
* @param - Items to be added to the current cart.
|
|
47
47
|
* @deprecated Replaced by Cart V2 Add Line Items To Current Cart.
|
|
@@ -54,7 +54,7 @@ interface RemoveLineItemsFromCurrentCartSignature {
|
|
|
54
54
|
* Removes line items from the current site visitor's cart.
|
|
55
55
|
*
|
|
56
56
|
* >**Notes:**
|
|
57
|
-
* >+ This method requires
|
|
57
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
58
58
|
* >+ 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.
|
|
59
59
|
* @param - IDs of the line items to remove from the cart.
|
|
60
60
|
* @deprecated Replaced by Cart V2 Remove Line Items From Current Cart.
|
|
@@ -71,7 +71,7 @@ interface CreateCheckoutFromCurrentCartSignature {
|
|
|
71
71
|
*
|
|
72
72
|
* >**Notes:**
|
|
73
73
|
* >+ `channelType` is a required field.
|
|
74
|
-
* >+ This method requires
|
|
74
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
75
75
|
* @param - Checkout creation options.
|
|
76
76
|
* @deprecated Cart V2 has no equivalent method. Cart V2 has no separate checkout step: prepare the cart, then call Place Order directly.
|
|
77
77
|
*/
|
|
@@ -83,7 +83,7 @@ interface RemoveCouponFromCurrentCartSignature {
|
|
|
83
83
|
* Removes the coupon from the current site visitor's cart.
|
|
84
84
|
*
|
|
85
85
|
* >**Notes:**
|
|
86
|
-
* >+ This method requires
|
|
86
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
87
87
|
* >+ 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.
|
|
88
88
|
* @deprecated Replaced by Cart V2 Remove Coupon From Current Cart.
|
|
89
89
|
*/
|
|
@@ -103,7 +103,7 @@ interface UpdateCurrentCartLineItemQuantitySignature {
|
|
|
103
103
|
* then the `quantity` returned in the response is the total amount of remaining stock.
|
|
104
104
|
*
|
|
105
105
|
* >**Notes:**
|
|
106
|
-
* >+ This method requires
|
|
106
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
107
107
|
* >+ 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.
|
|
108
108
|
* @param - Line item IDs and their new quantity.
|
|
109
109
|
* @deprecated Replaced by Cart V2 Update Line Items In Current Cart.
|
|
@@ -124,7 +124,7 @@ interface EstimateCurrentCartTotalsSignature {
|
|
|
124
124
|
* >+ Line item discounts are already calculated and applied to the cart.
|
|
125
125
|
* >+ Not passing any properties only estimates the cart items price totals, without considering shipping and billing information.
|
|
126
126
|
* >+ Calling this method before adding an item to the cart returns a 404 error, as the cart doesn't exist yet.
|
|
127
|
-
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/
|
|
127
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
128
128
|
* @param - Total estimation options.
|
|
129
129
|
* @deprecated Replaced by Cart V2 Estimate Current Cart.
|
|
130
130
|
*/
|
|
@@ -136,7 +136,7 @@ interface DeleteCurrentCartSignature {
|
|
|
136
136
|
* Deletes the current site visitor's cart.
|
|
137
137
|
*
|
|
138
138
|
* >**Note:**
|
|
139
|
-
* >This method requires
|
|
139
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
140
140
|
* @deprecated Replaced by Cart V2 Delete Current Cart.
|
|
141
141
|
*/
|
|
142
142
|
(): Promise<void>;
|
|
@@ -3867,7 +3867,7 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
|
|
|
3867
3867
|
* Retrieves the current site visitor/member's cart.
|
|
3868
3868
|
*
|
|
3869
3869
|
* >**Notes:**
|
|
3870
|
-
* > + 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/
|
|
3870
|
+
* > + 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).
|
|
3871
3871
|
* > + Calling this method before adding an item to the cart returns a 404 error.
|
|
3872
3872
|
* > + 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).
|
|
3873
3873
|
* > + This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
@@ -3888,7 +3888,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<Cart, `lineItems` |
|
|
|
3888
3888
|
*
|
|
3889
3889
|
* >**Notes:**
|
|
3890
3890
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3891
|
-
* >+ This method requires
|
|
3891
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
3892
3892
|
* >+ 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.
|
|
3893
3893
|
* @public
|
|
3894
3894
|
* @requiredField options.lineItems.catalogReference
|
|
@@ -3926,7 +3926,7 @@ interface UpdateCurrentCartOptions {
|
|
|
3926
3926
|
*
|
|
3927
3927
|
* >**Notes:**
|
|
3928
3928
|
* >+ When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3929
|
-
* >+ This method requires
|
|
3929
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities).
|
|
3930
3930
|
* >+ 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.
|
|
3931
3931
|
* @public
|
|
3932
3932
|
* @requiredField options.customLineItems.itemType
|
|
@@ -3970,7 +3970,7 @@ interface AddToCurrentCartOptions {
|
|
|
3970
3970
|
* Removes line items from the current site visitor's cart.
|
|
3971
3971
|
*
|
|
3972
3972
|
* >**Notes:**
|
|
3973
|
-
* >+ This method requires
|
|
3973
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3974
3974
|
* >+ 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.
|
|
3975
3975
|
* @public
|
|
3976
3976
|
* @requiredField lineItemIds
|
|
@@ -3991,7 +3991,7 @@ declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<
|
|
|
3991
3991
|
*
|
|
3992
3992
|
* >**Notes:**
|
|
3993
3993
|
* >+ `channelType` is a required field.
|
|
3994
|
-
* >+ This method requires
|
|
3994
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
3995
3995
|
* @public
|
|
3996
3996
|
* @param options - Checkout creation options.
|
|
3997
3997
|
* @permissionId ECOM.CREATE_CHECKOUT_FROM_CART
|
|
@@ -4024,7 +4024,7 @@ interface CreateCheckoutFromCurrentCartOptions {
|
|
|
4024
4024
|
* Removes the coupon from the current site visitor's cart.
|
|
4025
4025
|
*
|
|
4026
4026
|
* >**Notes:**
|
|
4027
|
-
* >+ This method requires
|
|
4027
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4028
4028
|
* >+ 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.
|
|
4029
4029
|
* @public
|
|
4030
4030
|
* @permissionId ECOM.MODIFY_CARTS
|
|
@@ -4047,7 +4047,7 @@ declare function removeCouponFromCurrentCart(): Promise<NonNullablePaths<RemoveC
|
|
|
4047
4047
|
* then the `quantity` returned in the response is the total amount of remaining stock.
|
|
4048
4048
|
*
|
|
4049
4049
|
* >**Notes:**
|
|
4050
|
-
* >+ This method requires
|
|
4050
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4051
4051
|
* >+ 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.
|
|
4052
4052
|
* @param lineItems - Line item IDs and their new quantity.
|
|
4053
4053
|
* @public
|
|
@@ -4072,7 +4072,7 @@ declare function updateCurrentCartLineItemQuantity(lineItems: LineItemQuantityUp
|
|
|
4072
4072
|
* >+ Line item discounts are already calculated and applied to the cart.
|
|
4073
4073
|
* >+ Not passing any properties only estimates the cart items price totals, without considering shipping and billing information.
|
|
4074
4074
|
* >+ Calling this method before adding an item to the cart returns a 404 error, as the cart doesn't exist yet.
|
|
4075
|
-
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/
|
|
4075
|
+
* >+ This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4076
4076
|
* @public
|
|
4077
4077
|
* @param options - Total estimation options.
|
|
4078
4078
|
* @permissionId ECOM.READ_CARTS
|
|
@@ -4119,7 +4119,7 @@ interface EstimateCurrentCartTotalsOptions {
|
|
|
4119
4119
|
* Deletes the current site visitor's cart.
|
|
4120
4120
|
*
|
|
4121
4121
|
* >**Note:**
|
|
4122
|
-
* >This method requires
|
|
4122
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/overview/auth-permissions/identities).
|
|
4123
4123
|
* @public
|
|
4124
4124
|
* @permissionId ECOM.MODIFY_CARTS
|
|
4125
4125
|
* @applicableIdentity APP
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_current-cart",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.187",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"fqdn": "wix.ecom.v1.cart"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "4feb478ce42c2103bea0e1da2687a48feccaa812184f0b2288adfce9"
|
|
54
54
|
}
|