@dynamic-labs/sdk-api 0.0.1047 → 0.0.1048

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1047",
3
+ "version": "0.0.1048",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -138,7 +138,7 @@ require('../models/WalletTransactionType.cjs');
138
138
  */
139
139
  class CheckoutApi extends runtime.BaseAPI {
140
140
  /**
141
- * Deprecated: use POST /environments/{environmentId}/flow/checkouts instead. Creates a new checkout config for the specified environment.
141
+ * Deprecated: use new /flow api instead. Creates a new checkout config for the specified environment.
142
142
  * Create a checkout
143
143
  */
144
144
  async createCheckoutRaw(requestParameters, initOverrides) {
@@ -161,7 +161,7 @@ class CheckoutApi extends runtime.BaseAPI {
161
161
  return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
162
162
  }
163
163
  /**
164
- * Deprecated: use POST /environments/{environmentId}/flow/checkouts instead. Creates a new checkout config for the specified environment.
164
+ * Deprecated: use new /flow api instead. Creates a new checkout config for the specified environment.
165
165
  * Create a checkout
166
166
  */
167
167
  async createCheckout(requestParameters, initOverrides) {
@@ -169,38 +169,7 @@ class CheckoutApi extends runtime.BaseAPI {
169
169
  return await response.value();
170
170
  }
171
171
  /**
172
- * Creates a new checkout config for the specified environment.
173
- * Create a checkout
174
- */
175
- async createFlowCheckoutRaw(requestParameters, initOverrides) {
176
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
177
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createFlowCheckout.');
178
- }
179
- if (requestParameters.checkoutCreateRequest === null || requestParameters.checkoutCreateRequest === undefined) {
180
- throw new runtime.RequiredError('checkoutCreateRequest', 'Required parameter requestParameters.checkoutCreateRequest was null or undefined when calling createFlowCheckout.');
181
- }
182
- const queryParameters = {};
183
- const headerParameters = {};
184
- headerParameters['Content-Type'] = 'application/json';
185
- const response = await this.request({
186
- path: `/environments/{environmentId}/flow/checkouts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
187
- method: 'POST',
188
- headers: headerParameters,
189
- query: queryParameters,
190
- body: CheckoutCreateRequest.CheckoutCreateRequestToJSON(requestParameters.checkoutCreateRequest),
191
- }, initOverrides);
192
- return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
193
- }
194
- /**
195
- * Creates a new checkout config for the specified environment.
196
- * Create a checkout
197
- */
198
- async createFlowCheckout(requestParameters, initOverrides) {
199
- const response = await this.createFlowCheckoutRaw(requestParameters, initOverrides);
200
- return await response.value();
201
- }
202
- /**
203
- * Deprecated: use DELETE /environments/{environmentId}/flow/checkouts/{checkoutId} instead. Soft-deletes a checkout, preventing it from accepting new transactions.
172
+ * Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
204
173
  * Delete a checkout
205
174
  */
206
175
  async deleteCheckoutRaw(requestParameters, initOverrides) {
@@ -221,7 +190,7 @@ class CheckoutApi extends runtime.BaseAPI {
221
190
  return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
222
191
  }
223
192
  /**
224
- * Deprecated: use DELETE /environments/{environmentId}/flow/checkouts/{checkoutId} instead. Soft-deletes a checkout, preventing it from accepting new transactions.
193
+ * Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
225
194
  * Delete a checkout
226
195
  */
227
196
  async deleteCheckout(requestParameters, initOverrides) {
@@ -229,36 +198,7 @@ class CheckoutApi extends runtime.BaseAPI {
229
198
  return await response.value();
230
199
  }
231
200
  /**
232
- * Soft-deletes a checkout, preventing it from accepting new transactions.
233
- * Delete a checkout
234
- */
235
- async deleteFlowCheckoutRaw(requestParameters, initOverrides) {
236
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
237
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteFlowCheckout.');
238
- }
239
- if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
240
- throw new runtime.RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling deleteFlowCheckout.');
241
- }
242
- const queryParameters = {};
243
- const headerParameters = {};
244
- const response = await this.request({
245
- path: `/environments/{environmentId}/flow/checkouts/{checkoutId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
246
- method: 'DELETE',
247
- headers: headerParameters,
248
- query: queryParameters,
249
- }, initOverrides);
250
- return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
251
- }
252
- /**
253
- * Soft-deletes a checkout, preventing it from accepting new transactions.
254
- * Delete a checkout
255
- */
256
- async deleteFlowCheckout(requestParameters, initOverrides) {
257
- const response = await this.deleteFlowCheckoutRaw(requestParameters, initOverrides);
258
- return await response.value();
259
- }
260
- /**
261
- * Deprecated: use GET /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
201
+ * Deprecated: use new /flow api instead.
262
202
  * Get a checkout by ID
263
203
  */
264
204
  async getCheckoutRaw(requestParameters, initOverrides) {
@@ -279,7 +219,7 @@ class CheckoutApi extends runtime.BaseAPI {
279
219
  return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
280
220
  }
281
221
  /**
282
- * Deprecated: use GET /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
222
+ * Deprecated: use new /flow api instead.
283
223
  * Get a checkout by ID
284
224
  */
285
225
  async getCheckout(requestParameters, initOverrides) {
@@ -287,34 +227,7 @@ class CheckoutApi extends runtime.BaseAPI {
287
227
  return await response.value();
288
228
  }
289
229
  /**
290
- * Get a checkout by ID
291
- */
292
- async getFlowCheckoutRaw(requestParameters, initOverrides) {
293
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
294
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowCheckout.');
295
- }
296
- if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
297
- throw new runtime.RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling getFlowCheckout.');
298
- }
299
- const queryParameters = {};
300
- const headerParameters = {};
301
- const response = await this.request({
302
- path: `/environments/{environmentId}/flow/checkouts/{checkoutId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
303
- method: 'GET',
304
- headers: headerParameters,
305
- query: queryParameters,
306
- }, initOverrides);
307
- return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
308
- }
309
- /**
310
- * Get a checkout by ID
311
- */
312
- async getFlowCheckout(requestParameters, initOverrides) {
313
- const response = await this.getFlowCheckoutRaw(requestParameters, initOverrides);
314
- return await response.value();
315
- }
316
- /**
317
- * Deprecated: use PATCH /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
230
+ * Deprecated: use new /flow api instead.
318
231
  * Update a checkout
319
232
  */
320
233
  async updateCheckoutRaw(requestParameters, initOverrides) {
@@ -340,45 +253,13 @@ class CheckoutApi extends runtime.BaseAPI {
340
253
  return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
341
254
  }
342
255
  /**
343
- * Deprecated: use PATCH /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
256
+ * Deprecated: use new /flow api instead.
344
257
  * Update a checkout
345
258
  */
346
259
  async updateCheckout(requestParameters, initOverrides) {
347
260
  const response = await this.updateCheckoutRaw(requestParameters, initOverrides);
348
261
  return await response.value();
349
262
  }
350
- /**
351
- * Update a checkout
352
- */
353
- async updateFlowCheckoutRaw(requestParameters, initOverrides) {
354
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
355
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateFlowCheckout.');
356
- }
357
- if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
358
- throw new runtime.RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling updateFlowCheckout.');
359
- }
360
- if (requestParameters.checkoutUpdateRequest === null || requestParameters.checkoutUpdateRequest === undefined) {
361
- throw new runtime.RequiredError('checkoutUpdateRequest', 'Required parameter requestParameters.checkoutUpdateRequest was null or undefined when calling updateFlowCheckout.');
362
- }
363
- const queryParameters = {};
364
- const headerParameters = {};
365
- headerParameters['Content-Type'] = 'application/json';
366
- const response = await this.request({
367
- path: `/environments/{environmentId}/flow/checkouts/{checkoutId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
368
- method: 'PATCH',
369
- headers: headerParameters,
370
- query: queryParameters,
371
- body: CheckoutUpdateRequest.CheckoutUpdateRequestToJSON(requestParameters.checkoutUpdateRequest),
372
- }, initOverrides);
373
- return new runtime.JSONApiResponse(response, (jsonValue) => Checkout.CheckoutFromJSON(jsonValue));
374
- }
375
- /**
376
- * Update a checkout
377
- */
378
- async updateFlowCheckout(requestParameters, initOverrides) {
379
- const response = await this.updateFlowCheckoutRaw(requestParameters, initOverrides);
380
- return await response.value();
381
- }
382
263
  }
383
264
 
384
265
  exports.CheckoutApi = CheckoutApi;
@@ -15,114 +15,61 @@ export interface CreateCheckoutRequest {
15
15
  environmentId: string;
16
16
  checkoutCreateRequest: CheckoutCreateRequest;
17
17
  }
18
- export interface CreateFlowCheckoutRequest {
19
- environmentId: string;
20
- checkoutCreateRequest: CheckoutCreateRequest;
21
- }
22
18
  export interface DeleteCheckoutRequest {
23
19
  environmentId: string;
24
20
  checkoutId: string;
25
21
  }
26
- export interface DeleteFlowCheckoutRequest {
27
- environmentId: string;
28
- checkoutId: string;
29
- }
30
22
  export interface GetCheckoutRequest {
31
23
  environmentId: string;
32
24
  checkoutId: string;
33
25
  }
34
- export interface GetFlowCheckoutRequest {
35
- environmentId: string;
36
- checkoutId: string;
37
- }
38
26
  export interface UpdateCheckoutRequest {
39
27
  environmentId: string;
40
28
  checkoutId: string;
41
29
  checkoutUpdateRequest: CheckoutUpdateRequest;
42
30
  }
43
- export interface UpdateFlowCheckoutRequest {
44
- environmentId: string;
45
- checkoutId: string;
46
- checkoutUpdateRequest: CheckoutUpdateRequest;
47
- }
48
31
  /**
49
32
  *
50
33
  */
51
34
  export declare class CheckoutApi extends runtime.BaseAPI {
52
35
  /**
53
- * Deprecated: use POST /environments/{environmentId}/flow/checkouts instead. Creates a new checkout config for the specified environment.
36
+ * Deprecated: use new /flow api instead. Creates a new checkout config for the specified environment.
54
37
  * Create a checkout
55
38
  */
56
39
  createCheckoutRaw(requestParameters: CreateCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
57
40
  /**
58
- * Deprecated: use POST /environments/{environmentId}/flow/checkouts instead. Creates a new checkout config for the specified environment.
41
+ * Deprecated: use new /flow api instead. Creates a new checkout config for the specified environment.
59
42
  * Create a checkout
60
43
  */
61
44
  createCheckout(requestParameters: CreateCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
62
45
  /**
63
- * Creates a new checkout config for the specified environment.
64
- * Create a checkout
65
- */
66
- createFlowCheckoutRaw(requestParameters: CreateFlowCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
67
- /**
68
- * Creates a new checkout config for the specified environment.
69
- * Create a checkout
70
- */
71
- createFlowCheckout(requestParameters: CreateFlowCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
72
- /**
73
- * Deprecated: use DELETE /environments/{environmentId}/flow/checkouts/{checkoutId} instead. Soft-deletes a checkout, preventing it from accepting new transactions.
46
+ * Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
74
47
  * Delete a checkout
75
48
  */
76
49
  deleteCheckoutRaw(requestParameters: DeleteCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
77
50
  /**
78
- * Deprecated: use DELETE /environments/{environmentId}/flow/checkouts/{checkoutId} instead. Soft-deletes a checkout, preventing it from accepting new transactions.
51
+ * Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
79
52
  * Delete a checkout
80
53
  */
81
54
  deleteCheckout(requestParameters: DeleteCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
82
55
  /**
83
- * Soft-deletes a checkout, preventing it from accepting new transactions.
84
- * Delete a checkout
85
- */
86
- deleteFlowCheckoutRaw(requestParameters: DeleteFlowCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
87
- /**
88
- * Soft-deletes a checkout, preventing it from accepting new transactions.
89
- * Delete a checkout
90
- */
91
- deleteFlowCheckout(requestParameters: DeleteFlowCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
92
- /**
93
- * Deprecated: use GET /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
56
+ * Deprecated: use new /flow api instead.
94
57
  * Get a checkout by ID
95
58
  */
96
59
  getCheckoutRaw(requestParameters: GetCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
97
60
  /**
98
- * Deprecated: use GET /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
61
+ * Deprecated: use new /flow api instead.
99
62
  * Get a checkout by ID
100
63
  */
101
64
  getCheckout(requestParameters: GetCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
102
65
  /**
103
- * Get a checkout by ID
104
- */
105
- getFlowCheckoutRaw(requestParameters: GetFlowCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
106
- /**
107
- * Get a checkout by ID
108
- */
109
- getFlowCheckout(requestParameters: GetFlowCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
110
- /**
111
- * Deprecated: use PATCH /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
66
+ * Deprecated: use new /flow api instead.
112
67
  * Update a checkout
113
68
  */
114
69
  updateCheckoutRaw(requestParameters: UpdateCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
115
70
  /**
116
- * Deprecated: use PATCH /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
71
+ * Deprecated: use new /flow api instead.
117
72
  * Update a checkout
118
73
  */
119
74
  updateCheckout(requestParameters: UpdateCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
120
- /**
121
- * Update a checkout
122
- */
123
- updateFlowCheckoutRaw(requestParameters: UpdateFlowCheckoutRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Checkout>>;
124
- /**
125
- * Update a checkout
126
- */
127
- updateFlowCheckout(requestParameters: UpdateFlowCheckoutRequest, initOverrides?: RequestInit): Promise<Checkout>;
128
75
  }
@@ -134,7 +134,7 @@ import '../models/WalletTransactionType.js';
134
134
  */
135
135
  class CheckoutApi extends BaseAPI {
136
136
  /**
137
- * Deprecated: use POST /environments/{environmentId}/flow/checkouts instead. Creates a new checkout config for the specified environment.
137
+ * Deprecated: use new /flow api instead. Creates a new checkout config for the specified environment.
138
138
  * Create a checkout
139
139
  */
140
140
  async createCheckoutRaw(requestParameters, initOverrides) {
@@ -157,7 +157,7 @@ class CheckoutApi extends BaseAPI {
157
157
  return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
158
158
  }
159
159
  /**
160
- * Deprecated: use POST /environments/{environmentId}/flow/checkouts instead. Creates a new checkout config for the specified environment.
160
+ * Deprecated: use new /flow api instead. Creates a new checkout config for the specified environment.
161
161
  * Create a checkout
162
162
  */
163
163
  async createCheckout(requestParameters, initOverrides) {
@@ -165,38 +165,7 @@ class CheckoutApi extends BaseAPI {
165
165
  return await response.value();
166
166
  }
167
167
  /**
168
- * Creates a new checkout config for the specified environment.
169
- * Create a checkout
170
- */
171
- async createFlowCheckoutRaw(requestParameters, initOverrides) {
172
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
173
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createFlowCheckout.');
174
- }
175
- if (requestParameters.checkoutCreateRequest === null || requestParameters.checkoutCreateRequest === undefined) {
176
- throw new RequiredError('checkoutCreateRequest', 'Required parameter requestParameters.checkoutCreateRequest was null or undefined when calling createFlowCheckout.');
177
- }
178
- const queryParameters = {};
179
- const headerParameters = {};
180
- headerParameters['Content-Type'] = 'application/json';
181
- const response = await this.request({
182
- path: `/environments/{environmentId}/flow/checkouts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
183
- method: 'POST',
184
- headers: headerParameters,
185
- query: queryParameters,
186
- body: CheckoutCreateRequestToJSON(requestParameters.checkoutCreateRequest),
187
- }, initOverrides);
188
- return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
189
- }
190
- /**
191
- * Creates a new checkout config for the specified environment.
192
- * Create a checkout
193
- */
194
- async createFlowCheckout(requestParameters, initOverrides) {
195
- const response = await this.createFlowCheckoutRaw(requestParameters, initOverrides);
196
- return await response.value();
197
- }
198
- /**
199
- * Deprecated: use DELETE /environments/{environmentId}/flow/checkouts/{checkoutId} instead. Soft-deletes a checkout, preventing it from accepting new transactions.
168
+ * Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
200
169
  * Delete a checkout
201
170
  */
202
171
  async deleteCheckoutRaw(requestParameters, initOverrides) {
@@ -217,7 +186,7 @@ class CheckoutApi extends BaseAPI {
217
186
  return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
218
187
  }
219
188
  /**
220
- * Deprecated: use DELETE /environments/{environmentId}/flow/checkouts/{checkoutId} instead. Soft-deletes a checkout, preventing it from accepting new transactions.
189
+ * Deprecated: use new /flow api instead. Soft-deletes a checkout, preventing it from accepting new transactions.
221
190
  * Delete a checkout
222
191
  */
223
192
  async deleteCheckout(requestParameters, initOverrides) {
@@ -225,36 +194,7 @@ class CheckoutApi extends BaseAPI {
225
194
  return await response.value();
226
195
  }
227
196
  /**
228
- * Soft-deletes a checkout, preventing it from accepting new transactions.
229
- * Delete a checkout
230
- */
231
- async deleteFlowCheckoutRaw(requestParameters, initOverrides) {
232
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
233
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling deleteFlowCheckout.');
234
- }
235
- if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
236
- throw new RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling deleteFlowCheckout.');
237
- }
238
- const queryParameters = {};
239
- const headerParameters = {};
240
- const response = await this.request({
241
- path: `/environments/{environmentId}/flow/checkouts/{checkoutId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
242
- method: 'DELETE',
243
- headers: headerParameters,
244
- query: queryParameters,
245
- }, initOverrides);
246
- return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
247
- }
248
- /**
249
- * Soft-deletes a checkout, preventing it from accepting new transactions.
250
- * Delete a checkout
251
- */
252
- async deleteFlowCheckout(requestParameters, initOverrides) {
253
- const response = await this.deleteFlowCheckoutRaw(requestParameters, initOverrides);
254
- return await response.value();
255
- }
256
- /**
257
- * Deprecated: use GET /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
197
+ * Deprecated: use new /flow api instead.
258
198
  * Get a checkout by ID
259
199
  */
260
200
  async getCheckoutRaw(requestParameters, initOverrides) {
@@ -275,7 +215,7 @@ class CheckoutApi extends BaseAPI {
275
215
  return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
276
216
  }
277
217
  /**
278
- * Deprecated: use GET /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
218
+ * Deprecated: use new /flow api instead.
279
219
  * Get a checkout by ID
280
220
  */
281
221
  async getCheckout(requestParameters, initOverrides) {
@@ -283,34 +223,7 @@ class CheckoutApi extends BaseAPI {
283
223
  return await response.value();
284
224
  }
285
225
  /**
286
- * Get a checkout by ID
287
- */
288
- async getFlowCheckoutRaw(requestParameters, initOverrides) {
289
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
290
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getFlowCheckout.');
291
- }
292
- if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
293
- throw new RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling getFlowCheckout.');
294
- }
295
- const queryParameters = {};
296
- const headerParameters = {};
297
- const response = await this.request({
298
- path: `/environments/{environmentId}/flow/checkouts/{checkoutId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
299
- method: 'GET',
300
- headers: headerParameters,
301
- query: queryParameters,
302
- }, initOverrides);
303
- return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
304
- }
305
- /**
306
- * Get a checkout by ID
307
- */
308
- async getFlowCheckout(requestParameters, initOverrides) {
309
- const response = await this.getFlowCheckoutRaw(requestParameters, initOverrides);
310
- return await response.value();
311
- }
312
- /**
313
- * Deprecated: use PATCH /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
226
+ * Deprecated: use new /flow api instead.
314
227
  * Update a checkout
315
228
  */
316
229
  async updateCheckoutRaw(requestParameters, initOverrides) {
@@ -336,45 +249,13 @@ class CheckoutApi extends BaseAPI {
336
249
  return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
337
250
  }
338
251
  /**
339
- * Deprecated: use PATCH /environments/{environmentId}/flow/checkouts/{checkoutId} instead.
252
+ * Deprecated: use new /flow api instead.
340
253
  * Update a checkout
341
254
  */
342
255
  async updateCheckout(requestParameters, initOverrides) {
343
256
  const response = await this.updateCheckoutRaw(requestParameters, initOverrides);
344
257
  return await response.value();
345
258
  }
346
- /**
347
- * Update a checkout
348
- */
349
- async updateFlowCheckoutRaw(requestParameters, initOverrides) {
350
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
351
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling updateFlowCheckout.');
352
- }
353
- if (requestParameters.checkoutId === null || requestParameters.checkoutId === undefined) {
354
- throw new RequiredError('checkoutId', 'Required parameter requestParameters.checkoutId was null or undefined when calling updateFlowCheckout.');
355
- }
356
- if (requestParameters.checkoutUpdateRequest === null || requestParameters.checkoutUpdateRequest === undefined) {
357
- throw new RequiredError('checkoutUpdateRequest', 'Required parameter requestParameters.checkoutUpdateRequest was null or undefined when calling updateFlowCheckout.');
358
- }
359
- const queryParameters = {};
360
- const headerParameters = {};
361
- headerParameters['Content-Type'] = 'application/json';
362
- const response = await this.request({
363
- path: `/environments/{environmentId}/flow/checkouts/{checkoutId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"checkoutId"}}`, encodeURIComponent(String(requestParameters.checkoutId))),
364
- method: 'PATCH',
365
- headers: headerParameters,
366
- query: queryParameters,
367
- body: CheckoutUpdateRequestToJSON(requestParameters.checkoutUpdateRequest),
368
- }, initOverrides);
369
- return new JSONApiResponse(response, (jsonValue) => CheckoutFromJSON(jsonValue));
370
- }
371
- /**
372
- * Update a checkout
373
- */
374
- async updateFlowCheckout(requestParameters, initOverrides) {
375
- const response = await this.updateFlowCheckoutRaw(requestParameters, initOverrides);
376
- return await response.value();
377
- }
378
259
  }
379
260
 
380
261
  export { CheckoutApi };
@@ -1313,7 +1313,7 @@ class SDKApi extends runtime.BaseAPI {
1313
1313
  return await response.value();
1314
1314
  }
1315
1315
  /**
1316
- * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1316
+ * Deprecated: use new /flow api instead. Creates a new checkout transaction for the specified checkout.
1317
1317
  * Create a checkout transaction
1318
1318
  */
1319
1319
  async createCheckoutTransactionRaw(requestParameters, initOverrides) {
@@ -1339,7 +1339,7 @@ class SDKApi extends runtime.BaseAPI {
1339
1339
  return new runtime.JSONApiResponse(response, (jsonValue) => CheckoutTransactionCreateResponse.CheckoutTransactionCreateResponseFromJSON(jsonValue));
1340
1340
  }
1341
1341
  /**
1342
- * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1342
+ * Deprecated: use new /flow api instead. Creates a new checkout transaction for the specified checkout.
1343
1343
  * Create a checkout transaction
1344
1344
  */
1345
1345
  async createCheckoutTransaction(requestParameters, initOverrides) {
@@ -1636,12 +1636,12 @@ export declare class SDKApi extends runtime.BaseAPI {
1636
1636
  */
1637
1637
  completePasskeyRecovery(requestParameters: CompletePasskeyRecoveryOperationRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
1638
1638
  /**
1639
- * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1639
+ * Deprecated: use new /flow api instead. Creates a new checkout transaction for the specified checkout.
1640
1640
  * Create a checkout transaction
1641
1641
  */
1642
1642
  createCheckoutTransactionRaw(requestParameters: CreateCheckoutTransactionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<CheckoutTransactionCreateResponse>>;
1643
1643
  /**
1644
- * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1644
+ * Deprecated: use new /flow api instead. Creates a new checkout transaction for the specified checkout.
1645
1645
  * Create a checkout transaction
1646
1646
  */
1647
1647
  createCheckoutTransaction(requestParameters: CreateCheckoutTransactionRequest, initOverrides?: RequestInit): Promise<CheckoutTransactionCreateResponse>;
@@ -1309,7 +1309,7 @@ class SDKApi extends BaseAPI {
1309
1309
  return await response.value();
1310
1310
  }
1311
1311
  /**
1312
- * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1312
+ * Deprecated: use new /flow api instead. Creates a new checkout transaction for the specified checkout.
1313
1313
  * Create a checkout transaction
1314
1314
  */
1315
1315
  async createCheckoutTransactionRaw(requestParameters, initOverrides) {
@@ -1335,7 +1335,7 @@ class SDKApi extends BaseAPI {
1335
1335
  return new JSONApiResponse(response, (jsonValue) => CheckoutTransactionCreateResponseFromJSON(jsonValue));
1336
1336
  }
1337
1337
  /**
1338
- * Deprecated: use POST /sdk/{environmentId}/flow/checkouts/{checkoutId}/transactions instead. Creates a new checkout transaction for the specified checkout.
1338
+ * Deprecated: use new /flow api instead. Creates a new checkout transaction for the specified checkout.
1339
1339
  * Create a checkout transaction
1340
1340
  */
1341
1341
  async createCheckoutTransaction(requestParameters, initOverrides) {