@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 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 : {};
@@ -145,14 +148,14 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
145
148
  * @summary Retrieve the bank transaction
146
149
  * @param {string} code
147
150
  * @param {string} [authorization] Bearer Token
148
- * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
151
+ * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
149
152
  * @param {*} [options] Override http request option.
150
153
  * @throws {RequiredError}
151
154
  */
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);
@@ -297,6 +307,62 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
297
307
  });
298
308
  });
299
309
  },
310
+ /**
311
+ * 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\"
312
+ * @summary Link bank transaction to payment requests
313
+ * @param {string} code Code of the outgoing bank transaction to link
314
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
315
+ * @param {string} [authorization] Bearer Token
316
+ * @param {*} [options] Override http request option.
317
+ * @throws {RequiredError}
318
+ */
319
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
320
+ if (options === void 0) { options = {}; }
321
+ return __awaiter(_this, void 0, void 0, function () {
322
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
323
+ return __generator(this, function (_a) {
324
+ switch (_a.label) {
325
+ case 0:
326
+ // verify required parameter 'code' is not null or undefined
327
+ (0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'code', code);
328
+ // verify required parameter 'linkBankTransactionPaymentRequestsRequestDtoRest' is not null or undefined
329
+ (0, common_1.assertParamExists)('linkBankTransactionPaymentRequests', 'linkBankTransactionPaymentRequestsRequestDtoRest', linkBankTransactionPaymentRequestsRequestDtoRest);
330
+ localVarPath = "/paymentservice/v1/tenant/bank-transactions/{code}/link-payment-requests"
331
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
332
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
333
+ if (configuration) {
334
+ baseOptions = configuration.baseOptions;
335
+ baseAccessToken = configuration.accessToken;
336
+ }
337
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
338
+ localVarHeaderParameter = {};
339
+ localVarQueryParameter = {};
340
+ // authentication bearer required
341
+ // http bearer authentication required
342
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
343
+ // Only Authorization falls back to the configured token; an empty value is never sent.
344
+ ];
345
+ case 1:
346
+ // authentication bearer required
347
+ // http bearer authentication required
348
+ _a.sent();
349
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
350
+ if (authorizationValue) {
351
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
352
+ }
353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
354
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
355
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
356
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
357
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(linkBankTransactionPaymentRequestsRequestDtoRest, localVarRequestOptions, configuration);
358
+ return [2 /*return*/, {
359
+ url: (0, common_1.toPathString)(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ }];
362
+ }
363
+ });
364
+ });
365
+ },
300
366
  /**
301
367
  * 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\"
302
368
  * @summary List bank transactions
@@ -306,7 +372,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
306
372
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
307
373
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
308
374
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
309
- * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
375
+ * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
310
376
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
311
377
  * @param {*} [options] Override http request option.
312
378
  * @throws {RequiredError}
@@ -314,7 +380,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
314
380
  listBankTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
315
381
  if (options === void 0) { options = {}; }
316
382
  return __awaiter(_this, void 0, void 0, function () {
317
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
383
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
318
384
  return __generator(this, function (_a) {
319
385
  switch (_a.label) {
320
386
  case 0:
@@ -355,8 +421,9 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
355
421
  if (filters !== undefined) {
356
422
  localVarQueryParameter['filters'] = filters;
357
423
  }
358
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
424
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
425
+ if (authorizationValue) {
426
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
360
427
  }
361
428
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
429
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -380,7 +447,7 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
380
447
  unlinkBankTransaction: function (code, authorization, options) {
381
448
  if (options === void 0) { options = {}; }
382
449
  return __awaiter(_this, void 0, void 0, function () {
383
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
450
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
384
451
  return __generator(this, function (_a) {
385
452
  switch (_a.label) {
386
453
  case 0:
@@ -398,13 +465,16 @@ var BankTransactionApiAxiosParamCreator = function (configuration) {
398
465
  localVarQueryParameter = {};
399
466
  // authentication bearer required
400
467
  // http bearer authentication required
401
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
468
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
469
+ // Only Authorization falls back to the configured token; an empty value is never sent.
470
+ ];
402
471
  case 1:
403
472
  // authentication bearer required
404
473
  // http bearer authentication required
405
474
  _a.sent();
406
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
475
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
476
+ if (authorizationValue) {
477
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
408
478
  }
409
479
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
410
480
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -453,7 +523,7 @@ var BankTransactionApiFp = function (configuration) {
453
523
  * @summary Retrieve the bank transaction
454
524
  * @param {string} code
455
525
  * @param {string} [authorization] Bearer Token
456
- * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
526
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
457
527
  * @param {*} [options] Override http request option.
458
528
  * @throws {RequiredError}
459
529
  */
@@ -513,6 +583,28 @@ var BankTransactionApiFp = function (configuration) {
513
583
  });
514
584
  });
515
585
  },
586
+ /**
587
+ * 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\"
588
+ * @summary Link bank transaction to payment requests
589
+ * @param {string} code Code of the outgoing bank transaction to link
590
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
591
+ * @param {string} [authorization] Bearer Token
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
596
+ return __awaiter(this, void 0, void 0, function () {
597
+ var localVarAxiosArgs;
598
+ return __generator(this, function (_a) {
599
+ switch (_a.label) {
600
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options)];
601
+ case 1:
602
+ localVarAxiosArgs = _a.sent();
603
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
604
+ }
605
+ });
606
+ });
607
+ },
516
608
  /**
517
609
  * 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\"
518
610
  * @summary List bank transactions
@@ -522,7 +614,7 @@ var BankTransactionApiFp = function (configuration) {
522
614
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
523
615
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
524
616
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
525
- * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
617
+ * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
526
618
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
527
619
  * @param {*} [options] Override http request option.
528
620
  * @throws {RequiredError}
@@ -587,7 +679,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
587
679
  * @summary Retrieve the bank transaction
588
680
  * @param {string} code
589
681
  * @param {string} [authorization] Bearer Token
590
- * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
682
+ * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
591
683
  * @param {*} [options] Override http request option.
592
684
  * @throws {RequiredError}
593
685
  */
@@ -617,6 +709,18 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
617
709
  linkBankTransaction: function (code, linkBankTransactionRequestDtoRest, authorization, options) {
618
710
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
619
711
  },
712
+ /**
713
+ * 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\"
714
+ * @summary Link bank transaction to payment requests
715
+ * @param {string} code Code of the outgoing bank transaction to link
716
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
717
+ * @param {string} [authorization] Bearer Token
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ linkBankTransactionPaymentRequests: function (code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options) {
722
+ return localVarFp.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
723
+ },
620
724
  /**
621
725
  * 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\"
622
726
  * @summary List bank transactions
@@ -626,7 +730,7 @@ var BankTransactionApiFactory = function (configuration, basePath, axios) {
626
730
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
627
731
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, createdAt, amount</i>
628
732
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, transactionDate, entryDate</i>
629
- * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
733
+ * @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.<br/> <br/> <i>Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts<i>
630
734
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
631
735
  * @param {*} [options] Override http request option.
632
736
  * @throws {RequiredError}
@@ -707,6 +811,18 @@ var BankTransactionApi = /** @class */ (function (_super) {
707
811
  var _this = this;
708
812
  return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
709
813
  };
814
+ /**
815
+ * 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\"
816
+ * @summary Link bank transaction to payment requests
817
+ * @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ * @memberof BankTransactionApi
821
+ */
822
+ BankTransactionApi.prototype.linkBankTransactionPaymentRequests = function (requestParameters, options) {
823
+ var _this = this;
824
+ return (0, exports.BankTransactionApiFp)(this.configuration).linkBankTransactionPaymentRequests(requestParameters.code, requestParameters.linkBankTransactionPaymentRequestsRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
825
+ };
710
826
  /**
711
827
  * 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\"
712
828
  * @summary List bank transactions
@@ -344,7 +344,7 @@ export declare class BillingAddressesApi extends BaseAPI {
344
344
  * @throws {RequiredError}
345
345
  * @memberof BillingAddressesApi
346
346
  */
347
- createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}>>;
347
+ createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}, any>>;
348
348
  /**
349
349
  * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
350
350
  * @summary Delete the Billing Address
@@ -353,7 +353,7 @@ export declare class BillingAddressesApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof BillingAddressesApi
355
355
  */
356
- deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
356
+ deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
357
357
  /**
358
358
  * Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
359
359
  * @summary Retrieve the Billing Address
@@ -362,7 +362,7 @@ export declare class BillingAddressesApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof BillingAddressesApi
364
364
  */
365
- getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}>>;
365
+ getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}, any>>;
366
366
  /**
367
367
  * Returns a list of Billing Addresses you have previously created. The Billing Addresses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
368
368
  * @summary List Billing Addresses
@@ -371,7 +371,7 @@ export declare class BillingAddressesApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof BillingAddressesApi
373
373
  */
374
- listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
374
+ listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}, any>>;
375
375
  /**
376
376
  * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
377
377
  * @summary Update the Billing Address
@@ -380,5 +380,5 @@ export declare class BillingAddressesApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof BillingAddressesApi
382
382
  */
383
- updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}>>;
383
+ updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}, any>>;
384
384
  }
@@ -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);
@@ -241,7 +241,7 @@ export declare class CreditAllocationApi extends BaseAPI {
241
241
  * @throws {RequiredError}
242
242
  * @memberof CreditAllocationApi
243
243
  */
244
- createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}>>;
244
+ createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}, any>>;
245
245
  /**
246
246
  * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
247
247
  * @summary Retrieve the credit allocation entry
@@ -250,7 +250,7 @@ export declare class CreditAllocationApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof CreditAllocationApi
252
252
  */
253
- getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}>>;
253
+ getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}, any>>;
254
254
  /**
255
255
  * Returns a list of credit allocations you have previously created. The credit allocations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
256
256
  * @summary List credit allocations
@@ -259,5 +259,5 @@ export declare class CreditAllocationApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof CreditAllocationApi
261
261
  */
262
- listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}>>;
262
+ listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}, any>>;
263
263
  }