@emilgroup/payment-sdk 1.22.1-beta.74 → 1.22.1-beta.76

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 (93) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +24 -12
  4. package/api/bank-orders-api.ts +20 -10
  5. package/api/bank-transaction-api.ts +154 -20
  6. package/api/billing-addresses-api.ts +20 -10
  7. package/api/credit-allocation-api.ts +12 -6
  8. package/api/exceeding-credits-api.ts +12 -6
  9. package/api/ibanvalidator-api.ts +4 -2
  10. package/api/payment-methods-api.ts +12 -6
  11. package/api/payment-receipts-api.ts +20 -10
  12. package/api/payment-reminders-api.ts +16 -8
  13. package/api/payment-requests-api.ts +20 -10
  14. package/api/payment-setup-api.ts +8 -4
  15. package/api/payments-api.ts +24 -12
  16. package/api/payout-methods-api.ts +24 -12
  17. package/api/policy-payment-methods-api.ts +12 -6
  18. package/api/refunds-api.ts +12 -6
  19. package/api/tenant-bank-account-api.ts +20 -10
  20. package/base.ts +174 -41
  21. package/common.ts +3 -2
  22. package/configuration.ts +20 -0
  23. package/dist/api/bank-accounts-api.d.ts +6 -6
  24. package/dist/api/bank-accounts-api.js +36 -22
  25. package/dist/api/bank-orders-api.d.ts +5 -5
  26. package/dist/api/bank-orders-api.js +29 -18
  27. package/dist/api/bank-transaction-api.d.ts +80 -14
  28. package/dist/api/bank-transaction-api.js +144 -28
  29. package/dist/api/billing-addresses-api.d.ts +5 -5
  30. package/dist/api/billing-addresses-api.js +32 -19
  31. package/dist/api/credit-allocation-api.d.ts +3 -3
  32. package/dist/api/credit-allocation-api.js +18 -11
  33. package/dist/api/exceeding-credits-api.d.ts +3 -3
  34. package/dist/api/exceeding-credits-api.js +18 -11
  35. package/dist/api/health-check-api.d.ts +1 -1
  36. package/dist/api/ibanvalidator-api.d.ts +1 -1
  37. package/dist/api/ibanvalidator-api.js +7 -4
  38. package/dist/api/payment-methods-api.d.ts +3 -3
  39. package/dist/api/payment-methods-api.js +18 -11
  40. package/dist/api/payment-receipts-api.d.ts +5 -5
  41. package/dist/api/payment-receipts-api.js +29 -18
  42. package/dist/api/payment-reminders-api.d.ts +4 -4
  43. package/dist/api/payment-reminders-api.js +25 -15
  44. package/dist/api/payment-requests-api.d.ts +5 -5
  45. package/dist/api/payment-requests-api.js +29 -18
  46. package/dist/api/payment-setup-api.d.ts +2 -2
  47. package/dist/api/payment-setup-api.js +14 -8
  48. package/dist/api/payments-api.d.ts +4 -4
  49. package/dist/api/payments-api.js +28 -18
  50. package/dist/api/payout-methods-api.d.ts +6 -6
  51. package/dist/api/payout-methods-api.js +36 -22
  52. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  53. package/dist/api/policy-payment-methods-api.js +18 -11
  54. package/dist/api/refunds-api.d.ts +3 -3
  55. package/dist/api/refunds-api.js +15 -10
  56. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  57. package/dist/api/tenant-bank-account-api.js +29 -18
  58. package/dist/api/webhooks-api.d.ts +2 -2
  59. package/dist/base.d.ts +24 -0
  60. package/dist/base.js +178 -59
  61. package/dist/common.d.ts +1 -1
  62. package/dist/common.js +1 -0
  63. package/dist/configuration.d.ts +17 -0
  64. package/dist/configuration.js +2 -0
  65. package/dist/models/bank-transaction-class.d.ts +7 -0
  66. package/dist/models/bank-transaction-entity.d.ts +7 -0
  67. package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
  68. package/dist/models/exceeding-credit-entity.d.ts +6 -0
  69. package/dist/models/index.d.ts +4 -0
  70. package/dist/models/index.js +4 -0
  71. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  72. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  73. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  74. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  75. package/dist/models/payment-receipt-class.d.ts +12 -0
  76. package/dist/models/payment-receipt-entity.d.ts +139 -0
  77. package/dist/models/payment-receipt-entity.js +20 -0
  78. package/dist/models/payment-request-class.d.ts +1 -0
  79. package/dist/models/payment-request-class.js +1 -0
  80. package/dist/models/payment-request-entity.d.ts +223 -0
  81. package/dist/models/payment-request-entity.js +39 -0
  82. package/models/bank-transaction-class.ts +7 -0
  83. package/models/bank-transaction-entity.ts +7 -0
  84. package/models/bank-transaction-invoice-entity.ts +24 -0
  85. package/models/exceeding-credit-entity.ts +6 -0
  86. package/models/index.ts +4 -0
  87. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  88. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  89. package/models/payment-receipt-class.ts +12 -0
  90. package/models/payment-receipt-entity.ts +148 -0
  91. package/models/payment-request-class.ts +1 -0
  92. package/models/payment-request-entity.ts +233 -0
  93. package/package.json +2 -2
@@ -103,7 +103,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createBankAccount: function (createBankAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
152
155
  deleteBankAccount: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,7 +207,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
201
207
  getBankAccount: function (code, authorization, expand, options) {
202
208
  if (options === void 0) { options = {}; }
203
209
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
205
211
  return __generator(this, function (_a) {
206
212
  switch (_a.label) {
207
213
  case 0:
@@ -227,8 +233,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
227
233
  if (expand !== undefined) {
228
234
  localVarQueryParameter['expand'] = expand;
229
235
  }
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
+ if (authorizationValue) {
238
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
239
  }
233
240
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
241
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -258,7 +265,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
258
265
  listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
266
  if (options === void 0) { options = {}; }
260
267
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
269
  return __generator(this, function (_a) {
263
270
  switch (_a.label) {
264
271
  case 0:
@@ -299,8 +306,9 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
299
306
  if (filters !== undefined) {
300
307
  localVarQueryParameter['filters'] = filters;
301
308
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
+ if (authorizationValue) {
311
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
312
  }
305
313
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
314
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -325,7 +333,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
325
333
  setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
326
334
  if (options === void 0) { options = {}; }
327
335
  return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
329
337
  return __generator(this, function (_a) {
330
338
  switch (_a.label) {
331
339
  case 0:
@@ -345,13 +353,16 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
345
353
  localVarQueryParameter = {};
346
354
  // authentication bearer required
347
355
  // http bearer authentication required
348
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
356
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
+ // Only Authorization falls back to the configured token; an empty value is never sent.
358
+ ];
349
359
  case 1:
350
360
  // authentication bearer required
351
361
  // http bearer authentication required
352
362
  _a.sent();
353
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
363
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
+ if (authorizationValue) {
365
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
355
366
  }
356
367
  localVarHeaderParameter['Content-Type'] = 'application/json';
357
368
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -378,7 +389,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
378
389
  updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
379
390
  if (options === void 0) { options = {}; }
380
391
  return __awaiter(_this, void 0, void 0, function () {
381
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
392
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
382
393
  return __generator(this, function (_a) {
383
394
  switch (_a.label) {
384
395
  case 0:
@@ -398,13 +409,16 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
398
409
  localVarQueryParameter = {};
399
410
  // authentication bearer required
400
411
  // http bearer authentication required
401
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
412
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
413
+ // Only Authorization falls back to the configured token; an empty value is never sent.
414
+ ];
402
415
  case 1:
403
416
  // authentication bearer required
404
417
  // http bearer authentication required
405
418
  _a.sent();
406
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
419
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
420
+ if (authorizationValue) {
421
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
408
422
  }
409
423
  localVarHeaderParameter['Content-Type'] = 'application/json';
410
424
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -353,7 +353,7 @@ export declare class BankOrdersApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof BankOrdersApi
355
355
  */
356
- createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}>>;
356
+ createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}, any>>;
357
357
  /**
358
358
  * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
359
359
  * @summary Delete the bank order
@@ -362,7 +362,7 @@ export declare class BankOrdersApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof BankOrdersApi
364
364
  */
365
- deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
365
+ deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
366
366
  /**
367
367
  * 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\"
368
368
  * @summary Retrieve the bank order
@@ -371,7 +371,7 @@ export declare class BankOrdersApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof BankOrdersApi
373
373
  */
374
- getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}>>;
374
+ getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}, any>>;
375
375
  /**
376
376
  * 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\"
377
377
  * @summary List bank orders
@@ -380,7 +380,7 @@ export declare class BankOrdersApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof BankOrdersApi
382
382
  */
383
- listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}>>;
383
+ listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}, any>>;
384
384
  /**
385
385
  * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
386
386
  * @summary Update the bank order
@@ -389,5 +389,5 @@ export declare class BankOrdersApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof BankOrdersApi
391
391
  */
392
- updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}>>;
392
+ updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}, any>>;
393
393
  }
@@ -103,7 +103,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
103
103
  createBankOrder: function (createBankOrderRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
152
155
  deleteBankOrder: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,7 +207,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
201
207
  getBankOrder: function (code, authorization, expand, options) {
202
208
  if (options === void 0) { options = {}; }
203
209
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
205
211
  return __generator(this, function (_a) {
206
212
  switch (_a.label) {
207
213
  case 0:
@@ -227,8 +233,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
227
233
  if (expand !== undefined) {
228
234
  localVarQueryParameter['expand'] = expand;
229
235
  }
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
236
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
+ if (authorizationValue) {
238
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
239
  }
233
240
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
241
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -258,7 +265,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
258
265
  listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
259
266
  if (options === void 0) { options = {}; }
260
267
  return __awaiter(_this, void 0, void 0, function () {
261
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
262
269
  return __generator(this, function (_a) {
263
270
  switch (_a.label) {
264
271
  case 0:
@@ -299,8 +306,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
299
306
  if (filters !== undefined) {
300
307
  localVarQueryParameter['filters'] = filters;
301
308
  }
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
309
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
+ if (authorizationValue) {
311
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
312
  }
305
313
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
314
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -325,7 +333,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
325
333
  updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
326
334
  if (options === void 0) { options = {}; }
327
335
  return __awaiter(_this, void 0, void 0, function () {
328
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
336
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
329
337
  return __generator(this, function (_a) {
330
338
  switch (_a.label) {
331
339
  case 0:
@@ -345,13 +353,16 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
345
353
  localVarQueryParameter = {};
346
354
  // authentication bearer required
347
355
  // http bearer authentication required
348
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
356
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
+ // Only Authorization falls back to the configured token; an empty value is never sent.
358
+ ];
349
359
  case 1:
350
360
  // authentication bearer required
351
361
  // http bearer authentication required
352
362
  _a.sent();
353
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
363
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
+ if (authorizationValue) {
365
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
355
366
  }
356
367
  localVarHeaderParameter['Content-Type'] = 'application/json';
357
368
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -15,6 +15,8 @@ import { RequestArgs, BaseAPI } from '../base';
15
15
  import { GenerateInvoiceMatchSuggestionsResponseClass } from '../models';
16
16
  import { GetBankTransactionsResponseClass } from '../models';
17
17
  import { ImportBankTransactionsResponseClass } from '../models';
18
+ import { LinkBankTransactionPaymentRequestsRequestDtoRest } from '../models';
19
+ import { LinkBankTransactionPaymentRequestsResponseClass } from '../models';
18
20
  import { LinkBankTransactionRequestDtoRest } from '../models';
19
21
  import { LinkBankTransactionsResponseClass } from '../models';
20
22
  import { ListBankTransactionsResponseClass } from '../models';
@@ -38,7 +40,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
38
40
  * @summary Retrieve the bank transaction
39
41
  * @param {string} code
40
42
  * @param {string} [authorization] Bearer Token
41
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
43
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
42
44
  * @param {*} [options] Override http request option.
43
45
  * @throws {RequiredError}
44
46
  */
@@ -62,6 +64,16 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
62
64
  * @throws {RequiredError}
63
65
  */
64
66
  linkBankTransaction: (code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
+ /**
68
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
69
+ * @summary Link bank transaction to payment requests
70
+ * @param {string} code Code of the outgoing bank transaction to link
71
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
72
+ * @param {string} [authorization] Bearer Token
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ linkBankTransactionPaymentRequests: (code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
77
  /**
66
78
  * Returns a list of bank transactions you have previously created. The bank transactions 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\"
67
79
  * @summary List bank transactions
@@ -71,7 +83,7 @@ export declare const BankTransactionApiAxiosParamCreator: (configuration?: Confi
71
83
  * @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
72
84
  * @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: id, createdAt, amount&lt;/i&gt;
73
85
  * @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, createdAt, transactionDate, entryDate&lt;/i&gt;
74
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
86
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
75
87
  * @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
76
88
  * @param {*} [options] Override http request option.
77
89
  * @throws {RequiredError}
@@ -106,7 +118,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
106
118
  * @summary Retrieve the bank transaction
107
119
  * @param {string} code
108
120
  * @param {string} [authorization] Bearer Token
109
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
121
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
110
122
  * @param {*} [options] Override http request option.
111
123
  * @throws {RequiredError}
112
124
  */
@@ -130,6 +142,16 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
130
142
  * @throws {RequiredError}
131
143
  */
132
144
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>>;
145
+ /**
146
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
147
+ * @summary Link bank transaction to payment requests
148
+ * @param {string} code Code of the outgoing bank transaction to link
149
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>>;
133
155
  /**
134
156
  * Returns a list of bank transactions you have previously created. The bank transactions 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\"
135
157
  * @summary List bank transactions
@@ -139,7 +161,7 @@ export declare const BankTransactionApiFp: (configuration?: Configuration) => {
139
161
  * @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
140
162
  * @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: id, createdAt, amount&lt;/i&gt;
141
163
  * @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, createdAt, transactionDate, entryDate&lt;/i&gt;
142
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
164
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
143
165
  * @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
144
166
  * @param {*} [options] Override http request option.
145
167
  * @throws {RequiredError}
@@ -174,7 +196,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
174
196
  * @summary Retrieve the bank transaction
175
197
  * @param {string} code
176
198
  * @param {string} [authorization] Bearer Token
177
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
199
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
178
200
  * @param {*} [options] Override http request option.
179
201
  * @throws {RequiredError}
180
202
  */
@@ -198,6 +220,16 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
198
220
  * @throws {RequiredError}
199
221
  */
200
222
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass>;
223
+ /**
224
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
225
+ * @summary Link bank transaction to payment requests
226
+ * @param {string} code Code of the outgoing bank transaction to link
227
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
228
+ * @param {string} [authorization] Bearer Token
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ */
232
+ linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>;
201
233
  /**
202
234
  * Returns a list of bank transactions you have previously created. The bank transactions 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\"
203
235
  * @summary List bank transactions
@@ -207,7 +239,7 @@ export declare const BankTransactionApiFactory: (configuration?: Configuration,
207
239
  * @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
208
240
  * @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: id, createdAt, amount&lt;/i&gt;
209
241
  * @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, createdAt, transactionDate, entryDate&lt;/i&gt;
210
- * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
242
+ * @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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
211
243
  * @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
212
244
  * @param {*} [options] Override http request option.
213
245
  * @throws {RequiredError}
@@ -261,7 +293,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
261
293
  */
262
294
  readonly authorization?: string;
263
295
  /**
264
- * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
296
+ * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
265
297
  * @type {string}
266
298
  * @memberof BankTransactionApiGetBankTransaction
267
299
  */
@@ -311,6 +343,31 @@ export interface BankTransactionApiLinkBankTransactionRequest {
311
343
  */
312
344
  readonly authorization?: string;
313
345
  }
346
+ /**
347
+ * Request parameters for linkBankTransactionPaymentRequests operation in BankTransactionApi.
348
+ * @export
349
+ * @interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest
350
+ */
351
+ export interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest {
352
+ /**
353
+ * Code of the outgoing bank transaction to link
354
+ * @type {string}
355
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
356
+ */
357
+ readonly code: string;
358
+ /**
359
+ *
360
+ * @type {LinkBankTransactionPaymentRequestsRequestDtoRest}
361
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
362
+ */
363
+ readonly linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest;
364
+ /**
365
+ * Bearer Token
366
+ * @type {string}
367
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
368
+ */
369
+ readonly authorization?: string;
370
+ }
314
371
  /**
315
372
  * Request parameters for listBankTransactions operation in BankTransactionApi.
316
373
  * @export
@@ -354,7 +411,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
354
411
  */
355
412
  readonly order?: string;
356
413
  /**
357
- * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
414
+ * 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, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
358
415
  * @type {string}
359
416
  * @memberof BankTransactionApiListBankTransactions
360
417
  */
@@ -400,7 +457,7 @@ export declare class BankTransactionApi extends BaseAPI {
400
457
  * @throws {RequiredError}
401
458
  * @memberof BankTransactionApi
402
459
  */
403
- generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}>>;
460
+ generateInvoiceMatchSuggestion(requestParameters: BankTransactionApiGenerateInvoiceMatchSuggestionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GenerateInvoiceMatchSuggestionsResponseClass, any, {}, any>>;
404
461
  /**
405
462
  * Retrieves the details of the bank transaction that was previously created. Supply the unique bank transaction code that was returned when you created it and Emil Api will return the corresponding bank transaction information. **Required Permissions** \"payment-management.bank-accounts.view\"
406
463
  * @summary Retrieve the bank transaction
@@ -409,7 +466,7 @@ export declare class BankTransactionApi extends BaseAPI {
409
466
  * @throws {RequiredError}
410
467
  * @memberof BankTransactionApi
411
468
  */
412
- getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}>>;
469
+ getBankTransaction(requestParameters: BankTransactionApiGetBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankTransactionsResponseClass, any, {}, any>>;
413
470
  /**
414
471
  * This will import bank transactions from a MT940/CAMT.053 file **Required Permissions** \"payment-management.bank-accounts.view\"
415
472
  * @summary Create the bank transactions
@@ -418,7 +475,7 @@ export declare class BankTransactionApi extends BaseAPI {
418
475
  * @throws {RequiredError}
419
476
  * @memberof BankTransactionApi
420
477
  */
421
- importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}>>;
478
+ importBankTransactions(requestParameters: BankTransactionApiImportBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportBankTransactionsResponseClass, any, {}, any>>;
422
479
  /**
423
480
  * Links a bank transaction with an invoice **Required Permissions** \"payment-management.bank-accounts.create\"
424
481
  * @summary Link bank transaction
@@ -427,7 +484,16 @@ export declare class BankTransactionApi extends BaseAPI {
427
484
  * @throws {RequiredError}
428
485
  * @memberof BankTransactionApi
429
486
  */
430
- linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}>>;
487
+ linkBankTransaction(requestParameters: BankTransactionApiLinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionsResponseClass, any, {}, any>>;
488
+ /**
489
+ * Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
490
+ * @summary Link bank transaction to payment requests
491
+ * @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof BankTransactionApi
495
+ */
496
+ linkBankTransactionPaymentRequests(requestParameters: BankTransactionApiLinkBankTransactionPaymentRequestsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LinkBankTransactionPaymentRequestsResponseClass, any, {}, any>>;
431
497
  /**
432
498
  * Returns a list of bank transactions you have previously created. The bank transactions 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\"
433
499
  * @summary List bank transactions
@@ -436,7 +502,7 @@ export declare class BankTransactionApi extends BaseAPI {
436
502
  * @throws {RequiredError}
437
503
  * @memberof BankTransactionApi
438
504
  */
439
- listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}>>;
505
+ listBankTransactions(requestParameters?: BankTransactionApiListBankTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankTransactionsResponseClass, any, {}, any>>;
440
506
  /**
441
507
  * Unlinks an already linked bank transaction **Required Permissions** \"payment-management.bank-accounts.update\"
442
508
  * @summary Unlink bank transaction
@@ -445,5 +511,5 @@ export declare class BankTransactionApi extends BaseAPI {
445
511
  * @throws {RequiredError}
446
512
  * @memberof BankTransactionApi
447
513
  */
448
- unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}>>;
514
+ unlinkBankTransaction(requestParameters: BankTransactionApiUnlinkBankTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UnlinkBankTransactionsResponseClass, any, {}, any>>;
449
515
  }