@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 +12 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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 {
|