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

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. */