@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.
@@ -100,6 +100,12 @@ interface Cart {
100
100
  * [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.
101
101
  */
102
102
  extendedFields?: ExtendedFields;
103
+ /**
104
+ * Indicates whether this is the current cart of the customer.
105
+ * The current cart can be accessed using the identity context (e.g., visitor ID from session cookies), without requiring an explicit cart ID.
106
+ * @readonly
107
+ */
108
+ currentCart?: boolean;
103
109
  }
104
110
  interface V2LineItem {
105
111
  /**
@@ -1393,26 +1399,14 @@ interface FullAddressContactDetails {
1393
1399
  vatId?: VatId;
1394
1400
  }
1395
1401
  interface CartSettings {
1396
- /**
1397
- * Whether to restrict the option to add or remove a gift card on the checkout page.
1398
- * Default: `false`
1399
- */
1400
- lockGiftCard?: boolean;
1401
- /**
1402
- * Whether to restrict the option to add or remove a coupon code on the checkout page.
1403
- * Default: `false`
1404
- */
1405
- lockCouponCode?: boolean;
1406
- /**
1407
- * Whether to disable policy agreement checkout in the checkout page.
1408
- * Default: `false`
1409
- */
1410
- policyAgreementCheckboxDisabled?: boolean;
1411
- /**
1412
- * Whether to disable manual payment option for this checkout.
1413
- * Default: `false`
1414
- */
1415
- manualPaymentDisabled?: boolean;
1402
+ /** Whether to restrict the option to add or remove a gift card on the checkout page. */
1403
+ lockGiftCard?: boolean | null;
1404
+ /** Whether to restrict the option to add or remove a coupon code on the checkout page. */
1405
+ lockCouponCode?: boolean | null;
1406
+ /** Whether to disable policy agreement checkout in the checkout page. */
1407
+ policyAgreementCheckboxDisabled?: boolean | null;
1408
+ /** Whether to disable manual payment option for this checkout. */
1409
+ manualPaymentDisabled?: boolean | null;
1416
1410
  }
1417
1411
  interface CustomField {
1418
1412
  /** Custom field value. */
@@ -1441,6 +1435,12 @@ interface LegacyFields {
1441
1435
  couponDiscount?: ConvertedMoney;
1442
1436
  /** The sum of all line items after applying all discounts. */
1443
1437
  subtotalAfterCouponDiscount?: ConvertedMoney;
1438
+ /**
1439
+ * Indicates that this cart was created by the Buy Now flow.
1440
+ * Used by the Cart API proxy to determine whether to produce legacy V1 domain events.
1441
+ * @immutable
1442
+ */
1443
+ buyNow?: boolean;
1444
1444
  }
1445
1445
  interface Discount {
1446
1446
  /** The display name of the discount. */
@@ -1545,7 +1545,7 @@ interface CartSummary {
1545
1545
  /**
1546
1546
  * A token representing the Cart's calculated prices.
1547
1547
  *
1548
- * The client can pass this token when completing the checkout to ensure that the
1548
+ * The client can pass this token on place order to ensure that the
1549
1549
  * prices the customer saw match the final prices at checkout.
1550
1550
  *
1551
1551
  * The server will validate the token if provided by recalculating the cart and comparing the
@@ -2723,11 +2723,11 @@ interface PlaceOrderRequest {
2723
2723
  */
2724
2724
  cartId?: string;
2725
2725
  /**
2726
- * The pricing token received from `CalculateCart`'s response.
2726
+ * The price verification token received from `CalculateCart`'s response.
2727
2727
  * Used to verify that the prices shown to the customer have not changed before completing checkout.
2728
2728
  * @maxLength 3000
2729
2729
  */
2730
- pricingToken?: string | null;
2730
+ priceVerificationToken?: string | null;
2731
2731
  /**
2732
2732
  * Payment token.
2733
2733
  * @maxLength 100