@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.
@@ -456,6 +456,11 @@ interface Image {
456
456
  * @maxLength 400
457
457
  */
458
458
  id?: string;
459
+ /**
460
+ * Image URL, if exists.
461
+ * @format WEB_URL
462
+ */
463
+ url?: string | null;
459
464
  /**
460
465
  * Original image height.
461
466
  * @readonly
@@ -1546,7 +1551,7 @@ interface CartSummary {
1546
1551
  /**
1547
1552
  * A token representing the Cart's calculated prices.
1548
1553
  *
1549
- * The client can pass this token when completing the checkout to ensure that the
1554
+ * The client can pass this token on place order to ensure that the
1550
1555
  * prices the customer saw match the final prices at checkout.
1551
1556
  *
1552
1557
  * The server will validate the token if provided by recalculating the cart and comparing the
@@ -2724,11 +2729,11 @@ interface PlaceOrderRequest {
2724
2729
  */
2725
2730
  cartId?: string;
2726
2731
  /**
2727
- * The pricing token received from `CalculateCart`'s response.
2732
+ * The price verification token received from `CalculateCart`'s response.
2728
2733
  * Used to verify that the prices shown to the customer have not changed before completing checkout.
2729
2734
  * @maxLength 3000
2730
2735
  */
2731
- pricingToken?: string | null;
2736
+ priceVerificationToken?: string | null;
2732
2737
  /**
2733
2738
  * Payment token.
2734
2739
  * @maxLength 100
@@ -105,10 +105,18 @@ function createCurrentCart(payload) {
105
105
  paths: [
106
106
  { path: "cart.createdDate" },
107
107
  { path: "cart.updatedDate" },
108
+ {
109
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
110
+ },
111
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
108
112
  {
109
113
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
110
114
  },
111
115
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
116
+ {
117
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
118
+ },
119
+ { path: "customItems.attributes.image.urlExpirationDate" },
112
120
  {
113
121
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
114
122
  },
@@ -153,6 +161,10 @@ function createCurrentCart(payload) {
153
161
  paths: [
154
162
  { path: "cart.createdDate" },
155
163
  { path: "cart.updatedDate" },
164
+ {
165
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
166
+ },
167
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
156
168
  {
157
169
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
158
170
  },
@@ -202,6 +214,10 @@ function getCurrentCart(payload) {
202
214
  paths: [
203
215
  { path: "cart.createdDate" },
204
216
  { path: "cart.updatedDate" },
217
+ {
218
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
219
+ },
220
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
205
221
  {
206
222
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
207
223
  },
@@ -241,6 +257,10 @@ function updateCurrentCart(payload) {
241
257
  paths: [
242
258
  { path: "cart.createdDate" },
243
259
  { path: "cart.updatedDate" },
260
+ {
261
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
262
+ },
263
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
244
264
  {
245
265
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
246
266
  },
@@ -281,6 +301,10 @@ function updateCurrentCart(payload) {
281
301
  paths: [
282
302
  { path: "cart.createdDate" },
283
303
  { path: "cart.updatedDate" },
304
+ {
305
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
306
+ },
307
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
284
308
  {
285
309
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
286
310
  },
@@ -351,6 +375,10 @@ function refreshCurrentCart(payload) {
351
375
  paths: [
352
376
  { path: "cart.createdDate" },
353
377
  { path: "cart.updatedDate" },
378
+ {
379
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
380
+ },
381
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
354
382
  {
355
383
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
356
384
  },
@@ -400,6 +428,10 @@ function calculateCurrentCart(payload) {
400
428
  paths: [
401
429
  { path: "cart.createdDate" },
402
430
  { path: "cart.updatedDate" },
431
+ {
432
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
433
+ },
434
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
403
435
  {
404
436
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
405
437
  },
@@ -445,6 +477,10 @@ function addLineItemsToCurrentCart(payload) {
445
477
  {
446
478
  transformFn: transformSDKTimestampToRESTTimestamp,
447
479
  paths: [
480
+ {
481
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
482
+ },
483
+ { path: "customItems.attributes.image.urlExpirationDate" },
448
484
  {
449
485
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
450
486
  },
@@ -472,6 +508,10 @@ function addLineItemsToCurrentCart(payload) {
472
508
  paths: [
473
509
  { path: "cart.createdDate" },
474
510
  { path: "cart.updatedDate" },
511
+ {
512
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
513
+ },
514
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
475
515
  {
476
516
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
477
517
  },
@@ -521,6 +561,10 @@ function removeLineItemsFromCurrentCart(payload) {
521
561
  paths: [
522
562
  { path: "cart.createdDate" },
523
563
  { path: "cart.updatedDate" },
564
+ {
565
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
566
+ },
567
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
524
568
  {
525
569
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
526
570
  },
@@ -570,6 +614,10 @@ function updateLineItemsInCurrentCart(payload) {
570
614
  paths: [
571
615
  { path: "cart.createdDate" },
572
616
  { path: "cart.updatedDate" },
617
+ {
618
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
619
+ },
620
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
573
621
  {
574
622
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
575
623
  },
@@ -619,6 +667,10 @@ function addCouponToCurrentCart(payload) {
619
667
  paths: [
620
668
  { path: "cart.createdDate" },
621
669
  { path: "cart.updatedDate" },
670
+ {
671
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
672
+ },
673
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
622
674
  {
623
675
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
624
676
  },
@@ -668,6 +720,10 @@ function removeCouponFromCurrentCart(payload) {
668
720
  paths: [
669
721
  { path: "cart.createdDate" },
670
722
  { path: "cart.updatedDate" },
723
+ {
724
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
725
+ },
726
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
671
727
  {
672
728
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
673
729
  },
@@ -717,6 +773,10 @@ function setDeliveryMethodForCurrentCart(payload) {
717
773
  paths: [
718
774
  { path: "cart.createdDate" },
719
775
  { path: "cart.updatedDate" },
776
+ {
777
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
778
+ },
779
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
720
780
  {
721
781
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
722
782
  },
@@ -766,6 +826,10 @@ function addGiftCardToCurrentCart(payload) {
766
826
  paths: [
767
827
  { path: "cart.createdDate" },
768
828
  { path: "cart.updatedDate" },
829
+ {
830
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
831
+ },
832
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
769
833
  {
770
834
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
771
835
  },
@@ -815,6 +879,10 @@ function removeGiftCardFromCurrentCart(payload) {
815
879
  paths: [
816
880
  { path: "cart.createdDate" },
817
881
  { path: "cart.updatedDate" },
882
+ {
883
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
884
+ },
885
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
818
886
  {
819
887
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
820
888
  },