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.js
CHANGED
|
@@ -848,9 +848,8 @@ var createCmsApi = (apiConfig) => {
|
|
|
848
848
|
return apiConfig.httpClient.post(
|
|
849
849
|
`/v1/businesses/${apiConfig.businessId}/collections/${params.collectionId}/subscribe`,
|
|
850
850
|
{
|
|
851
|
-
email: params.email,
|
|
852
851
|
market: apiConfig.market,
|
|
853
|
-
|
|
852
|
+
...params
|
|
854
853
|
},
|
|
855
854
|
options
|
|
856
855
|
);
|
|
@@ -983,11 +982,7 @@ var createEshopApi = (apiConfig) => {
|
|
|
983
982
|
const payload = {
|
|
984
983
|
businessId: apiConfig.businessId,
|
|
985
984
|
market: apiConfig.market,
|
|
986
|
-
|
|
987
|
-
shippingMethodId: params.shippingMethodId,
|
|
988
|
-
items: params.items,
|
|
989
|
-
blocks: params.blocks || [],
|
|
990
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
985
|
+
...params
|
|
991
986
|
};
|
|
992
987
|
return apiConfig.httpClient.post(
|
|
993
988
|
`/v1/businesses/${apiConfig.businessId}/orders/checkout`,
|
|
@@ -1022,10 +1017,7 @@ var createReservationApi = (apiConfig) => {
|
|
|
1022
1017
|
const payload = {
|
|
1023
1018
|
businessId: apiConfig.businessId,
|
|
1024
1019
|
market: apiConfig.market,
|
|
1025
|
-
|
|
1026
|
-
parts: params.parts,
|
|
1027
|
-
...params.paymentMethod && { paymentMethod: params.paymentMethod },
|
|
1028
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
1020
|
+
...params
|
|
1029
1021
|
};
|
|
1030
1022
|
return apiConfig.httpClient.post(
|
|
1031
1023
|
`/v1/reservations/checkout`,
|
|
@@ -1411,7 +1403,7 @@ function createPaymentForCheckout(subtotalMinor, marketId, currency, paymentMeth
|
|
|
1411
1403
|
tax,
|
|
1412
1404
|
total,
|
|
1413
1405
|
promoCodeId,
|
|
1414
|
-
|
|
1406
|
+
type: paymentMethod
|
|
1415
1407
|
};
|
|
1416
1408
|
}
|
|
1417
1409
|
|