@betterstore/sdk 0.3.1 → 0.3.3
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 +1 -5
- package/dist/index.d.ts +1 -5
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -92,8 +92,6 @@ interface CheckoutCreateParams {
|
|
|
92
92
|
lineItems: LineItem[];
|
|
93
93
|
}
|
|
94
94
|
interface CheckoutUpdateParams {
|
|
95
|
-
email?: string;
|
|
96
|
-
phone?: string;
|
|
97
95
|
lineItems?: LineItem[];
|
|
98
96
|
customerId?: string;
|
|
99
97
|
}
|
|
@@ -108,8 +106,6 @@ interface CheckoutSession {
|
|
|
108
106
|
id: string;
|
|
109
107
|
createdAt: Date;
|
|
110
108
|
updatedAt: Date;
|
|
111
|
-
email?: string;
|
|
112
|
-
phone?: string;
|
|
113
109
|
clientSecret: string;
|
|
114
110
|
lineItems: {
|
|
115
111
|
quantity: number;
|
|
@@ -169,7 +165,7 @@ declare class Client {
|
|
|
169
165
|
/**
|
|
170
166
|
* Retrieve a checkout session by ID
|
|
171
167
|
*/
|
|
172
|
-
retrieveCheckout(
|
|
168
|
+
retrieveCheckout(checkoutId: string): Promise<CheckoutSession>;
|
|
173
169
|
/**
|
|
174
170
|
* Update a checkout session
|
|
175
171
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -92,8 +92,6 @@ interface CheckoutCreateParams {
|
|
|
92
92
|
lineItems: LineItem[];
|
|
93
93
|
}
|
|
94
94
|
interface CheckoutUpdateParams {
|
|
95
|
-
email?: string;
|
|
96
|
-
phone?: string;
|
|
97
95
|
lineItems?: LineItem[];
|
|
98
96
|
customerId?: string;
|
|
99
97
|
}
|
|
@@ -108,8 +106,6 @@ interface CheckoutSession {
|
|
|
108
106
|
id: string;
|
|
109
107
|
createdAt: Date;
|
|
110
108
|
updatedAt: Date;
|
|
111
|
-
email?: string;
|
|
112
|
-
phone?: string;
|
|
113
109
|
clientSecret: string;
|
|
114
110
|
lineItems: {
|
|
115
111
|
quantity: number;
|
|
@@ -169,7 +165,7 @@ declare class Client {
|
|
|
169
165
|
/**
|
|
170
166
|
* Retrieve a checkout session by ID
|
|
171
167
|
*/
|
|
172
|
-
retrieveCheckout(
|
|
168
|
+
retrieveCheckout(checkoutId: string): Promise<CheckoutSession>;
|
|
173
169
|
/**
|
|
174
170
|
* Update a checkout session
|
|
175
171
|
*/
|
package/dist/index.js
CHANGED
|
@@ -170,9 +170,9 @@ var Client = class {
|
|
|
170
170
|
/**
|
|
171
171
|
* Retrieve a checkout session by ID
|
|
172
172
|
*/
|
|
173
|
-
retrieveCheckout(
|
|
173
|
+
retrieveCheckout(checkoutId) {
|
|
174
174
|
return __async(this, null, function* () {
|
|
175
|
-
const apiClient = createApiClient(
|
|
175
|
+
const apiClient = createApiClient("");
|
|
176
176
|
const data = yield apiClient.get(
|
|
177
177
|
`/checkout/${checkoutId}`
|
|
178
178
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -133,9 +133,9 @@ var Client = class {
|
|
|
133
133
|
/**
|
|
134
134
|
* Retrieve a checkout session by ID
|
|
135
135
|
*/
|
|
136
|
-
retrieveCheckout(
|
|
136
|
+
retrieveCheckout(checkoutId) {
|
|
137
137
|
return __async(this, null, function* () {
|
|
138
|
-
const apiClient = createApiClient(
|
|
138
|
+
const apiClient = createApiClient("");
|
|
139
139
|
const data = yield apiClient.get(
|
|
140
140
|
`/checkout/${checkoutId}`
|
|
141
141
|
);
|