@betterstore/sdk 0.3.53 → 0.3.54

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.54
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fixes
8
+
3
9
  ## 0.3.53
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -169,7 +169,7 @@ var Checkout = class {
169
169
  applyDiscountCode(checkoutId, discountCode) {
170
170
  return __async(this, null, function* () {
171
171
  const data = yield this.apiClient.post(
172
- `/checkout/${checkoutId}/discount`,
172
+ `/checkout/${checkoutId}/discounts/apply`,
173
173
  { code: discountCode }
174
174
  );
175
175
  return data;
@@ -181,7 +181,7 @@ var Checkout = class {
181
181
  revalidateDiscounts(checkoutId) {
182
182
  return __async(this, null, function* () {
183
183
  const data = yield this.apiClient.get(
184
- `/checkout/${checkoutId}/revalidate-discounts`
184
+ `/checkout/${checkoutId}/discounts/revalidate`
185
185
  );
186
186
  return data;
187
187
  });
@@ -250,7 +250,7 @@ var Client = class {
250
250
  return __async(this, null, function* () {
251
251
  const apiClient = createApiClient(clientSecret, this.proxy);
252
252
  const data = yield apiClient.post(
253
- `/checkout/${checkoutId}/discount`,
253
+ `/checkout/${checkoutId}/discounts/apply`,
254
254
  { code: discountCode }
255
255
  );
256
256
  return data;
@@ -263,7 +263,7 @@ var Client = class {
263
263
  return __async(this, null, function* () {
264
264
  const apiClient = createApiClient(clientSecret, this.proxy);
265
265
  const data = yield apiClient.get(
266
- `/checkout/${checkoutId}/revalidate-discounts`
266
+ `/checkout/${checkoutId}/discounts/revalidate`
267
267
  );
268
268
  return data;
269
269
  });
package/dist/index.mjs CHANGED
@@ -133,7 +133,7 @@ var Checkout = class {
133
133
  applyDiscountCode(checkoutId, discountCode) {
134
134
  return __async(this, null, function* () {
135
135
  const data = yield this.apiClient.post(
136
- `/checkout/${checkoutId}/discount`,
136
+ `/checkout/${checkoutId}/discounts/apply`,
137
137
  { code: discountCode }
138
138
  );
139
139
  return data;
@@ -145,7 +145,7 @@ var Checkout = class {
145
145
  revalidateDiscounts(checkoutId) {
146
146
  return __async(this, null, function* () {
147
147
  const data = yield this.apiClient.get(
148
- `/checkout/${checkoutId}/revalidate-discounts`
148
+ `/checkout/${checkoutId}/discounts/revalidate`
149
149
  );
150
150
  return data;
151
151
  });
@@ -214,7 +214,7 @@ var Client = class {
214
214
  return __async(this, null, function* () {
215
215
  const apiClient = createApiClient(clientSecret, this.proxy);
216
216
  const data = yield apiClient.post(
217
- `/checkout/${checkoutId}/discount`,
217
+ `/checkout/${checkoutId}/discounts/apply`,
218
218
  { code: discountCode }
219
219
  );
220
220
  return data;
@@ -227,7 +227,7 @@ var Client = class {
227
227
  return __async(this, null, function* () {
228
228
  const apiClient = createApiClient(clientSecret, this.proxy);
229
229
  const data = yield apiClient.get(
230
- `/checkout/${checkoutId}/revalidate-discounts`
230
+ `/checkout/${checkoutId}/discounts/revalidate`
231
231
  );
232
232
  return data;
233
233
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.53",
3
+ "version": "0.3.54",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {