@wix/auto_sdk_ecom_current-cart-v-2 1.0.23 → 1.0.24
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 +6 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +6 -16
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +6 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +6 -16
- 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 +6 -21
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +6 -16
- 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 +6 -21
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +6 -16
- 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
|
}
|
|
@@ -2018,7 +2018,6 @@ interface CreateCurrentCartRequest {
|
|
|
2018
2018
|
/**
|
|
2019
2019
|
* Coupons to apply.
|
|
2020
2020
|
* Currently only one is supported.
|
|
2021
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2022
2021
|
* @maxSize 1
|
|
2023
2022
|
* @minLength 1
|
|
2024
2023
|
* @maxLength 50
|
|
@@ -2027,7 +2026,6 @@ interface CreateCurrentCartRequest {
|
|
|
2027
2026
|
/**
|
|
2028
2027
|
* Gift cards to add.
|
|
2029
2028
|
* Currently only one is support.
|
|
2030
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2031
2029
|
* @maxSize 1
|
|
2032
2030
|
* @minLength 8
|
|
2033
2031
|
* @maxLength 20
|
|
@@ -2102,18 +2100,14 @@ interface CustomItemPricingInfo {
|
|
|
2102
2100
|
/**
|
|
2103
2101
|
* Sale price of a single item, without modifiers.
|
|
2104
2102
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2105
|
-
* @format DECIMAL_VALUE
|
|
2106
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2107
2103
|
*/
|
|
2108
|
-
price?:
|
|
2104
|
+
price?: ConvertedMoney;
|
|
2109
2105
|
/**
|
|
2110
2106
|
* Full price of a single item before any discounts, without modifiers.
|
|
2111
2107
|
* Defaults to `price` when not provided.
|
|
2112
2108
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2113
|
-
* @format DECIMAL_VALUE
|
|
2114
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2115
2109
|
*/
|
|
2116
|
-
fullPrice?:
|
|
2110
|
+
fullPrice?: ConvertedMoney;
|
|
2117
2111
|
/**
|
|
2118
2112
|
* Additional description for the price.
|
|
2119
2113
|
* For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
@@ -2191,10 +2185,8 @@ interface CustomItemPaymentConfig {
|
|
|
2191
2185
|
/**
|
|
2192
2186
|
* Partial payment to be paid upfront during the checkout.
|
|
2193
2187
|
* 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
2188
|
*/
|
|
2197
|
-
depositAmount?:
|
|
2189
|
+
depositAmount?: ConvertedMoney;
|
|
2198
2190
|
/**
|
|
2199
2191
|
* Type of selected payment option for current item.
|
|
2200
2192
|
*
|
|
@@ -2559,7 +2551,6 @@ interface CreateCartRequest {
|
|
|
2559
2551
|
/**
|
|
2560
2552
|
* Coupons to apply.
|
|
2561
2553
|
* Currently only one is supported.
|
|
2562
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2563
2554
|
* @maxSize 1
|
|
2564
2555
|
* @minLength 1
|
|
2565
2556
|
* @maxLength 50
|
|
@@ -2568,7 +2559,6 @@ interface CreateCartRequest {
|
|
|
2568
2559
|
/**
|
|
2569
2560
|
* Gift cards to add.
|
|
2570
2561
|
* Currently only one is support.
|
|
2571
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2572
2562
|
* @maxSize 1
|
|
2573
2563
|
* @minLength 8
|
|
2574
2564
|
* @maxLength 20
|
|
@@ -2733,7 +2723,7 @@ interface PlaceOrderResponse {
|
|
|
2733
2723
|
*/
|
|
2734
2724
|
paymentGatewayOrderId?: string | null;
|
|
2735
2725
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
2736
|
-
|
|
2726
|
+
completed?: boolean;
|
|
2737
2727
|
}
|
|
2738
2728
|
interface AddLineItemsRequest {
|
|
2739
2729
|
/**
|
|
@@ -2932,7 +2922,6 @@ interface CreateCurrentCartOptions {
|
|
|
2932
2922
|
/**
|
|
2933
2923
|
* Coupons to apply.
|
|
2934
2924
|
* Currently only one is supported.
|
|
2935
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2936
2925
|
* @maxSize 1
|
|
2937
2926
|
* @minLength 1
|
|
2938
2927
|
* @maxLength 50
|
|
@@ -2941,7 +2930,6 @@ interface CreateCurrentCartOptions {
|
|
|
2941
2930
|
/**
|
|
2942
2931
|
* Gift cards to add.
|
|
2943
2932
|
* Currently only one is support.
|
|
2944
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2945
2933
|
* @maxSize 1
|
|
2946
2934
|
* @minLength 8
|
|
2947
2935
|
* @maxLength 20
|
|
@@ -2990,9 +2978,6 @@ declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCa
|
|
|
2990
2978
|
/**
|
|
2991
2979
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
2992
2980
|
* 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
2981
|
* @internal
|
|
2997
2982
|
* @documentationMaturity preview
|
|
2998
2983
|
* @permissionId ecom:v2:cart:calculate_cart
|