@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.
@@ -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 when completing the checkout to ensure that the
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 pricing token received from `CalculateCart`'s response.
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
- pricingToken?: string | null;
2735
+ priceVerificationToken?: string | null;
2731
2736
  /**
2732
2737
  * Payment token.
2733
2738
  * @maxLength 100
package/build/cjs/meta.js CHANGED
@@ -163,10 +163,18 @@ function createCurrentCart(payload) {
163
163
  paths: [
164
164
  { path: "cart.createdDate" },
165
165
  { path: "cart.updatedDate" },
166
+ {
167
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
168
+ },
169
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
166
170
  {
167
171
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
168
172
  },
169
173
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
174
+ {
175
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
176
+ },
177
+ { path: "customItems.attributes.image.urlExpirationDate" },
170
178
  {
171
179
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
172
180
  },
@@ -211,6 +219,10 @@ function createCurrentCart(payload) {
211
219
  paths: [
212
220
  { path: "cart.createdDate" },
213
221
  { path: "cart.updatedDate" },
222
+ {
223
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
224
+ },
225
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
214
226
  {
215
227
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
216
228
  },
@@ -260,6 +272,10 @@ function getCurrentCart(payload) {
260
272
  paths: [
261
273
  { path: "cart.createdDate" },
262
274
  { path: "cart.updatedDate" },
275
+ {
276
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
277
+ },
278
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
263
279
  {
264
280
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
265
281
  },
@@ -299,6 +315,10 @@ function updateCurrentCart(payload) {
299
315
  paths: [
300
316
  { path: "cart.createdDate" },
301
317
  { path: "cart.updatedDate" },
318
+ {
319
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
320
+ },
321
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
302
322
  {
303
323
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
304
324
  },
@@ -339,6 +359,10 @@ function updateCurrentCart(payload) {
339
359
  paths: [
340
360
  { path: "cart.createdDate" },
341
361
  { path: "cart.updatedDate" },
362
+ {
363
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
364
+ },
365
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
342
366
  {
343
367
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
344
368
  },
@@ -409,6 +433,10 @@ function refreshCurrentCart(payload) {
409
433
  paths: [
410
434
  { path: "cart.createdDate" },
411
435
  { path: "cart.updatedDate" },
436
+ {
437
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
438
+ },
439
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
412
440
  {
413
441
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
414
442
  },
@@ -458,6 +486,10 @@ function calculateCurrentCart(payload) {
458
486
  paths: [
459
487
  { path: "cart.createdDate" },
460
488
  { path: "cart.updatedDate" },
489
+ {
490
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
491
+ },
492
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
461
493
  {
462
494
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
463
495
  },
@@ -503,6 +535,10 @@ function addLineItemsToCurrentCart(payload) {
503
535
  {
504
536
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
505
537
  paths: [
538
+ {
539
+ path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
540
+ },
541
+ { path: "customItems.attributes.image.urlExpirationDate" },
506
542
  {
507
543
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
508
544
  },
@@ -530,6 +566,10 @@ function addLineItemsToCurrentCart(payload) {
530
566
  paths: [
531
567
  { path: "cart.createdDate" },
532
568
  { path: "cart.updatedDate" },
569
+ {
570
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
571
+ },
572
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
533
573
  {
534
574
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
535
575
  },
@@ -579,6 +619,10 @@ function removeLineItemsFromCurrentCart(payload) {
579
619
  paths: [
580
620
  { path: "cart.createdDate" },
581
621
  { path: "cart.updatedDate" },
622
+ {
623
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
624
+ },
625
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
582
626
  {
583
627
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
584
628
  },
@@ -628,6 +672,10 @@ function updateLineItemsInCurrentCart(payload) {
628
672
  paths: [
629
673
  { path: "cart.createdDate" },
630
674
  { path: "cart.updatedDate" },
675
+ {
676
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
677
+ },
678
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
631
679
  {
632
680
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
633
681
  },
@@ -677,6 +725,10 @@ function addCouponToCurrentCart(payload) {
677
725
  paths: [
678
726
  { path: "cart.createdDate" },
679
727
  { path: "cart.updatedDate" },
728
+ {
729
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
730
+ },
731
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
680
732
  {
681
733
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
682
734
  },
@@ -726,6 +778,10 @@ function removeCouponFromCurrentCart(payload) {
726
778
  paths: [
727
779
  { path: "cart.createdDate" },
728
780
  { path: "cart.updatedDate" },
781
+ {
782
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
783
+ },
784
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
729
785
  {
730
786
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
731
787
  },
@@ -775,6 +831,10 @@ function setDeliveryMethodForCurrentCart(payload) {
775
831
  paths: [
776
832
  { path: "cart.createdDate" },
777
833
  { path: "cart.updatedDate" },
834
+ {
835
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
836
+ },
837
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
778
838
  {
779
839
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
780
840
  },
@@ -824,6 +884,10 @@ function addGiftCardToCurrentCart(payload) {
824
884
  paths: [
825
885
  { path: "cart.createdDate" },
826
886
  { path: "cart.updatedDate" },
887
+ {
888
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
889
+ },
890
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
827
891
  {
828
892
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
829
893
  },
@@ -873,6 +937,10 @@ function removeGiftCardFromCurrentCart(payload) {
873
937
  paths: [
874
938
  { path: "cart.createdDate" },
875
939
  { path: "cart.updatedDate" },
940
+ {
941
+ path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
942
+ },
943
+ { path: "cart.lineItems.attributes.image.urlExpirationDate" },
876
944
  {
877
945
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
878
946
  },