@betterstore/sdk 0.3.54 → 0.3.56

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.56
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
9
+ ## 0.3.55
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fix
14
+
3
15
  ## 0.3.54
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -205,6 +205,7 @@ interface CheckoutSession {
205
205
  discountAmount: number | null;
206
206
  appliedDiscounts: {
207
207
  amount: number;
208
+ allowedProductIDs: string[];
208
209
  discount: Discount;
209
210
  }[];
210
211
  currency: string;
@@ -249,6 +250,7 @@ declare class Checkout {
249
250
  generatePaymentSecret(checkoutId: string): Promise<{
250
251
  paymentSecret: string;
251
252
  publicKey: string;
253
+ checkoutSession: CheckoutSession;
252
254
  }>;
253
255
  }
254
256
 
package/dist/index.d.ts CHANGED
@@ -205,6 +205,7 @@ interface CheckoutSession {
205
205
  discountAmount: number | null;
206
206
  appliedDiscounts: {
207
207
  amount: number;
208
+ allowedProductIDs: string[];
208
209
  discount: Discount;
209
210
  }[];
210
211
  currency: string;
@@ -249,6 +250,7 @@ declare class Checkout {
249
250
  generatePaymentSecret(checkoutId: string): Promise<{
250
251
  paymentSecret: string;
251
252
  publicKey: string;
253
+ checkoutSession: CheckoutSession;
252
254
  }>;
253
255
  }
254
256
 
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
  }
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.54",
3
+ "version": "0.3.56",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {