@wix/auto_sdk_ecom_cart 1.0.87 → 1.0.88
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 +3 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +13 -1
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +3 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +13 -1
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -116,6 +116,11 @@ interface Cart {
|
|
|
116
116
|
* @format CURRENCY
|
|
117
117
|
*/
|
|
118
118
|
paymentCurrency?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Revision number, which increments by 1 each time the Cart is updated.
|
|
121
|
+
* @readonly
|
|
122
|
+
*/
|
|
123
|
+
revision?: string | null;
|
|
119
124
|
}
|
|
120
125
|
interface LineItem {
|
|
121
126
|
/**
|
|
@@ -3116,7 +3121,9 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
|
|
|
3116
3121
|
/**
|
|
3117
3122
|
* Creates a cart.
|
|
3118
3123
|
*
|
|
3119
|
-
* > **
|
|
3124
|
+
* > **Notes:**
|
|
3125
|
+
* > + When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
|
|
3126
|
+
* > + This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
3120
3127
|
* @public
|
|
3121
3128
|
* @requiredField options.customLineItems.itemType
|
|
3122
3129
|
* @requiredField options.customLineItems.price
|
|
@@ -3300,6 +3307,11 @@ interface UpdateCartOptions {
|
|
|
3300
3307
|
* @format CURRENCY
|
|
3301
3308
|
*/
|
|
3302
3309
|
paymentCurrency?: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* Revision number, which increments by 1 each time the Cart is updated.
|
|
3312
|
+
* @readonly
|
|
3313
|
+
*/
|
|
3314
|
+
revision?: string | null;
|
|
3303
3315
|
};
|
|
3304
3316
|
/** Coupon code. For more information, see the Coupons API. */
|
|
3305
3317
|
couponCode?: string | null;
|