@betterstore/sdk 0.3.13 → 0.3.15

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.15
4
+
5
+ ### Patch Changes
6
+
7
+ - optional product added to line item
8
+
9
+ ## 0.3.14
10
+
11
+ ### Patch Changes
12
+
13
+ - shipping info updatable
14
+
3
15
  ## 0.3.13
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -88,6 +88,7 @@ interface LineItem {
88
88
  value: string;
89
89
  }[];
90
90
  discountId?: string;
91
+ product?: Pick<Product, "title" | "priceInCents" | "images">;
91
92
  metadata?: string;
92
93
  }
93
94
  interface CheckoutCreateParams {
@@ -98,6 +99,15 @@ interface CheckoutCreateParams {
98
99
  interface CheckoutUpdateParams {
99
100
  lineItems?: LineItem[];
100
101
  customerId?: string;
102
+ tax?: number;
103
+ shipping?: number;
104
+ shippingInfo?: {
105
+ rateId: string;
106
+ provider?: string;
107
+ name?: string;
108
+ trackingNumber?: string;
109
+ trackingUrl?: string;
110
+ };
101
111
  }
102
112
 
103
113
  interface CheckoutSession {
package/dist/index.d.ts CHANGED
@@ -88,6 +88,7 @@ interface LineItem {
88
88
  value: string;
89
89
  }[];
90
90
  discountId?: string;
91
+ product?: Pick<Product, "title" | "priceInCents" | "images">;
91
92
  metadata?: string;
92
93
  }
93
94
  interface CheckoutCreateParams {
@@ -98,6 +99,15 @@ interface CheckoutCreateParams {
98
99
  interface CheckoutUpdateParams {
99
100
  lineItems?: LineItem[];
100
101
  customerId?: string;
102
+ tax?: number;
103
+ shipping?: number;
104
+ shippingInfo?: {
105
+ rateId: string;
106
+ provider?: string;
107
+ name?: string;
108
+ trackingNumber?: string;
109
+ trackingUrl?: string;
110
+ };
101
111
  }
102
112
 
103
113
  interface CheckoutSession {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {