@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
@@ -67,8 +67,10 @@ export const PaymentRemindersApiAxiosParamCreator = 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
 
@@ -118,8 +120,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
118
120
  // http bearer authentication required
119
121
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
122
 
121
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
+ // Only Authorization falls back to the configured token; an empty value is never sent.
124
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
125
+ if (authorizationValue) {
126
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
123
127
  }
124
128
 
125
129
 
@@ -166,8 +170,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
166
170
  // http bearer authentication required
167
171
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
172
 
169
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
173
+ // Only Authorization falls back to the configured token; an empty value is never sent.
174
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
175
+ if (authorizationValue) {
176
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
171
177
  }
172
178
 
173
179
 
@@ -242,8 +248,10 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
242
248
  localVarQueryParameter['filters'] = filters;
243
249
  }
244
250
 
245
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ // Only Authorization falls back to the configured token; an empty value is never sent.
252
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
253
+ if (authorizationValue) {
254
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
247
255
  }
248
256
 
249
257
 
@@ -67,8 +67,10 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
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 PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
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
 
@@ -167,8 +171,10 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
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
 
@@ -188,11 +194,11 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
188
194
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
195
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
196
  * @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.
191
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
192
- * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
197
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
198
+ * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
193
199
  * @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
194
200
  * @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: paymentReceipts<i>
195
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
201
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
196
202
  * @param {*} [options] Override http request option.
197
203
  * @throws {RequiredError}
198
204
  */
@@ -243,8 +249,10 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
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 PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
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
 
@@ -362,11 +372,11 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
362
372
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
373
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
364
374
  * @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.
365
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
366
- * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
375
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
376
+ * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
367
377
  * @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
368
378
  * @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: paymentReceipts<i>
369
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
379
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
370
380
  * @param {*} [options] Override http request option.
371
381
  * @throws {RequiredError}
372
382
  */
@@ -437,11 +447,11 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
437
447
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
448
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
439
449
  * @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.
440
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
441
- * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
450
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
451
+ * @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, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
442
452
  * @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, paymentRequestNumber, financialEntityNumber, domainEntityNumber, createdAt, status</i>
443
453
  * @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: paymentReceipts<i>
444
- * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
454
+ * @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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
445
455
  * @param {*} [options] Override http request option.
446
456
  * @throws {RequiredError}
447
457
  */
@@ -561,14 +571,14 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
561
571
  readonly pageToken?: string
562
572
 
563
573
  /**
564
- * 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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
574
+ * 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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
565
575
  * @type {string}
566
576
  * @memberof PaymentRequestsApiListPaymentRequests
567
577
  */
568
578
  readonly filter?: string
569
579
 
570
580
  /**
571
- * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode</i>
581
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, paymentRequestNumber, financialEntityCode, financialEntityNumber, domainEntityCode, domainEntityNumber, settlementCode, bankOrderNumber</i>
572
582
  * @type {string}
573
583
  * @memberof PaymentRequestsApiListPaymentRequests
574
584
  */
@@ -589,7 +599,7 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
589
599
  readonly expand?: string
590
600
 
591
601
  /**
592
- * 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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode</i>
602
+ * 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, paymentRequestNumber, status, direction, financialEntityType, domainEntityType, paymentMethodPsp, paymentMethodType, createdAt, settlementCode, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
593
603
  * @type {string}
594
604
  * @memberof PaymentRequestsApiListPaymentRequests
595
605
  */
@@ -63,8 +63,10 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
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
 
@@ -110,8 +112,10 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
110
112
  // http bearer authentication required
111
113
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
112
114
 
113
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
114
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
115
+ // Only Authorization falls back to the configured token; an empty value is never sent.
116
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
117
+ if (authorizationValue) {
118
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
115
119
  }
116
120
 
117
121
 
@@ -68,12 +68,16 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
68
68
  // http bearer authentication required
69
69
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
70
 
71
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
71
+ // Only Authorization falls back to the configured token; an empty value is never sent.
72
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
73
+ if (authorizationValue) {
74
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
73
75
  }
74
76
 
75
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
76
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
77
+ // Only Authorization falls back to the configured token; an empty value is never sent.
78
+ const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
79
+ if (idempotencyKeyValue) {
80
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
77
81
  }
78
82
 
79
83
 
@@ -122,12 +126,16 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
122
126
  // http bearer authentication required
123
127
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
124
128
 
125
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
- 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);
127
133
  }
128
134
 
129
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
135
+ // Only Authorization falls back to the configured token; an empty value is never sent.
136
+ const idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
137
+ if (idempotencyKeyValue) {
138
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
131
139
  }
132
140
 
133
141
 
@@ -179,8 +187,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
179
187
  localVarQueryParameter['expand'] = expand;
180
188
  }
181
189
 
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
+ // Only Authorization falls back to the configured token; an empty value is never sent.
191
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
192
+ if (authorizationValue) {
193
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
194
  }
185
195
 
186
196
 
@@ -255,8 +265,10 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
255
265
  localVarQueryParameter['filters'] = filters;
256
266
  }
257
267
 
258
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
268
+ // Only Authorization falls back to the configured token; an empty value is never sent.
269
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
270
+ if (authorizationValue) {
271
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
260
272
  }
261
273
 
262
274
 
@@ -66,8 +66,10 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
66
66
  // http bearer authentication required
67
67
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
68
 
69
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
70
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ // Only Authorization falls back to the configured token; an empty value is never sent.
70
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
71
+ if (authorizationValue) {
72
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
71
73
  }
72
74
 
73
75
 
@@ -110,8 +112,10 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
110
112
  // http bearer authentication required
111
113
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
112
114
 
113
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
114
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
115
+ // Only Authorization falls back to the configured token; an empty value is never sent.
116
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
117
+ if (authorizationValue) {
118
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
115
119
  }
116
120
 
117
121
 
@@ -161,8 +165,10 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
161
165
  // http bearer authentication required
162
166
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
163
167
 
164
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
165
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
+ // Only Authorization falls back to the configured token; an empty value is never sent.
169
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
170
+ if (authorizationValue) {
171
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
166
172
  }
167
173
 
168
174
 
@@ -209,8 +215,10 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
209
215
  // http bearer authentication required
210
216
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
211
217
 
212
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
213
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
218
+ // Only Authorization falls back to the configured token; an empty value is never sent.
219
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
220
+ if (authorizationValue) {
221
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
214
222
  }
215
223
 
216
224
 
@@ -259,8 +267,10 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
259
267
  localVarQueryParameter['expand'] = expand;
260
268
  }
261
269
 
262
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
263
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
270
+ // Only Authorization falls back to the configured token; an empty value is never sent.
271
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
272
+ if (authorizationValue) {
273
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
264
274
  }
265
275
 
266
276
 
@@ -335,8 +345,10 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
335
345
  localVarQueryParameter['filters'] = filters;
336
346
  }
337
347
 
338
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
339
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
348
+ // Only Authorization falls back to the configured token; an empty value is never sent.
349
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
350
+ if (authorizationValue) {
351
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
340
352
  }
341
353
 
342
354
 
@@ -67,8 +67,10 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
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
 
@@ -114,8 +116,10 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
114
116
  // http bearer authentication required
115
117
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
118
 
117
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
119
+ // Only Authorization falls back to the configured token; an empty value is never sent.
120
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
121
+ if (authorizationValue) {
122
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
119
123
  }
120
124
 
121
125
 
@@ -193,8 +197,10 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
193
197
  localVarQueryParameter['filters'] = filters;
194
198
  }
195
199
 
196
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
200
+ // Only Authorization falls back to the configured token; an empty value is never sent.
201
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
202
+ if (authorizationValue) {
203
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
198
204
  }
199
205
 
200
206
 
@@ -63,8 +63,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
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
 
@@ -116,8 +118,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
116
118
  localVarQueryParameter['expand'] = expand;
117
119
  }
118
120
 
119
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
120
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
121
+ // Only Authorization falls back to the configured token; an empty value is never sent.
122
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
123
+ if (authorizationValue) {
124
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
121
125
  }
122
126
 
123
127
 
@@ -192,8 +196,10 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
192
196
  localVarQueryParameter['filters'] = filters;
193
197
  }
194
198
 
195
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
196
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
199
+ // Only Authorization falls back to the configured token; an empty value is never sent.
200
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
201
+ if (authorizationValue) {
202
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
197
203
  }
198
204
 
199
205
 
@@ -67,8 +67,10 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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 TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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 TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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 TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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 TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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