@wix/auto_sdk_ecom_cart-v-2 1.0.166 → 1.0.168

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.
Files changed (45) hide show
  1. package/build/cjs/index.js +6 -59
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +119 -142
  4. package/build/cjs/index.typings.js +6 -59
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +119 -142
  7. package/build/cjs/meta.js +6 -59
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/cjs/schemas.d.ts +2 -54
  10. package/build/cjs/schemas.js +0 -120
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.mjs +6 -59
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +119 -142
  15. package/build/es/index.typings.mjs +6 -59
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +119 -142
  18. package/build/es/meta.mjs +6 -59
  19. package/build/es/meta.mjs.map +1 -1
  20. package/build/es/schemas.d.mts +2 -54
  21. package/build/es/schemas.mjs +0 -120
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.js +6 -59
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +118 -146
  26. package/build/internal/cjs/index.typings.js +6 -59
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +119 -142
  29. package/build/internal/cjs/meta.js +6 -59
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/cjs/schemas.d.ts +2 -54
  32. package/build/internal/cjs/schemas.js +0 -120
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.mjs +6 -59
  35. package/build/internal/es/index.mjs.map +1 -1
  36. package/build/internal/es/index.typings.d.mts +118 -146
  37. package/build/internal/es/index.typings.mjs +6 -59
  38. package/build/internal/es/index.typings.mjs.map +1 -1
  39. package/build/internal/es/meta.d.mts +119 -142
  40. package/build/internal/es/meta.mjs +6 -59
  41. package/build/internal/es/meta.mjs.map +1 -1
  42. package/build/internal/es/schemas.d.mts +2 -54
  43. package/build/internal/es/schemas.mjs +0 -120
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -230,7 +230,6 @@ function createCart(payload) {
230
230
  { path: "cart.deliveryInfo.address.geocode.longitude" },
231
231
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
232
232
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
233
- { path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
234
233
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
235
234
  {
236
235
  path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
@@ -283,9 +282,6 @@ function createCart(payload) {
283
282
  { path: "cart.deliveryInfo.address.geocode.longitude" },
284
283
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
285
284
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
286
- {
287
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
288
- },
289
285
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
290
286
  ]
291
287
  }
@@ -341,9 +337,6 @@ function getCart(payload) {
341
337
  { path: "cart.deliveryInfo.address.geocode.longitude" },
342
338
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
343
339
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
344
- {
345
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
346
- },
347
340
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
348
341
  ]
349
342
  }
@@ -408,7 +401,6 @@ function updateCart(payload) {
408
401
  { path: "cart.deliveryInfo.address.geocode.longitude" },
409
402
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
410
403
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
411
- { path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
412
404
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
413
405
  ]
414
406
  }
@@ -457,9 +449,6 @@ function updateCart(payload) {
457
449
  { path: "cart.deliveryInfo.address.geocode.longitude" },
458
450
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
459
451
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
460
- {
461
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
462
- },
463
452
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
464
453
  ]
465
454
  }
@@ -536,9 +525,6 @@ function refreshCart(payload) {
536
525
  { path: "cart.deliveryInfo.address.geocode.longitude" },
537
526
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
538
527
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
539
- {
540
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
541
- },
542
528
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
543
529
  ]
544
530
  }
@@ -597,9 +583,6 @@ function estimateCart(payload) {
597
583
  { path: "cart.deliveryInfo.address.geocode.longitude" },
598
584
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
599
585
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
600
- {
601
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
602
- },
603
586
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
604
587
  ]
605
588
  }
@@ -658,9 +641,6 @@ function calculateCart(payload) {
658
641
  { path: "cart.deliveryInfo.address.geocode.longitude" },
659
642
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
660
643
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
661
- {
662
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
663
- },
664
644
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
665
645
  ]
666
646
  }
@@ -783,9 +763,6 @@ function addLineItems(payload) {
783
763
  { path: "cart.deliveryInfo.address.geocode.longitude" },
784
764
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
785
765
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
786
- {
787
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
788
- },
789
766
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
790
767
  ]
791
768
  }
@@ -841,9 +818,6 @@ function removeLineItems(payload) {
841
818
  { path: "cart.deliveryInfo.address.geocode.longitude" },
842
819
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
843
820
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
844
- {
845
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
846
- },
847
821
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
848
822
  ]
849
823
  }
@@ -899,9 +873,6 @@ function updateLineItems(payload) {
899
873
  { path: "cart.deliveryInfo.address.geocode.longitude" },
900
874
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
901
875
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
902
- {
903
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
904
- },
905
876
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
906
877
  ]
907
878
  }
@@ -957,9 +928,6 @@ function addCoupon(payload) {
957
928
  { path: "cart.deliveryInfo.address.geocode.longitude" },
958
929
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
959
930
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
960
- {
961
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
962
- },
963
931
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
964
932
  ]
965
933
  }
@@ -1015,9 +983,6 @@ function removeCoupon(payload) {
1015
983
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1016
984
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1017
985
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1018
- {
1019
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1020
- },
1021
986
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1022
987
  ]
1023
988
  }
@@ -1073,9 +1038,6 @@ function setDeliveryMethod(payload) {
1073
1038
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1074
1039
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1075
1040
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1076
- {
1077
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1078
- },
1079
1041
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1080
1042
  ]
1081
1043
  }
@@ -1131,9 +1093,6 @@ function removeDeliveryMethod(payload) {
1131
1093
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1132
1094
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1133
1095
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1134
- {
1135
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1136
- },
1137
1096
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1138
1097
  ]
1139
1098
  }
@@ -1189,9 +1148,6 @@ function addGiftCard(payload) {
1189
1148
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1190
1149
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1191
1150
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1192
- {
1193
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1194
- },
1195
1151
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1196
1152
  ]
1197
1153
  }
@@ -1247,9 +1203,6 @@ function removeGiftCard(payload) {
1247
1203
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1248
1204
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1249
1205
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1250
- {
1251
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1252
- },
1253
1206
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1254
1207
  ]
1255
1208
  }
@@ -1305,9 +1258,6 @@ function markCartAsCompleted(payload) {
1305
1258
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1306
1259
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1307
1260
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1308
- {
1309
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1310
- },
1311
1261
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1312
1262
  ]
1313
1263
  }
@@ -1390,9 +1340,6 @@ function updateFormSubmissions(payload) {
1390
1340
  { path: "cart.deliveryInfo.address.geocode.longitude" },
1391
1341
  { path: "cart.paymentInfo.billingAddress.geocode.latitude" },
1392
1342
  { path: "cart.paymentInfo.billingAddress.geocode.longitude" },
1393
- {
1394
- path: "cart.legacyFields.discounts.merchantDiscount.percentage"
1395
- },
1396
1343
  { path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
1397
1344
  ]
1398
1345
  }
@@ -1525,6 +1472,12 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
1525
1472
  WeightUnit2["LB"] = "LB";
1526
1473
  return WeightUnit2;
1527
1474
  })(WeightUnit || {});
1475
+ var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
1476
+ DiscountType2["GLOBAL"] = "GLOBAL";
1477
+ DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1478
+ DiscountType2["SHIPPING"] = "SHIPPING";
1479
+ return DiscountType2;
1480
+ })(DiscountType || {});
1528
1481
  var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
1529
1482
  DiscountScope2["UNKNOWN_DISCOUNT_SCOPE"] = "UNKNOWN_DISCOUNT_SCOPE";
1530
1483
  DiscountScope2["CART_SUBTOTAL"] = "CART_SUBTOTAL";
@@ -1532,12 +1485,6 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
1532
1485
  DiscountScope2["DELIVERY"] = "DELIVERY";
1533
1486
  return DiscountScope2;
1534
1487
  })(DiscountScope || {});
1535
- var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
1536
- DiscountType2["GLOBAL"] = "GLOBAL";
1537
- DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
1538
- DiscountType2["SHIPPING"] = "SHIPPING";
1539
- return DiscountType2;
1540
- })(DiscountType || {});
1541
1488
  var Source = /* @__PURE__ */ ((Source2) => {
1542
1489
  Source2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
1543
1490
  Source2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";