@wix/auto_sdk_ecom_cart-v-2 1.0.143 → 1.0.144
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.
- package/build/cjs/index.js +39 -22
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -11
- package/build/cjs/index.typings.js +39 -22
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -7
- package/build/cjs/meta.js +40 -21
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +0 -1
- package/build/cjs/schemas.js +0 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +39 -22
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -11
- package/build/es/index.typings.mjs +39 -22
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -7
- package/build/es/meta.mjs +40 -21
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +0 -1
- package/build/es/schemas.mjs +0 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +39 -22
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +4 -11
- package/build/internal/cjs/index.typings.js +39 -22
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -7
- package/build/internal/cjs/meta.js +40 -21
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +0 -1
- package/build/internal/cjs/schemas.js +0 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +39 -22
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +4 -11
- package/build/internal/es/index.typings.mjs +39 -22
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -7
- package/build/internal/es/meta.mjs +40 -21
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +0 -1
- package/build/internal/es/schemas.mjs +0 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -226,6 +226,7 @@ function createCart(payload) {
|
|
|
226
226
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
227
227
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
228
228
|
{ path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
|
|
229
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
229
230
|
{
|
|
230
231
|
path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
|
|
231
232
|
},
|
|
@@ -279,7 +280,8 @@ function createCart(payload) {
|
|
|
279
280
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
280
281
|
{
|
|
281
282
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
282
|
-
}
|
|
283
|
+
},
|
|
284
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
283
285
|
]
|
|
284
286
|
}
|
|
285
287
|
])
|
|
@@ -336,7 +338,8 @@ function getCart(payload) {
|
|
|
336
338
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
337
339
|
{
|
|
338
340
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
339
|
-
}
|
|
341
|
+
},
|
|
342
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
340
343
|
]
|
|
341
344
|
}
|
|
342
345
|
])
|
|
@@ -379,7 +382,8 @@ function updateCart(payload) {
|
|
|
379
382
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
380
383
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
381
384
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
382
|
-
{ path: "cart.legacyFields.discounts.merchantDiscount.percentage" }
|
|
385
|
+
{ path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
|
|
386
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
383
387
|
]
|
|
384
388
|
}
|
|
385
389
|
]);
|
|
@@ -429,7 +433,8 @@ function updateCart(payload) {
|
|
|
429
433
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
430
434
|
{
|
|
431
435
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
432
|
-
}
|
|
436
|
+
},
|
|
437
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
433
438
|
]
|
|
434
439
|
}
|
|
435
440
|
])
|
|
@@ -507,7 +512,8 @@ function refreshCart(payload) {
|
|
|
507
512
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
508
513
|
{
|
|
509
514
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
510
|
-
}
|
|
515
|
+
},
|
|
516
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
511
517
|
]
|
|
512
518
|
}
|
|
513
519
|
])
|
|
@@ -567,7 +573,8 @@ function estimateCart(payload) {
|
|
|
567
573
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
568
574
|
{
|
|
569
575
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
570
|
-
}
|
|
576
|
+
},
|
|
577
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
571
578
|
]
|
|
572
579
|
}
|
|
573
580
|
])
|
|
@@ -627,7 +634,8 @@ function calculateCart(payload) {
|
|
|
627
634
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
628
635
|
{
|
|
629
636
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
630
|
-
}
|
|
637
|
+
},
|
|
638
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
631
639
|
]
|
|
632
640
|
}
|
|
633
641
|
])
|
|
@@ -751,7 +759,8 @@ function addLineItems(payload) {
|
|
|
751
759
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
752
760
|
{
|
|
753
761
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
754
|
-
}
|
|
762
|
+
},
|
|
763
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
755
764
|
]
|
|
756
765
|
}
|
|
757
766
|
])
|
|
@@ -808,7 +817,8 @@ function removeLineItems(payload) {
|
|
|
808
817
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
809
818
|
{
|
|
810
819
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
811
|
-
}
|
|
820
|
+
},
|
|
821
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
812
822
|
]
|
|
813
823
|
}
|
|
814
824
|
])
|
|
@@ -865,7 +875,8 @@ function updateLineItems(payload) {
|
|
|
865
875
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
866
876
|
{
|
|
867
877
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
868
|
-
}
|
|
878
|
+
},
|
|
879
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
869
880
|
]
|
|
870
881
|
}
|
|
871
882
|
])
|
|
@@ -922,7 +933,8 @@ function addCoupon(payload) {
|
|
|
922
933
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
923
934
|
{
|
|
924
935
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
925
|
-
}
|
|
936
|
+
},
|
|
937
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
926
938
|
]
|
|
927
939
|
}
|
|
928
940
|
])
|
|
@@ -979,7 +991,8 @@ function removeCoupon(payload) {
|
|
|
979
991
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
980
992
|
{
|
|
981
993
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
982
|
-
}
|
|
994
|
+
},
|
|
995
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
983
996
|
]
|
|
984
997
|
}
|
|
985
998
|
])
|
|
@@ -1036,7 +1049,8 @@ function setDeliveryMethod(payload) {
|
|
|
1036
1049
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1037
1050
|
{
|
|
1038
1051
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1039
|
-
}
|
|
1052
|
+
},
|
|
1053
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1040
1054
|
]
|
|
1041
1055
|
}
|
|
1042
1056
|
])
|
|
@@ -1093,7 +1107,8 @@ function removeDeliveryMethod(payload) {
|
|
|
1093
1107
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1094
1108
|
{
|
|
1095
1109
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1096
|
-
}
|
|
1110
|
+
},
|
|
1111
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1097
1112
|
]
|
|
1098
1113
|
}
|
|
1099
1114
|
])
|
|
@@ -1150,7 +1165,8 @@ function addGiftCard(payload) {
|
|
|
1150
1165
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1151
1166
|
{
|
|
1152
1167
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1153
|
-
}
|
|
1168
|
+
},
|
|
1169
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1154
1170
|
]
|
|
1155
1171
|
}
|
|
1156
1172
|
])
|
|
@@ -1207,7 +1223,8 @@ function removeGiftCard(payload) {
|
|
|
1207
1223
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1208
1224
|
{
|
|
1209
1225
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1210
|
-
}
|
|
1226
|
+
},
|
|
1227
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1211
1228
|
]
|
|
1212
1229
|
}
|
|
1213
1230
|
])
|
|
@@ -1264,7 +1281,8 @@ function markCartAsCompleted(payload) {
|
|
|
1264
1281
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1265
1282
|
{
|
|
1266
1283
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1267
|
-
}
|
|
1284
|
+
},
|
|
1285
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1268
1286
|
]
|
|
1269
1287
|
}
|
|
1270
1288
|
])
|
|
@@ -1277,7 +1295,7 @@ function handleAsyncCheckoutCompletion(payload) {
|
|
|
1277
1295
|
function __handleAsyncCheckoutCompletion({ host }) {
|
|
1278
1296
|
const metadata = {
|
|
1279
1297
|
entityFqdn: "wix.ecom.v2.cart",
|
|
1280
|
-
method: "
|
|
1298
|
+
method: "GET",
|
|
1281
1299
|
methodFqn: "wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion",
|
|
1282
1300
|
packageName: PACKAGE_NAME,
|
|
1283
1301
|
migrationOptions: {
|
|
@@ -1288,7 +1306,7 @@ function handleAsyncCheckoutCompletion(payload) {
|
|
|
1288
1306
|
data: payload,
|
|
1289
1307
|
host
|
|
1290
1308
|
}),
|
|
1291
|
-
|
|
1309
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
1292
1310
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1293
1311
|
{
|
|
1294
1312
|
transformFn: import_bytes.transformRESTBytesToSDKBytes,
|
|
@@ -1348,7 +1366,8 @@ function updateFormSubmissions(payload) {
|
|
|
1348
1366
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1349
1367
|
{
|
|
1350
1368
|
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1351
|
-
}
|
|
1369
|
+
},
|
|
1370
|
+
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1352
1371
|
]
|
|
1353
1372
|
}
|
|
1354
1373
|
])
|
|
@@ -2074,7 +2093,6 @@ async function placeOrder2(cartId, options) {
|
|
|
2074
2093
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2075
2094
|
cartId,
|
|
2076
2095
|
priceVerificationToken: options?.priceVerificationToken,
|
|
2077
|
-
paymentToken: options?.paymentToken,
|
|
2078
2096
|
redirectUrls: options?.redirectUrls,
|
|
2079
2097
|
savePaymentMethod: options?.savePaymentMethod,
|
|
2080
2098
|
delayCapture: options?.delayCapture,
|
|
@@ -2094,7 +2112,6 @@ async function placeOrder2(cartId, options) {
|
|
|
2094
2112
|
explicitPathsToArguments: {
|
|
2095
2113
|
cartId: "$[0]",
|
|
2096
2114
|
priceVerificationToken: "$[1].priceVerificationToken",
|
|
2097
|
-
paymentToken: "$[1].paymentToken",
|
|
2098
2115
|
redirectUrls: "$[1].redirectUrls",
|
|
2099
2116
|
savePaymentMethod: "$[1].savePaymentMethod",
|
|
2100
2117
|
delayCapture: "$[1].delayCapture",
|