@betterstore/sdk 0.3.4 → 0.3.6

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.6
4
+
5
+ ### Patch Changes
6
+
7
+ - define api secret for retrieve checkout request
8
+
9
+ ## 0.3.5
10
+
11
+ ### Patch Changes
12
+
13
+ - private changed to public
14
+
3
15
  ## 0.3.4
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -162,7 +162,7 @@ declare class Checkout {
162
162
  }
163
163
 
164
164
  declare class Client {
165
- private proxy?;
165
+ proxy?: string;
166
166
  constructor(proxy?: string);
167
167
  /**
168
168
  * Retrieve a checkout session by ID
package/dist/index.d.ts CHANGED
@@ -162,7 +162,7 @@ declare class Checkout {
162
162
  }
163
163
 
164
164
  declare class Client {
165
- private proxy?;
165
+ proxy?: string;
166
166
  constructor(proxy?: string);
167
167
  /**
168
168
  * Retrieve a checkout session by ID
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ var createApiClient = (apiKey, proxy) => {
87
87
  apiError.status = 503;
88
88
  apiError.message = "Service unavailable - no response from server";
89
89
  apiError.code = "SERVICE_UNAVAILABLE";
90
- apiError.details = error.request;
90
+ apiError.details = error;
91
91
  } else {
92
92
  apiError.status = 500;
93
93
  apiError.message = "Request configuration error";
@@ -175,7 +175,7 @@ var Client = class {
175
175
  */
176
176
  retrieveCheckout(checkoutId) {
177
177
  return __async(this, null, function* () {
178
- const apiClient = createApiClient("", this.proxy);
178
+ const apiClient = createApiClient("none", this.proxy);
179
179
  const data = yield apiClient.get(
180
180
  `/checkout/${checkoutId}`
181
181
  );
package/dist/index.mjs CHANGED
@@ -50,7 +50,7 @@ var createApiClient = (apiKey, proxy) => {
50
50
  apiError.status = 503;
51
51
  apiError.message = "Service unavailable - no response from server";
52
52
  apiError.code = "SERVICE_UNAVAILABLE";
53
- apiError.details = error.request;
53
+ apiError.details = error;
54
54
  } else {
55
55
  apiError.status = 500;
56
56
  apiError.message = "Request configuration error";
@@ -138,7 +138,7 @@ var Client = class {
138
138
  */
139
139
  retrieveCheckout(checkoutId) {
140
140
  return __async(this, null, function* () {
141
- const apiClient = createApiClient("", this.proxy);
141
+ const apiClient = createApiClient("none", 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.4",
3
+ "version": "0.3.6",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {