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