@wix/auto_sdk_ecom_cart 1.0.86 → 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.
@@ -98,6 +98,8 @@ interface Cart {
98
98
  purchaseFlowId?: string | null;
99
99
  /** Selected shipping option. */
100
100
  selectedShippingOption?: SelectedShippingOption;
101
+ /** Fields extended by data extensions */
102
+ extendedFields?: ExtendedFields;
101
103
  /**
102
104
  * The business location ID associated with the cart.
103
105
  *
@@ -114,6 +116,11 @@ interface Cart {
114
116
  * @format CURRENCY
115
117
  */
116
118
  paymentCurrency?: string;
119
+ /**
120
+ * Revision number, which increments by 1 each time the Cart is updated.
121
+ * @readonly
122
+ */
123
+ revision?: string | null;
117
124
  }
118
125
  interface LineItem {
119
126
  /**
@@ -3114,7 +3121,9 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
3114
3121
  /**
3115
3122
  * Creates a cart.
3116
3123
  *
3117
- * > **Note:** When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
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).
3118
3127
  * @public
3119
3128
  * @requiredField options.customLineItems.itemType
3120
3129
  * @requiredField options.customLineItems.price
@@ -3280,6 +3289,8 @@ interface UpdateCartOptions {
3280
3289
  purchaseFlowId?: string | null;
3281
3290
  /** Selected shipping option. */
3282
3291
  selectedShippingOption?: SelectedShippingOption;
3292
+ /** Fields extended by data extensions */
3293
+ extendedFields?: ExtendedFields;
3283
3294
  /**
3284
3295
  * The business location ID associated with the cart.
3285
3296
  *
@@ -3296,6 +3307,11 @@ interface UpdateCartOptions {
3296
3307
  * @format CURRENCY
3297
3308
  */
3298
3309
  paymentCurrency?: string;
3310
+ /**
3311
+ * Revision number, which increments by 1 each time the Cart is updated.
3312
+ * @readonly
3313
+ */
3314
+ revision?: string | null;
3299
3315
  };
3300
3316
  /** Coupon code. For more information, see the Coupons API. */
3301
3317
  couponCode?: string | null;