arky-sdk 0.3.35 → 0.3.38
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/dist/index.cjs +4 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/types.cjs +7 -7
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +46 -16
- package/dist/types.d.ts +46 -16
- package/dist/types.js +7 -7
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -850,9 +850,8 @@ var createCmsApi = (apiConfig) => {
|
|
|
850
850
|
return apiConfig.httpClient.post(
|
|
851
851
|
`/v1/businesses/${apiConfig.businessId}/collections/${params.collectionId}/subscribe`,
|
|
852
852
|
{
|
|
853
|
-
email: params.email,
|
|
854
853
|
market: apiConfig.market,
|
|
855
|
-
|
|
854
|
+
...params
|
|
856
855
|
},
|
|
857
856
|
options
|
|
858
857
|
);
|
|
@@ -985,11 +984,7 @@ var createEshopApi = (apiConfig) => {
|
|
|
985
984
|
const payload = {
|
|
986
985
|
businessId: apiConfig.businessId,
|
|
987
986
|
market: apiConfig.market,
|
|
988
|
-
|
|
989
|
-
shippingMethodId: params.shippingMethodId,
|
|
990
|
-
items: params.items,
|
|
991
|
-
blocks: params.blocks || [],
|
|
992
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
987
|
+
...params
|
|
993
988
|
};
|
|
994
989
|
return apiConfig.httpClient.post(
|
|
995
990
|
`/v1/businesses/${apiConfig.businessId}/orders/checkout`,
|
|
@@ -1024,10 +1019,7 @@ var createReservationApi = (apiConfig) => {
|
|
|
1024
1019
|
const payload = {
|
|
1025
1020
|
businessId: apiConfig.businessId,
|
|
1026
1021
|
market: apiConfig.market,
|
|
1027
|
-
|
|
1028
|
-
parts: params.parts,
|
|
1029
|
-
...params.paymentMethod && { paymentMethod: params.paymentMethod },
|
|
1030
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
1022
|
+
...params
|
|
1031
1023
|
};
|
|
1032
1024
|
return apiConfig.httpClient.post(
|
|
1033
1025
|
`/v1/reservations/checkout`,
|
|
@@ -1413,7 +1405,7 @@ function createPaymentForCheckout(subtotalMinor, marketId, currency, paymentMeth
|
|
|
1413
1405
|
tax,
|
|
1414
1406
|
total,
|
|
1415
1407
|
promoCodeId,
|
|
1416
|
-
|
|
1408
|
+
type: paymentMethod
|
|
1417
1409
|
};
|
|
1418
1410
|
}
|
|
1419
1411
|
|