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.
package/dist/api/stores/get.js
CHANGED
|
@@ -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(`${
|
|
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) {
|
package/dist/api/stores/put.js
CHANGED
|
@@ -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(`${
|
|
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
package/src/api/stores/get.ts
CHANGED
|
@@ -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(`${
|
|
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);
|
package/src/api/stores/put.ts
CHANGED
|
@@ -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(`${
|
|
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;
|