@signalhousellc/sdk 1.0.13 → 1.0.14
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/package.json +1 -1
- package/src/domains/Billing.js +3 -3
- package/src/domains/Brands.js +1 -1
package/package.json
CHANGED
package/src/domains/Billing.js
CHANGED
|
@@ -78,7 +78,7 @@ export class Billing {
|
|
|
78
78
|
async getPaymentMethods({ groupId, options = {} }) {
|
|
79
79
|
this.client._require({ groupId });
|
|
80
80
|
const safeGroupId = encodeURIComponent(groupId);
|
|
81
|
-
return this.client(`/billing/wallet/
|
|
81
|
+
return this.client(`/billing/wallet/paymentMethods/${safeGroupId}`, { method: "GET", ...options });
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -113,7 +113,7 @@ export class Billing {
|
|
|
113
113
|
async addPaymentMethod({ groupId, paymentMethodId, options = {} }) {
|
|
114
114
|
this.client._require({ groupId, paymentMethodId });
|
|
115
115
|
const safeGroupId = encodeURIComponent(groupId);
|
|
116
|
-
return this.client(`/billing/wallet/
|
|
116
|
+
return this.client(`/billing/wallet/paymentMethod/${safeGroupId}`, { method: "POST", body: { paymentMethodId }, ...options });
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|
|
@@ -131,7 +131,7 @@ export class Billing {
|
|
|
131
131
|
this.client._require({ groupId, paymentMethodId });
|
|
132
132
|
const safeGroupId = encodeURIComponent(groupId);
|
|
133
133
|
const safePaymentMethodId = encodeURIComponent(paymentMethodId);
|
|
134
|
-
return this.client(`/billing/wallet/
|
|
134
|
+
return this.client(`/billing/wallet/paymentMethod/${safeGroupId}/${safePaymentMethodId}`, { method: "DELETE", ...options });
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
/**
|
package/src/domains/Brands.js
CHANGED
|
@@ -175,7 +175,7 @@ export class Brands {
|
|
|
175
175
|
async revetBrand({ brandId, options = {} }) {
|
|
176
176
|
this.client._require({ brandId });
|
|
177
177
|
const safeBrandId = encodeURIComponent(brandId);
|
|
178
|
-
return this.client(`/brand/revet/${safeBrandId}`, { method: "
|
|
178
|
+
return this.client(`/brand/revet/${safeBrandId}`, { method: "PUT", ...options });
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|