@emilgroup/payment-sdk-node 1.21.1-beta.12 → 1.21.1-beta.14

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