@wix/auto_sdk_ecom_current-cart-v-2 1.0.23 → 1.0.25
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 +15 -22
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +15 -20
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +15 -22
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +15 -20
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +0 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +15 -25
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +15 -20
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +0 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +15 -25
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +15 -20
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -22,8 +22,7 @@ interface Cart {
|
|
|
22
22
|
revision?: string | null;
|
|
23
23
|
/**
|
|
24
24
|
* Line items added to the Cart by the customer.
|
|
25
|
-
* This list may include
|
|
26
|
-
* When submitting an order, only valid items will be included in the order.
|
|
25
|
+
* This list may include items in stock and invalid out out stock.
|
|
27
26
|
* @maxSize 300
|
|
28
27
|
* @readonly
|
|
29
28
|
*/
|
|
@@ -228,6 +227,7 @@ interface ConvertedMoney {
|
|
|
228
227
|
* Default: `amount`.
|
|
229
228
|
* @format DECIMAL_VALUE
|
|
230
229
|
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
230
|
+
* @readonly
|
|
231
231
|
*/
|
|
232
232
|
convertedAmount?: string;
|
|
233
233
|
}
|
|
@@ -1042,7 +1042,9 @@ interface BusinessInfo {
|
|
|
1042
1042
|
*/
|
|
1043
1043
|
languageCode?: string;
|
|
1044
1044
|
/**
|
|
1045
|
-
* The business’s default currency,
|
|
1045
|
+
* The business’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1046
|
+
*
|
|
1047
|
+
* This represents the base currency configured for the site and remains constant regardless of the [customer’s currency selection](https://support.wix.com/en/article/multicurrency-an-overview).
|
|
1046
1048
|
* @format CURRENCY
|
|
1047
1049
|
* @readonly
|
|
1048
1050
|
*/
|
|
@@ -1111,8 +1113,9 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
|
|
|
1111
1113
|
*/
|
|
1112
1114
|
languageCode?: string;
|
|
1113
1115
|
/**
|
|
1114
|
-
*
|
|
1115
|
-
*
|
|
1116
|
+
* The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1117
|
+
*
|
|
1118
|
+
* This reflects the customer’s preferred display currency and may differ from the site’s default currency.
|
|
1116
1119
|
* @format CURRENCY
|
|
1117
1120
|
* @readonly
|
|
1118
1121
|
*/
|
|
@@ -1282,7 +1285,9 @@ interface PaymentInfo {
|
|
|
1282
1285
|
*/
|
|
1283
1286
|
giftCards?: GiftCard[];
|
|
1284
1287
|
/**
|
|
1285
|
-
* The currency
|
|
1288
|
+
* The currency used for processing the payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1289
|
+
*
|
|
1290
|
+
* This is determined by the customer’s selected currency and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `customerInfo.currencyCode` property. If not supported, this falls back to the `businessInfo.currencyCode` property.
|
|
1286
1291
|
* @format CURRENCY
|
|
1287
1292
|
* @readonly
|
|
1288
1293
|
*/
|
|
@@ -1990,7 +1995,6 @@ interface CreateCurrentCartRequest {
|
|
|
1990
1995
|
/**
|
|
1991
1996
|
* Coupons to apply.
|
|
1992
1997
|
* Currently only one is supported.
|
|
1993
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
1994
1998
|
* @maxSize 1
|
|
1995
1999
|
* @minLength 1
|
|
1996
2000
|
* @maxLength 50
|
|
@@ -1999,7 +2003,6 @@ interface CreateCurrentCartRequest {
|
|
|
1999
2003
|
/**
|
|
2000
2004
|
* Gift cards to add.
|
|
2001
2005
|
* Currently only one is support.
|
|
2002
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2003
2006
|
* @maxSize 1
|
|
2004
2007
|
* @minLength 8
|
|
2005
2008
|
* @maxLength 20
|
|
@@ -2074,18 +2077,14 @@ interface CustomItemPricingInfo {
|
|
|
2074
2077
|
/**
|
|
2075
2078
|
* Sale price of a single item, without modifiers.
|
|
2076
2079
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2077
|
-
* @format DECIMAL_VALUE
|
|
2078
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2079
2080
|
*/
|
|
2080
|
-
price?:
|
|
2081
|
+
price?: ConvertedMoney;
|
|
2081
2082
|
/**
|
|
2082
2083
|
* Full price of a single item before any discounts, without modifiers.
|
|
2083
2084
|
* Defaults to `price` when not provided.
|
|
2084
2085
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2085
|
-
* @format DECIMAL_VALUE
|
|
2086
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2087
2086
|
*/
|
|
2088
|
-
fullPrice?:
|
|
2087
|
+
fullPrice?: ConvertedMoney;
|
|
2089
2088
|
/**
|
|
2090
2089
|
* Additional description for the price.
|
|
2091
2090
|
* For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
@@ -2163,10 +2162,8 @@ interface CustomItemPaymentConfig {
|
|
|
2163
2162
|
/**
|
|
2164
2163
|
* Partial payment to be paid upfront during the checkout.
|
|
2165
2164
|
* Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
|
|
2166
|
-
* @format DECIMAL_VALUE
|
|
2167
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2168
2165
|
*/
|
|
2169
|
-
depositAmount?:
|
|
2166
|
+
depositAmount?: ConvertedMoney;
|
|
2170
2167
|
/**
|
|
2171
2168
|
* Type of selected payment option for current item.
|
|
2172
2169
|
*
|
|
@@ -2531,7 +2528,6 @@ interface CreateCartRequest {
|
|
|
2531
2528
|
/**
|
|
2532
2529
|
* Coupons to apply.
|
|
2533
2530
|
* Currently only one is supported.
|
|
2534
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2535
2531
|
* @maxSize 1
|
|
2536
2532
|
* @minLength 1
|
|
2537
2533
|
* @maxLength 50
|
|
@@ -2540,7 +2536,6 @@ interface CreateCartRequest {
|
|
|
2540
2536
|
/**
|
|
2541
2537
|
* Gift cards to add.
|
|
2542
2538
|
* Currently only one is support.
|
|
2543
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2544
2539
|
* @maxSize 1
|
|
2545
2540
|
* @minLength 8
|
|
2546
2541
|
* @maxLength 20
|
|
@@ -2705,7 +2700,7 @@ interface PlaceOrderResponse {
|
|
|
2705
2700
|
*/
|
|
2706
2701
|
paymentGatewayOrderId?: string | null;
|
|
2707
2702
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
2708
|
-
|
|
2703
|
+
completed?: boolean;
|
|
2709
2704
|
}
|
|
2710
2705
|
interface AddLineItemsRequest {
|
|
2711
2706
|
/**
|
|
@@ -2884,7 +2879,6 @@ interface CreateCurrentCartOptions {
|
|
|
2884
2879
|
/**
|
|
2885
2880
|
* Coupons to apply.
|
|
2886
2881
|
* Currently only one is supported.
|
|
2887
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2888
2882
|
* @maxSize 1
|
|
2889
2883
|
* @minLength 1
|
|
2890
2884
|
* @maxLength 50
|
|
@@ -2893,7 +2887,6 @@ interface CreateCurrentCartOptions {
|
|
|
2893
2887
|
/**
|
|
2894
2888
|
* Gift cards to add.
|
|
2895
2889
|
* Currently only one is support.
|
|
2896
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2897
2890
|
* @maxSize 1
|
|
2898
2891
|
* @minLength 8
|
|
2899
2892
|
* @maxLength 20
|