arky-sdk 0.3.33 → 0.3.34
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 +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +8 -10
- package/dist/types.d.ts +8 -10
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -970,16 +970,12 @@ var createEshopApi = (apiConfig) => {
|
|
|
970
970
|
variantId: item.variantId,
|
|
971
971
|
quantity: item.quantity
|
|
972
972
|
}));
|
|
973
|
+
const { items, ...rest } = params;
|
|
973
974
|
const payload = {
|
|
974
975
|
businessId: apiConfig.businessId,
|
|
975
976
|
market: apiConfig.market,
|
|
976
|
-
currency: params.currency,
|
|
977
|
-
paymentMethod: params.paymentMethod,
|
|
978
977
|
lines,
|
|
979
|
-
...
|
|
980
|
-
shippingMethodId: params.shippingMethodId
|
|
981
|
-
},
|
|
982
|
-
...params.promoCode && { promoCode: params.promoCode }
|
|
978
|
+
...rest
|
|
983
979
|
};
|
|
984
980
|
return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
|
|
985
981
|
},
|