@wix/auto_sdk_ecom_cart-v-2 1.0.28 → 1.0.30
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 +5 -5
- package/build/cjs/index.js +74 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +74 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +8 -3
- package/build/cjs/meta.js +72 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -5
- package/build/es/index.mjs +74 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +74 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +8 -3
- package/build/es/meta.mjs +72 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +74 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +23 -5
- package/build/internal/cjs/index.typings.js +74 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +8 -3
- package/build/internal/cjs/meta.js +72 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +74 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +23 -5
- package/build/internal/es/index.typings.mjs +74 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +8 -3
- package/build/internal/es/meta.mjs +72 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -455,6 +455,11 @@ interface Image {
|
|
|
455
455
|
* @maxLength 400
|
|
456
456
|
*/
|
|
457
457
|
id?: string;
|
|
458
|
+
/**
|
|
459
|
+
* Image URL, if exists.
|
|
460
|
+
* @format WEB_URL
|
|
461
|
+
*/
|
|
462
|
+
url?: string | null;
|
|
458
463
|
/**
|
|
459
464
|
* Original image height.
|
|
460
465
|
* @readonly
|
|
@@ -1545,7 +1550,7 @@ interface CartSummary {
|
|
|
1545
1550
|
/**
|
|
1546
1551
|
* A token representing the Cart's calculated prices.
|
|
1547
1552
|
*
|
|
1548
|
-
* The client can pass this token
|
|
1553
|
+
* The client can pass this token on place order to ensure that the
|
|
1549
1554
|
* prices the customer saw match the final prices at checkout.
|
|
1550
1555
|
*
|
|
1551
1556
|
* The server will validate the token if provided by recalculating the cart and comparing the
|
|
@@ -2723,11 +2728,11 @@ interface PlaceOrderRequest {
|
|
|
2723
2728
|
*/
|
|
2724
2729
|
cartId: string;
|
|
2725
2730
|
/**
|
|
2726
|
-
* The
|
|
2731
|
+
* The price verification token received from `CalculateCart`'s response.
|
|
2727
2732
|
* Used to verify that the prices shown to the customer have not changed before completing checkout.
|
|
2728
2733
|
* @maxLength 3000
|
|
2729
2734
|
*/
|
|
2730
|
-
|
|
2735
|
+
priceVerificationToken?: string | null;
|
|
2731
2736
|
/**
|
|
2732
2737
|
* Payment token.
|
|
2733
2738
|
* @maxLength 100
|
package/build/cjs/meta.js
CHANGED
|
@@ -168,10 +168,18 @@ function createCart(payload) {
|
|
|
168
168
|
paths: [
|
|
169
169
|
{ path: "cart.createdDate" },
|
|
170
170
|
{ path: "cart.updatedDate" },
|
|
171
|
+
{
|
|
172
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
173
|
+
},
|
|
174
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
171
175
|
{
|
|
172
176
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
173
177
|
},
|
|
174
178
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
179
|
+
{
|
|
180
|
+
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
181
|
+
},
|
|
182
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
175
183
|
{
|
|
176
184
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
177
185
|
},
|
|
@@ -216,6 +224,10 @@ function createCart(payload) {
|
|
|
216
224
|
paths: [
|
|
217
225
|
{ path: "cart.createdDate" },
|
|
218
226
|
{ path: "cart.updatedDate" },
|
|
227
|
+
{
|
|
228
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
229
|
+
},
|
|
230
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
219
231
|
{
|
|
220
232
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
221
233
|
},
|
|
@@ -265,6 +277,10 @@ function getCart(payload) {
|
|
|
265
277
|
paths: [
|
|
266
278
|
{ path: "cart.createdDate" },
|
|
267
279
|
{ path: "cart.updatedDate" },
|
|
280
|
+
{
|
|
281
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
282
|
+
},
|
|
283
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
268
284
|
{
|
|
269
285
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
270
286
|
},
|
|
@@ -304,6 +320,10 @@ function updateCart(payload) {
|
|
|
304
320
|
paths: [
|
|
305
321
|
{ path: "cart.createdDate" },
|
|
306
322
|
{ path: "cart.updatedDate" },
|
|
323
|
+
{
|
|
324
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
325
|
+
},
|
|
326
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
307
327
|
{
|
|
308
328
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
309
329
|
},
|
|
@@ -344,6 +364,10 @@ function updateCart(payload) {
|
|
|
344
364
|
paths: [
|
|
345
365
|
{ path: "cart.createdDate" },
|
|
346
366
|
{ path: "cart.updatedDate" },
|
|
367
|
+
{
|
|
368
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
369
|
+
},
|
|
370
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
347
371
|
{
|
|
348
372
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
349
373
|
},
|
|
@@ -414,6 +438,10 @@ function refreshCart(payload) {
|
|
|
414
438
|
paths: [
|
|
415
439
|
{ path: "cart.createdDate" },
|
|
416
440
|
{ path: "cart.updatedDate" },
|
|
441
|
+
{
|
|
442
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
443
|
+
},
|
|
444
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
417
445
|
{
|
|
418
446
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
419
447
|
},
|
|
@@ -463,6 +491,10 @@ function calculateCart(payload) {
|
|
|
463
491
|
paths: [
|
|
464
492
|
{ path: "cart.createdDate" },
|
|
465
493
|
{ path: "cart.updatedDate" },
|
|
494
|
+
{
|
|
495
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
496
|
+
},
|
|
497
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
466
498
|
{
|
|
467
499
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
468
500
|
},
|
|
@@ -550,6 +582,10 @@ function addLineItems(payload) {
|
|
|
550
582
|
{
|
|
551
583
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
552
584
|
paths: [
|
|
585
|
+
{
|
|
586
|
+
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
587
|
+
},
|
|
588
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
553
589
|
{
|
|
554
590
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
555
591
|
},
|
|
@@ -577,6 +613,10 @@ function addLineItems(payload) {
|
|
|
577
613
|
paths: [
|
|
578
614
|
{ path: "cart.createdDate" },
|
|
579
615
|
{ path: "cart.updatedDate" },
|
|
616
|
+
{
|
|
617
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
618
|
+
},
|
|
619
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
580
620
|
{
|
|
581
621
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
582
622
|
},
|
|
@@ -626,6 +666,10 @@ function removeLineItems(payload) {
|
|
|
626
666
|
paths: [
|
|
627
667
|
{ path: "cart.createdDate" },
|
|
628
668
|
{ path: "cart.updatedDate" },
|
|
669
|
+
{
|
|
670
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
671
|
+
},
|
|
672
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
629
673
|
{
|
|
630
674
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
631
675
|
},
|
|
@@ -675,6 +719,10 @@ function updateLineItems(payload) {
|
|
|
675
719
|
paths: [
|
|
676
720
|
{ path: "cart.createdDate" },
|
|
677
721
|
{ path: "cart.updatedDate" },
|
|
722
|
+
{
|
|
723
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
724
|
+
},
|
|
725
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
678
726
|
{
|
|
679
727
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
680
728
|
},
|
|
@@ -724,6 +772,10 @@ function addCoupon(payload) {
|
|
|
724
772
|
paths: [
|
|
725
773
|
{ path: "cart.createdDate" },
|
|
726
774
|
{ path: "cart.updatedDate" },
|
|
775
|
+
{
|
|
776
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
777
|
+
},
|
|
778
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
727
779
|
{
|
|
728
780
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
729
781
|
},
|
|
@@ -773,6 +825,10 @@ function removeCoupon(payload) {
|
|
|
773
825
|
paths: [
|
|
774
826
|
{ path: "cart.createdDate" },
|
|
775
827
|
{ path: "cart.updatedDate" },
|
|
828
|
+
{
|
|
829
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
830
|
+
},
|
|
831
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
776
832
|
{
|
|
777
833
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
778
834
|
},
|
|
@@ -822,6 +878,10 @@ function setDeliveryMethod(payload) {
|
|
|
822
878
|
paths: [
|
|
823
879
|
{ path: "cart.createdDate" },
|
|
824
880
|
{ path: "cart.updatedDate" },
|
|
881
|
+
{
|
|
882
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
883
|
+
},
|
|
884
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
825
885
|
{
|
|
826
886
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
827
887
|
},
|
|
@@ -871,6 +931,10 @@ function addGiftCard(payload) {
|
|
|
871
931
|
paths: [
|
|
872
932
|
{ path: "cart.createdDate" },
|
|
873
933
|
{ path: "cart.updatedDate" },
|
|
934
|
+
{
|
|
935
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
936
|
+
},
|
|
937
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
874
938
|
{
|
|
875
939
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
876
940
|
},
|
|
@@ -920,6 +984,10 @@ function removeGiftCard(payload) {
|
|
|
920
984
|
paths: [
|
|
921
985
|
{ path: "cart.createdDate" },
|
|
922
986
|
{ path: "cart.updatedDate" },
|
|
987
|
+
{
|
|
988
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
989
|
+
},
|
|
990
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
923
991
|
{
|
|
924
992
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
925
993
|
},
|
|
@@ -969,6 +1037,10 @@ function markCartAsCompleted(payload) {
|
|
|
969
1037
|
paths: [
|
|
970
1038
|
{ path: "cart.createdDate" },
|
|
971
1039
|
{ path: "cart.updatedDate" },
|
|
1040
|
+
{
|
|
1041
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1042
|
+
},
|
|
1043
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
972
1044
|
{
|
|
973
1045
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
974
1046
|
},
|