@betterstore/sdk 0.3.51 → 0.3.53

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.53
4
+
5
+ ### Patch Changes
6
+
7
+ - bug fix
8
+
9
+ ## 0.3.52
10
+
11
+ ### Patch Changes
12
+
13
+ - bug fix
14
+
3
15
  ## 0.3.51
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -127,7 +127,7 @@ interface LineItem {
127
127
  value: string;
128
128
  }[];
129
129
  discountId?: string;
130
- product: ProductData;
130
+ productData: ProductData;
131
131
  metadata?: string;
132
132
  }
133
133
  interface LineItemCreate extends Omit<LineItem, "product" | "metadata"> {
@@ -204,6 +204,7 @@ interface CheckoutSession {
204
204
  shipping: number | null;
205
205
  discountAmount: number | null;
206
206
  appliedDiscounts: {
207
+ amount: number;
207
208
  discount: Discount;
208
209
  }[];
209
210
  currency: string;
package/dist/index.d.ts CHANGED
@@ -127,7 +127,7 @@ interface LineItem {
127
127
  value: string;
128
128
  }[];
129
129
  discountId?: string;
130
- product: ProductData;
130
+ productData: ProductData;
131
131
  metadata?: string;
132
132
  }
133
133
  interface LineItemCreate extends Omit<LineItem, "product" | "metadata"> {
@@ -204,6 +204,7 @@ interface CheckoutSession {
204
204
  shipping: number | null;
205
205
  discountAmount: number | null;
206
206
  appliedDiscounts: {
207
+ amount: number;
207
208
  discount: Discount;
208
209
  }[];
209
210
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {