@wix/auto_sdk_ecom_current-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
@@ -167,10 +167,18 @@ function createCurrentCart(payload) {
167
167
  paths: [
168
168
  { path: "cart.createdDate" },
169
169
  { path: "cart.updatedDate" },
170
+ {
171
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
172
+ },
173
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
170
174
  {
171
175
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
172
176
  },
173
177
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
178
+ {
179
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
180
+ },
181
+ { path: "customItems.attributes.image.urlExpirationDate" },
174
182
  {
175
183
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
176
184
  },
@@ -215,6 +223,10 @@ function createCurrentCart(payload) {
215
223
  paths: [
216
224
  { path: "cart.createdDate" },
217
225
  { path: "cart.updatedDate" },
226
+ {
227
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
228
+ },
229
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
218
230
  {
219
231
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
220
232
  },
@@ -264,6 +276,10 @@ function getCurrentCart(payload) {
264
276
  paths: [
265
277
  { path: "cart.createdDate" },
266
278
  { path: "cart.updatedDate" },
279
+ {
280
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
281
+ },
282
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
267
283
  {
268
284
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
269
285
  },
@@ -303,6 +319,10 @@ function updateCurrentCart(payload) {
303
319
  paths: [
304
320
  { path: "cart.createdDate" },
305
321
  { path: "cart.updatedDate" },
322
+ {
323
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
324
+ },
325
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
306
326
  {
307
327
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
308
328
  },
@@ -343,6 +363,10 @@ function updateCurrentCart(payload) {
343
363
  paths: [
344
364
  { path: "cart.createdDate" },
345
365
  { path: "cart.updatedDate" },
366
+ {
367
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
368
+ },
369
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
346
370
  {
347
371
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
348
372
  },
@@ -413,6 +437,10 @@ function refreshCurrentCart(payload) {
413
437
  paths: [
414
438
  { path: "cart.createdDate" },
415
439
  { path: "cart.updatedDate" },
440
+ {
441
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
442
+ },
443
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
416
444
  {
417
445
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
418
446
  },
@@ -462,6 +490,10 @@ function calculateCurrentCart(payload) {
462
490
  paths: [
463
491
  { path: "cart.createdDate" },
464
492
  { path: "cart.updatedDate" },
493
+ {
494
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
495
+ },
496
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
465
497
  {
466
498
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
467
499
  },
@@ -507,6 +539,10 @@ function addLineItemsToCurrentCart(payload) {
507
539
  {
508
540
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
509
541
  paths: [
542
+ {
543
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
544
+ },
545
+ { path: "customItems.attributes.image.urlExpirationDate" },
510
546
  {
511
547
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
512
548
  },
@@ -534,6 +570,10 @@ function addLineItemsToCurrentCart(payload) {
534
570
  paths: [
535
571
  { path: "cart.createdDate" },
536
572
  { path: "cart.updatedDate" },
573
+ {
574
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
575
+ },
576
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
537
577
  {
538
578
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
539
579
  },
@@ -583,6 +623,10 @@ function removeLineItemsFromCurrentCart(payload) {
583
623
  paths: [
584
624
  { path: "cart.createdDate" },
585
625
  { path: "cart.updatedDate" },
626
+ {
627
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
628
+ },
629
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
586
630
  {
587
631
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
588
632
  },
@@ -632,6 +676,10 @@ function updateLineItemsInCurrentCart(payload) {
632
676
  paths: [
633
677
  { path: "cart.createdDate" },
634
678
  { path: "cart.updatedDate" },
679
+ {
680
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
681
+ },
682
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
635
683
  {
636
684
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
637
685
  },
@@ -681,6 +729,10 @@ function addCouponToCurrentCart(payload) {
681
729
  paths: [
682
730
  { path: "cart.createdDate" },
683
731
  { path: "cart.updatedDate" },
732
+ {
733
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
734
+ },
735
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
684
736
  {
685
737
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
686
738
  },
@@ -730,6 +782,10 @@ function removeCouponFromCurrentCart(payload) {
730
782
  paths: [
731
783
  { path: "cart.createdDate" },
732
784
  { path: "cart.updatedDate" },
785
+ {
786
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
787
+ },
788
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
733
789
  {
734
790
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
735
791
  },
@@ -779,6 +835,10 @@ function setDeliveryMethodForCurrentCart(payload) {
779
835
  paths: [
780
836
  { path: "cart.createdDate" },
781
837
  { path: "cart.updatedDate" },
838
+ {
839
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
840
+ },
841
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
782
842
  {
783
843
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
784
844
  },
@@ -828,6 +888,10 @@ function addGiftCardToCurrentCart(payload) {
828
888
  paths: [
829
889
  { path: "cart.createdDate" },
830
890
  { path: "cart.updatedDate" },
891
+ {
892
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
893
+ },
894
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
831
895
  {
832
896
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
833
897
  },
@@ -877,6 +941,10 @@ function removeGiftCardFromCurrentCart(payload) {
877
941
  paths: [
878
942
  { path: "cart.createdDate" },
879
943
  { path: "cart.updatedDate" },
944
+ {
945
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
946
+ },
947
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
880
948
  {
881
949
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
882
950
  },