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.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
- ...params.shippingMethodId && {
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
  },