@emilgroup/payment-sdk 1.13.1-beta.11 → 1.13.1-beta.13

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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/bank-orders-api.ts +618 -0
  4. package/api.ts +2 -0
  5. package/dist/api/bank-accounts-api.js +20 -53
  6. package/dist/api/bank-orders-api.d.ts +347 -0
  7. package/dist/api/bank-orders-api.js +611 -0
  8. package/dist/api/bank-transaction-api.js +20 -53
  9. package/dist/api/health-check-api.js +5 -18
  10. package/dist/api/payment-methods-api.js +11 -32
  11. package/dist/api/payment-reminders-api.js +14 -39
  12. package/dist/api/payment-setup-api.js +8 -25
  13. package/dist/api/payments-api.js +11 -32
  14. package/dist/api/refunds-api.js +11 -32
  15. package/dist/api/tenant-bank-account-api.js +17 -46
  16. package/dist/api/webhooks-api.js +5 -18
  17. package/dist/api.d.ts +1 -0
  18. package/dist/api.js +1 -0
  19. package/dist/base.js +5 -5
  20. package/dist/common.d.ts +1 -1
  21. package/dist/common.js +2 -2
  22. package/dist/models/bank-order-class.d.ts +102 -0
  23. package/dist/models/bank-order-class.js +15 -0
  24. package/dist/models/create-bank-order-request-dto.d.ts +74 -0
  25. package/dist/models/create-bank-order-request-dto.js +28 -0
  26. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  27. package/dist/models/create-bank-order-response-class.js +15 -0
  28. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  29. package/dist/models/get-bank-order-response-class.js +15 -0
  30. package/dist/models/index.d.ts +7 -0
  31. package/dist/models/index.js +7 -0
  32. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  33. package/dist/models/list-bank-orders-response-class.js +15 -0
  34. package/dist/models/update-bank-order-request-dto.d.ts +62 -0
  35. package/dist/models/update-bank-order-request-dto.js +23 -0
  36. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  37. package/dist/models/update-bank-order-response-class.js +15 -0
  38. package/models/bank-order-class.ts +108 -0
  39. package/models/create-bank-order-request-dto.ts +84 -0
  40. package/models/create-bank-order-response-class.ts +31 -0
  41. package/models/get-bank-order-response-class.ts +31 -0
  42. package/models/index.ts +7 -0
  43. package/models/list-bank-orders-response-class.ts +37 -0
  44. package/models/update-bank-order-request-dto.ts +71 -0
  45. package/models/update-bank-order-response-class.ts +31 -0
  46. package/package.json +3 -3
@@ -0,0 +1,618 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil Payment Service
5
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateBankOrderRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateBankOrderResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetBankOrderResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListBankOrdersResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateBankOrderResponseClass } from '../models';
33
+ /**
34
+ * BankOrdersApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configuration) {
38
+ return {
39
+ /**
40
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
41
+ * @summary Create the bank order
42
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
43
+ * @param {string} [authorization] Bearer Token
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createBankOrder: async (createBankOrderRequestDto: CreateBankOrderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48
+ // verify required parameter 'createBankOrderRequestDto' is not null or undefined
49
+ assertParamExists('createBankOrder', 'createBankOrderRequestDto', createBankOrderRequestDto)
50
+ const localVarPath = `/paymentservice/v1/bank-orders`;
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication bearer required
65
+ // http bearer authentication required
66
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
+
68
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ }
71
+
72
+
73
+
74
+ localVarHeaderParameter['Content-Type'] = 'application/json';
75
+
76
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
77
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
+ localVarRequestOptions.data = serializeDataIfNeeded(createBankOrderRequestDto, localVarRequestOptions, configuration)
80
+
81
+ return {
82
+ url: toPathString(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ },
86
+ /**
87
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
88
+ * @summary Delete the bank order
89
+ * @param {string} code Unique identifier for the object.
90
+ * @param {string} [authorization] Bearer Token
91
+ * @param {*} [options] Override http request option.
92
+ * @throws {RequiredError}
93
+ */
94
+ deleteBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
95
+ // verify required parameter 'code' is not null or undefined
96
+ assertParamExists('deleteBankOrder', 'code', code)
97
+ const localVarPath = `/paymentservice/v1/bank-orders/{code}`
98
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
99
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
101
+ let baseOptions;
102
+ let baseAccessToken;
103
+ if (configuration) {
104
+ baseOptions = configuration.baseOptions;
105
+ baseAccessToken = configuration.accessToken;
106
+ }
107
+
108
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
109
+ const localVarHeaderParameter = {} as any;
110
+ const localVarQueryParameter = {} as any;
111
+
112
+ // authentication bearer required
113
+ // http bearer authentication required
114
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
+
116
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
117
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
118
+ }
119
+
120
+
121
+
122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
124
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
125
+
126
+ return {
127
+ url: toPathString(localVarUrlObj),
128
+ options: localVarRequestOptions,
129
+ };
130
+ },
131
+ /**
132
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
133
+ * @summary Retrieve the bank order
134
+ * @param {string} code
135
+ * @param {string} [authorization] Bearer Token
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ getBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
140
+ // verify required parameter 'code' is not null or undefined
141
+ assertParamExists('getBankOrder', 'code', code)
142
+ const localVarPath = `/paymentservice/v1/bank-orders/{code}`
143
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146
+ let baseOptions;
147
+ let baseAccessToken;
148
+ if (configuration) {
149
+ baseOptions = configuration.baseOptions;
150
+ baseAccessToken = configuration.accessToken;
151
+ }
152
+
153
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
154
+ const localVarHeaderParameter = {} as any;
155
+ const localVarQueryParameter = {} as any;
156
+
157
+ // authentication bearer required
158
+ // http bearer authentication required
159
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
160
+
161
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
162
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
163
+ }
164
+
165
+
166
+
167
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
168
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
169
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
170
+
171
+ return {
172
+ url: toPathString(localVarUrlObj),
173
+ options: localVarRequestOptions,
174
+ };
175
+ },
176
+ /**
177
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
178
+ * @summary List bank orders
179
+ * @param {string} [authorization] Bearer Token
180
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
181
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
182
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
183
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ listBankOrders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
188
+ const localVarPath = `/paymentservice/v1/bank-orders`;
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ let baseAccessToken;
193
+ if (configuration) {
194
+ baseOptions = configuration.baseOptions;
195
+ baseAccessToken = configuration.accessToken;
196
+ }
197
+
198
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
199
+ const localVarHeaderParameter = {} as any;
200
+ const localVarQueryParameter = {} as any;
201
+
202
+ // authentication bearer required
203
+ // http bearer authentication required
204
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
205
+
206
+ if (filter !== undefined) {
207
+ localVarQueryParameter['filter'] = filter;
208
+ }
209
+
210
+ if (filters !== undefined) {
211
+ localVarQueryParameter['filters'] = filters;
212
+ }
213
+
214
+ if (order !== undefined) {
215
+ localVarQueryParameter['order'] = order;
216
+ }
217
+
218
+ if (expand !== undefined) {
219
+ localVarQueryParameter['expand'] = expand;
220
+ }
221
+
222
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
224
+ }
225
+
226
+
227
+
228
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
229
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
230
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
231
+
232
+ return {
233
+ url: toPathString(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ };
236
+ },
237
+ /**
238
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
239
+ * @summary Update the bank order
240
+ * @param {string} code Unique identifier for the object.
241
+ * @param {string} [authorization] Bearer Token
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ updateBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
246
+ // verify required parameter 'code' is not null or undefined
247
+ assertParamExists('updateBankOrder', 'code', code)
248
+ const localVarPath = `/paymentservice/v1/bank-orders/{code}`
249
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
252
+ let baseOptions;
253
+ let baseAccessToken;
254
+ if (configuration) {
255
+ baseOptions = configuration.baseOptions;
256
+ baseAccessToken = configuration.accessToken;
257
+ }
258
+
259
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
260
+ const localVarHeaderParameter = {} as any;
261
+ const localVarQueryParameter = {} as any;
262
+
263
+ // authentication bearer required
264
+ // http bearer authentication required
265
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
266
+
267
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
268
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
269
+ }
270
+
271
+
272
+
273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
276
+
277
+ return {
278
+ url: toPathString(localVarUrlObj),
279
+ options: localVarRequestOptions,
280
+ };
281
+ },
282
+ }
283
+ };
284
+
285
+ /**
286
+ * BankOrdersApi - functional programming interface
287
+ * @export
288
+ */
289
+ export const BankOrdersApiFp = function(configuration?: Configuration) {
290
+ const localVarAxiosParamCreator = BankOrdersApiAxiosParamCreator(configuration)
291
+ return {
292
+ /**
293
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
294
+ * @summary Create the bank order
295
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
296
+ * @param {string} [authorization] Bearer Token
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ async createBankOrder(createBankOrderRequestDto: CreateBankOrderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankOrderResponseClass>> {
301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBankOrder(createBankOrderRequestDto, authorization, options);
302
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
303
+ },
304
+ /**
305
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
306
+ * @summary Delete the bank order
307
+ * @param {string} code Unique identifier for the object.
308
+ * @param {string} [authorization] Bearer Token
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ async deleteBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
313
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankOrder(code, authorization, options);
314
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
315
+ },
316
+ /**
317
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
318
+ * @summary Retrieve the bank order
319
+ * @param {string} code
320
+ * @param {string} [authorization] Bearer Token
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ async getBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderResponseClass>> {
325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrder(code, authorization, options);
326
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
+ },
328
+ /**
329
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
330
+ * @summary List bank orders
331
+ * @param {string} [authorization] Bearer Token
332
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
333
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
334
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
335
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ async listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankOrdersResponseClass>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, filter, filters, order, expand, options);
341
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
+ },
343
+ /**
344
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
345
+ * @summary Update the bank order
346
+ * @param {string} code Unique identifier for the object.
347
+ * @param {string} [authorization] Bearer Token
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, authorization, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
355
+ }
356
+ };
357
+
358
+ /**
359
+ * BankOrdersApi - factory interface
360
+ * @export
361
+ */
362
+ export const BankOrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
363
+ const localVarFp = BankOrdersApiFp(configuration)
364
+ return {
365
+ /**
366
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
367
+ * @summary Create the bank order
368
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
369
+ * @param {string} [authorization] Bearer Token
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ createBankOrder(createBankOrderRequestDto: CreateBankOrderRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankOrderResponseClass> {
374
+ return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
375
+ },
376
+ /**
377
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
378
+ * @summary Delete the bank order
379
+ * @param {string} code Unique identifier for the object.
380
+ * @param {string} [authorization] Bearer Token
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ deleteBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<object> {
385
+ return localVarFp.deleteBankOrder(code, authorization, options).then((request) => request(axios, basePath));
386
+ },
387
+ /**
388
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
389
+ * @summary Retrieve the bank order
390
+ * @param {string} code
391
+ * @param {string} [authorization] Bearer Token
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ getBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<GetBankOrderResponseClass> {
396
+ return localVarFp.getBankOrder(code, authorization, options).then((request) => request(axios, basePath));
397
+ },
398
+ /**
399
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
400
+ * @summary List bank orders
401
+ * @param {string} [authorization] Bearer Token
402
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
403
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
404
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
405
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
410
+ return localVarFp.listBankOrders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
411
+ },
412
+ /**
413
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
414
+ * @summary Update the bank order
415
+ * @param {string} code Unique identifier for the object.
416
+ * @param {string} [authorization] Bearer Token
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
421
+ return localVarFp.updateBankOrder(code, authorization, options).then((request) => request(axios, basePath));
422
+ },
423
+ };
424
+ };
425
+
426
+ /**
427
+ * Request parameters for createBankOrder operation in BankOrdersApi.
428
+ * @export
429
+ * @interface BankOrdersApiCreateBankOrderRequest
430
+ */
431
+ export interface BankOrdersApiCreateBankOrderRequest {
432
+ /**
433
+ *
434
+ * @type {CreateBankOrderRequestDto}
435
+ * @memberof BankOrdersApiCreateBankOrder
436
+ */
437
+ readonly createBankOrderRequestDto: CreateBankOrderRequestDto
438
+
439
+ /**
440
+ * Bearer Token
441
+ * @type {string}
442
+ * @memberof BankOrdersApiCreateBankOrder
443
+ */
444
+ readonly authorization?: string
445
+ }
446
+
447
+ /**
448
+ * Request parameters for deleteBankOrder operation in BankOrdersApi.
449
+ * @export
450
+ * @interface BankOrdersApiDeleteBankOrderRequest
451
+ */
452
+ export interface BankOrdersApiDeleteBankOrderRequest {
453
+ /**
454
+ * Unique identifier for the object.
455
+ * @type {string}
456
+ * @memberof BankOrdersApiDeleteBankOrder
457
+ */
458
+ readonly code: string
459
+
460
+ /**
461
+ * Bearer Token
462
+ * @type {string}
463
+ * @memberof BankOrdersApiDeleteBankOrder
464
+ */
465
+ readonly authorization?: string
466
+ }
467
+
468
+ /**
469
+ * Request parameters for getBankOrder operation in BankOrdersApi.
470
+ * @export
471
+ * @interface BankOrdersApiGetBankOrderRequest
472
+ */
473
+ export interface BankOrdersApiGetBankOrderRequest {
474
+ /**
475
+ *
476
+ * @type {string}
477
+ * @memberof BankOrdersApiGetBankOrder
478
+ */
479
+ readonly code: string
480
+
481
+ /**
482
+ * Bearer Token
483
+ * @type {string}
484
+ * @memberof BankOrdersApiGetBankOrder
485
+ */
486
+ readonly authorization?: string
487
+ }
488
+
489
+ /**
490
+ * Request parameters for listBankOrders operation in BankOrdersApi.
491
+ * @export
492
+ * @interface BankOrdersApiListBankOrdersRequest
493
+ */
494
+ export interface BankOrdersApiListBankOrdersRequest {
495
+ /**
496
+ * Bearer Token
497
+ * @type {string}
498
+ * @memberof BankOrdersApiListBankOrders
499
+ */
500
+ readonly authorization?: string
501
+
502
+ /**
503
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
504
+ * @type {string}
505
+ * @memberof BankOrdersApiListBankOrders
506
+ */
507
+ readonly filter?: string
508
+
509
+ /**
510
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, orderNumber, status, type, bankAccountId&lt;/i&gt;
511
+ * @type {string}
512
+ * @memberof BankOrdersApiListBankOrders
513
+ */
514
+ readonly filters?: string
515
+
516
+ /**
517
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt&lt;/i&gt;
518
+ * @type {string}
519
+ * @memberof BankOrdersApiListBankOrders
520
+ */
521
+ readonly order?: string
522
+
523
+ /**
524
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
525
+ * @type {string}
526
+ * @memberof BankOrdersApiListBankOrders
527
+ */
528
+ readonly expand?: string
529
+ }
530
+
531
+ /**
532
+ * Request parameters for updateBankOrder operation in BankOrdersApi.
533
+ * @export
534
+ * @interface BankOrdersApiUpdateBankOrderRequest
535
+ */
536
+ export interface BankOrdersApiUpdateBankOrderRequest {
537
+ /**
538
+ * Unique identifier for the object.
539
+ * @type {string}
540
+ * @memberof BankOrdersApiUpdateBankOrder
541
+ */
542
+ readonly code: string
543
+
544
+ /**
545
+ * Bearer Token
546
+ * @type {string}
547
+ * @memberof BankOrdersApiUpdateBankOrder
548
+ */
549
+ readonly authorization?: string
550
+ }
551
+
552
+ /**
553
+ * BankOrdersApi - object-oriented interface
554
+ * @export
555
+ * @class BankOrdersApi
556
+ * @extends {BaseAPI}
557
+ */
558
+ export class BankOrdersApi extends BaseAPI {
559
+ /**
560
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
561
+ * @summary Create the bank order
562
+ * @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ * @memberof BankOrdersApi
566
+ */
567
+ public createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig) {
568
+ return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
569
+ }
570
+
571
+ /**
572
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
573
+ * @summary Delete the bank order
574
+ * @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ * @memberof BankOrdersApi
578
+ */
579
+ public deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig) {
580
+ return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
581
+ }
582
+
583
+ /**
584
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
585
+ * @summary Retrieve the bank order
586
+ * @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ * @memberof BankOrdersApi
590
+ */
591
+ public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
592
+ return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
593
+ }
594
+
595
+ /**
596
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
597
+ * @summary List bank orders
598
+ * @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof BankOrdersApi
602
+ */
603
+ public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
604
+ return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
605
+ }
606
+
607
+ /**
608
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
609
+ * @summary Update the bank order
610
+ * @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof BankOrdersApi
614
+ */
615
+ public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
616
+ return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
617
+ }
618
+ }
package/api.ts CHANGED
@@ -21,6 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { BankAccountsApi } from './api';
24
+ import { BankOrdersApi } from './api';
24
25
  import { BankTransactionApi } from './api';
25
26
  import { HealthCheckApi } from './api';
26
27
  import { PaymentMethodsApi } from './api';
@@ -33,6 +34,7 @@ import { WebhooksApi } from './api';
33
34
 
34
35
 
35
36
  export * from './api/bank-accounts-api';
37
+ export * from './api/bank-orders-api';
36
38
  export * from './api/bank-transaction-api';
37
39
  export * from './api/health-check-api';
38
40
  export * from './api/payment-methods-api';