@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
|
@@ -24,8 +24,7 @@ interface Cart {
|
|
|
24
24
|
revision?: string | null;
|
|
25
25
|
/**
|
|
26
26
|
* Line items added to the Cart by the customer.
|
|
27
|
-
* This list may include
|
|
28
|
-
* When submitting an order, only valid items will be included in the order.
|
|
27
|
+
* This list may include items in stock and invalid out out stock.
|
|
29
28
|
* @maxSize 300
|
|
30
29
|
* @readonly
|
|
31
30
|
*/
|
|
@@ -230,6 +229,7 @@ interface ConvertedMoney {
|
|
|
230
229
|
* Default: `amount`.
|
|
231
230
|
* @format DECIMAL_VALUE
|
|
232
231
|
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
232
|
+
* @readonly
|
|
233
233
|
*/
|
|
234
234
|
convertedAmount?: string;
|
|
235
235
|
}
|
|
@@ -1065,7 +1065,9 @@ interface BusinessInfo {
|
|
|
1065
1065
|
*/
|
|
1066
1066
|
languageCode?: string;
|
|
1067
1067
|
/**
|
|
1068
|
-
* The business’s default currency,
|
|
1068
|
+
* The business’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1069
|
+
*
|
|
1070
|
+
* 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).
|
|
1069
1071
|
* @format CURRENCY
|
|
1070
1072
|
* @readonly
|
|
1071
1073
|
*/
|
|
@@ -1134,8 +1136,9 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
|
|
|
1134
1136
|
*/
|
|
1135
1137
|
languageCode?: string;
|
|
1136
1138
|
/**
|
|
1137
|
-
*
|
|
1138
|
-
*
|
|
1139
|
+
* 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.
|
|
1140
|
+
*
|
|
1141
|
+
* This reflects the customer’s preferred display currency and may differ from the site’s default currency.
|
|
1139
1142
|
* @format CURRENCY
|
|
1140
1143
|
* @readonly
|
|
1141
1144
|
*/
|
|
@@ -1305,7 +1308,9 @@ interface PaymentInfo {
|
|
|
1305
1308
|
*/
|
|
1306
1309
|
giftCards?: GiftCard[];
|
|
1307
1310
|
/**
|
|
1308
|
-
* The currency
|
|
1311
|
+
* The currency used for processing the payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1312
|
+
*
|
|
1313
|
+
* 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.
|
|
1309
1314
|
* @format CURRENCY
|
|
1310
1315
|
* @readonly
|
|
1311
1316
|
*/
|
|
@@ -2018,7 +2023,6 @@ interface CreateCurrentCartRequest {
|
|
|
2018
2023
|
/**
|
|
2019
2024
|
* Coupons to apply.
|
|
2020
2025
|
* Currently only one is supported.
|
|
2021
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2022
2026
|
* @maxSize 1
|
|
2023
2027
|
* @minLength 1
|
|
2024
2028
|
* @maxLength 50
|
|
@@ -2027,7 +2031,6 @@ interface CreateCurrentCartRequest {
|
|
|
2027
2031
|
/**
|
|
2028
2032
|
* Gift cards to add.
|
|
2029
2033
|
* Currently only one is support.
|
|
2030
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2031
2034
|
* @maxSize 1
|
|
2032
2035
|
* @minLength 8
|
|
2033
2036
|
* @maxLength 20
|
|
@@ -2102,18 +2105,14 @@ interface CustomItemPricingInfo {
|
|
|
2102
2105
|
/**
|
|
2103
2106
|
* Sale price of a single item, without modifiers.
|
|
2104
2107
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2105
|
-
* @format DECIMAL_VALUE
|
|
2106
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2107
2108
|
*/
|
|
2108
|
-
price?:
|
|
2109
|
+
price?: ConvertedMoney;
|
|
2109
2110
|
/**
|
|
2110
2111
|
* Full price of a single item before any discounts, without modifiers.
|
|
2111
2112
|
* Defaults to `price` when not provided.
|
|
2112
2113
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2113
|
-
* @format DECIMAL_VALUE
|
|
2114
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2115
2114
|
*/
|
|
2116
|
-
fullPrice?:
|
|
2115
|
+
fullPrice?: ConvertedMoney;
|
|
2117
2116
|
/**
|
|
2118
2117
|
* Additional description for the price.
|
|
2119
2118
|
* For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
@@ -2191,10 +2190,8 @@ interface CustomItemPaymentConfig {
|
|
|
2191
2190
|
/**
|
|
2192
2191
|
* Partial payment to be paid upfront during the checkout.
|
|
2193
2192
|
* Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
|
|
2194
|
-
* @format DECIMAL_VALUE
|
|
2195
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2196
2193
|
*/
|
|
2197
|
-
depositAmount?:
|
|
2194
|
+
depositAmount?: ConvertedMoney;
|
|
2198
2195
|
/**
|
|
2199
2196
|
* Type of selected payment option for current item.
|
|
2200
2197
|
*
|
|
@@ -2559,7 +2556,6 @@ interface CreateCartRequest {
|
|
|
2559
2556
|
/**
|
|
2560
2557
|
* Coupons to apply.
|
|
2561
2558
|
* Currently only one is supported.
|
|
2562
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2563
2559
|
* @maxSize 1
|
|
2564
2560
|
* @minLength 1
|
|
2565
2561
|
* @maxLength 50
|
|
@@ -2568,7 +2564,6 @@ interface CreateCartRequest {
|
|
|
2568
2564
|
/**
|
|
2569
2565
|
* Gift cards to add.
|
|
2570
2566
|
* Currently only one is support.
|
|
2571
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2572
2567
|
* @maxSize 1
|
|
2573
2568
|
* @minLength 8
|
|
2574
2569
|
* @maxLength 20
|
|
@@ -2733,7 +2728,7 @@ interface PlaceOrderResponse {
|
|
|
2733
2728
|
*/
|
|
2734
2729
|
paymentGatewayOrderId?: string | null;
|
|
2735
2730
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
2736
|
-
|
|
2731
|
+
completed?: boolean;
|
|
2737
2732
|
}
|
|
2738
2733
|
interface AddLineItemsRequest {
|
|
2739
2734
|
/**
|
|
@@ -2932,7 +2927,6 @@ interface CreateCurrentCartOptions {
|
|
|
2932
2927
|
/**
|
|
2933
2928
|
* Coupons to apply.
|
|
2934
2929
|
* Currently only one is supported.
|
|
2935
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2936
2930
|
* @maxSize 1
|
|
2937
2931
|
* @minLength 1
|
|
2938
2932
|
* @maxLength 50
|
|
@@ -2941,7 +2935,6 @@ interface CreateCurrentCartOptions {
|
|
|
2941
2935
|
/**
|
|
2942
2936
|
* Gift cards to add.
|
|
2943
2937
|
* Currently only one is support.
|
|
2944
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2945
2938
|
* @maxSize 1
|
|
2946
2939
|
* @minLength 8
|
|
2947
2940
|
* @maxLength 20
|
|
@@ -2990,9 +2983,6 @@ declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCa
|
|
|
2990
2983
|
/**
|
|
2991
2984
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
2992
2985
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
2993
|
-
* Note that discounts are already pre-computed and applied to the Cart.
|
|
2994
|
-
*
|
|
2995
|
-
* This is a read-only operation that does not modify the cart.
|
|
2996
2986
|
* @internal
|
|
2997
2987
|
* @documentationMaturity preview
|
|
2998
2988
|
* @permissionId ecom:v2:cart:calculate_cart
|