@betterstore/sdk 0.3.55 → 0.3.57

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,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.57
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
9
+ ## 0.3.56
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fix
14
+
3
15
  ## 0.3.55
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -250,6 +250,7 @@ declare class Checkout {
250
250
  generatePaymentSecret(checkoutId: string): Promise<{
251
251
  paymentSecret: string;
252
252
  publicKey: string;
253
+ checkoutSession: CheckoutSession;
253
254
  }>;
254
255
  }
255
256
 
@@ -279,9 +280,10 @@ declare class Client {
279
280
  /**
280
281
  * Generate payment secret for a checkout session
281
282
  */
282
- generateCheckoutsPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
283
+ generateCheckoutPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
283
284
  paymentSecret: string;
284
285
  publicKey: string;
286
+ checkoutSession: CheckoutSession;
285
287
  }>;
286
288
  /**
287
289
  * Create a new customer
package/dist/index.d.ts CHANGED
@@ -250,6 +250,7 @@ declare class Checkout {
250
250
  generatePaymentSecret(checkoutId: string): Promise<{
251
251
  paymentSecret: string;
252
252
  publicKey: string;
253
+ checkoutSession: CheckoutSession;
253
254
  }>;
254
255
  }
255
256
 
@@ -279,9 +280,10 @@ declare class Client {
279
280
  /**
280
281
  * Generate payment secret for a checkout session
281
282
  */
282
- generateCheckoutsPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
283
+ generateCheckoutPaymentSecret(clientSecret: string, checkoutId: string): Promise<{
283
284
  paymentSecret: string;
284
285
  publicKey: string;
286
+ checkoutSession: CheckoutSession;
285
287
  }>;
286
288
  /**
287
289
  * Create a new customer
package/dist/index.js CHANGED
@@ -206,7 +206,8 @@ var Checkout = class {
206
206
  /checkout/payment/${checkoutId}`);
207
207
  return {
208
208
  paymentSecret: data.paymentSecret,
209
- publicKey: data.publicKey
209
+ publicKey: data.publicKey,
210
+ checkoutSession: data.checkoutSession
210
211
  };
211
212
  });
212
213
  }
@@ -283,13 +284,14 @@ var Client = class {
283
284
  /**
284
285
  * Generate payment secret for a checkout session
285
286
  */
286
- generateCheckoutsPaymentSecret(clientSecret, checkoutId) {
287
+ generateCheckoutPaymentSecret(clientSecret, checkoutId) {
287
288
  return __async(this, null, function* () {
288
289
  const apiClient = createApiClient(clientSecret, this.proxy);
289
290
  const data = yield apiClient.post(`/checkout/payment/${checkoutId}`);
290
291
  return {
291
292
  paymentSecret: data.paymentSecret,
292
- publicKey: data.publicKey
293
+ publicKey: data.publicKey,
294
+ checkoutSession: data.checkoutSession
293
295
  };
294
296
  });
295
297
  }
package/dist/index.mjs CHANGED
@@ -170,7 +170,8 @@ var Checkout = class {
170
170
  /checkout/payment/${checkoutId}`);
171
171
  return {
172
172
  paymentSecret: data.paymentSecret,
173
- publicKey: data.publicKey
173
+ publicKey: data.publicKey,
174
+ checkoutSession: data.checkoutSession
174
175
  };
175
176
  });
176
177
  }
@@ -247,13 +248,14 @@ var Client = class {
247
248
  /**
248
249
  * Generate payment secret for a checkout session
249
250
  */
250
- generateCheckoutsPaymentSecret(clientSecret, checkoutId) {
251
+ generateCheckoutPaymentSecret(clientSecret, checkoutId) {
251
252
  return __async(this, null, function* () {
252
253
  const apiClient = createApiClient(clientSecret, this.proxy);
253
254
  const data = yield apiClient.post(`/checkout/payment/${checkoutId}`);
254
255
  return {
255
256
  paymentSecret: data.paymentSecret,
256
- publicKey: data.publicKey
257
+ publicKey: data.publicKey,
258
+ checkoutSession: data.checkoutSession
257
259
  };
258
260
  });
259
261
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.55",
3
+ "version": "0.3.57",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {