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