@wix/auto_sdk_ecom_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 +7 -20
- 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 +7 -20
- 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 +1 -3
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +8 -23
- 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 +1 -3
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +8 -23
- 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
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
|
}
|
|
@@ -1990,7 +1990,6 @@ interface CreateCurrentCartRequest {
|
|
|
1990
1990
|
/**
|
|
1991
1991
|
* Coupons to apply.
|
|
1992
1992
|
* Currently only one is supported.
|
|
1993
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
1994
1993
|
* @maxSize 1
|
|
1995
1994
|
* @minLength 1
|
|
1996
1995
|
* @maxLength 50
|
|
@@ -1999,7 +1998,6 @@ interface CreateCurrentCartRequest {
|
|
|
1999
1998
|
/**
|
|
2000
1999
|
* Gift cards to add.
|
|
2001
2000
|
* Currently only one is support.
|
|
2002
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2003
2001
|
* @maxSize 1
|
|
2004
2002
|
* @minLength 8
|
|
2005
2003
|
* @maxLength 20
|
|
@@ -2074,18 +2072,14 @@ interface CustomItemPricingInfo {
|
|
|
2074
2072
|
/**
|
|
2075
2073
|
* Sale price of a single item, without modifiers.
|
|
2076
2074
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2077
|
-
* @format DECIMAL_VALUE
|
|
2078
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2079
2075
|
*/
|
|
2080
|
-
price?:
|
|
2076
|
+
price?: ConvertedMoney;
|
|
2081
2077
|
/**
|
|
2082
2078
|
* Full price of a single item before any discounts, without modifiers.
|
|
2083
2079
|
* Defaults to `price` when not provided.
|
|
2084
2080
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2085
|
-
* @format DECIMAL_VALUE
|
|
2086
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2087
2081
|
*/
|
|
2088
|
-
fullPrice?:
|
|
2082
|
+
fullPrice?: ConvertedMoney;
|
|
2089
2083
|
/**
|
|
2090
2084
|
* Additional description for the price.
|
|
2091
2085
|
* For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
@@ -2163,10 +2157,8 @@ interface CustomItemPaymentConfig {
|
|
|
2163
2157
|
/**
|
|
2164
2158
|
* Partial payment to be paid upfront during the checkout.
|
|
2165
2159
|
* 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
2160
|
*/
|
|
2169
|
-
depositAmount?:
|
|
2161
|
+
depositAmount?: ConvertedMoney;
|
|
2170
2162
|
/**
|
|
2171
2163
|
* Type of selected payment option for current item.
|
|
2172
2164
|
*
|
|
@@ -2531,7 +2523,6 @@ interface CreateCartRequest {
|
|
|
2531
2523
|
/**
|
|
2532
2524
|
* Coupons to apply.
|
|
2533
2525
|
* Currently only one is supported.
|
|
2534
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2535
2526
|
* @maxSize 1
|
|
2536
2527
|
* @minLength 1
|
|
2537
2528
|
* @maxLength 50
|
|
@@ -2540,7 +2531,6 @@ interface CreateCartRequest {
|
|
|
2540
2531
|
/**
|
|
2541
2532
|
* Gift cards to add.
|
|
2542
2533
|
* Currently only one is support.
|
|
2543
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2544
2534
|
* @maxSize 1
|
|
2545
2535
|
* @minLength 8
|
|
2546
2536
|
* @maxLength 20
|
|
@@ -2705,7 +2695,7 @@ interface PlaceOrderResponse {
|
|
|
2705
2695
|
*/
|
|
2706
2696
|
paymentGatewayOrderId?: string | null;
|
|
2707
2697
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
2708
|
-
|
|
2698
|
+
completed?: boolean;
|
|
2709
2699
|
}
|
|
2710
2700
|
interface AddLineItemsRequest {
|
|
2711
2701
|
/**
|
|
@@ -2886,7 +2876,6 @@ interface CreateCartOptions {
|
|
|
2886
2876
|
/**
|
|
2887
2877
|
* Coupons to apply.
|
|
2888
2878
|
* Currently only one is supported.
|
|
2889
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2890
2879
|
* @maxSize 1
|
|
2891
2880
|
* @minLength 1
|
|
2892
2881
|
* @maxLength 50
|
|
@@ -2895,7 +2884,6 @@ interface CreateCartOptions {
|
|
|
2895
2884
|
/**
|
|
2896
2885
|
* Gift cards to add.
|
|
2897
2886
|
* Currently only one is support.
|
|
2898
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2899
2887
|
* @maxSize 1
|
|
2900
2888
|
* @minLength 8
|
|
2901
2889
|
* @maxLength 20
|
|
@@ -2926,8 +2914,7 @@ interface UpdateCart {
|
|
|
2926
2914
|
revision?: string | null;
|
|
2927
2915
|
/**
|
|
2928
2916
|
* Line items added to the Cart by the customer.
|
|
2929
|
-
* This list may include
|
|
2930
|
-
* When submitting an order, only valid items will be included in the order.
|
|
2917
|
+
* This list may include items in stock and invalid out out stock.
|
|
2931
2918
|
* @maxSize 300
|
|
2932
2919
|
* @readonly
|
|
2933
2920
|
*/
|