@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.
@@ -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 when completing the checkout to ensure that the
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 pricing token received from `CalculateCart`'s response.
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
- pricingToken?: string | null;
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 pricing token received from `CalculateCart`'s response.
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
- pricingToken?: string | null;
3091
+ priceVerificationToken?: string | null;
3092
3092
  /**
3093
3093
  * Payment token.
3094
3094
  * @maxLength 100
@@ -113,10 +113,18 @@ function createCart(payload) {
113
113
  paths: [
114
114
  { path: "cart.createdDate" },
115
115
  { path: "cart.updatedDate" },
116
+ {
117
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
118
+ },
119
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
116
120
  {
117
121
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
118
122
  },
119
123
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
124
+ {
125
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
126
+ },
127
+ { path: "customItems.attributes.image.urlExpirationDate" },
120
128
  {
121
129
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
122
130
  },
@@ -161,6 +169,10 @@ function createCart(payload) {
161
169
  paths: [
162
170
  { path: "cart.createdDate" },
163
171
  { path: "cart.updatedDate" },
172
+ {
173
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
174
+ },
175
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
164
176
  {
165
177
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
166
178
  },
@@ -210,6 +222,10 @@ function getCart(payload) {
210
222
  paths: [
211
223
  { path: "cart.createdDate" },
212
224
  { path: "cart.updatedDate" },
225
+ {
226
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
227
+ },
228
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
213
229
  {
214
230
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
215
231
  },
@@ -249,6 +265,10 @@ function updateCart(payload) {
249
265
  paths: [
250
266
  { path: "cart.createdDate" },
251
267
  { path: "cart.updatedDate" },
268
+ {
269
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
270
+ },
271
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
252
272
  {
253
273
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
254
274
  },
@@ -289,6 +309,10 @@ function updateCart(payload) {
289
309
  paths: [
290
310
  { path: "cart.createdDate" },
291
311
  { path: "cart.updatedDate" },
312
+ {
313
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
314
+ },
315
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
292
316
  {
293
317
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
294
318
  },
@@ -359,6 +383,10 @@ function refreshCart(payload) {
359
383
  paths: [
360
384
  { path: "cart.createdDate" },
361
385
  { path: "cart.updatedDate" },
386
+ {
387
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
388
+ },
389
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
362
390
  {
363
391
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
364
392
  },
@@ -408,6 +436,10 @@ function calculateCart(payload) {
408
436
  paths: [
409
437
  { path: "cart.createdDate" },
410
438
  { path: "cart.updatedDate" },
439
+ {
440
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
441
+ },
442
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
411
443
  {
412
444
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
413
445
  },
@@ -495,6 +527,10 @@ function addLineItems(payload) {
495
527
  {
496
528
  transformFn: transformSDKTimestampToRESTTimestamp,
497
529
  paths: [
530
+ {
531
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
532
+ },
533
+ { path: "customItems.attributes.image.urlExpirationDate" },
498
534
  {
499
535
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
500
536
  },
@@ -522,6 +558,10 @@ function addLineItems(payload) {
522
558
  paths: [
523
559
  { path: "cart.createdDate" },
524
560
  { path: "cart.updatedDate" },
561
+ {
562
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
563
+ },
564
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
525
565
  {
526
566
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
527
567
  },
@@ -571,6 +611,10 @@ function removeLineItems(payload) {
571
611
  paths: [
572
612
  { path: "cart.createdDate" },
573
613
  { path: "cart.updatedDate" },
614
+ {
615
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
616
+ },
617
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
574
618
  {
575
619
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
576
620
  },
@@ -620,6 +664,10 @@ function updateLineItems(payload) {
620
664
  paths: [
621
665
  { path: "cart.createdDate" },
622
666
  { path: "cart.updatedDate" },
667
+ {
668
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
669
+ },
670
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
623
671
  {
624
672
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
625
673
  },
@@ -669,6 +717,10 @@ function addCoupon(payload) {
669
717
  paths: [
670
718
  { path: "cart.createdDate" },
671
719
  { path: "cart.updatedDate" },
720
+ {
721
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
722
+ },
723
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
672
724
  {
673
725
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
674
726
  },
@@ -718,6 +770,10 @@ function removeCoupon(payload) {
718
770
  paths: [
719
771
  { path: "cart.createdDate" },
720
772
  { path: "cart.updatedDate" },
773
+ {
774
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
775
+ },
776
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
721
777
  {
722
778
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
723
779
  },
@@ -767,6 +823,10 @@ function setDeliveryMethod(payload) {
767
823
  paths: [
768
824
  { path: "cart.createdDate" },
769
825
  { path: "cart.updatedDate" },
826
+ {
827
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
828
+ },
829
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
770
830
  {
771
831
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
772
832
  },
@@ -816,6 +876,10 @@ function addGiftCard(payload) {
816
876
  paths: [
817
877
  { path: "cart.createdDate" },
818
878
  { path: "cart.updatedDate" },
879
+ {
880
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
881
+ },
882
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
819
883
  {
820
884
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
821
885
  },
@@ -865,6 +929,10 @@ function removeGiftCard(payload) {
865
929
  paths: [
866
930
  { path: "cart.createdDate" },
867
931
  { path: "cart.updatedDate" },
932
+ {
933
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
934
+ },
935
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
868
936
  {
869
937
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
870
938
  },
@@ -914,6 +982,10 @@ function markCartAsCompleted(payload) {
914
982
  paths: [
915
983
  { path: "cart.createdDate" },
916
984
  { path: "cart.updatedDate" },
985
+ {
986
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
987
+ },
988
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
917
989
  {
918
990
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
919
991
  },
@@ -1482,7 +1554,7 @@ async function placeOrder2(cartId, options) {
1482
1554
  const { httpClient, sideEffects } = arguments[2];
1483
1555
  const payload = renameKeysFromSDKRequestToRESTRequest({
1484
1556
  cartId,
1485
- pricingToken: options?.pricingToken,
1557
+ priceVerificationToken: options?.priceVerificationToken,
1486
1558
  paymentToken: options?.paymentToken,
1487
1559
  redirectUrls: options?.redirectUrls,
1488
1560
  savePaymentMethod: options?.savePaymentMethod,
@@ -1501,7 +1573,7 @@ async function placeOrder2(cartId, options) {
1501
1573
  spreadPathsToArguments: {},
1502
1574
  explicitPathsToArguments: {
1503
1575
  cartId: "$[0]",
1504
- pricingToken: "$[1].pricingToken",
1576
+ priceVerificationToken: "$[1].priceVerificationToken",
1505
1577
  paymentToken: "$[1].paymentToken",
1506
1578
  redirectUrls: "$[1].redirectUrls",
1507
1579
  savePaymentMethod: "$[1].savePaymentMethod",