@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/index.d.ts
CHANGED
|
@@ -1503,7 +1503,7 @@ interface CartSummary {
|
|
|
1503
1503
|
/**
|
|
1504
1504
|
* A token representing the Cart's calculated prices.
|
|
1505
1505
|
*
|
|
1506
|
-
* The client can pass this token
|
|
1506
|
+
* The client can pass this token on place order to ensure that the
|
|
1507
1507
|
* prices the customer saw match the final prices at checkout.
|
|
1508
1508
|
*
|
|
1509
1509
|
* The server will validate the token if provided by recalculating the cart and comparing the
|
|
@@ -2679,11 +2679,11 @@ interface PlaceOrderRequest {
|
|
|
2679
2679
|
*/
|
|
2680
2680
|
cartId: string;
|
|
2681
2681
|
/**
|
|
2682
|
-
* The
|
|
2682
|
+
* The price verification token received from `CalculateCart`'s response.
|
|
2683
2683
|
* Used to verify that the prices shown to the customer have not changed before completing checkout.
|
|
2684
2684
|
* @maxLength 3000
|
|
2685
2685
|
*/
|
|
2686
|
-
|
|
2686
|
+
priceVerificationToken?: string | null;
|
|
2687
2687
|
/**
|
|
2688
2688
|
* Payment token.
|
|
2689
2689
|
* @maxLength 100
|
|
@@ -3084,11 +3084,11 @@ interface GetCheckoutUrlOptions {
|
|
|
3084
3084
|
}
|
|
3085
3085
|
interface PlaceOrderOptions {
|
|
3086
3086
|
/**
|
|
3087
|
-
* The
|
|
3087
|
+
* The price verification token received from `CalculateCart`'s response.
|
|
3088
3088
|
* Used to verify that the prices shown to the customer have not changed before completing checkout.
|
|
3089
3089
|
* @maxLength 3000
|
|
3090
3090
|
*/
|
|
3091
|
-
|
|
3091
|
+
priceVerificationToken?: string | null;
|
|
3092
3092
|
/**
|
|
3093
3093
|
* Payment token.
|
|
3094
3094
|
* @maxLength 100
|
package/build/cjs/index.js
CHANGED
|
@@ -172,10 +172,18 @@ function createCart(payload) {
|
|
|
172
172
|
paths: [
|
|
173
173
|
{ path: "cart.createdDate" },
|
|
174
174
|
{ path: "cart.updatedDate" },
|
|
175
|
+
{
|
|
176
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
177
|
+
},
|
|
178
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
175
179
|
{
|
|
176
180
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
177
181
|
},
|
|
178
182
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
183
|
+
{
|
|
184
|
+
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
185
|
+
},
|
|
186
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
179
187
|
{
|
|
180
188
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
181
189
|
},
|
|
@@ -220,6 +228,10 @@ function createCart(payload) {
|
|
|
220
228
|
paths: [
|
|
221
229
|
{ path: "cart.createdDate" },
|
|
222
230
|
{ path: "cart.updatedDate" },
|
|
231
|
+
{
|
|
232
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
233
|
+
},
|
|
234
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
223
235
|
{
|
|
224
236
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
225
237
|
},
|
|
@@ -269,6 +281,10 @@ function getCart(payload) {
|
|
|
269
281
|
paths: [
|
|
270
282
|
{ path: "cart.createdDate" },
|
|
271
283
|
{ path: "cart.updatedDate" },
|
|
284
|
+
{
|
|
285
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
286
|
+
},
|
|
287
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
272
288
|
{
|
|
273
289
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
274
290
|
},
|
|
@@ -308,6 +324,10 @@ function updateCart(payload) {
|
|
|
308
324
|
paths: [
|
|
309
325
|
{ path: "cart.createdDate" },
|
|
310
326
|
{ path: "cart.updatedDate" },
|
|
327
|
+
{
|
|
328
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
329
|
+
},
|
|
330
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
311
331
|
{
|
|
312
332
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
313
333
|
},
|
|
@@ -348,6 +368,10 @@ function updateCart(payload) {
|
|
|
348
368
|
paths: [
|
|
349
369
|
{ path: "cart.createdDate" },
|
|
350
370
|
{ path: "cart.updatedDate" },
|
|
371
|
+
{
|
|
372
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
373
|
+
},
|
|
374
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
351
375
|
{
|
|
352
376
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
353
377
|
},
|
|
@@ -418,6 +442,10 @@ function refreshCart(payload) {
|
|
|
418
442
|
paths: [
|
|
419
443
|
{ path: "cart.createdDate" },
|
|
420
444
|
{ path: "cart.updatedDate" },
|
|
445
|
+
{
|
|
446
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
447
|
+
},
|
|
448
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
421
449
|
{
|
|
422
450
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
423
451
|
},
|
|
@@ -467,6 +495,10 @@ function calculateCart(payload) {
|
|
|
467
495
|
paths: [
|
|
468
496
|
{ path: "cart.createdDate" },
|
|
469
497
|
{ path: "cart.updatedDate" },
|
|
498
|
+
{
|
|
499
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
500
|
+
},
|
|
501
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
470
502
|
{
|
|
471
503
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
472
504
|
},
|
|
@@ -554,6 +586,10 @@ function addLineItems(payload) {
|
|
|
554
586
|
{
|
|
555
587
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
556
588
|
paths: [
|
|
589
|
+
{
|
|
590
|
+
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
591
|
+
},
|
|
592
|
+
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
557
593
|
{
|
|
558
594
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
559
595
|
},
|
|
@@ -581,6 +617,10 @@ function addLineItems(payload) {
|
|
|
581
617
|
paths: [
|
|
582
618
|
{ path: "cart.createdDate" },
|
|
583
619
|
{ path: "cart.updatedDate" },
|
|
620
|
+
{
|
|
621
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
622
|
+
},
|
|
623
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
584
624
|
{
|
|
585
625
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
586
626
|
},
|
|
@@ -630,6 +670,10 @@ function removeLineItems(payload) {
|
|
|
630
670
|
paths: [
|
|
631
671
|
{ path: "cart.createdDate" },
|
|
632
672
|
{ path: "cart.updatedDate" },
|
|
673
|
+
{
|
|
674
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
675
|
+
},
|
|
676
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
633
677
|
{
|
|
634
678
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
635
679
|
},
|
|
@@ -679,6 +723,10 @@ function updateLineItems(payload) {
|
|
|
679
723
|
paths: [
|
|
680
724
|
{ path: "cart.createdDate" },
|
|
681
725
|
{ path: "cart.updatedDate" },
|
|
726
|
+
{
|
|
727
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
728
|
+
},
|
|
729
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
682
730
|
{
|
|
683
731
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
684
732
|
},
|
|
@@ -728,6 +776,10 @@ function addCoupon(payload) {
|
|
|
728
776
|
paths: [
|
|
729
777
|
{ path: "cart.createdDate" },
|
|
730
778
|
{ path: "cart.updatedDate" },
|
|
779
|
+
{
|
|
780
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
781
|
+
},
|
|
782
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
731
783
|
{
|
|
732
784
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
733
785
|
},
|
|
@@ -777,6 +829,10 @@ function removeCoupon(payload) {
|
|
|
777
829
|
paths: [
|
|
778
830
|
{ path: "cart.createdDate" },
|
|
779
831
|
{ path: "cart.updatedDate" },
|
|
832
|
+
{
|
|
833
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
834
|
+
},
|
|
835
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
780
836
|
{
|
|
781
837
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
782
838
|
},
|
|
@@ -826,6 +882,10 @@ function setDeliveryMethod(payload) {
|
|
|
826
882
|
paths: [
|
|
827
883
|
{ path: "cart.createdDate" },
|
|
828
884
|
{ path: "cart.updatedDate" },
|
|
885
|
+
{
|
|
886
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
887
|
+
},
|
|
888
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
829
889
|
{
|
|
830
890
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
831
891
|
},
|
|
@@ -875,6 +935,10 @@ function addGiftCard(payload) {
|
|
|
875
935
|
paths: [
|
|
876
936
|
{ path: "cart.createdDate" },
|
|
877
937
|
{ path: "cart.updatedDate" },
|
|
938
|
+
{
|
|
939
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
940
|
+
},
|
|
941
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
878
942
|
{
|
|
879
943
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
880
944
|
},
|
|
@@ -924,6 +988,10 @@ function removeGiftCard(payload) {
|
|
|
924
988
|
paths: [
|
|
925
989
|
{ path: "cart.createdDate" },
|
|
926
990
|
{ path: "cart.updatedDate" },
|
|
991
|
+
{
|
|
992
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
993
|
+
},
|
|
994
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
927
995
|
{
|
|
928
996
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
929
997
|
},
|
|
@@ -973,6 +1041,10 @@ function markCartAsCompleted(payload) {
|
|
|
973
1041
|
paths: [
|
|
974
1042
|
{ path: "cart.createdDate" },
|
|
975
1043
|
{ path: "cart.updatedDate" },
|
|
1044
|
+
{
|
|
1045
|
+
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
1046
|
+
},
|
|
1047
|
+
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
976
1048
|
{
|
|
977
1049
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
978
1050
|
},
|
|
@@ -1541,7 +1613,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1541
1613
|
const { httpClient, sideEffects } = arguments[2];
|
|
1542
1614
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1543
1615
|
cartId,
|
|
1544
|
-
|
|
1616
|
+
priceVerificationToken: options?.priceVerificationToken,
|
|
1545
1617
|
paymentToken: options?.paymentToken,
|
|
1546
1618
|
redirectUrls: options?.redirectUrls,
|
|
1547
1619
|
savePaymentMethod: options?.savePaymentMethod,
|
|
@@ -1560,7 +1632,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1560
1632
|
spreadPathsToArguments: {},
|
|
1561
1633
|
explicitPathsToArguments: {
|
|
1562
1634
|
cartId: "$[0]",
|
|
1563
|
-
|
|
1635
|
+
priceVerificationToken: "$[1].priceVerificationToken",
|
|
1564
1636
|
paymentToken: "$[1].paymentToken",
|
|
1565
1637
|
redirectUrls: "$[1].redirectUrls",
|
|
1566
1638
|
savePaymentMethod: "$[1].savePaymentMethod",
|