@emilgroup/payment-sdk 1.13.1-beta.48 → 1.13.1-beta.49

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