@betterstore/sdk 0.3.8 → 0.3.9
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/CHANGELOG.md +6 -0
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -225,7 +225,7 @@ var Client = class {
|
|
|
225
225
|
createCustomer(clientSecret, params) {
|
|
226
226
|
return __async(this, null, function* () {
|
|
227
227
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
228
|
-
const data = yield apiClient.post("/
|
|
228
|
+
const data = yield apiClient.post("/customer", params);
|
|
229
229
|
return data;
|
|
230
230
|
});
|
|
231
231
|
}
|
|
@@ -235,7 +235,7 @@ var Client = class {
|
|
|
235
235
|
retrieveCustomer(clientSecret, idOrEmail) {
|
|
236
236
|
return __async(this, null, function* () {
|
|
237
237
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
238
|
-
const data = yield apiClient.get(`/
|
|
238
|
+
const data = yield apiClient.get(`/customer/${idOrEmail}`);
|
|
239
239
|
if (!data) {
|
|
240
240
|
throw new Error("Customer not found");
|
|
241
241
|
}
|
|
@@ -249,7 +249,7 @@ var Client = class {
|
|
|
249
249
|
return __async(this, null, function* () {
|
|
250
250
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
251
251
|
const data = yield apiClient.put(
|
|
252
|
-
`/
|
|
252
|
+
`/customer/${customerId}`,
|
|
253
253
|
params
|
|
254
254
|
);
|
|
255
255
|
return data;
|
package/dist/index.mjs
CHANGED
|
@@ -188,7 +188,7 @@ var Client = class {
|
|
|
188
188
|
createCustomer(clientSecret, params) {
|
|
189
189
|
return __async(this, null, function* () {
|
|
190
190
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
191
|
-
const data = yield apiClient.post("/
|
|
191
|
+
const data = yield apiClient.post("/customer", params);
|
|
192
192
|
return data;
|
|
193
193
|
});
|
|
194
194
|
}
|
|
@@ -198,7 +198,7 @@ var Client = class {
|
|
|
198
198
|
retrieveCustomer(clientSecret, idOrEmail) {
|
|
199
199
|
return __async(this, null, function* () {
|
|
200
200
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
201
|
-
const data = yield apiClient.get(`/
|
|
201
|
+
const data = yield apiClient.get(`/customer/${idOrEmail}`);
|
|
202
202
|
if (!data) {
|
|
203
203
|
throw new Error("Customer not found");
|
|
204
204
|
}
|
|
@@ -212,7 +212,7 @@ var Client = class {
|
|
|
212
212
|
return __async(this, null, function* () {
|
|
213
213
|
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
214
214
|
const data = yield apiClient.put(
|
|
215
|
-
`/
|
|
215
|
+
`/customer/${customerId}`,
|
|
216
216
|
params
|
|
217
217
|
);
|
|
218
218
|
return data;
|