@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
package/build/cjs/index.d.ts
CHANGED
|
@@ -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>;
|