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.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
  },
@@ -1071,13 +1067,12 @@ var createReservationApi = (apiConfig) => {
1071
1067
  serviceId: part.serviceId,
1072
1068
  quantity: 1
1073
1069
  }));
1070
+ const { parts, ...rest } = params;
1074
1071
  const payload = {
1075
1072
  businessId: apiConfig.businessId,
1076
1073
  market: apiConfig.market,
1077
- currency: params.currency,
1078
- paymentMethod: params.paymentMethod,
1079
1074
  lines,
1080
- ...params.promoCode && { promoCode: params.promoCode }
1075
+ ...rest
1081
1076
  };
1082
1077
  return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
1083
1078
  },