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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/README.md +2 -2
  2. package/api/bank-accounts-api.ts +24 -12
  3. package/api/bank-orders-api.ts +28 -18
  4. package/api/bank-transaction-api.ts +24 -12
  5. package/api/billing-addresses-api.ts +20 -10
  6. package/api/credit-allocation-api.ts +12 -6
  7. package/api/exceeding-credits-api.ts +12 -6
  8. package/api/ibanvalidator-api.ts +4 -2
  9. package/api/payment-methods-api.ts +12 -6
  10. package/api/payment-receipts-api.ts +20 -10
  11. package/api/payment-reminders-api.ts +16 -8
  12. package/api/payment-requests-api.ts +32 -22
  13. package/api/payment-setup-api.ts +8 -4
  14. package/api/payments-api.ts +24 -12
  15. package/api/payout-methods-api.ts +24 -12
  16. package/api/policy-payment-methods-api.ts +12 -6
  17. package/api/refunds-api.ts +12 -6
  18. package/api/tenant-bank-account-api.ts +20 -10
  19. package/base.ts +174 -41
  20. package/configuration.ts +20 -0
  21. package/dist/api/bank-accounts-api.js +36 -22
  22. package/dist/api/bank-orders-api.d.ts +8 -8
  23. package/dist/api/bank-orders-api.js +35 -24
  24. package/dist/api/bank-transaction-api.js +36 -22
  25. package/dist/api/billing-addresses-api.js +32 -19
  26. package/dist/api/credit-allocation-api.js +18 -11
  27. package/dist/api/exceeding-credits-api.js +18 -11
  28. package/dist/api/ibanvalidator-api.js +7 -4
  29. package/dist/api/payment-methods-api.js +18 -11
  30. package/dist/api/payment-receipts-api.js +29 -18
  31. package/dist/api/payment-reminders-api.js +25 -15
  32. package/dist/api/payment-requests-api.d.ts +12 -12
  33. package/dist/api/payment-requests-api.js +38 -27
  34. package/dist/api/payment-setup-api.js +14 -8
  35. package/dist/api/payments-api.js +28 -18
  36. package/dist/api/payout-methods-api.js +36 -22
  37. package/dist/api/policy-payment-methods-api.js +18 -11
  38. package/dist/api/refunds-api.js +15 -10
  39. package/dist/api/tenant-bank-account-api.js +29 -18
  40. package/dist/base.d.ts +24 -0
  41. package/dist/base.js +178 -59
  42. package/dist/configuration.d.ts +17 -0
  43. package/dist/configuration.js +2 -0
  44. package/dist/models/bank-order-entity.d.ts +1 -0
  45. package/dist/models/bank-order-entity.js +1 -0
  46. package/dist/models/create-bank-order-request-dto.d.ts +3 -2
  47. package/dist/models/create-bank-order-request-dto.js +1 -0
  48. package/dist/models/create-payment-order-dto.d.ts +1 -1
  49. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  50. package/dist/models/create-payment-request-dto.d.ts +1 -1
  51. package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
  52. package/dist/models/payment-class.d.ts +1 -1
  53. package/dist/models/payment-receipt-class.d.ts +1 -1
  54. package/dist/models/payment-request-class.d.ts +18 -0
  55. package/dist/models/shared-transaction-class.d.ts +6 -0
  56. package/dist/models/transaction-entity.d.ts +6 -0
  57. package/dist/models/update-bank-order-request-dto.d.ts +2 -2
  58. package/models/bank-order-entity.ts +1 -0
  59. package/models/create-bank-order-request-dto.ts +3 -2
  60. package/models/create-payment-order-dto.ts +1 -1
  61. package/models/create-payment-receipt-request-dto.ts +1 -1
  62. package/models/create-payment-request-dto.ts +1 -1
  63. package/models/payment-class-without-expand-properties.ts +1 -1
  64. package/models/payment-class.ts +1 -1
  65. package/models/payment-receipt-class.ts +1 -1
  66. package/models/payment-request-class.ts +18 -0
  67. package/models/shared-transaction-class.ts +6 -0
  68. package/models/transaction-entity.ts +6 -0
  69. package/models/update-bank-order-request-dto.ts +2 -2
  70. package/package.json +1 -1
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.7 --save
20
+ npm install @emilgroup/payment-sdk@1.22.1-beta.71 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.22.1-beta.7
24
+ yarn add @emilgroup/payment-sdk@1.22.1-beta.71
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
 
@@ -186,11 +192,11 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
186
192
  * @param {string} [authorization] Bearer Token
187
193
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
188
194
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
189
- * @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, orderNumber, status, type, tenantBankAccountCode</i>
195
+ * @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
190
196
  * @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: code, description, orderNumber, tenantBankAccountCode</i>
191
197
  * @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, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
192
198
  * @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: tenantBankAccount, xmlFile<i>
193
- * @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, orderNumber, status, type, tenantBankAccountCode</i>
199
+ * @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
194
200
  * @param {*} [options] Override http request option.
195
201
  * @throws {RequiredError}
196
202
  */
@@ -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
 
@@ -360,11 +370,11 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
360
370
  * @param {string} [authorization] Bearer Token
361
371
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
362
372
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
363
- * @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, orderNumber, status, type, tenantBankAccountCode</i>
373
+ * @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
364
374
  * @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: code, description, orderNumber, tenantBankAccountCode</i>
365
375
  * @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, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
366
376
  * @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: tenantBankAccount, xmlFile<i>
367
- * @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, orderNumber, status, type, tenantBankAccountCode</i>
377
+ * @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
368
378
  * @param {*} [options] Override http request option.
369
379
  * @throws {RequiredError}
370
380
  */
@@ -435,11 +445,11 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
435
445
  * @param {string} [authorization] Bearer Token
436
446
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
437
447
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
438
- * @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, orderNumber, status, type, tenantBankAccountCode</i>
448
+ * @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
439
449
  * @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: code, description, orderNumber, tenantBankAccountCode</i>
440
450
  * @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, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
441
451
  * @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: tenantBankAccount, xmlFile<i>
442
- * @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, orderNumber, status, type, tenantBankAccountCode</i>
452
+ * @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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
443
453
  * @param {*} [options] Override http request option.
444
454
  * @throws {RequiredError}
445
455
  */
@@ -559,7 +569,7 @@ export interface BankOrdersApiListBankOrdersRequest {
559
569
  readonly pageToken?: string
560
570
 
561
571
  /**
562
- * 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, orderNumber, status, type, tenantBankAccountCode</i>
572
+ * 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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
563
573
  * @type {string}
564
574
  * @memberof BankOrdersApiListBankOrders
565
575
  */
@@ -587,7 +597,7 @@ export interface BankOrdersApiListBankOrdersRequest {
587
597
  readonly expand?: string
588
598
 
589
599
  /**
590
- * 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, orderNumber, status, type, tenantBankAccountCode</i>
600
+ * 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, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
591
601
  * @type {string}
592
602
  * @memberof BankOrdersApiListBankOrders
593
603
  */
@@ -70,8 +70,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
70
70
  // http bearer authentication required
71
71
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
72
72
 
73
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
74
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
+ // Only Authorization falls back to the configured token; an empty value is never sent.
74
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
75
+ if (authorizationValue) {
76
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
75
77
  }
76
78
 
77
79
 
@@ -120,8 +122,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
120
122
  localVarQueryParameter['expand'] = expand;
121
123
  }
122
124
 
123
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
124
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
125
+ // Only Authorization falls back to the configured token; an empty value is never sent.
126
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
127
+ if (authorizationValue) {
128
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
125
129
  }
126
130
 
127
131
 
@@ -165,8 +169,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
165
169
  // http bearer authentication required
166
170
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
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
 
@@ -220,8 +226,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
220
226
  // http bearer authentication required
221
227
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
222
228
 
223
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
229
+ // Only Authorization falls back to the configured token; an empty value is never sent.
230
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
231
+ if (authorizationValue) {
232
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
225
233
  }
226
234
 
227
235
 
@@ -299,8 +307,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
299
307
  localVarQueryParameter['filters'] = filters;
300
308
  }
301
309
 
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ // Only Authorization falls back to the configured token; an empty value is never sent.
311
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
314
  }
305
315
 
306
316
 
@@ -344,8 +354,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
344
354
  // http bearer authentication required
345
355
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
346
356
 
347
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
348
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
+ // Only Authorization falls back to the configured token; an empty value is never sent.
358
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
359
+ if (authorizationValue) {
360
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
349
361
  }
350
362
 
351
363
 
@@ -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
 
@@ -63,8 +63,10 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
+ // Only Authorization falls back to the configured token; an empty value is never sent.
67
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
+ if (authorizationValue) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
70
  }
69
71
 
70
72
 
@@ -111,8 +113,10 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
111
113
  // http bearer authentication required
112
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
115
 
114
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ // Only Authorization falls back to the configured token; an empty value is never sent.
117
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
+ if (authorizationValue) {
119
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
116
120
  }
117
121
 
118
122
 
@@ -187,8 +191,10 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
187
191
  localVarQueryParameter['filters'] = filters;
188
192
  }
189
193
 
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
+ // Only Authorization falls back to the configured token; an empty value is never sent.
195
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
196
+ if (authorizationValue) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
198
  }
193
199
 
194
200
 
@@ -63,8 +63,10 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
+ // Only Authorization falls back to the configured token; an empty value is never sent.
67
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
+ if (authorizationValue) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
70
  }
69
71
 
70
72
 
@@ -111,8 +113,10 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
111
113
  // http bearer authentication required
112
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
115
 
114
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ // Only Authorization falls back to the configured token; an empty value is never sent.
117
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
+ if (authorizationValue) {
119
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
116
120
  }
117
121
 
118
122
 
@@ -187,8 +191,10 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
187
191
  localVarQueryParameter['filters'] = filters;
188
192
  }
189
193
 
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
+ // Only Authorization falls back to the configured token; an empty value is never sent.
195
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
196
+ if (authorizationValue) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
198
  }
193
199
 
194
200
 
@@ -59,8 +59,10 @@ export const IBANValidatorApiAxiosParamCreator = function (configuration?: Confi
59
59
  // http bearer authentication required
60
60
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
61
 
62
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
62
+ // Only Authorization falls back to the configured token; an empty value is never sent.
63
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
64
+ if (authorizationValue) {
65
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
64
66
  }
65
67
 
66
68
 
@@ -63,8 +63,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
+ // Only Authorization falls back to the configured token; an empty value is never sent.
67
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
+ if (authorizationValue) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
70
  }
69
71
 
70
72
 
@@ -111,8 +113,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
111
113
  // http bearer authentication required
112
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
115
 
114
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ // Only Authorization falls back to the configured token; an empty value is never sent.
117
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
+ if (authorizationValue) {
119
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
116
120
  }
117
121
 
118
122
 
@@ -187,8 +191,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
187
191
  localVarQueryParameter['filters'] = filters;
188
192
  }
189
193
 
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
+ // Only Authorization falls back to the configured token; an empty value is never sent.
195
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
196
+ if (authorizationValue) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
198
  }
193
199
 
194
200
 
@@ -65,8 +65,10 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
65
65
  // http bearer authentication required
66
66
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
67
 
68
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
+ // Only Authorization falls back to the configured token; an empty value is never sent.
69
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
70
+ if (authorizationValue) {
71
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
72
  }
71
73
 
72
74
 
@@ -113,8 +115,10 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
113
115
  // http bearer authentication required
114
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
117
 
116
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
117
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
118
+ // Only Authorization falls back to the configured token; an empty value is never sent.
119
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
120
+ if (authorizationValue) {
121
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
118
122
  }
119
123
 
120
124
 
@@ -165,8 +169,10 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
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 PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
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
 
@@ -286,8 +294,10 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
286
294
  // http bearer authentication required
287
295
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
288
296
 
289
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
290
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
297
+ // Only Authorization falls back to the configured token; an empty value is never sent.
298
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
299
+ if (authorizationValue) {
300
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
291
301
  }
292
302
 
293
303