washday-sdk 1.6.10 → 1.6.11

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.
@@ -128,7 +128,7 @@ export const getPaymentFees = function (storeId) {
128
128
  const config = {
129
129
  headers: { Authorization: `Bearer ${this.apiToken}` }
130
130
  };
131
- return yield this.axiosInstance.get(`${GET_SET_STORES}/${storeId}/payment-fees`, config)
131
+ return yield this.axiosInstance.get(`${GET_SET_STORES_V2}/${storeId}/payment-fees`, config)
132
132
  .then(response => { var _a; return ((_a = response.data) === null || _a === void 0 ? void 0 : _a.data) || {}; });
133
133
  }
134
134
  catch (error) {
@@ -62,7 +62,7 @@ export const updatePaymentFees = function (storeId, data) {
62
62
  const config = {
63
63
  headers: { Authorization: `Bearer ${this.apiToken}` }
64
64
  };
65
- return yield this.axiosInstance.put(`${GET_SET_STORES}/${storeId}/payment-fees`, data, config);
65
+ return yield this.axiosInstance.put(`${GET_SET_STORES_V2}/${storeId}/payment-fees`, data, config);
66
66
  }
67
67
  catch (error) {
68
68
  console.error('Error fetching updatePaymentFees:', error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "washday-sdk",
3
- "version": "1.6.10",
3
+ "version": "1.6.11",
4
4
  "description": "Washday utilities functions and API",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -111,7 +111,7 @@ export const getPaymentFees = async function (this: WashdayClientInstance, store
111
111
  const config = {
112
112
  headers: { Authorization: `Bearer ${this.apiToken}` }
113
113
  };
114
- return await this.axiosInstance.get(`${GET_SET_STORES}/${storeId}/payment-fees`, config)
114
+ return await this.axiosInstance.get(`${GET_SET_STORES_V2}/${storeId}/payment-fees`, config)
115
115
  .then(response => response.data?.data || {});
116
116
  } catch (error) {
117
117
  console.error('Error fetching getPaymentFees:', error);
@@ -54,7 +54,7 @@ export const updatePaymentFees = async function (this: WashdayClientInstance, st
54
54
  const config = {
55
55
  headers: { Authorization: `Bearer ${this.apiToken}` }
56
56
  };
57
- return await this.axiosInstance.put(`${GET_SET_STORES}/${storeId}/payment-fees`, data, config);
57
+ return await this.axiosInstance.put(`${GET_SET_STORES_V2}/${storeId}/payment-fees`, data, config);
58
58
  } catch (error) {
59
59
  console.error('Error fetching updatePaymentFees:', error);
60
60
  throw error;