@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @betterstore/sdk
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - checkout session type changed
8
+
9
+ ## 0.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - remove client secret from retrieve checkout
14
+
3
15
  ## 0.3.1
4
16
 
5
17
  ### Patch Changes
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(clientSecret: string, checkoutId: string): Promise<CheckoutSession>;
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(clientSecret: string, checkoutId: string): Promise<CheckoutSession>;
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(clientSecret, checkoutId) {
173
+ retrieveCheckout(checkoutId) {
174
174
  return __async(this, null, function* () {
175
- const apiClient = createApiClient(clientSecret);
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(clientSecret, checkoutId) {
136
+ retrieveCheckout(checkoutId) {
137
137
  return __async(this, null, function* () {
138
- const apiClient = createApiClient(clientSecret);
138
+ const apiClient = createApiClient("");
139
139
  const data = yield apiClient.get(
140
140
  `/checkout/${checkoutId}`
141
141
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betterstore/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "E-commerce for Developers",
5
5
  "private": false,
6
6
  "publishConfig": {