@betterstore/sdk 0.3.5 → 0.3.7
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 -1
- package/dist/index.d.ts +1 -1
- 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
|
@@ -167,7 +167,7 @@ declare class Client {
|
|
|
167
167
|
/**
|
|
168
168
|
* Retrieve a checkout session by ID
|
|
169
169
|
*/
|
|
170
|
-
retrieveCheckout(checkoutId: string): Promise<CheckoutSession>;
|
|
170
|
+
retrieveCheckout(clientSecret: string, checkoutId: string): Promise<CheckoutSession>;
|
|
171
171
|
/**
|
|
172
172
|
* Update a checkout session
|
|
173
173
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -167,7 +167,7 @@ declare class Client {
|
|
|
167
167
|
/**
|
|
168
168
|
* Retrieve a checkout session by ID
|
|
169
169
|
*/
|
|
170
|
-
retrieveCheckout(checkoutId: string): Promise<CheckoutSession>;
|
|
170
|
+
retrieveCheckout(clientSecret: string, checkoutId: string): Promise<CheckoutSession>;
|
|
171
171
|
/**
|
|
172
172
|
* Update a checkout session
|
|
173
173
|
*/
|
package/dist/index.js
CHANGED
|
@@ -173,9 +173,9 @@ var Client = class {
|
|
|
173
173
|
/**
|
|
174
174
|
* Retrieve a checkout session by ID
|
|
175
175
|
*/
|
|
176
|
-
retrieveCheckout(checkoutId) {
|
|
176
|
+
retrieveCheckout(clientSecret, checkoutId) {
|
|
177
177
|
return __async(this, null, function* () {
|
|
178
|
-
const apiClient = createApiClient(
|
|
178
|
+
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
179
179
|
const data = yield apiClient.get(
|
|
180
180
|
`/checkout/${checkoutId}`
|
|
181
181
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -136,9 +136,9 @@ var Client = class {
|
|
|
136
136
|
/**
|
|
137
137
|
* Retrieve a checkout session by ID
|
|
138
138
|
*/
|
|
139
|
-
retrieveCheckout(checkoutId) {
|
|
139
|
+
retrieveCheckout(clientSecret, checkoutId) {
|
|
140
140
|
return __async(this, null, function* () {
|
|
141
|
-
const apiClient = createApiClient(
|
|
141
|
+
const apiClient = createApiClient(clientSecret, this.proxy);
|
|
142
142
|
const data = yield apiClient.get(
|
|
143
143
|
`/checkout/${checkoutId}`
|
|
144
144
|
);
|