@betterstore/sdk 0.3.6 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - required client secret
8
+
3
9
  ## 0.3.6
4
10
 
5
11
  ### Patch Changes
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("none", this.proxy);
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("none", this.proxy);
141
+ const apiClient = createApiClient(clientSecret, this.proxy);
142
142
  const data = yield apiClient.get(
143
143
  `/checkout/${checkoutId}`
144
144
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {