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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/bank-orders-api.ts +636 -0
  4. package/api.ts +2 -0
  5. package/dist/api/bank-accounts-api.js +20 -53
  6. package/dist/api/bank-orders-api.d.ts +356 -0
  7. package/dist/api/bank-orders-api.js +621 -0
  8. package/dist/api/bank-transaction-api.js +20 -53
  9. package/dist/api/health-check-api.js +5 -18
  10. package/dist/api/payment-methods-api.js +11 -32
  11. package/dist/api/payment-reminders-api.js +14 -39
  12. package/dist/api/payment-setup-api.js +8 -25
  13. package/dist/api/payments-api.js +11 -32
  14. package/dist/api/refunds-api.js +11 -32
  15. package/dist/api/tenant-bank-account-api.js +17 -46
  16. package/dist/api/webhooks-api.js +5 -18
  17. package/dist/api.d.ts +1 -0
  18. package/dist/api.js +1 -0
  19. package/dist/base.js +15 -25
  20. package/dist/common.d.ts +1 -1
  21. package/dist/common.js +2 -2
  22. package/dist/models/bank-order-class.d.ts +115 -0
  23. package/dist/models/bank-order-class.js +15 -0
  24. package/dist/models/create-bank-order-request-dto.d.ts +80 -0
  25. package/dist/models/create-bank-order-request-dto.js +28 -0
  26. package/dist/models/create-bank-order-response-class.d.ts +25 -0
  27. package/dist/models/create-bank-order-response-class.js +15 -0
  28. package/dist/models/get-bank-order-response-class.d.ts +25 -0
  29. package/dist/models/get-bank-order-response-class.js +15 -0
  30. package/dist/models/index.d.ts +7 -0
  31. package/dist/models/index.js +7 -0
  32. package/dist/models/list-bank-orders-response-class.d.ts +31 -0
  33. package/dist/models/list-bank-orders-response-class.js +15 -0
  34. package/dist/models/update-bank-order-request-dto.d.ts +68 -0
  35. package/dist/models/update-bank-order-request-dto.js +23 -0
  36. package/dist/models/update-bank-order-response-class.d.ts +25 -0
  37. package/dist/models/update-bank-order-response-class.js +15 -0
  38. package/models/bank-order-class.ts +121 -0
  39. package/models/create-bank-order-request-dto.ts +90 -0
  40. package/models/create-bank-order-response-class.ts +31 -0
  41. package/models/get-bank-order-response-class.ts +31 -0
  42. package/models/index.ts +7 -0
  43. package/models/list-bank-orders-response-class.ts +37 -0
  44. package/models/update-bank-order-request-dto.ts +77 -0
  45. package/models/update-bank-order-response-class.ts +31 -0
  46. package/package.json +4 -4
@@ -0,0 +1,621 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.BankOrdersApi = exports.BankOrdersApiFactory = exports.BankOrdersApiFp = exports.BankOrdersApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * BankOrdersApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var BankOrdersApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
101
+ * @summary Create the bank order
102
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createBankOrder: function (createBankOrderRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createBankOrderRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createBankOrder', 'createBankOrderRequestDto', createBankOrderRequestDto);
116
+ localVarPath = "/paymentservice/v1/bank-orders";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBankOrderRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
150
+ * @summary Delete the bank order
151
+ * @param {string} code Unique identifier for the object.
152
+ * @param {string} [authorization] Bearer Token
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ deleteBankOrder: function (code, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'code' is not null or undefined
164
+ (0, common_1.assertParamExists)('deleteBankOrder', 'code', code);
165
+ localVarPath = "/paymentservice/v1/bank-orders/{code}"
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ /**
197
+ * 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\"
198
+ * @summary Retrieve the bank order
199
+ * @param {string} code
200
+ * @param {string} [authorization] Bearer Token
201
+ * @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;
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ getBankOrder: function (code, authorization, expand, options) {
206
+ if (options === void 0) { options = {}; }
207
+ return __awaiter(_this, void 0, void 0, function () {
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ // verify required parameter 'code' is not null or undefined
213
+ (0, common_1.assertParamExists)('getBankOrder', 'code', code);
214
+ localVarPath = "/paymentservice/v1/bank-orders/{code}"
215
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
216
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ baseAccessToken = configuration.accessToken;
220
+ }
221
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
222
+ localVarHeaderParameter = {};
223
+ localVarQueryParameter = {};
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
+ case 1:
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ _a.sent();
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
234
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
235
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ }
237
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
238
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
240
+ return [2 /*return*/, {
241
+ url: (0, common_1.toPathString)(localVarUrlObj),
242
+ options: localVarRequestOptions,
243
+ }];
244
+ }
245
+ });
246
+ });
247
+ },
248
+ /**
249
+ * 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\"
250
+ * @summary List bank orders
251
+ * @param {string} [authorization] Bearer Token
252
+ * @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;
253
+ * @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;
254
+ * @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;
255
+ * @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;
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ listBankOrders: function (authorization, filter, filters, order, expand, options) {
260
+ if (options === void 0) { options = {}; }
261
+ return __awaiter(_this, void 0, void 0, function () {
262
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
263
+ return __generator(this, function (_a) {
264
+ switch (_a.label) {
265
+ case 0:
266
+ localVarPath = "/paymentservice/v1/bank-orders";
267
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
268
+ if (configuration) {
269
+ baseOptions = configuration.baseOptions;
270
+ baseAccessToken = configuration.accessToken;
271
+ }
272
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
273
+ localVarHeaderParameter = {};
274
+ localVarQueryParameter = {};
275
+ // authentication bearer required
276
+ // http bearer authentication required
277
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
278
+ case 1:
279
+ // authentication bearer required
280
+ // http bearer authentication required
281
+ _a.sent();
282
+ if (filter !== undefined) {
283
+ localVarQueryParameter['filter'] = filter;
284
+ }
285
+ if (filters !== undefined) {
286
+ localVarQueryParameter['filters'] = filters;
287
+ }
288
+ if (order !== undefined) {
289
+ localVarQueryParameter['order'] = order;
290
+ }
291
+ if (expand !== undefined) {
292
+ localVarQueryParameter['expand'] = expand;
293
+ }
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
298
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
300
+ return [2 /*return*/, {
301
+ url: (0, common_1.toPathString)(localVarUrlObj),
302
+ options: localVarRequestOptions,
303
+ }];
304
+ }
305
+ });
306
+ });
307
+ },
308
+ /**
309
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
310
+ * @summary Update the bank order
311
+ * @param {string} code Unique identifier for the object.
312
+ * @param {string} [authorization] Bearer Token
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ updateBankOrder: function (code, authorization, options) {
317
+ if (options === void 0) { options = {}; }
318
+ return __awaiter(_this, void 0, void 0, function () {
319
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
320
+ return __generator(this, function (_a) {
321
+ switch (_a.label) {
322
+ case 0:
323
+ // verify required parameter 'code' is not null or undefined
324
+ (0, common_1.assertParamExists)('updateBankOrder', 'code', code);
325
+ localVarPath = "/paymentservice/v1/bank-orders/{code}"
326
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
327
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
328
+ if (configuration) {
329
+ baseOptions = configuration.baseOptions;
330
+ baseAccessToken = configuration.accessToken;
331
+ }
332
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
333
+ localVarHeaderParameter = {};
334
+ localVarQueryParameter = {};
335
+ // authentication bearer required
336
+ // http bearer authentication required
337
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
338
+ case 1:
339
+ // authentication bearer required
340
+ // http bearer authentication required
341
+ _a.sent();
342
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
343
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
+ }
345
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
346
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
347
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
348
+ return [2 /*return*/, {
349
+ url: (0, common_1.toPathString)(localVarUrlObj),
350
+ options: localVarRequestOptions,
351
+ }];
352
+ }
353
+ });
354
+ });
355
+ },
356
+ };
357
+ };
358
+ exports.BankOrdersApiAxiosParamCreator = BankOrdersApiAxiosParamCreator;
359
+ /**
360
+ * BankOrdersApi - functional programming interface
361
+ * @export
362
+ */
363
+ var BankOrdersApiFp = function (configuration) {
364
+ var localVarAxiosParamCreator = (0, exports.BankOrdersApiAxiosParamCreator)(configuration);
365
+ return {
366
+ /**
367
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
368
+ * @summary Create the bank order
369
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
370
+ * @param {string} [authorization] Bearer Token
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ createBankOrder: function (createBankOrderRequestDto, authorization, options) {
375
+ return __awaiter(this, void 0, void 0, function () {
376
+ var localVarAxiosArgs;
377
+ return __generator(this, function (_a) {
378
+ switch (_a.label) {
379
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBankOrder(createBankOrderRequestDto, authorization, options)];
380
+ case 1:
381
+ localVarAxiosArgs = _a.sent();
382
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
383
+ }
384
+ });
385
+ });
386
+ },
387
+ /**
388
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
389
+ * @summary Delete the bank order
390
+ * @param {string} code Unique identifier for the object.
391
+ * @param {string} [authorization] Bearer Token
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ deleteBankOrder: function (code, authorization, options) {
396
+ return __awaiter(this, void 0, void 0, function () {
397
+ var localVarAxiosArgs;
398
+ return __generator(this, function (_a) {
399
+ switch (_a.label) {
400
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteBankOrder(code, authorization, options)];
401
+ case 1:
402
+ localVarAxiosArgs = _a.sent();
403
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
404
+ }
405
+ });
406
+ });
407
+ },
408
+ /**
409
+ * 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\"
410
+ * @summary Retrieve the bank order
411
+ * @param {string} code
412
+ * @param {string} [authorization] Bearer Token
413
+ * @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;
414
+ * @param {*} [options] Override http request option.
415
+ * @throws {RequiredError}
416
+ */
417
+ getBankOrder: function (code, authorization, expand, options) {
418
+ return __awaiter(this, void 0, void 0, function () {
419
+ var localVarAxiosArgs;
420
+ return __generator(this, function (_a) {
421
+ switch (_a.label) {
422
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, expand, options)];
423
+ case 1:
424
+ localVarAxiosArgs = _a.sent();
425
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
426
+ }
427
+ });
428
+ });
429
+ },
430
+ /**
431
+ * 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\"
432
+ * @summary List bank orders
433
+ * @param {string} [authorization] Bearer Token
434
+ * @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;
435
+ * @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;
436
+ * @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;
437
+ * @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;
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ listBankOrders: function (authorization, filter, filters, order, expand, options) {
442
+ return __awaiter(this, void 0, void 0, function () {
443
+ var localVarAxiosArgs;
444
+ return __generator(this, function (_a) {
445
+ switch (_a.label) {
446
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, filter, filters, order, expand, options)];
447
+ case 1:
448
+ localVarAxiosArgs = _a.sent();
449
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
450
+ }
451
+ });
452
+ });
453
+ },
454
+ /**
455
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
456
+ * @summary Update the bank order
457
+ * @param {string} code Unique identifier for the object.
458
+ * @param {string} [authorization] Bearer Token
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ updateBankOrder: function (code, authorization, options) {
463
+ return __awaiter(this, void 0, void 0, function () {
464
+ var localVarAxiosArgs;
465
+ return __generator(this, function (_a) {
466
+ switch (_a.label) {
467
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, authorization, options)];
468
+ case 1:
469
+ localVarAxiosArgs = _a.sent();
470
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
471
+ }
472
+ });
473
+ });
474
+ },
475
+ };
476
+ };
477
+ exports.BankOrdersApiFp = BankOrdersApiFp;
478
+ /**
479
+ * BankOrdersApi - factory interface
480
+ * @export
481
+ */
482
+ var BankOrdersApiFactory = function (configuration, basePath, axios) {
483
+ var localVarFp = (0, exports.BankOrdersApiFp)(configuration);
484
+ return {
485
+ /**
486
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
487
+ * @summary Create the bank order
488
+ * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
489
+ * @param {string} [authorization] Bearer Token
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ createBankOrder: function (createBankOrderRequestDto, authorization, options) {
494
+ return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
495
+ },
496
+ /**
497
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
498
+ * @summary Delete the bank order
499
+ * @param {string} code Unique identifier for the object.
500
+ * @param {string} [authorization] Bearer Token
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ deleteBankOrder: function (code, authorization, options) {
505
+ return localVarFp.deleteBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
506
+ },
507
+ /**
508
+ * 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\"
509
+ * @summary Retrieve the bank order
510
+ * @param {string} code
511
+ * @param {string} [authorization] Bearer Token
512
+ * @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;
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ getBankOrder: function (code, authorization, expand, options) {
517
+ return localVarFp.getBankOrder(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
518
+ },
519
+ /**
520
+ * 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\"
521
+ * @summary List bank orders
522
+ * @param {string} [authorization] Bearer Token
523
+ * @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;
524
+ * @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;
525
+ * @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;
526
+ * @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;
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ */
530
+ listBankOrders: function (authorization, filter, filters, order, expand, options) {
531
+ return localVarFp.listBankOrders(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
532
+ },
533
+ /**
534
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
535
+ * @summary Update the bank order
536
+ * @param {string} code Unique identifier for the object.
537
+ * @param {string} [authorization] Bearer Token
538
+ * @param {*} [options] Override http request option.
539
+ * @throws {RequiredError}
540
+ */
541
+ updateBankOrder: function (code, authorization, options) {
542
+ return localVarFp.updateBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
543
+ },
544
+ };
545
+ };
546
+ exports.BankOrdersApiFactory = BankOrdersApiFactory;
547
+ /**
548
+ * BankOrdersApi - object-oriented interface
549
+ * @export
550
+ * @class BankOrdersApi
551
+ * @extends {BaseAPI}
552
+ */
553
+ var BankOrdersApi = /** @class */ (function (_super) {
554
+ __extends(BankOrdersApi, _super);
555
+ function BankOrdersApi() {
556
+ return _super !== null && _super.apply(this, arguments) || this;
557
+ }
558
+ /**
559
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
560
+ * @summary Create the bank order
561
+ * @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ * @memberof BankOrdersApi
565
+ */
566
+ BankOrdersApi.prototype.createBankOrder = function (requestParameters, options) {
567
+ var _this = this;
568
+ return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
569
+ };
570
+ /**
571
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
572
+ * @summary Delete the bank order
573
+ * @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ * @memberof BankOrdersApi
577
+ */
578
+ BankOrdersApi.prototype.deleteBankOrder = function (requestParameters, options) {
579
+ var _this = this;
580
+ return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
581
+ };
582
+ /**
583
+ * 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\"
584
+ * @summary Retrieve the bank order
585
+ * @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ * @memberof BankOrdersApi
589
+ */
590
+ BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
591
+ var _this = this;
592
+ return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
593
+ };
594
+ /**
595
+ * 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\"
596
+ * @summary List bank orders
597
+ * @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ * @memberof BankOrdersApi
601
+ */
602
+ BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
603
+ var _this = this;
604
+ if (requestParameters === void 0) { requestParameters = {}; }
605
+ return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
606
+ };
607
+ /**
608
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
609
+ * @summary Update the bank order
610
+ * @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof BankOrdersApi
614
+ */
615
+ BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
616
+ var _this = this;
617
+ return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
618
+ };
619
+ return BankOrdersApi;
620
+ }(base_1.BaseAPI));
621
+ exports.BankOrdersApi = BankOrdersApi;