arky-sdk 0.3.35 → 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 CHANGED
@@ -985,11 +985,7 @@ var createEshopApi = (apiConfig) => {
985
985
  const payload = {
986
986
  businessId: apiConfig.businessId,
987
987
  market: apiConfig.market,
988
- paymentMethod: params.paymentMethod,
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
- blocks: params.blocks || [],
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`,