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