@wix/auto_sdk_ecom_current-cart-v-2 1.0.27 → 1.0.29

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,12 @@ interface Cart {
98
98
  * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
99
99
  */
100
100
  extendedFields?: ExtendedFields;
101
+ /**
102
+ * Indicates whether this is the current cart of the customer.
103
+ * The current cart can be accessed using the identity context (e.g., visitor ID from session cookies), without requiring an explicit cart ID.
104
+ * @readonly
105
+ */
106
+ currentCart?: boolean;
101
107
  }
102
108
  interface V2LineItem {
103
109
  /**
@@ -1351,26 +1357,14 @@ interface FullAddressContactDetails {
1351
1357
  vatId?: VatId;
1352
1358
  }
1353
1359
  interface CartSettings {
1354
- /**
1355
- * Whether to restrict the option to add or remove a gift card on the checkout page.
1356
- * Default: `false`
1357
- */
1358
- lockGiftCard?: boolean;
1359
- /**
1360
- * Whether to restrict the option to add or remove a coupon code on the checkout page.
1361
- * Default: `false`
1362
- */
1363
- lockCouponCode?: boolean;
1364
- /**
1365
- * Whether to disable policy agreement checkout in the checkout page.
1366
- * Default: `false`
1367
- */
1368
- policyAgreementCheckboxDisabled?: boolean;
1369
- /**
1370
- * Whether to disable manual payment option for this checkout.
1371
- * Default: `false`
1372
- */
1373
- manualPaymentDisabled?: boolean;
1360
+ /** Whether to restrict the option to add or remove a gift card on the checkout page. */
1361
+ lockGiftCard?: boolean | null;
1362
+ /** Whether to restrict the option to add or remove a coupon code on the checkout page. */
1363
+ lockCouponCode?: boolean | null;
1364
+ /** Whether to disable policy agreement checkout in the checkout page. */
1365
+ policyAgreementCheckboxDisabled?: boolean | null;
1366
+ /** Whether to disable manual payment option for this checkout. */
1367
+ manualPaymentDisabled?: boolean | null;
1374
1368
  }
1375
1369
  interface CustomField {
1376
1370
  /** Custom field value. */
@@ -1399,6 +1393,12 @@ interface LegacyFields {
1399
1393
  couponDiscount?: ConvertedMoney;
1400
1394
  /** The sum of all line items after applying all discounts. */
1401
1395
  subtotalAfterCouponDiscount?: ConvertedMoney;
1396
+ /**
1397
+ * Indicates that this cart was created by the Buy Now flow.
1398
+ * Used by the Cart API proxy to determine whether to produce legacy V1 domain events.
1399
+ * @immutable
1400
+ */
1401
+ buyNow?: boolean;
1402
1402
  }
1403
1403
  interface Discount {
1404
1404
  /** The display name of the discount. */
@@ -1503,7 +1503,7 @@ interface CartSummary {
1503
1503
  /**
1504
1504
  * A token representing the Cart's calculated prices.
1505
1505
  *
1506
- * The client can pass this token when completing the checkout to ensure that the
1506
+ * The client can pass this token on place order to ensure that the
1507
1507
  * prices the customer saw match the final prices at checkout.
1508
1508
  *
1509
1509
  * The server will validate the token if provided by recalculating the cart and comparing the
@@ -2679,11 +2679,11 @@ interface PlaceOrderRequest {
2679
2679
  */
2680
2680
  cartId?: string;
2681
2681
  /**
2682
- * The pricing token received from `CalculateCart`'s response.
2682
+ * The price verification token received from `CalculateCart`'s response.
2683
2683
  * Used to verify that the prices shown to the customer have not changed before completing checkout.
2684
2684
  * @maxLength 3000
2685
2685
  */
2686
- pricingToken?: string | null;
2686
+ priceVerificationToken?: string | null;
2687
2687
  /**
2688
2688
  * Payment token.
2689
2689
  * @maxLength 100