@emilgroup/payment-sdk-node 1.21.1-beta.11 → 1.21.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 +622 -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 +615 -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 +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 +4 -4
@@ -0,0 +1,622 @@
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 {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ getBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'code' is not null or undefined
145
+ assertParamExists('getBankOrder', 'code', code)
146
+ const localVarPath = `/paymentservice/v1/bank-orders/{code}`
147
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
150
+ let baseOptions;
151
+ let baseAccessToken;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ baseAccessToken = configuration.accessToken;
155
+ }
156
+
157
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
158
+ const localVarHeaderParameter = {} as any;
159
+ const localVarQueryParameter = {} as any;
160
+
161
+ // authentication bearer required
162
+ // http bearer authentication required
163
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
164
+
165
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
166
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
167
+ }
168
+
169
+
170
+
171
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
174
+
175
+ return {
176
+ url: toPathString(localVarUrlObj),
177
+ options: localVarRequestOptions,
178
+ };
179
+ },
180
+ /**
181
+ * 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\"
182
+ * @summary List bank orders
183
+ * @param {string} [authorization] Bearer Token
184
+ * @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;
185
+ * @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;
186
+ * @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;
187
+ * @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;
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ */
191
+ listBankOrders: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
192
+ const localVarPath = `/paymentservice/v1/bank-orders`;
193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
195
+ let baseOptions;
196
+ let baseAccessToken;
197
+ if (configuration) {
198
+ baseOptions = configuration.baseOptions;
199
+ baseAccessToken = configuration.accessToken;
200
+ }
201
+
202
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
203
+ const localVarHeaderParameter = {} as any;
204
+ const localVarQueryParameter = {} as any;
205
+
206
+ // authentication bearer required
207
+ // http bearer authentication required
208
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
209
+
210
+ if (filter !== undefined) {
211
+ localVarQueryParameter['filter'] = filter;
212
+ }
213
+
214
+ if (filters !== undefined) {
215
+ localVarQueryParameter['filters'] = filters;
216
+ }
217
+
218
+ if (order !== undefined) {
219
+ localVarQueryParameter['order'] = order;
220
+ }
221
+
222
+ if (expand !== undefined) {
223
+ localVarQueryParameter['expand'] = expand;
224
+ }
225
+
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+
230
+
231
+
232
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
233
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
234
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
235
+
236
+ return {
237
+ url: toPathString(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ };
240
+ },
241
+ /**
242
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
243
+ * @summary Update the bank order
244
+ * @param {string} code Unique identifier for the object.
245
+ * @param {string} [authorization] Bearer Token
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ updateBankOrder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
+ // verify required parameter 'code' is not null or undefined
251
+ assertParamExists('updateBankOrder', 'code', code)
252
+ const localVarPath = `/paymentservice/v1/bank-orders/{code}`
253
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
256
+ let baseOptions;
257
+ let baseAccessToken;
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ baseAccessToken = configuration.accessToken;
261
+ }
262
+
263
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
264
+ const localVarHeaderParameter = {} as any;
265
+ const localVarQueryParameter = {} as any;
266
+
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
270
+
271
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
272
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
273
+ }
274
+
275
+
276
+
277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
280
+
281
+ return {
282
+ url: toPathString(localVarUrlObj),
283
+ options: localVarRequestOptions,
284
+ };
285
+ },
286
+ }
287
+ };
288
+
289
+ /**
290
+ * BankOrdersApi - functional programming interface
291
+ * @export
292
+ */
293
+ export const BankOrdersApiFp = function(configuration?: Configuration) {
294
+ const localVarAxiosParamCreator = BankOrdersApiAxiosParamCreator(configuration)
295
+ return {
296
+ /**
297
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
298
+ * @summary Create the bank order
299
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
300
+ * @param {string} [authorization] Bearer Token
301
+ * @param {*} [options] Override http request option.
302
+ * @throws {RequiredError}
303
+ */
304
+ async createBankOrder(createBankOrderRequestDto: CreateBankOrderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankOrderResponseClass>> {
305
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createBankOrder(createBankOrderRequestDto, authorization, options);
306
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
307
+ },
308
+ /**
309
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
310
+ * @summary Delete the bank order
311
+ * @param {string} code Unique identifier for the object.
312
+ * @param {string} [authorization] Bearer Token
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ async deleteBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankOrder(code, authorization, options);
318
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
+ },
320
+ /**
321
+ * 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\"
322
+ * @summary Retrieve the bank order
323
+ * @param {string} code
324
+ * @param {string} [authorization] Bearer Token
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ async getBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderResponseClass>> {
329
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrder(code, authorization, options);
330
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
331
+ },
332
+ /**
333
+ * 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\"
334
+ * @summary List bank orders
335
+ * @param {string} [authorization] Bearer Token
336
+ * @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;
337
+ * @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;
338
+ * @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;
339
+ * @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;
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ async listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankOrdersResponseClass>> {
344
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listBankOrders(authorization, filter, filters, order, expand, options);
345
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
346
+ },
347
+ /**
348
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
349
+ * @summary Update the bank order
350
+ * @param {string} code Unique identifier for the object.
351
+ * @param {string} [authorization] Bearer Token
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ async updateBankOrder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrder(code, authorization, options);
357
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
+ },
359
+ }
360
+ };
361
+
362
+ /**
363
+ * BankOrdersApi - factory interface
364
+ * @export
365
+ */
366
+ export const BankOrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
367
+ const localVarFp = BankOrdersApiFp(configuration)
368
+ return {
369
+ /**
370
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
371
+ * @summary Create the bank order
372
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
373
+ * @param {string} [authorization] Bearer Token
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ createBankOrder(createBankOrderRequestDto: CreateBankOrderRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankOrderResponseClass> {
378
+ return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then((request) => request(axios, basePath));
379
+ },
380
+ /**
381
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
382
+ * @summary Delete the bank order
383
+ * @param {string} code Unique identifier for the object.
384
+ * @param {string} [authorization] Bearer Token
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ deleteBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<object> {
389
+ return localVarFp.deleteBankOrder(code, authorization, options).then((request) => request(axios, basePath));
390
+ },
391
+ /**
392
+ * 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\"
393
+ * @summary Retrieve the bank order
394
+ * @param {string} code
395
+ * @param {string} [authorization] Bearer Token
396
+ * @param {*} [options] Override http request option.
397
+ * @throws {RequiredError}
398
+ */
399
+ getBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<GetBankOrderResponseClass> {
400
+ return localVarFp.getBankOrder(code, authorization, options).then((request) => request(axios, basePath));
401
+ },
402
+ /**
403
+ * 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\"
404
+ * @summary List bank orders
405
+ * @param {string} [authorization] Bearer Token
406
+ * @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;
407
+ * @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;
408
+ * @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;
409
+ * @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;
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ listBankOrders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankOrdersResponseClass> {
414
+ return localVarFp.listBankOrders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
415
+ },
416
+ /**
417
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
418
+ * @summary Update the bank order
419
+ * @param {string} code Unique identifier for the object.
420
+ * @param {string} [authorization] Bearer Token
421
+ * @param {*} [options] Override http request option.
422
+ * @throws {RequiredError}
423
+ */
424
+ updateBankOrder(code: string, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderResponseClass> {
425
+ return localVarFp.updateBankOrder(code, authorization, options).then((request) => request(axios, basePath));
426
+ },
427
+ };
428
+ };
429
+
430
+ /**
431
+ * Request parameters for createBankOrder operation in BankOrdersApi.
432
+ * @export
433
+ * @interface BankOrdersApiCreateBankOrderRequest
434
+ */
435
+ export interface BankOrdersApiCreateBankOrderRequest {
436
+ /**
437
+ *
438
+ * @type {CreateBankOrderRequestDto}
439
+ * @memberof BankOrdersApiCreateBankOrder
440
+ */
441
+ readonly createBankOrderRequestDto: CreateBankOrderRequestDto
442
+
443
+ /**
444
+ * Bearer Token
445
+ * @type {string}
446
+ * @memberof BankOrdersApiCreateBankOrder
447
+ */
448
+ readonly authorization?: string
449
+ }
450
+
451
+ /**
452
+ * Request parameters for deleteBankOrder operation in BankOrdersApi.
453
+ * @export
454
+ * @interface BankOrdersApiDeleteBankOrderRequest
455
+ */
456
+ export interface BankOrdersApiDeleteBankOrderRequest {
457
+ /**
458
+ * Unique identifier for the object.
459
+ * @type {string}
460
+ * @memberof BankOrdersApiDeleteBankOrder
461
+ */
462
+ readonly code: string
463
+
464
+ /**
465
+ * Bearer Token
466
+ * @type {string}
467
+ * @memberof BankOrdersApiDeleteBankOrder
468
+ */
469
+ readonly authorization?: string
470
+ }
471
+
472
+ /**
473
+ * Request parameters for getBankOrder operation in BankOrdersApi.
474
+ * @export
475
+ * @interface BankOrdersApiGetBankOrderRequest
476
+ */
477
+ export interface BankOrdersApiGetBankOrderRequest {
478
+ /**
479
+ *
480
+ * @type {string}
481
+ * @memberof BankOrdersApiGetBankOrder
482
+ */
483
+ readonly code: string
484
+
485
+ /**
486
+ * Bearer Token
487
+ * @type {string}
488
+ * @memberof BankOrdersApiGetBankOrder
489
+ */
490
+ readonly authorization?: string
491
+ }
492
+
493
+ /**
494
+ * Request parameters for listBankOrders operation in BankOrdersApi.
495
+ * @export
496
+ * @interface BankOrdersApiListBankOrdersRequest
497
+ */
498
+ export interface BankOrdersApiListBankOrdersRequest {
499
+ /**
500
+ * Bearer Token
501
+ * @type {string}
502
+ * @memberof BankOrdersApiListBankOrders
503
+ */
504
+ readonly authorization?: string
505
+
506
+ /**
507
+ * 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;
508
+ * @type {string}
509
+ * @memberof BankOrdersApiListBankOrders
510
+ */
511
+ readonly filter?: string
512
+
513
+ /**
514
+ * 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;
515
+ * @type {string}
516
+ * @memberof BankOrdersApiListBankOrders
517
+ */
518
+ readonly filters?: string
519
+
520
+ /**
521
+ * 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;
522
+ * @type {string}
523
+ * @memberof BankOrdersApiListBankOrders
524
+ */
525
+ readonly order?: string
526
+
527
+ /**
528
+ * 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;
529
+ * @type {string}
530
+ * @memberof BankOrdersApiListBankOrders
531
+ */
532
+ readonly expand?: string
533
+ }
534
+
535
+ /**
536
+ * Request parameters for updateBankOrder operation in BankOrdersApi.
537
+ * @export
538
+ * @interface BankOrdersApiUpdateBankOrderRequest
539
+ */
540
+ export interface BankOrdersApiUpdateBankOrderRequest {
541
+ /**
542
+ * Unique identifier for the object.
543
+ * @type {string}
544
+ * @memberof BankOrdersApiUpdateBankOrder
545
+ */
546
+ readonly code: string
547
+
548
+ /**
549
+ * Bearer Token
550
+ * @type {string}
551
+ * @memberof BankOrdersApiUpdateBankOrder
552
+ */
553
+ readonly authorization?: string
554
+ }
555
+
556
+ /**
557
+ * BankOrdersApi - object-oriented interface
558
+ * @export
559
+ * @class BankOrdersApi
560
+ * @extends {BaseAPI}
561
+ */
562
+ export class BankOrdersApi extends BaseAPI {
563
+ /**
564
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
565
+ * @summary Create the bank order
566
+ * @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ * @memberof BankOrdersApi
570
+ */
571
+ public createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig) {
572
+ return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
573
+ }
574
+
575
+ /**
576
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
577
+ * @summary Delete the bank order
578
+ * @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ * @memberof BankOrdersApi
582
+ */
583
+ public deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig) {
584
+ return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
585
+ }
586
+
587
+ /**
588
+ * 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\"
589
+ * @summary Retrieve the bank order
590
+ * @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ * @memberof BankOrdersApi
594
+ */
595
+ public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
596
+ return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
597
+ }
598
+
599
+ /**
600
+ * 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\"
601
+ * @summary List bank orders
602
+ * @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ * @memberof BankOrdersApi
606
+ */
607
+ public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
608
+ return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
609
+ }
610
+
611
+ /**
612
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
613
+ * @summary Update the bank order
614
+ * @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ * @memberof BankOrdersApi
618
+ */
619
+ public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
620
+ return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
621
+ }
622
+ }
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';