@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
  /**
@@ -2980,7 +2987,9 @@ declare function onCartCreated(handler: (event: CartCreatedEnvelope) => void | P
2980
2987
  /**
2981
2988
  * Creates a cart.
2982
2989
  *
2983
- * > **Note:** When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
2990
+ * > **Notes:**
2991
+ * > + When adding catalog line items, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.
2992
+ * > + This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
2984
2993
  * @public
2985
2994
  * @requiredField options.customLineItems.itemType
2986
2995
  * @requiredField options.customLineItems.price
@@ -3146,6 +3155,8 @@ interface UpdateCartOptions {
3146
3155
  purchaseFlowId?: string | null;
3147
3156
  /** Selected shipping option. */
3148
3157
  selectedShippingOption?: SelectedShippingOption;
3158
+ /** Fields extended by data extensions */
3159
+ extendedFields?: ExtendedFields;
3149
3160
  /**
3150
3161
  * The business location ID associated with the cart.
3151
3162
  *
@@ -3162,6 +3173,11 @@ interface UpdateCartOptions {
3162
3173
  * @format CURRENCY
3163
3174
  */
3164
3175
  paymentCurrency?: string;
3176
+ /**
3177
+ * Revision number, which increments by 1 each time the Cart is updated.
3178
+ * @readonly
3179
+ */
3180
+ revision?: string | null;
3165
3181
  };
3166
3182
  /** Coupon code. For more information, see the Coupons API. */
3167
3183
  couponCode?: string | null;