arky-sdk 0.3.100 → 0.3.103

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
@@ -934,18 +934,14 @@ var createEshopApi = (apiConfig) => {
934
934
  },
935
935
  // ===== PAYMENTS =====
936
936
  async getQuote(params, options) {
937
- const lines = params.items.map((item) => ({
938
- type: "PRODUCT_VARIANT",
939
- productId: item.productId,
940
- variantId: item.variantId,
941
- quantity: item.quantity
942
- }));
943
- const { items, ...rest } = params;
944
937
  const payload = {
945
938
  businessId: apiConfig.businessId,
946
939
  market: apiConfig.market,
947
- lines,
948
- ...rest
940
+ items: params.items,
941
+ location: params.location,
942
+ paymentMethod: params.paymentMethod,
943
+ promoCode: params.promoCode,
944
+ shippingMethodId: params.shippingMethodId
949
945
  };
950
946
  return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
951
947
  },
@@ -1040,21 +1036,14 @@ var createReservationApi = (apiConfig) => {
1040
1036
  },
1041
1037
  // ===== QUOTES =====
1042
1038
  async getQuote(params, options) {
1043
- const lines = params.items.map((item) => ({
1044
- type: "SERVICE",
1045
- serviceId: item.serviceId,
1046
- from: item.from,
1047
- to: item.to,
1048
- providerId: item.providerId
1049
- }));
1050
- const { items, ...rest } = params;
1051
1039
  const payload = {
1052
1040
  businessId: apiConfig.businessId,
1053
1041
  market: apiConfig.market,
1054
- lines,
1055
- ...rest
1042
+ items: params.items,
1043
+ paymentMethod: params.paymentMethod,
1044
+ promoCode: params.promoCode
1056
1045
  };
1057
- return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
1046
+ return apiConfig.httpClient.post(`/v1/reservations/quote`, payload, options);
1058
1047
  },
1059
1048
  // ===== SERVICES =====
1060
1049
  async createService(params, options) {