@emilgroup/payment-sdk-node 1.8.2 → 1.12.1

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 (91) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +4 -4
  4. package/api/bank-transaction-api.ts +569 -0
  5. package/api/payment-methods-api.ts +4 -4
  6. package/api/payment-reminders-api.ts +12 -10
  7. package/api/payments-api.ts +4 -4
  8. package/api/refunds-api.ts +464 -0
  9. package/api/tenant-bank-account-api.ts +655 -0
  10. package/api.ts +6 -2
  11. package/dist/api/bank-accounts-api.d.ts +4 -4
  12. package/dist/api/bank-accounts-api.js +3 -3
  13. package/dist/api/bank-transaction-api.d.ts +318 -0
  14. package/dist/api/bank-transaction-api.js +543 -0
  15. package/dist/api/payment-methods-api.d.ts +4 -4
  16. package/dist/api/payment-methods-api.js +3 -3
  17. package/dist/api/payment-reminders-api.d.ts +12 -11
  18. package/dist/api/payment-reminders-api.js +7 -7
  19. package/dist/api/payments-api.d.ts +4 -4
  20. package/dist/api/payments-api.js +3 -3
  21. package/dist/api/refunds-api.d.ts +260 -0
  22. package/dist/api/refunds-api.js +445 -0
  23. package/dist/api/tenant-bank-account-api.d.ts +361 -0
  24. package/dist/api/tenant-bank-account-api.js +620 -0
  25. package/dist/api.d.ts +3 -1
  26. package/dist/api.js +3 -1
  27. package/dist/models/bank-transaction-response-class.d.ts +122 -0
  28. package/dist/models/create-payment-reminder-request-dto.d.ts +2 -0
  29. package/dist/models/create-payment-reminder-request-dto.js +3 -1
  30. package/dist/models/create-payment-request-dto.d.ts +3 -3
  31. package/dist/models/create-refund-request-dto.d.ts +24 -0
  32. package/dist/models/create-refund-request-dto.js +15 -0
  33. package/dist/models/create-refund-response-class.d.ts +25 -0
  34. package/dist/models/create-refund-response-class.js +15 -0
  35. package/dist/models/create-tenant-bank-account-request-dto.d.ts +42 -0
  36. package/dist/models/create-tenant-bank-account-request-dto.js +15 -0
  37. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  38. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  39. package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
  40. package/dist/models/get-bank-transactions-response-class.js +15 -0
  41. package/dist/models/{validate-pspconfig-response-class.d.ts → get-refund-response-class.d.ts} +7 -6
  42. package/dist/models/get-refund-response-class.js +15 -0
  43. package/dist/models/get-tenant-bank-account-response-class.d.ts +25 -0
  44. package/dist/models/get-tenant-bank-account-response-class.js +15 -0
  45. package/dist/models/index.d.ts +14 -1
  46. package/dist/models/index.js +14 -1
  47. package/dist/models/inline-response200.d.ts +6 -6
  48. package/dist/models/inline-response503.d.ts +6 -6
  49. package/dist/models/link-bank-transaction-request-dto.d.ts +30 -0
  50. package/dist/models/link-bank-transaction-request-dto.js +15 -0
  51. package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
  52. package/dist/models/list-bank-transactions-response-class.js +15 -0
  53. package/dist/models/list-refunds-response-class.d.ts +31 -0
  54. package/dist/models/list-refunds-response-class.js +15 -0
  55. package/dist/models/payment-class.d.ts +1 -1
  56. package/dist/models/payment-method-class.d.ts +8 -2
  57. package/dist/models/payment-reminder-class.d.ts +4 -0
  58. package/dist/models/payment-reminder-class.js +6 -2
  59. package/dist/models/refund-class.d.ts +104 -0
  60. package/dist/models/refund-class.js +28 -0
  61. package/dist/models/tenant-bank-account-response-class.d.ts +66 -0
  62. package/dist/models/tenant-bank-account-response-class.js +15 -0
  63. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +36 -0
  64. package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
  65. package/models/bank-transaction-response-class.ts +128 -0
  66. package/models/create-payment-reminder-request-dto.ts +3 -1
  67. package/models/create-payment-request-dto.ts +3 -3
  68. package/models/create-refund-request-dto.ts +30 -0
  69. package/models/create-refund-response-class.ts +31 -0
  70. package/models/create-tenant-bank-account-request-dto.ts +48 -0
  71. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  72. package/models/get-bank-transactions-response-class.ts +31 -0
  73. package/models/{validate-pspconfig-response-class.ts → get-refund-response-class.ts} +7 -6
  74. package/models/get-tenant-bank-account-response-class.ts +31 -0
  75. package/models/index.ts +14 -1
  76. package/models/inline-response200.ts +6 -6
  77. package/models/inline-response503.ts +6 -6
  78. package/models/link-bank-transaction-request-dto.ts +36 -0
  79. package/models/list-bank-transactions-response-class.ts +37 -0
  80. package/models/list-refunds-response-class.ts +37 -0
  81. package/models/payment-class.ts +1 -1
  82. package/models/payment-method-class.ts +8 -2
  83. package/models/payment-reminder-class.ts +6 -2
  84. package/models/refund-class.ts +114 -0
  85. package/models/tenant-bank-account-response-class.ts +72 -0
  86. package/models/update-tenant-bank-account-rest-request-dto.ts +42 -0
  87. package/package.json +1 -1
  88. package/api/payment-service-providers-api.ts +0 -165
  89. package/dist/api/payment-service-providers-api.d.ts +0 -93
  90. package/dist/api/payment-service-providers-api.js +0 -224
  91. /package/dist/models/{validate-pspconfig-response-class.js → bank-transaction-response-class.js} +0 -0
@@ -0,0 +1,655 @@
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 { CreateTenantBankAccountRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { GetTenantBankAccountResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { UpdateTenantBankAccountRestRequestDto } from '../models';
29
+ // URLSearchParams not necessarily used
30
+ // @ts-ignore
31
+ import { URL, URLSearchParams } from 'url';
32
+ const FormData = require('form-data');
33
+ /**
34
+ * TenantBankAccountApi - axios parameter creator
35
+ * @export
36
+ */
37
+ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: Configuration) {
38
+ return {
39
+ /**
40
+ *
41
+ * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
42
+ * @param {string} [authorization] Bearer Token
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ createTenantBankAccount: async (createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'createTenantBankAccountRequestDto' is not null or undefined
48
+ assertParamExists('createTenantBankAccount', 'createTenantBankAccountRequestDto', createTenantBankAccountRequestDto)
49
+ const localVarPath = `/paymentservice/v1/tenant/bank-accounts`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ localVarHeaderParameter['Content-Type'] = 'application/json';
74
+
75
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
76
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
+ localVarRequestOptions.data = serializeDataIfNeeded(createTenantBankAccountRequestDto, localVarRequestOptions, configuration)
79
+
80
+ return {
81
+ url: toPathString(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ *
87
+ * @param {string} code Unique identifier for the object.
88
+ * @param {string} [authorization] Bearer Token
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ deleteTenantBankAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'code' is not null or undefined
94
+ assertParamExists('deleteTenantBankAccount', 'code', code)
95
+ const localVarPath = `/paymentservice/v1/tenant/bank-accounts/{code}`
96
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
97
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ let baseAccessToken;
101
+ if (configuration) {
102
+ baseOptions = configuration.baseOptions;
103
+ baseAccessToken = configuration.accessToken;
104
+ }
105
+
106
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
107
+ const localVarHeaderParameter = {} as any;
108
+ const localVarQueryParameter = {} as any;
109
+
110
+ // authentication bearer required
111
+ // http bearer authentication required
112
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
+
114
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ }
117
+
118
+
119
+
120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
123
+
124
+ return {
125
+ url: toPathString(localVarUrlObj),
126
+ options: localVarRequestOptions,
127
+ };
128
+ },
129
+ /**
130
+ *
131
+ * @param {string} code Unique identifier for the object.
132
+ * @param {string} [authorization] Bearer Token
133
+ * @param {string} [expand] Expand the response with additional entities
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ getTenantBankAccount: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
138
+ // verify required parameter 'code' is not null or undefined
139
+ assertParamExists('getTenantBankAccount', 'code', code)
140
+ const localVarPath = `/paymentservice/v1/tenant/bank-accounts/{code}`
141
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
144
+ let baseOptions;
145
+ let baseAccessToken;
146
+ if (configuration) {
147
+ baseOptions = configuration.baseOptions;
148
+ baseAccessToken = configuration.accessToken;
149
+ }
150
+
151
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
152
+ const localVarHeaderParameter = {} as any;
153
+ const localVarQueryParameter = {} as any;
154
+
155
+ // authentication bearer required
156
+ // http bearer authentication required
157
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
158
+
159
+ if (expand !== undefined) {
160
+ localVarQueryParameter['expand'] = expand;
161
+ }
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
170
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
172
+
173
+ return {
174
+ url: toPathString(localVarUrlObj),
175
+ options: localVarRequestOptions,
176
+ };
177
+ },
178
+ /**
179
+ *
180
+ * @param {string} [authorization] Bearer Token
181
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
182
+ * @param {any} [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.
183
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
184
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
185
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
186
+ * @param {string} [expand] Expand the response with additional entities
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ listTenantBankAccounts: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
191
+ const localVarPath = `/paymentservice/v1/tenant/bank-accounts`;
192
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
193
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
194
+ let baseOptions;
195
+ let baseAccessToken;
196
+ if (configuration) {
197
+ baseOptions = configuration.baseOptions;
198
+ baseAccessToken = configuration.accessToken;
199
+ }
200
+
201
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
202
+ const localVarHeaderParameter = {} as any;
203
+ const localVarQueryParameter = {} as any;
204
+
205
+ // authentication bearer required
206
+ // http bearer authentication required
207
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
208
+
209
+ if (pageSize !== undefined) {
210
+ localVarQueryParameter['pageSize'] = pageSize;
211
+ }
212
+
213
+ if (pageToken !== undefined) {
214
+ localVarQueryParameter['pageToken'] = pageToken;
215
+ }
216
+
217
+ if (filter !== undefined) {
218
+ localVarQueryParameter['filter'] = filter;
219
+ }
220
+
221
+ if (search !== undefined) {
222
+ localVarQueryParameter['search'] = search;
223
+ }
224
+
225
+ if (order !== undefined) {
226
+ localVarQueryParameter['order'] = order;
227
+ }
228
+
229
+ if (expand !== undefined) {
230
+ localVarQueryParameter['expand'] = expand;
231
+ }
232
+
233
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ }
236
+
237
+
238
+
239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
242
+
243
+ return {
244
+ url: toPathString(localVarUrlObj),
245
+ options: localVarRequestOptions,
246
+ };
247
+ },
248
+ /**
249
+ *
250
+ * @param {string} code Unique identifier for the object.
251
+ * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
252
+ * @param {string} [authorization] Bearer Token
253
+ * @param {*} [options] Override http request option.
254
+ * @throws {RequiredError}
255
+ */
256
+ updateTenantBankAccount: async (code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
257
+ // verify required parameter 'code' is not null or undefined
258
+ assertParamExists('updateTenantBankAccount', 'code', code)
259
+ // verify required parameter 'updateTenantBankAccountRestRequestDto' is not null or undefined
260
+ assertParamExists('updateTenantBankAccount', 'updateTenantBankAccountRestRequestDto', updateTenantBankAccountRestRequestDto)
261
+ const localVarPath = `/paymentservice/v1/tenant/bank-accounts/{code}`
262
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
265
+ let baseOptions;
266
+ let baseAccessToken;
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+
272
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
273
+ const localVarHeaderParameter = {} as any;
274
+ const localVarQueryParameter = {} as any;
275
+
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
279
+
280
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
282
+ }
283
+
284
+
285
+
286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
287
+
288
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
289
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
290
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
291
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTenantBankAccountRestRequestDto, localVarRequestOptions, configuration)
292
+
293
+ return {
294
+ url: toPathString(localVarUrlObj),
295
+ options: localVarRequestOptions,
296
+ };
297
+ },
298
+ }
299
+ };
300
+
301
+ /**
302
+ * TenantBankAccountApi - functional programming interface
303
+ * @export
304
+ */
305
+ export const TenantBankAccountApiFp = function(configuration?: Configuration) {
306
+ const localVarAxiosParamCreator = TenantBankAccountApiAxiosParamCreator(configuration)
307
+ return {
308
+ /**
309
+ *
310
+ * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
311
+ * @param {string} [authorization] Bearer Token
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ async createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options);
317
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
318
+ },
319
+ /**
320
+ *
321
+ * @param {string} code Unique identifier for the object.
322
+ * @param {string} [authorization] Bearer Token
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ async deleteTenantBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
327
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTenantBankAccount(code, authorization, options);
328
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
329
+ },
330
+ /**
331
+ *
332
+ * @param {string} code Unique identifier for the object.
333
+ * @param {string} [authorization] Bearer Token
334
+ * @param {string} [expand] Expand the response with additional entities
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ async getTenantBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTenantBankAccountResponseClass>> {
339
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTenantBankAccount(code, authorization, expand, options);
340
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
341
+ },
342
+ /**
343
+ *
344
+ * @param {string} [authorization] Bearer Token
345
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
346
+ * @param {any} [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.
347
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
348
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
349
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
350
+ * @param {string} [expand] Expand the response with additional entities
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ async listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
355
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options);
356
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
357
+ },
358
+ /**
359
+ *
360
+ * @param {string} code Unique identifier for the object.
361
+ * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
362
+ * @param {string} [authorization] Bearer Token
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ async updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
367
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options);
368
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
369
+ },
370
+ }
371
+ };
372
+
373
+ /**
374
+ * TenantBankAccountApi - factory interface
375
+ * @export
376
+ */
377
+ export const TenantBankAccountApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
378
+ const localVarFp = TenantBankAccountApiFp(configuration)
379
+ return {
380
+ /**
381
+ *
382
+ * @param {CreateTenantBankAccountRequestDto} createTenantBankAccountRequestDto
383
+ * @param {string} [authorization] Bearer Token
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ createTenantBankAccount(createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
388
+ return localVarFp.createTenantBankAccount(createTenantBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
389
+ },
390
+ /**
391
+ *
392
+ * @param {string} code Unique identifier for the object.
393
+ * @param {string} [authorization] Bearer Token
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ deleteTenantBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
398
+ return localVarFp.deleteTenantBankAccount(code, authorization, options).then((request) => request(axios, basePath));
399
+ },
400
+ /**
401
+ *
402
+ * @param {string} code Unique identifier for the object.
403
+ * @param {string} [authorization] Bearer Token
404
+ * @param {string} [expand] Expand the response with additional entities
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ getTenantBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTenantBankAccountResponseClass> {
409
+ return localVarFp.getTenantBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
410
+ },
411
+ /**
412
+ *
413
+ * @param {string} [authorization] Bearer Token
414
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
415
+ * @param {any} [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.
416
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
417
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
418
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
419
+ * @param {string} [expand] Expand the response with additional entities
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ listTenantBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: string, options?: any): AxiosPromise<void> {
424
+ return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
425
+ },
426
+ /**
427
+ *
428
+ * @param {string} code Unique identifier for the object.
429
+ * @param {UpdateTenantBankAccountRestRequestDto} updateTenantBankAccountRestRequestDto
430
+ * @param {string} [authorization] Bearer Token
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ updateTenantBankAccount(code: string, updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
435
+ return localVarFp.updateTenantBankAccount(code, updateTenantBankAccountRestRequestDto, authorization, options).then((request) => request(axios, basePath));
436
+ },
437
+ };
438
+ };
439
+
440
+ /**
441
+ * Request parameters for createTenantBankAccount operation in TenantBankAccountApi.
442
+ * @export
443
+ * @interface TenantBankAccountApiCreateTenantBankAccountRequest
444
+ */
445
+ export interface TenantBankAccountApiCreateTenantBankAccountRequest {
446
+ /**
447
+ *
448
+ * @type {CreateTenantBankAccountRequestDto}
449
+ * @memberof TenantBankAccountApiCreateTenantBankAccount
450
+ */
451
+ readonly createTenantBankAccountRequestDto: CreateTenantBankAccountRequestDto
452
+
453
+ /**
454
+ * Bearer Token
455
+ * @type {string}
456
+ * @memberof TenantBankAccountApiCreateTenantBankAccount
457
+ */
458
+ readonly authorization?: string
459
+ }
460
+
461
+ /**
462
+ * Request parameters for deleteTenantBankAccount operation in TenantBankAccountApi.
463
+ * @export
464
+ * @interface TenantBankAccountApiDeleteTenantBankAccountRequest
465
+ */
466
+ export interface TenantBankAccountApiDeleteTenantBankAccountRequest {
467
+ /**
468
+ * Unique identifier for the object.
469
+ * @type {string}
470
+ * @memberof TenantBankAccountApiDeleteTenantBankAccount
471
+ */
472
+ readonly code: string
473
+
474
+ /**
475
+ * Bearer Token
476
+ * @type {string}
477
+ * @memberof TenantBankAccountApiDeleteTenantBankAccount
478
+ */
479
+ readonly authorization?: string
480
+ }
481
+
482
+ /**
483
+ * Request parameters for getTenantBankAccount operation in TenantBankAccountApi.
484
+ * @export
485
+ * @interface TenantBankAccountApiGetTenantBankAccountRequest
486
+ */
487
+ export interface TenantBankAccountApiGetTenantBankAccountRequest {
488
+ /**
489
+ * Unique identifier for the object.
490
+ * @type {string}
491
+ * @memberof TenantBankAccountApiGetTenantBankAccount
492
+ */
493
+ readonly code: string
494
+
495
+ /**
496
+ * Bearer Token
497
+ * @type {string}
498
+ * @memberof TenantBankAccountApiGetTenantBankAccount
499
+ */
500
+ readonly authorization?: string
501
+
502
+ /**
503
+ * Expand the response with additional entities
504
+ * @type {string}
505
+ * @memberof TenantBankAccountApiGetTenantBankAccount
506
+ */
507
+ readonly expand?: string
508
+ }
509
+
510
+ /**
511
+ * Request parameters for listTenantBankAccounts operation in TenantBankAccountApi.
512
+ * @export
513
+ * @interface TenantBankAccountApiListTenantBankAccountsRequest
514
+ */
515
+ export interface TenantBankAccountApiListTenantBankAccountsRequest {
516
+ /**
517
+ * Bearer Token
518
+ * @type {string}
519
+ * @memberof TenantBankAccountApiListTenantBankAccounts
520
+ */
521
+ readonly authorization?: string
522
+
523
+ /**
524
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
525
+ * @type {any}
526
+ * @memberof TenantBankAccountApiListTenantBankAccounts
527
+ */
528
+ readonly pageSize?: any
529
+
530
+ /**
531
+ * 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.
532
+ * @type {any}
533
+ * @memberof TenantBankAccountApiListTenantBankAccounts
534
+ */
535
+ readonly pageToken?: any
536
+
537
+ /**
538
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
539
+ * @type {any}
540
+ * @memberof TenantBankAccountApiListTenantBankAccounts
541
+ */
542
+ readonly filter?: any
543
+
544
+ /**
545
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
546
+ * @type {any}
547
+ * @memberof TenantBankAccountApiListTenantBankAccounts
548
+ */
549
+ readonly search?: any
550
+
551
+ /**
552
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
553
+ * @type {any}
554
+ * @memberof TenantBankAccountApiListTenantBankAccounts
555
+ */
556
+ readonly order?: any
557
+
558
+ /**
559
+ * Expand the response with additional entities
560
+ * @type {string}
561
+ * @memberof TenantBankAccountApiListTenantBankAccounts
562
+ */
563
+ readonly expand?: string
564
+ }
565
+
566
+ /**
567
+ * Request parameters for updateTenantBankAccount operation in TenantBankAccountApi.
568
+ * @export
569
+ * @interface TenantBankAccountApiUpdateTenantBankAccountRequest
570
+ */
571
+ export interface TenantBankAccountApiUpdateTenantBankAccountRequest {
572
+ /**
573
+ * Unique identifier for the object.
574
+ * @type {string}
575
+ * @memberof TenantBankAccountApiUpdateTenantBankAccount
576
+ */
577
+ readonly code: string
578
+
579
+ /**
580
+ *
581
+ * @type {UpdateTenantBankAccountRestRequestDto}
582
+ * @memberof TenantBankAccountApiUpdateTenantBankAccount
583
+ */
584
+ readonly updateTenantBankAccountRestRequestDto: UpdateTenantBankAccountRestRequestDto
585
+
586
+ /**
587
+ * Bearer Token
588
+ * @type {string}
589
+ * @memberof TenantBankAccountApiUpdateTenantBankAccount
590
+ */
591
+ readonly authorization?: string
592
+ }
593
+
594
+ /**
595
+ * TenantBankAccountApi - object-oriented interface
596
+ * @export
597
+ * @class TenantBankAccountApi
598
+ * @extends {BaseAPI}
599
+ */
600
+ export class TenantBankAccountApi extends BaseAPI {
601
+ /**
602
+ *
603
+ * @param {TenantBankAccountApiCreateTenantBankAccountRequest} requestParameters Request parameters.
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ * @memberof TenantBankAccountApi
607
+ */
608
+ public createTenantBankAccount(requestParameters: TenantBankAccountApiCreateTenantBankAccountRequest, options?: AxiosRequestConfig) {
609
+ return TenantBankAccountApiFp(this.configuration).createTenantBankAccount(requestParameters.createTenantBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
610
+ }
611
+
612
+ /**
613
+ *
614
+ * @param {TenantBankAccountApiDeleteTenantBankAccountRequest} requestParameters Request parameters.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ * @memberof TenantBankAccountApi
618
+ */
619
+ public deleteTenantBankAccount(requestParameters: TenantBankAccountApiDeleteTenantBankAccountRequest, options?: AxiosRequestConfig) {
620
+ return TenantBankAccountApiFp(this.configuration).deleteTenantBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
621
+ }
622
+
623
+ /**
624
+ *
625
+ * @param {TenantBankAccountApiGetTenantBankAccountRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ * @memberof TenantBankAccountApi
629
+ */
630
+ public getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig) {
631
+ return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
632
+ }
633
+
634
+ /**
635
+ *
636
+ * @param {TenantBankAccountApiListTenantBankAccountsRequest} requestParameters Request parameters.
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ * @memberof TenantBankAccountApi
640
+ */
641
+ public listTenantBankAccounts(requestParameters: TenantBankAccountApiListTenantBankAccountsRequest = {}, options?: AxiosRequestConfig) {
642
+ return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
643
+ }
644
+
645
+ /**
646
+ *
647
+ * @param {TenantBankAccountApiUpdateTenantBankAccountRequest} requestParameters Request parameters.
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ * @memberof TenantBankAccountApi
651
+ */
652
+ public updateTenantBankAccount(requestParameters: TenantBankAccountApiUpdateTenantBankAccountRequest, options?: AxiosRequestConfig) {
653
+ return TenantBankAccountApiFp(this.configuration).updateTenantBankAccount(requestParameters.code, requestParameters.updateTenantBankAccountRestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
654
+ }
655
+ }