@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.
- package/build/cjs/index.d.ts +26 -20
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +20 -20
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +26 -20
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +20 -20
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -14
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +40 -34
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +20 -20
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -14
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +40 -34
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +20 -20
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -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
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
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. */
|