arky-sdk 0.3.33 → 0.3.35
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 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +9 -10
- package/dist/types.d.ts +9 -10
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -972,16 +972,12 @@ var createEshopApi = (apiConfig) => {
|
|
|
972
972
|
variantId: item.variantId,
|
|
973
973
|
quantity: item.quantity
|
|
974
974
|
}));
|
|
975
|
+
const { items, ...rest } = params;
|
|
975
976
|
const payload = {
|
|
976
977
|
businessId: apiConfig.businessId,
|
|
977
978
|
market: apiConfig.market,
|
|
978
|
-
currency: params.currency,
|
|
979
|
-
paymentMethod: params.paymentMethod,
|
|
980
979
|
lines,
|
|
981
|
-
...
|
|
982
|
-
shippingMethodId: params.shippingMethodId
|
|
983
|
-
},
|
|
984
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
980
|
+
...rest
|
|
985
981
|
};
|
|
986
982
|
return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
|
|
987
983
|
},
|
|
@@ -1073,13 +1069,12 @@ var createReservationApi = (apiConfig) => {
|
|
|
1073
1069
|
serviceId: part.serviceId,
|
|
1074
1070
|
quantity: 1
|
|
1075
1071
|
}));
|
|
1072
|
+
const { parts, ...rest } = params;
|
|
1076
1073
|
const payload = {
|
|
1077
1074
|
businessId: apiConfig.businessId,
|
|
1078
1075
|
market: apiConfig.market,
|
|
1079
|
-
currency: params.currency,
|
|
1080
|
-
paymentMethod: params.paymentMethod,
|
|
1081
1076
|
lines,
|
|
1082
|
-
...
|
|
1077
|
+
...rest
|
|
1083
1078
|
};
|
|
1084
1079
|
return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
|
|
1085
1080
|
},
|