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.cjs
CHANGED
|
@@ -985,11 +985,7 @@ var createEshopApi = (apiConfig) => {
|
|
|
985
985
|
const payload = {
|
|
986
986
|
businessId: apiConfig.businessId,
|
|
987
987
|
market: apiConfig.market,
|
|
988
|
-
|
|
989
|
-
shippingMethodId: params.shippingMethodId,
|
|
990
|
-
items: params.items,
|
|
991
|
-
blocks: params.blocks || [],
|
|
992
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
988
|
+
...params
|
|
993
989
|
};
|
|
994
990
|
return apiConfig.httpClient.post(
|
|
995
991
|
`/v1/businesses/${apiConfig.businessId}/orders/checkout`,
|
|
@@ -1024,10 +1020,7 @@ var createReservationApi = (apiConfig) => {
|
|
|
1024
1020
|
const payload = {
|
|
1025
1021
|
businessId: apiConfig.businessId,
|
|
1026
1022
|
market: apiConfig.market,
|
|
1027
|
-
|
|
1028
|
-
parts: params.parts,
|
|
1029
|
-
...params.paymentMethod && { paymentMethod: params.paymentMethod },
|
|
1030
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
1023
|
+
...params
|
|
1031
1024
|
};
|
|
1032
1025
|
return apiConfig.httpClient.post(
|
|
1033
1026
|
`/v1/reservations/checkout`,
|
|
@@ -1069,13 +1062,12 @@ var createReservationApi = (apiConfig) => {
|
|
|
1069
1062
|
serviceId: part.serviceId,
|
|
1070
1063
|
quantity: 1
|
|
1071
1064
|
}));
|
|
1065
|
+
const { parts, ...rest } = params;
|
|
1072
1066
|
const payload = {
|
|
1073
1067
|
businessId: apiConfig.businessId,
|
|
1074
1068
|
market: apiConfig.market,
|
|
1075
|
-
currency: params.currency,
|
|
1076
|
-
paymentMethod: params.paymentMethod,
|
|
1077
1069
|
lines,
|
|
1078
|
-
...
|
|
1070
|
+
...rest
|
|
1079
1071
|
};
|
|
1080
1072
|
return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
|
|
1081
1073
|
},
|