arky-sdk 0.3.34 → 0.3.37
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.map +1 -1
- package/dist/types.d.cts +45 -14
- package/dist/types.d.ts +45 -14
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -983,11 +983,7 @@ var createEshopApi = (apiConfig) => {
|
|
|
983
983
|
const payload = {
|
|
984
984
|
businessId: apiConfig.businessId,
|
|
985
985
|
market: apiConfig.market,
|
|
986
|
-
|
|
987
|
-
shippingMethodId: params.shippingMethodId,
|
|
988
|
-
items: params.items,
|
|
989
|
-
blocks: params.blocks || [],
|
|
990
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
986
|
+
...params
|
|
991
987
|
};
|
|
992
988
|
return apiConfig.httpClient.post(
|
|
993
989
|
`/v1/businesses/${apiConfig.businessId}/orders/checkout`,
|
|
@@ -1022,10 +1018,7 @@ var createReservationApi = (apiConfig) => {
|
|
|
1022
1018
|
const payload = {
|
|
1023
1019
|
businessId: apiConfig.businessId,
|
|
1024
1020
|
market: apiConfig.market,
|
|
1025
|
-
|
|
1026
|
-
parts: params.parts,
|
|
1027
|
-
...params.paymentMethod && { paymentMethod: params.paymentMethod },
|
|
1028
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
1021
|
+
...params
|
|
1029
1022
|
};
|
|
1030
1023
|
return apiConfig.httpClient.post(
|
|
1031
1024
|
`/v1/reservations/checkout`,
|
|
@@ -1067,13 +1060,12 @@ var createReservationApi = (apiConfig) => {
|
|
|
1067
1060
|
serviceId: part.serviceId,
|
|
1068
1061
|
quantity: 1
|
|
1069
1062
|
}));
|
|
1063
|
+
const { parts, ...rest } = params;
|
|
1070
1064
|
const payload = {
|
|
1071
1065
|
businessId: apiConfig.businessId,
|
|
1072
1066
|
market: apiConfig.market,
|
|
1073
|
-
currency: params.currency,
|
|
1074
|
-
paymentMethod: params.paymentMethod,
|
|
1075
1067
|
lines,
|
|
1076
|
-
...
|
|
1068
|
+
...rest
|
|
1077
1069
|
};
|
|
1078
1070
|
return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
|
|
1079
1071
|
},
|