@wix/auto_sdk_ecom_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.
@@ -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. */
@@ -3050,6 +3050,12 @@ interface UpdateCart {
3050
3050
  * [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.
3051
3051
  */
3052
3052
  extendedFields?: ExtendedFields;
3053
+ /**
3054
+ * Indicates whether this is the current cart of the customer.
3055
+ * The current cart can be accessed using the identity context (e.g., visitor ID from session cookies), without requiring an explicit cart ID.
3056
+ * @readonly
3057
+ */
3058
+ currentCart?: boolean;
3053
3059
  }
3054
3060
  interface CalculateCartOptions {
3055
3061
  /**