@wix/auto_sdk_ecom_cart-v-2 1.0.113 → 1.0.114

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.
@@ -221,6 +221,7 @@ function createCart(payload) {
221
221
  { path: "cart.deliveryInfo.address.geocode.longitude" },
222
222
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
223
223
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
224
+ { path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
224
225
  {
225
226
  path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
226
227
  },
@@ -271,7 +272,10 @@ function createCart(payload) {
271
272
  { path: "cart.deliveryInfo.address.geocode.latitude" },
272
273
  { path: "cart.deliveryInfo.address.geocode.longitude" },
273
274
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
274
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
275
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
276
+ {
277
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
278
+ }
275
279
  ]
276
280
  }
277
281
  ])
@@ -325,7 +329,10 @@ function getCart(payload) {
325
329
  { path: "cart.deliveryInfo.address.geocode.latitude" },
326
330
  { path: "cart.deliveryInfo.address.geocode.longitude" },
327
331
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
328
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
332
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
333
+ {
334
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
335
+ }
329
336
  ]
330
337
  }
331
338
  ])
@@ -367,7 +374,8 @@ function updateCart(payload) {
367
374
  { path: "cart.deliveryInfo.address.geocode.latitude" },
368
375
  { path: "cart.deliveryInfo.address.geocode.longitude" },
369
376
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
370
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
377
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
378
+ { path: "cart.legacyFields.discounts.merchantDiscount.percentage" }
371
379
  ]
372
380
  }
373
381
  ]);
@@ -414,7 +422,10 @@ function updateCart(payload) {
414
422
  { path: "cart.deliveryInfo.address.geocode.latitude" },
415
423
  { path: "cart.deliveryInfo.address.geocode.longitude" },
416
424
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
417
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
425
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
426
+ {
427
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
428
+ }
418
429
  ]
419
430
  }
420
431
  ])
@@ -489,7 +500,10 @@ function refreshCart(payload) {
489
500
  { path: "cart.deliveryInfo.address.geocode.latitude" },
490
501
  { path: "cart.deliveryInfo.address.geocode.longitude" },
491
502
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
492
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
503
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
504
+ {
505
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
506
+ }
493
507
  ]
494
508
  }
495
509
  ])
@@ -546,7 +560,10 @@ function estimateCart(payload) {
546
560
  { path: "cart.deliveryInfo.address.geocode.latitude" },
547
561
  { path: "cart.deliveryInfo.address.geocode.longitude" },
548
562
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
549
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
563
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
564
+ {
565
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
566
+ }
550
567
  ]
551
568
  }
552
569
  ])
@@ -603,7 +620,10 @@ function calculateCart(payload) {
603
620
  { path: "cart.deliveryInfo.address.geocode.latitude" },
604
621
  { path: "cart.deliveryInfo.address.geocode.longitude" },
605
622
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
606
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
623
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
624
+ {
625
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
626
+ }
607
627
  ]
608
628
  }
609
629
  ])
@@ -721,7 +741,10 @@ function addLineItems(payload) {
721
741
  { path: "cart.deliveryInfo.address.geocode.latitude" },
722
742
  { path: "cart.deliveryInfo.address.geocode.longitude" },
723
743
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
724
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
744
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
745
+ {
746
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
747
+ }
725
748
  ]
726
749
  }
727
750
  ])
@@ -775,7 +798,10 @@ function removeLineItems(payload) {
775
798
  { path: "cart.deliveryInfo.address.geocode.latitude" },
776
799
  { path: "cart.deliveryInfo.address.geocode.longitude" },
777
800
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
778
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
801
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
802
+ {
803
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
804
+ }
779
805
  ]
780
806
  }
781
807
  ])
@@ -829,7 +855,10 @@ function updateLineItems(payload) {
829
855
  { path: "cart.deliveryInfo.address.geocode.latitude" },
830
856
  { path: "cart.deliveryInfo.address.geocode.longitude" },
831
857
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
832
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
858
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
859
+ {
860
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
861
+ }
833
862
  ]
834
863
  }
835
864
  ])
@@ -883,7 +912,10 @@ function addCoupon(payload) {
883
912
  { path: "cart.deliveryInfo.address.geocode.latitude" },
884
913
  { path: "cart.deliveryInfo.address.geocode.longitude" },
885
914
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
886
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
915
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
916
+ {
917
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
918
+ }
887
919
  ]
888
920
  }
889
921
  ])
@@ -937,7 +969,10 @@ function removeCoupon(payload) {
937
969
  { path: "cart.deliveryInfo.address.geocode.latitude" },
938
970
  { path: "cart.deliveryInfo.address.geocode.longitude" },
939
971
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
940
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
972
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
973
+ {
974
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
975
+ }
941
976
  ]
942
977
  }
943
978
  ])
@@ -991,7 +1026,10 @@ function setDeliveryMethod(payload) {
991
1026
  { path: "cart.deliveryInfo.address.geocode.latitude" },
992
1027
  { path: "cart.deliveryInfo.address.geocode.longitude" },
993
1028
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
994
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1029
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1030
+ {
1031
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1032
+ }
995
1033
  ]
996
1034
  }
997
1035
  ])
@@ -1045,7 +1083,10 @@ function removeDeliveryMethod(payload) {
1045
1083
  { path: "cart.deliveryInfo.address.geocode.latitude" },
1046
1084
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1047
1085
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1048
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1086
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1087
+ {
1088
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1089
+ }
1049
1090
  ]
1050
1091
  }
1051
1092
  ])
@@ -1099,7 +1140,10 @@ function addGiftCard(payload) {
1099
1140
  { path: "cart.deliveryInfo.address.geocode.latitude" },
1100
1141
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1101
1142
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1102
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1143
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1144
+ {
1145
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1146
+ }
1103
1147
  ]
1104
1148
  }
1105
1149
  ])
@@ -1153,7 +1197,10 @@ function removeGiftCard(payload) {
1153
1197
  { path: "cart.deliveryInfo.address.geocode.latitude" },
1154
1198
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1155
1199
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1156
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1200
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1201
+ {
1202
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1203
+ }
1157
1204
  ]
1158
1205
  }
1159
1206
  ])
@@ -1207,7 +1254,10 @@ function markCartAsCompleted(payload) {
1207
1254
  { path: "cart.deliveryInfo.address.geocode.latitude" },
1208
1255
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1209
1256
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1210
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1257
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1258
+ {
1259
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1260
+ }
1211
1261
  ]
1212
1262
  }
1213
1263
  ])
@@ -1288,7 +1338,10 @@ function updateFormSubmissions(payload) {
1288
1338
  { path: "cart.deliveryInfo.address.geocode.latitude" },
1289
1339
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1290
1340
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1291
- { path: "cart.paymentInfo.billingAddress.geocode.longitude" }
1341
+ { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1342
+ {
1343
+ path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1344
+ }
1292
1345
  ]
1293
1346
  }
1294
1347
  ])
@@ -1417,6 +1470,12 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
1417
1470
  DiscountScope2["DELIVERY"] = "DELIVERY";
1418
1471
  return DiscountScope2;
1419
1472
  })(DiscountScope || {});
1473
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
1474
+ DiscountType2["GLOBAL"] = "GLOBAL";
1475
+ DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1476
+ DiscountType2["SHIPPING"] = "SHIPPING";
1477
+ return DiscountType2;
1478
+ })(DiscountType || {});
1420
1479
  var Source = /* @__PURE__ */ ((Source2) => {
1421
1480
  Source2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1422
1481
  Source2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
@@ -1579,12 +1638,6 @@ var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
1579
1638
  ChargeType2["INSURANCE"] = "INSURANCE";
1580
1639
  return ChargeType2;
1581
1640
  })(ChargeType || {});
1582
- var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
1583
- DiscountType2["GLOBAL"] = "GLOBAL";
1584
- DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1585
- DiscountType2["SHIPPING"] = "SHIPPING";
1586
- return DiscountType2;
1587
- })(DiscountType || {});
1588
1641
  var BalanceType = /* @__PURE__ */ ((BalanceType2) => {
1589
1642
  BalanceType2["PUNCH_CARD"] = "PUNCH_CARD";
1590
1643
  BalanceType2["CREDIT"] = "CREDIT";