@wix/auto_sdk_ecom_cart-v-2 1.0.22 → 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 +34 -19
- package/build/cjs/index.js +2 -68
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +2 -68
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -19
- package/build/cjs/meta.js +0 -68
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +34 -19
- package/build/es/index.mjs +2 -68
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +2 -68
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -19
- package/build/es/meta.mjs +0 -68
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -3
- package/build/internal/cjs/index.js +2 -68
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +35 -22
- package/build/internal/cjs/index.typings.js +2 -68
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +22 -19
- package/build/internal/cjs/meta.js +0 -68
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -3
- package/build/internal/es/index.mjs +2 -68
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +35 -22
- package/build/internal/es/index.typings.mjs +2 -68
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +22 -19
- package/build/internal/es/meta.mjs +0 -68
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -24,13 +24,15 @@ 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
|
*/
|
|
32
31
|
lineItems?: V2LineItem[];
|
|
33
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* The sum of all line item final prices.
|
|
34
|
+
* @readonly
|
|
35
|
+
*/
|
|
34
36
|
subtotal?: ConvertedMoney;
|
|
35
37
|
/**
|
|
36
38
|
* Optional message left by the customer.
|
|
@@ -42,6 +44,7 @@ interface Cart {
|
|
|
42
44
|
* List of coupons added to the Cart.
|
|
43
45
|
* Currently, only one coupon code is supported.
|
|
44
46
|
* @maxSize 1
|
|
47
|
+
* @readonly
|
|
45
48
|
*/
|
|
46
49
|
coupons?: Coupon[];
|
|
47
50
|
/** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
|
|
@@ -226,6 +229,7 @@ interface ConvertedMoney {
|
|
|
226
229
|
* Default: `amount`.
|
|
227
230
|
* @format DECIMAL_VALUE
|
|
228
231
|
* @decimalValue options { gte:0, lte:999999999, maxScale:3 }
|
|
232
|
+
* @readonly
|
|
229
233
|
*/
|
|
230
234
|
convertedAmount?: string;
|
|
231
235
|
}
|
|
@@ -445,11 +449,6 @@ interface Image {
|
|
|
445
449
|
* @maxLength 400
|
|
446
450
|
*/
|
|
447
451
|
id?: string;
|
|
448
|
-
/**
|
|
449
|
-
* Image URL.
|
|
450
|
-
* @format WEB_URL
|
|
451
|
-
*/
|
|
452
|
-
url?: string;
|
|
453
452
|
/**
|
|
454
453
|
* Original image height.
|
|
455
454
|
* @readonly
|
|
@@ -2033,7 +2032,6 @@ interface CreateCurrentCartRequest {
|
|
|
2033
2032
|
/**
|
|
2034
2033
|
* Coupons to apply.
|
|
2035
2034
|
* Currently only one is supported.
|
|
2036
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2037
2035
|
* @maxSize 1
|
|
2038
2036
|
* @minLength 1
|
|
2039
2037
|
* @maxLength 50
|
|
@@ -2042,7 +2040,6 @@ interface CreateCurrentCartRequest {
|
|
|
2042
2040
|
/**
|
|
2043
2041
|
* Gift cards to add.
|
|
2044
2042
|
* Currently only one is support.
|
|
2045
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2046
2043
|
* @maxSize 1
|
|
2047
2044
|
* @minLength 8
|
|
2048
2045
|
* @maxLength 20
|
|
@@ -2117,18 +2114,14 @@ interface CustomItemPricingInfo {
|
|
|
2117
2114
|
/**
|
|
2118
2115
|
* Sale price of a single item, without modifiers.
|
|
2119
2116
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2120
|
-
* @format DECIMAL_VALUE
|
|
2121
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2122
2117
|
*/
|
|
2123
|
-
price?:
|
|
2118
|
+
price?: ConvertedMoney;
|
|
2124
2119
|
/**
|
|
2125
2120
|
* Full price of a single item before any discounts, without modifiers.
|
|
2126
2121
|
* Defaults to `price` when not provided.
|
|
2127
2122
|
* Includes tax if `tax_info.prices_include_tax` is true.
|
|
2128
|
-
* @format DECIMAL_VALUE
|
|
2129
|
-
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2130
2123
|
*/
|
|
2131
|
-
fullPrice?:
|
|
2124
|
+
fullPrice?: ConvertedMoney;
|
|
2132
2125
|
/**
|
|
2133
2126
|
* Additional description for the price.
|
|
2134
2127
|
* For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
|
|
@@ -2244,6 +2237,12 @@ interface RefreshCurrentCartResponse {
|
|
|
2244
2237
|
cart?: Cart;
|
|
2245
2238
|
}
|
|
2246
2239
|
interface CalculateCurrentCartRequest {
|
|
2240
|
+
/**
|
|
2241
|
+
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
2242
|
+
*
|
|
2243
|
+
* Default: `false`
|
|
2244
|
+
*/
|
|
2245
|
+
refreshCart?: boolean;
|
|
2247
2246
|
/**
|
|
2248
2247
|
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2249
2248
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
@@ -2568,7 +2567,6 @@ interface CreateCartRequest {
|
|
|
2568
2567
|
/**
|
|
2569
2568
|
* Coupons to apply.
|
|
2570
2569
|
* Currently only one is supported.
|
|
2571
|
-
* If the coupon code is invalid, the cart will be created without it.
|
|
2572
2570
|
* @maxSize 1
|
|
2573
2571
|
* @minLength 1
|
|
2574
2572
|
* @maxLength 50
|
|
@@ -2577,7 +2575,6 @@ interface CreateCartRequest {
|
|
|
2577
2575
|
/**
|
|
2578
2576
|
* Gift cards to add.
|
|
2579
2577
|
* Currently only one is support.
|
|
2580
|
-
* If the gift card code is invalid, the cart will be created without it.
|
|
2581
2578
|
* @maxSize 1
|
|
2582
2579
|
* @minLength 8
|
|
2583
2580
|
* @maxLength 20
|
|
@@ -2633,6 +2630,12 @@ interface CalculateCartRequest {
|
|
|
2633
2630
|
* @format GUID
|
|
2634
2631
|
*/
|
|
2635
2632
|
cartId: string;
|
|
2633
|
+
/**
|
|
2634
|
+
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
2635
|
+
*
|
|
2636
|
+
* Default: `false`
|
|
2637
|
+
*/
|
|
2638
|
+
refreshCart?: boolean;
|
|
2636
2639
|
/**
|
|
2637
2640
|
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2638
2641
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
@@ -2736,7 +2739,7 @@ interface PlaceOrderResponse {
|
|
|
2736
2739
|
*/
|
|
2737
2740
|
paymentGatewayOrderId?: string | null;
|
|
2738
2741
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
2739
|
-
|
|
2742
|
+
completed?: boolean;
|
|
2740
2743
|
}
|
|
2741
2744
|
interface AddLineItemsRequest {
|
|
2742
2745
|
/**
|
package/build/es/meta.mjs
CHANGED
|
@@ -106,18 +106,10 @@ function createCart(payload) {
|
|
|
106
106
|
paths: [
|
|
107
107
|
{ path: "cart.createdDate" },
|
|
108
108
|
{ path: "cart.updatedDate" },
|
|
109
|
-
{
|
|
110
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
111
|
-
},
|
|
112
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
113
109
|
{
|
|
114
110
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
115
111
|
},
|
|
116
112
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
117
|
-
{
|
|
118
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
119
|
-
},
|
|
120
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
121
113
|
{
|
|
122
114
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
123
115
|
},
|
|
@@ -162,10 +154,6 @@ function createCart(payload) {
|
|
|
162
154
|
paths: [
|
|
163
155
|
{ path: "cart.createdDate" },
|
|
164
156
|
{ path: "cart.updatedDate" },
|
|
165
|
-
{
|
|
166
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
167
|
-
},
|
|
168
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
169
157
|
{
|
|
170
158
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
171
159
|
},
|
|
@@ -215,10 +203,6 @@ function getCart(payload) {
|
|
|
215
203
|
paths: [
|
|
216
204
|
{ path: "cart.createdDate" },
|
|
217
205
|
{ path: "cart.updatedDate" },
|
|
218
|
-
{
|
|
219
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
220
|
-
},
|
|
221
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
222
206
|
{
|
|
223
207
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
224
208
|
},
|
|
@@ -258,10 +242,6 @@ function updateCart(payload) {
|
|
|
258
242
|
paths: [
|
|
259
243
|
{ path: "cart.createdDate" },
|
|
260
244
|
{ path: "cart.updatedDate" },
|
|
261
|
-
{
|
|
262
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
263
|
-
},
|
|
264
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
265
245
|
{
|
|
266
246
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
267
247
|
},
|
|
@@ -302,10 +282,6 @@ function updateCart(payload) {
|
|
|
302
282
|
paths: [
|
|
303
283
|
{ path: "cart.createdDate" },
|
|
304
284
|
{ path: "cart.updatedDate" },
|
|
305
|
-
{
|
|
306
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
307
|
-
},
|
|
308
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
309
285
|
{
|
|
310
286
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
311
287
|
},
|
|
@@ -376,10 +352,6 @@ function refreshCart(payload) {
|
|
|
376
352
|
paths: [
|
|
377
353
|
{ path: "cart.createdDate" },
|
|
378
354
|
{ path: "cart.updatedDate" },
|
|
379
|
-
{
|
|
380
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
381
|
-
},
|
|
382
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
383
355
|
{
|
|
384
356
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
385
357
|
},
|
|
@@ -429,10 +401,6 @@ function calculateCart(payload) {
|
|
|
429
401
|
paths: [
|
|
430
402
|
{ path: "cart.createdDate" },
|
|
431
403
|
{ path: "cart.updatedDate" },
|
|
432
|
-
{
|
|
433
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
434
|
-
},
|
|
435
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
436
404
|
{
|
|
437
405
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
438
406
|
},
|
|
@@ -520,10 +488,6 @@ function addLineItems(payload) {
|
|
|
520
488
|
{
|
|
521
489
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
522
490
|
paths: [
|
|
523
|
-
{
|
|
524
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
525
|
-
},
|
|
526
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
527
491
|
{
|
|
528
492
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
529
493
|
},
|
|
@@ -551,10 +515,6 @@ function addLineItems(payload) {
|
|
|
551
515
|
paths: [
|
|
552
516
|
{ path: "cart.createdDate" },
|
|
553
517
|
{ path: "cart.updatedDate" },
|
|
554
|
-
{
|
|
555
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
556
|
-
},
|
|
557
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
558
518
|
{
|
|
559
519
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
560
520
|
},
|
|
@@ -604,10 +564,6 @@ function removeLineItems(payload) {
|
|
|
604
564
|
paths: [
|
|
605
565
|
{ path: "cart.createdDate" },
|
|
606
566
|
{ path: "cart.updatedDate" },
|
|
607
|
-
{
|
|
608
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
609
|
-
},
|
|
610
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
611
567
|
{
|
|
612
568
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
613
569
|
},
|
|
@@ -657,10 +613,6 @@ function updateLineItems(payload) {
|
|
|
657
613
|
paths: [
|
|
658
614
|
{ path: "cart.createdDate" },
|
|
659
615
|
{ path: "cart.updatedDate" },
|
|
660
|
-
{
|
|
661
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
662
|
-
},
|
|
663
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
664
616
|
{
|
|
665
617
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
666
618
|
},
|
|
@@ -710,10 +662,6 @@ function addCoupon(payload) {
|
|
|
710
662
|
paths: [
|
|
711
663
|
{ path: "cart.createdDate" },
|
|
712
664
|
{ path: "cart.updatedDate" },
|
|
713
|
-
{
|
|
714
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
715
|
-
},
|
|
716
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
717
665
|
{
|
|
718
666
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
719
667
|
},
|
|
@@ -763,10 +711,6 @@ function removeCoupon(payload) {
|
|
|
763
711
|
paths: [
|
|
764
712
|
{ path: "cart.createdDate" },
|
|
765
713
|
{ path: "cart.updatedDate" },
|
|
766
|
-
{
|
|
767
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
768
|
-
},
|
|
769
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
770
714
|
{
|
|
771
715
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
772
716
|
},
|
|
@@ -816,10 +760,6 @@ function addGiftCard(payload) {
|
|
|
816
760
|
paths: [
|
|
817
761
|
{ path: "cart.createdDate" },
|
|
818
762
|
{ path: "cart.updatedDate" },
|
|
819
|
-
{
|
|
820
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
821
|
-
},
|
|
822
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
823
763
|
{
|
|
824
764
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
825
765
|
},
|
|
@@ -869,10 +809,6 @@ function removeGiftCard(payload) {
|
|
|
869
809
|
paths: [
|
|
870
810
|
{ path: "cart.createdDate" },
|
|
871
811
|
{ path: "cart.updatedDate" },
|
|
872
|
-
{
|
|
873
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
874
|
-
},
|
|
875
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
876
812
|
{
|
|
877
813
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
878
814
|
},
|
|
@@ -922,10 +858,6 @@ function markCartAsCompleted(payload) {
|
|
|
922
858
|
paths: [
|
|
923
859
|
{ path: "cart.createdDate" },
|
|
924
860
|
{ path: "cart.updatedDate" },
|
|
925
|
-
{
|
|
926
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
927
|
-
},
|
|
928
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
929
861
|
{
|
|
930
862
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
931
863
|
},
|