@betterstore/sdk 0.3.39 → 0.3.40

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.40
4
+
5
+ ### Patch Changes
6
+
7
+ - bug type fix
8
+
3
9
  ## 0.3.39
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -202,7 +202,10 @@ declare class Client {
202
202
  /**
203
203
  * Generate payment secret for a checkout session
204
204
  */
205
- generateCheckoutsPaymentSecret(clientSecret: string, checkoutId: string): Promise<string>;
205
+ generateCheckoutsPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
206
+ paymentSecret: string;
207
+ publicKey: string;
208
+ }>;
206
209
  /**
207
210
  * Create a new customer
208
211
  */
package/dist/index.d.ts CHANGED
@@ -202,7 +202,10 @@ declare class Client {
202
202
  /**
203
203
  * Generate payment secret for a checkout session
204
204
  */
205
- generateCheckoutsPaymentSecret(clientSecret: string, checkoutId: string): Promise<string>;
205
+ generateCheckoutsPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
206
+ paymentSecret: string;
207
+ publicKey: string;
208
+ }>;
206
209
  /**
207
210
  * Create a new customer
208
211
  */
package/dist/index.js CHANGED
@@ -238,10 +238,11 @@ var Client = class {
238
238
  generateCheckoutsPaymentSecret(clientSecret, checkoutId) {
239
239
  return __async(this, null, function* () {
240
240
  const apiClient = createApiClient(clientSecret, this.proxy);
241
- const data = yield apiClient.post(
242
- `/checkout/payment/${checkoutId}`
243
- );
244
- return data;
241
+ const data = yield apiClient.post(`/checkout/payment/${checkoutId}`);
242
+ return {
243
+ paymentSecret: data.paymentSecret,
244
+ publicKey: data.publicKey
245
+ };
245
246
  });
246
247
  }
247
248
  /**
package/dist/index.mjs CHANGED
@@ -202,10 +202,11 @@ var Client = class {
202
202
  generateCheckoutsPaymentSecret(clientSecret, checkoutId) {
203
203
  return __async(this, null, function* () {
204
204
  const apiClient = createApiClient(clientSecret, this.proxy);
205
- const data = yield apiClient.post(
206
- `/checkout/payment/${checkoutId}`
207
- );
208
- return data;
205
+ const data = yield apiClient.post(`/checkout/payment/${checkoutId}`);
206
+ return {
207
+ paymentSecret: data.paymentSecret,
208
+ publicKey: data.publicKey
209
+ };
209
210
  });
210
211
  }
211
212
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.39",
3
+ "version": "0.3.40",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {