@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
@@ -122,6 +122,8 @@ models/inline-response503.ts
122
122
  models/invoice-allocation-dto.ts
123
123
  models/invoice-match-suggestion-class.ts
124
124
  models/invoice-match-suggestion-entity.ts
125
+ models/link-bank-transaction-payment-requests-request-dto-rest.ts
126
+ models/link-bank-transaction-payment-requests-response-class.ts
125
127
  models/link-bank-transaction-request-dto-rest.ts
126
128
  models/link-bank-transactions-response-class.ts
127
129
  models/list-bank-accounts-response-class.ts
@@ -147,8 +149,10 @@ models/payment-class.ts
147
149
  models/payment-entity.ts
148
150
  models/payment-method-class.ts
149
151
  models/payment-receipt-class.ts
152
+ models/payment-receipt-entity.ts
150
153
  models/payment-reminder-class.ts
151
154
  models/payment-request-class.ts
155
+ models/payment-request-entity.ts
152
156
  models/payout-method-class.ts
153
157
  models/policy-payment-method-class.ts
154
158
  models/primary-bank-account-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk@1.22.1-beta.74 --save
20
+ npm install @emilgroup/payment-sdk@1.22.1-beta.76 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.22.1-beta.74
24
+ yarn add @emilgroup/payment-sdk@1.22.1-beta.76
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -69,8 +69,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ // Only Authorization falls back to the configured token; an empty value is never sent.
73
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
74
+ if (authorizationValue) {
75
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
76
  }
75
77
 
76
78
 
@@ -117,8 +119,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
117
119
  // http bearer authentication required
118
120
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
121
 
120
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
122
+ // Only Authorization falls back to the configured token; an empty value is never sent.
123
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
124
+ if (authorizationValue) {
125
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
122
126
  }
123
127
 
124
128
 
@@ -167,8 +171,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
167
171
  localVarQueryParameter['expand'] = expand;
168
172
  }
169
173
 
170
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
+ // Only Authorization falls back to the configured token; an empty value is never sent.
175
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
176
+ if (authorizationValue) {
177
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
172
178
  }
173
179
 
174
180
 
@@ -243,8 +249,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
243
249
  localVarQueryParameter['filters'] = filters;
244
250
  }
245
251
 
246
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ // Only Authorization falls back to the configured token; an empty value is never sent.
253
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
254
+ if (authorizationValue) {
255
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
248
256
  }
249
257
 
250
258
 
@@ -291,8 +299,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
291
299
  // http bearer authentication required
292
300
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
301
 
294
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
+ // Only Authorization falls back to the configured token; an empty value is never sent.
303
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
304
+ if (authorizationValue) {
305
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
296
306
  }
297
307
 
298
308
 
@@ -342,8 +352,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
342
352
  // http bearer authentication required
343
353
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
344
354
 
345
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
355
+ // Only Authorization falls back to the configured token; an empty value is never sent.
356
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
357
+ if (authorizationValue) {
358
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
347
359
  }
348
360
 
349
361
 
@@ -67,8 +67,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token; an empty value is never sent.
71
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
+ if (authorizationValue) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
74
  }
73
75
 
74
76
 
@@ -115,8 +117,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
115
117
  // http bearer authentication required
116
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
119
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ // Only Authorization falls back to the configured token; an empty value is never sent.
121
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
+ if (authorizationValue) {
123
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
124
  }
121
125
 
122
126
 
@@ -165,8 +169,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
165
169
  localVarQueryParameter['expand'] = expand;
166
170
  }
167
171
 
168
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ // Only Authorization falls back to the configured token; an empty value is never sent.
173
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
+ if (authorizationValue) {
175
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
176
  }
171
177
 
172
178
 
@@ -241,8 +247,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
241
247
  localVarQueryParameter['filters'] = filters;
242
248
  }
243
249
 
244
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ // Only Authorization falls back to the configured token; an empty value is never sent.
251
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
254
  }
247
255
 
248
256
 
@@ -289,8 +297,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
289
297
  // http bearer authentication required
290
298
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
291
299
 
292
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ // Only Authorization falls back to the configured token; an empty value is never sent.
301
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
302
+ if (authorizationValue) {
303
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
304
  }
295
305
 
296
306
 
@@ -27,6 +27,10 @@ import { GetBankTransactionsResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { ImportBankTransactionsResponseClass } from '../models';
29
29
  // @ts-ignore
30
+ import { LinkBankTransactionPaymentRequestsRequestDtoRest } from '../models';
31
+ // @ts-ignore
32
+ import { LinkBankTransactionPaymentRequestsResponseClass } from '../models';
33
+ // @ts-ignore
30
34
  import { LinkBankTransactionRequestDtoRest } from '../models';
31
35
  // @ts-ignore
32
36
  import { LinkBankTransactionsResponseClass } from '../models';
@@ -70,8 +74,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
70
74
  // http bearer authentication required
71
75
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
72
76
 
73
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
74
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
+ // Only Authorization falls back to the configured token; an empty value is never sent.
78
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
79
+ if (authorizationValue) {
80
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
75
81
  }
76
82
 
77
83
 
@@ -90,7 +96,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
90
96
  * @summary Retrieve the bank transaction
91
97
  * @param {string} code
92
98
  * @param {string} [authorization] Bearer Token
93
- * @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>
99
+ * @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>
94
100
  * @param {*} [options] Override http request option.
95
101
  * @throws {RequiredError}
96
102
  */
@@ -120,8 +126,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
120
126
  localVarQueryParameter['expand'] = expand;
121
127
  }
122
128
 
123
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
124
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
+ // Only Authorization falls back to the configured token; an empty value is never sent.
130
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
125
133
  }
126
134
 
127
135
 
@@ -165,8 +173,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
165
173
  // http bearer authentication required
166
174
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
167
175
 
168
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
+ // Only Authorization falls back to the configured token; an empty value is never sent.
177
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
178
+ if (authorizationValue) {
179
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
180
  }
171
181
 
172
182
 
@@ -220,8 +230,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
220
230
  // http bearer authentication required
221
231
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
222
232
 
223
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
233
+ // Only Authorization falls back to the configured token; an empty value is never sent.
234
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
235
+ if (authorizationValue) {
236
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
225
237
  }
226
238
 
227
239
 
@@ -238,6 +250,59 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
238
250
  options: localVarRequestOptions,
239
251
  };
240
252
  },
253
+ /**
254
+ * 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\"
255
+ * @summary Link bank transaction to payment requests
256
+ * @param {string} code Code of the outgoing bank transaction to link
257
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
258
+ * @param {string} [authorization] Bearer Token
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ linkBankTransactionPaymentRequests: async (code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
263
+ // verify required parameter 'code' is not null or undefined
264
+ assertParamExists('linkBankTransactionPaymentRequests', 'code', code)
265
+ // verify required parameter 'linkBankTransactionPaymentRequestsRequestDtoRest' is not null or undefined
266
+ assertParamExists('linkBankTransactionPaymentRequests', 'linkBankTransactionPaymentRequestsRequestDtoRest', linkBankTransactionPaymentRequestsRequestDtoRest)
267
+ const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link-payment-requests`
268
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
269
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
270
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
271
+ let baseOptions;
272
+ let baseAccessToken;
273
+ if (configuration) {
274
+ baseOptions = configuration.baseOptions;
275
+ baseAccessToken = configuration.accessToken;
276
+ }
277
+
278
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
279
+ const localVarHeaderParameter = {} as any;
280
+ const localVarQueryParameter = {} as any;
281
+
282
+ // authentication bearer required
283
+ // http bearer authentication required
284
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
285
+
286
+ // Only Authorization falls back to the configured token; an empty value is never sent.
287
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
288
+ if (authorizationValue) {
289
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
290
+ }
291
+
292
+
293
+
294
+ localVarHeaderParameter['Content-Type'] = 'application/json';
295
+
296
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
298
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
299
+ localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionPaymentRequestsRequestDtoRest, localVarRequestOptions, configuration)
300
+
301
+ return {
302
+ url: toPathString(localVarUrlObj),
303
+ options: localVarRequestOptions,
304
+ };
305
+ },
241
306
  /**
242
307
  * 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\"
243
308
  * @summary List bank transactions
@@ -247,7 +312,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
247
312
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
248
313
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
249
314
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, transactionDate, entryDate&lt;/i&gt;
250
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
315
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
251
316
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
252
317
  * @param {*} [options] Override http request option.
253
318
  * @throws {RequiredError}
@@ -299,8 +364,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
299
364
  localVarQueryParameter['filters'] = filters;
300
365
  }
301
366
 
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
+ // Only Authorization falls back to the configured token; an empty value is never sent.
368
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
369
+ if (authorizationValue) {
370
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
371
  }
305
372
 
306
373
 
@@ -344,8 +411,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
344
411
  // http bearer authentication required
345
412
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
346
413
 
347
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
348
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
414
+ // Only Authorization falls back to the configured token; an empty value is never sent.
415
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
416
+ if (authorizationValue) {
417
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
349
418
  }
350
419
 
351
420
 
@@ -386,7 +455,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
386
455
  * @summary Retrieve the bank transaction
387
456
  * @param {string} code
388
457
  * @param {string} [authorization] Bearer Token
389
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
458
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
390
459
  * @param {*} [options] Override http request option.
391
460
  * @throws {RequiredError}
392
461
  */
@@ -419,6 +488,19 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
419
488
  const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
420
489
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
421
490
  },
491
+ /**
492
+ * 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\"
493
+ * @summary Link bank transaction to payment requests
494
+ * @param {string} code Code of the outgoing bank transaction to link
495
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
496
+ * @param {string} [authorization] Bearer Token
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ async linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>> {
501
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options);
502
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
503
+ },
422
504
  /**
423
505
  * 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\"
424
506
  * @summary List bank transactions
@@ -428,7 +510,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
428
510
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
429
511
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
430
512
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, transactionDate, entryDate&lt;/i&gt;
431
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
513
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
432
514
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
433
515
  * @param {*} [options] Override http request option.
434
516
  * @throws {RequiredError}
@@ -475,7 +557,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
475
557
  * @summary Retrieve the bank transaction
476
558
  * @param {string} code
477
559
  * @param {string} [authorization] Bearer Token
478
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
560
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
479
561
  * @param {*} [options] Override http request option.
480
562
  * @throws {RequiredError}
481
563
  */
@@ -505,6 +587,18 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
505
587
  linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass> {
506
588
  return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
507
589
  },
590
+ /**
591
+ * 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\"
592
+ * @summary Link bank transaction to payment requests
593
+ * @param {string} code Code of the outgoing bank transaction to link
594
+ * @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
595
+ * @param {string} [authorization] Bearer Token
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass> {
600
+ return localVarFp.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
601
+ },
508
602
  /**
509
603
  * 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\"
510
604
  * @summary List bank transactions
@@ -514,7 +608,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
514
608
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
515
609
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, createdAt, amount&lt;/i&gt;
516
610
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, transactionDate, entryDate&lt;/i&gt;
517
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
611
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
518
612
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked&lt;/i&gt;
519
613
  * @param {*} [options] Override http request option.
520
614
  * @throws {RequiredError}
@@ -578,7 +672,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
578
672
  readonly authorization?: string
579
673
 
580
674
  /**
581
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
675
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
582
676
  * @type {string}
583
677
  * @memberof BankTransactionApiGetBankTransaction
584
678
  */
@@ -634,6 +728,34 @@ export interface BankTransactionApiLinkBankTransactionRequest {
634
728
  readonly authorization?: string
635
729
  }
636
730
 
731
+ /**
732
+ * Request parameters for linkBankTransactionPaymentRequests operation in BankTransactionApi.
733
+ * @export
734
+ * @interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest
735
+ */
736
+ export interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest {
737
+ /**
738
+ * Code of the outgoing bank transaction to link
739
+ * @type {string}
740
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
741
+ */
742
+ readonly code: string
743
+
744
+ /**
745
+ *
746
+ * @type {LinkBankTransactionPaymentRequestsRequestDtoRest}
747
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
748
+ */
749
+ readonly linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest
750
+
751
+ /**
752
+ * Bearer Token
753
+ * @type {string}
754
+ * @memberof BankTransactionApiLinkBankTransactionPaymentRequests
755
+ */
756
+ readonly authorization?: string
757
+ }
758
+
637
759
  /**
638
760
  * Request parameters for listBankTransactions operation in BankTransactionApi.
639
761
  * @export
@@ -683,7 +805,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
683
805
  readonly order?: string
684
806
 
685
807
  /**
686
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices&lt;i&gt;
808
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices, paymentReceipts&lt;i&gt;
687
809
  * @type {string}
688
810
  * @memberof BankTransactionApiListBankTransactions
689
811
  */
@@ -773,6 +895,18 @@ export class BankTransactionApi extends BaseAPI {
773
895
  return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
774
896
  }
775
897
 
898
+ /**
899
+ * 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\"
900
+ * @summary Link bank transaction to payment requests
901
+ * @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
902
+ * @param {*} [options] Override http request option.
903
+ * @throws {RequiredError}
904
+ * @memberof BankTransactionApi
905
+ */
906
+ public linkBankTransactionPaymentRequests(requestParameters: BankTransactionApiLinkBankTransactionPaymentRequestsRequest, options?: AxiosRequestConfig) {
907
+ return BankTransactionApiFp(this.configuration).linkBankTransactionPaymentRequests(requestParameters.code, requestParameters.linkBankTransactionPaymentRequestsRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
908
+ }
909
+
776
910
  /**
777
911
  * 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\"
778
912
  * @summary List bank transactions
@@ -67,8 +67,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token; an empty value is never sent.
71
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
+ if (authorizationValue) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
74
  }
73
75
 
74
76
 
@@ -115,8 +117,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
115
117
  // http bearer authentication required
116
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
119
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ // Only Authorization falls back to the configured token; an empty value is never sent.
121
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
+ if (authorizationValue) {
123
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
124
  }
121
125
 
122
126
 
@@ -160,8 +164,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
160
164
  // http bearer authentication required
161
165
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
166
 
163
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
167
+ // Only Authorization falls back to the configured token; an empty value is never sent.
168
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
169
+ if (authorizationValue) {
170
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
165
171
  }
166
172
 
167
173
 
@@ -236,8 +242,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
236
242
  localVarQueryParameter['filters'] = filters;
237
243
  }
238
244
 
239
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ // Only Authorization falls back to the configured token; an empty value is never sent.
246
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
247
+ if (authorizationValue) {
248
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
241
249
  }
242
250
 
243
251
 
@@ -284,8 +292,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
284
292
  // http bearer authentication required
285
293
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
286
294
 
287
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
288
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
295
+ // Only Authorization falls back to the configured token; an empty value is never sent.
296
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
297
+ if (authorizationValue) {
298
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
289
299
  }
290
300
 
291
301