@emilgroup/payment-sdk 1.22.1-beta.68 → 1.22.1-beta.71

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 (92) hide show
  1. package/.openapi-generator/FILES +2 -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 +24 -12
  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 +117 -4
  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 +32 -22
  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/configuration.ts +20 -0
  22. package/dist/api/bank-accounts-api.js +36 -22
  23. package/dist/api/bank-orders-api.js +29 -18
  24. package/dist/api/bank-transaction-api.js +36 -22
  25. package/dist/api/billing-addresses-api.js +32 -19
  26. package/dist/api/credit-allocation-api.js +18 -11
  27. package/dist/api/exceeding-credits-api.d.ts +57 -0
  28. package/dist/api/exceeding-credits-api.js +107 -7
  29. package/dist/api/ibanvalidator-api.js +7 -4
  30. package/dist/api/payment-methods-api.js +18 -11
  31. package/dist/api/payment-receipts-api.js +29 -18
  32. package/dist/api/payment-reminders-api.js +25 -15
  33. package/dist/api/payment-requests-api.d.ts +12 -12
  34. package/dist/api/payment-requests-api.js +38 -27
  35. package/dist/api/payment-setup-api.js +14 -8
  36. package/dist/api/payments-api.js +28 -18
  37. package/dist/api/payout-methods-api.js +36 -22
  38. package/dist/api/policy-payment-methods-api.js +18 -11
  39. package/dist/api/refunds-api.js +15 -10
  40. package/dist/api/tenant-bank-account-api.js +29 -18
  41. package/dist/base.d.ts +24 -0
  42. package/dist/base.js +178 -59
  43. package/dist/configuration.d.ts +17 -0
  44. package/dist/configuration.js +2 -0
  45. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  46. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  47. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  48. package/dist/models/create-exceeding-credit-response-class.js +15 -0
  49. package/dist/models/create-payment-order-dto.d.ts +1 -1
  50. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +1 -1
  52. package/dist/models/create-payment-request-request-dto.d.ts +6 -0
  53. package/dist/models/credit-allocation-class.d.ts +6 -0
  54. package/dist/models/credit-allocation-entity.d.ts +6 -0
  55. package/dist/models/index.d.ts +2 -0
  56. package/dist/models/index.js +2 -0
  57. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  58. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  59. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  60. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  61. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  62. package/dist/models/list-refunds-response-class.d.ts +6 -18
  63. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  64. package/dist/models/payment-class.d.ts +2 -2
  65. package/dist/models/payment-entity.d.ts +1 -1
  66. package/dist/models/payment-receipt-class.d.ts +1 -1
  67. package/dist/models/payment-request-class.d.ts +12 -6
  68. package/dist/models/shared-transaction-class.d.ts +6 -0
  69. package/dist/models/transaction-entity.d.ts +6 -0
  70. package/models/create-exceeding-credit-request-dto.ts +54 -0
  71. package/models/create-exceeding-credit-response-class.ts +31 -0
  72. package/models/create-payment-order-dto.ts +1 -1
  73. package/models/create-payment-receipt-request-dto.ts +1 -1
  74. package/models/create-payment-request-dto.ts +1 -1
  75. package/models/create-payment-request-request-dto.ts +6 -0
  76. package/models/credit-allocation-class.ts +6 -0
  77. package/models/credit-allocation-entity.ts +6 -0
  78. package/models/index.ts +2 -0
  79. package/models/list-billing-addresses-response-class.ts +9 -9
  80. package/models/list-exceeding-credits-response-class.ts +6 -18
  81. package/models/list-payment-receipts-response-class.ts +9 -9
  82. package/models/list-payment-requests-response-class.ts +6 -18
  83. package/models/list-payout-methods-response-class.ts +9 -9
  84. package/models/list-refunds-response-class.ts +6 -18
  85. package/models/payment-class-without-expand-properties.ts +2 -2
  86. package/models/payment-class.ts +2 -2
  87. package/models/payment-entity.ts +1 -1
  88. package/models/payment-receipt-class.ts +1 -1
  89. package/models/payment-request-class.ts +12 -6
  90. package/models/shared-transaction-class.ts +6 -0
  91. package/models/transaction-entity.ts +6 -0
  92. package/package.json +1 -1
@@ -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);
@@ -103,7 +103,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
103
103
  generateInvoiceMatchSuggestion: function (code, 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:
@@ -121,13 +121,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
121
121
  localVarQueryParameter = {};
122
122
  // authentication bearer required
123
123
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token; an empty value is never sent.
126
+ ];
125
127
  case 1:
126
128
  // authentication bearer required
127
129
  // http bearer authentication required
128
130
  _a.sent();
129
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
132
+ if (authorizationValue) {
133
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
134
  }
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -152,7 +155,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
152
155
  getBankTransaction: function (code, authorization, expand, 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:
@@ -178,8 +181,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
178
181
  if (expand !== undefined) {
179
182
  localVarQueryParameter['expand'] = expand;
180
183
  }
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
185
+ if (authorizationValue) {
186
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
187
  }
184
188
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
189
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -203,7 +207,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
203
207
  importBankTransactions: function (file, authorization, options) {
204
208
  if (options === void 0) { options = {}; }
205
209
  return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
207
211
  return __generator(this, function (_a) {
208
212
  switch (_a.label) {
209
213
  case 0:
@@ -221,13 +225,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
221
225
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
222
226
  // authentication bearer required
223
227
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
228
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
229
+ // Only Authorization falls back to the configured token; an empty value is never sent.
230
+ ];
225
231
  case 1:
226
232
  // authentication bearer required
227
233
  // http bearer authentication required
228
234
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
236
+ if (authorizationValue) {
237
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
238
  }
232
239
  if (file !== undefined) {
233
240
  localVarFormParams.append('file', file);
@@ -256,7 +263,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
256
263
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
257
264
  if (options === void 0) { options = {}; }
258
265
  return __awaiter(_this, void 0, void 0, function () {
259
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
260
267
  return __generator(this, function (_a) {
261
268
  switch (_a.label) {
262
269
  case 0:
@@ -276,13 +283,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
276
283
  localVarQueryParameter = {};
277
284
  // authentication bearer required
278
285
  // http bearer authentication required
279
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
286
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
287
+ // Only Authorization falls back to the configured token; an empty value is never sent.
288
+ ];
280
289
  case 1:
281
290
  // authentication bearer required
282
291
  // http bearer authentication required
283
292
  _a.sent();
284
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
294
+ if (authorizationValue) {
295
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
286
296
  }
287
297
  localVarHeaderParameter['Content-Type'] = 'application/json';
288
298
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -314,7 +324,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
314
324
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
315
325
  if (options === void 0) { options = {}; }
316
326
  return __awaiter(_this, void 0, void 0, function () {
317
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
327
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
318
328
  return __generator(this, function (_a) {
319
329
  switch (_a.label) {
320
330
  case 0:
@@ -355,8 +365,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
355
365
  if (filters !== undefined) {
356
366
  localVarQueryParameter['filters'] = filters;
357
367
  }
358
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
368
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
369
+ if (authorizationValue) {
370
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
360
371
  }
361
372
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
373
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -380,7 +391,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
380
391
  unlinkBankTransaction: function (code, authorization, options) {
381
392
  if (options === void 0) { options = {}; }
382
393
  return __awaiter(_this, void 0, void 0, function () {
383
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
394
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
384
395
  return __generator(this, function (_a) {
385
396
  switch (_a.label) {
386
397
  case 0:
@@ -398,13 +409,16 @@ var BankTransactionApiAxiosParamCreator = 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
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
410
424
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -103,7 +103,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
103
103
  createBillingAddress: function (createBillingAddressRequestDto, 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 BillingAddressesApiAxiosParamCreator = 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 BillingAddressesApiAxiosParamCreator = function (configuration) {
152
155
  deleteBillingAddress: 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 BillingAddressesApiAxiosParamCreator = 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 : {};
@@ -200,7 +206,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
200
206
  getBillingAddress: function (code, authorization, options) {
201
207
  if (options === void 0) { options = {}; }
202
208
  return __awaiter(_this, void 0, void 0, function () {
203
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
210
  return __generator(this, function (_a) {
205
211
  switch (_a.label) {
206
212
  case 0:
@@ -218,13 +224,16 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
218
224
  localVarQueryParameter = {};
219
225
  // authentication bearer required
220
226
  // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
227
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
228
+ // Only Authorization falls back to the configured token; an empty value is never sent.
229
+ ];
222
230
  case 1:
223
231
  // authentication bearer required
224
232
  // http bearer authentication required
225
233
  _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
235
+ if (authorizationValue) {
236
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
228
237
  }
229
238
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
239
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -254,7 +263,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
254
263
  listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
255
264
  if (options === void 0) { options = {}; }
256
265
  return __awaiter(_this, void 0, void 0, function () {
257
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
266
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
258
267
  return __generator(this, function (_a) {
259
268
  switch (_a.label) {
260
269
  case 0:
@@ -295,8 +304,9 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
295
304
  if (filters !== undefined) {
296
305
  localVarQueryParameter['filters'] = filters;
297
306
  }
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
307
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
+ if (authorizationValue) {
309
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
300
310
  }
301
311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -321,7 +331,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
321
331
  updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
322
332
  if (options === void 0) { options = {}; }
323
333
  return __awaiter(_this, void 0, void 0, function () {
324
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
325
335
  return __generator(this, function (_a) {
326
336
  switch (_a.label) {
327
337
  case 0:
@@ -341,13 +351,16 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
341
351
  localVarQueryParameter = {};
342
352
  // authentication bearer required
343
353
  // http bearer authentication required
344
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
354
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
355
+ // Only Authorization falls back to the configured token; an empty value is never sent.
356
+ ];
345
357
  case 1:
346
358
  // authentication bearer required
347
359
  // http bearer authentication required
348
360
  _a.sent();
349
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
361
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
362
+ if (authorizationValue) {
363
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
351
364
  }
352
365
  localVarHeaderParameter['Content-Type'] = 'application/json';
353
366
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -103,7 +103,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
103
103
  createAllocateCredit: function (createCreditAllocationRequestDto, 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 CreditAllocationApiAxiosParamCreator = 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 CreditAllocationApiAxiosParamCreator = function (configuration) {
152
155
  getCreditAllocation: 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 CreditAllocationApiAxiosParamCreator = 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 : {};
@@ -206,7 +212,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
206
212
  listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
207
213
  if (options === void 0) { options = {}; }
208
214
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
210
216
  return __generator(this, function (_a) {
211
217
  switch (_a.label) {
212
218
  case 0:
@@ -247,8 +253,9 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
247
253
  if (filters !== undefined) {
248
254
  localVarQueryParameter['filters'] = filters;
249
255
  }
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
257
+ if (authorizationValue) {
258
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
259
  }
253
260
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
261
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateExceedingCreditRequestDto } from '../models';
16
+ import { CreateExceedingCreditResponseClass } from '../models';
15
17
  import { GetExceedingCreditResponseClass } from '../models';
16
18
  import { ListExceedingCreditsResponseClass } from '../models';
17
19
  /**
@@ -19,6 +21,15 @@ import { ListExceedingCreditsResponseClass } from '../models';
19
21
  * @export
20
22
  */
21
23
  export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
26
+ * @summary Create the exceeding credit
27
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
28
+ * @param {string} [authorization] Bearer Token
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ createExceedingCredit: (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
22
33
  /**
23
34
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
24
35
  * @summary Retrieve the exceeding credit
@@ -49,6 +60,15 @@ export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Conf
49
60
  * @export
50
61
  */
51
62
  export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
63
+ /**
64
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
65
+ * @summary Create the exceeding credit
66
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
67
+ * @param {string} [authorization] Bearer Token
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>>;
52
72
  /**
53
73
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
54
74
  * @summary Retrieve the exceeding credit
@@ -79,6 +99,15 @@ export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
79
99
  * @export
80
100
  */
81
101
  export declare const ExceedingCreditsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
102
+ /**
103
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
104
+ * @summary Create the exceeding credit
105
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
106
+ * @param {string} [authorization] Bearer Token
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass>;
82
111
  /**
83
112
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
84
113
  * @summary Retrieve the exceeding credit
@@ -104,6 +133,25 @@ export declare const ExceedingCreditsApiFactory: (configuration?: Configuration,
104
133
  */
105
134
  listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass>;
106
135
  };
136
+ /**
137
+ * Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
138
+ * @export
139
+ * @interface ExceedingCreditsApiCreateExceedingCreditRequest
140
+ */
141
+ export interface ExceedingCreditsApiCreateExceedingCreditRequest {
142
+ /**
143
+ *
144
+ * @type {CreateExceedingCreditRequestDto}
145
+ * @memberof ExceedingCreditsApiCreateExceedingCredit
146
+ */
147
+ readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto;
148
+ /**
149
+ * Bearer Token
150
+ * @type {string}
151
+ * @memberof ExceedingCreditsApiCreateExceedingCredit
152
+ */
153
+ readonly authorization?: string;
154
+ }
107
155
  /**
108
156
  * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
109
157
  * @export
@@ -185,6 +233,15 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
185
233
  * @extends {BaseAPI}
186
234
  */
187
235
  export declare class ExceedingCreditsApi extends BaseAPI {
236
+ /**
237
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
238
+ * @summary Create the exceeding credit
239
+ * @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ * @memberof ExceedingCreditsApi
243
+ */
244
+ createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateExceedingCreditResponseClass, any, {}>>;
188
245
  /**
189
246
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
190
247
  * @summary Retrieve the exceeding credit