arky-sdk 0.3.101 → 0.3.104

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,10 @@ 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
+ ...params
949
941
  };
950
942
  return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
951
943
  },
@@ -1040,21 +1032,12 @@ var createReservationApi = (apiConfig) => {
1040
1032
  },
1041
1033
  // ===== QUOTES =====
1042
1034
  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
1035
  const payload = {
1052
1036
  businessId: apiConfig.businessId,
1053
1037
  market: apiConfig.market,
1054
- lines,
1055
- ...rest
1038
+ ...params
1056
1039
  };
1057
- return apiConfig.httpClient.post(`/v1/payments/quote`, payload, options);
1040
+ return apiConfig.httpClient.post(`/v1/reservations/quote`, payload, options);
1058
1041
  },
1059
1042
  // ===== SERVICES =====
1060
1043
  async createService(params, options) {