@emilgroup/payment-sdk 1.22.1-beta.82 → 1.22.1-beta.83

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 (147) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +18 -48
  4. package/api/bank-orders-api.ts +15 -40
  5. package/api/bank-transaction-api.ts +26 -181
  6. package/api/billing-addresses-api.ts +15 -40
  7. package/api/credit-allocation-api.ts +9 -24
  8. package/api/exceeding-credits-api.ts +6 -240
  9. package/api/health-check-api.ts +1 -1
  10. package/api/ibanvalidator-api.ts +3 -8
  11. package/api/payment-methods-api.ts +9 -24
  12. package/api/payment-receipts-api.ts +15 -40
  13. package/api/payment-reminders-api.ts +12 -32
  14. package/api/payment-requests-api.ts +27 -52
  15. package/api/payment-setup-api.ts +6 -16
  16. package/api/payments-api.ts +16 -46
  17. package/api/payout-methods-api.ts +18 -48
  18. package/api/policy-payment-methods-api.ts +9 -24
  19. package/api/refunds-api.ts +9 -24
  20. package/api/tenant-bank-account-api.ts +15 -40
  21. package/api/webhooks-api.ts +2 -2
  22. package/base.ts +43 -239
  23. package/common.ts +2 -3
  24. package/configuration.ts +0 -20
  25. package/dist/api/bank-accounts-api.d.ts +6 -6
  26. package/dist/api/bank-accounts-api.js +46 -82
  27. package/dist/api/bank-orders-api.d.ts +5 -5
  28. package/dist/api/bank-orders-api.js +38 -67
  29. package/dist/api/bank-transaction-api.d.ts +14 -80
  30. package/dist/api/bank-transaction-api.js +52 -194
  31. package/dist/api/billing-addresses-api.d.ts +5 -5
  32. package/dist/api/billing-addresses-api.js +39 -71
  33. package/dist/api/credit-allocation-api.d.ts +3 -3
  34. package/dist/api/credit-allocation-api.js +23 -41
  35. package/dist/api/exceeding-credits-api.d.ts +2 -116
  36. package/dist/api/exceeding-credits-api.js +15 -226
  37. package/dist/api/health-check-api.d.ts +1 -1
  38. package/dist/api/health-check-api.js +1 -1
  39. package/dist/api/ibanvalidator-api.d.ts +1 -1
  40. package/dist/api/ibanvalidator-api.js +8 -15
  41. package/dist/api/payment-methods-api.d.ts +3 -3
  42. package/dist/api/payment-methods-api.js +23 -41
  43. package/dist/api/payment-receipts-api.d.ts +5 -5
  44. package/dist/api/payment-receipts-api.js +38 -67
  45. package/dist/api/payment-reminders-api.d.ts +4 -4
  46. package/dist/api/payment-reminders-api.js +31 -56
  47. package/dist/api/payment-requests-api.d.ts +17 -17
  48. package/dist/api/payment-requests-api.js +47 -76
  49. package/dist/api/payment-setup-api.d.ts +2 -2
  50. package/dist/api/payment-setup-api.js +16 -30
  51. package/dist/api/payments-api.d.ts +4 -4
  52. package/dist/api/payments-api.js +34 -62
  53. package/dist/api/payout-methods-api.d.ts +6 -6
  54. package/dist/api/payout-methods-api.js +46 -82
  55. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  56. package/dist/api/policy-payment-methods-api.js +23 -41
  57. package/dist/api/refunds-api.d.ts +3 -3
  58. package/dist/api/refunds-api.js +22 -37
  59. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  60. package/dist/api/tenant-bank-account-api.js +38 -67
  61. package/dist/api/webhooks-api.d.ts +2 -2
  62. package/dist/api/webhooks-api.js +2 -2
  63. package/dist/base.d.ts +0 -26
  64. package/dist/base.js +60 -243
  65. package/dist/common.d.ts +1 -1
  66. package/dist/common.js +0 -1
  67. package/dist/configuration.d.ts +0 -17
  68. package/dist/configuration.js +0 -2
  69. package/dist/models/bank-transaction-class.d.ts +0 -7
  70. package/dist/models/bank-transaction-entity.d.ts +0 -7
  71. package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
  72. package/dist/models/create-payment-order-dto.d.ts +1 -1
  73. package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
  74. package/dist/models/create-payment-request-dto.d.ts +1 -1
  75. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  76. package/dist/models/credit-allocation-class.d.ts +0 -6
  77. package/dist/models/credit-allocation-entity.d.ts +0 -6
  78. package/dist/models/exceeding-credit-class.d.ts +2 -25
  79. package/dist/models/exceeding-credit-class.js +1 -5
  80. package/dist/models/exceeding-credit-entity.d.ts +2 -31
  81. package/dist/models/exceeding-credit-entity.js +1 -5
  82. package/dist/models/index.d.ts +0 -8
  83. package/dist/models/index.js +0 -8
  84. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  85. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  86. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  87. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  88. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  89. package/dist/models/list-refunds-response-class.d.ts +18 -6
  90. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  91. package/dist/models/payment-class.d.ts +2 -2
  92. package/dist/models/payment-entity.d.ts +1 -1
  93. package/dist/models/payment-receipt-class.d.ts +1 -13
  94. package/dist/models/payment-request-class.d.ts +6 -13
  95. package/dist/models/payment-request-class.js +0 -1
  96. package/dist/models/shared-transaction-class.d.ts +0 -6
  97. package/dist/models/transaction-entity.d.ts +0 -6
  98. package/models/bank-transaction-class.ts +0 -7
  99. package/models/bank-transaction-entity.ts +0 -7
  100. package/models/bank-transaction-invoice-entity.ts +0 -24
  101. package/models/create-payment-order-dto.ts +1 -1
  102. package/models/create-payment-receipt-request-dto.ts +3 -3
  103. package/models/create-payment-request-dto.ts +1 -1
  104. package/models/create-payment-request-request-dto.ts +0 -6
  105. package/models/credit-allocation-class.ts +0 -6
  106. package/models/credit-allocation-entity.ts +0 -6
  107. package/models/exceeding-credit-class.ts +2 -26
  108. package/models/exceeding-credit-entity.ts +2 -32
  109. package/models/index.ts +0 -8
  110. package/models/list-billing-addresses-response-class.ts +9 -9
  111. package/models/list-exceeding-credits-response-class.ts +18 -6
  112. package/models/list-payment-receipts-response-class.ts +9 -9
  113. package/models/list-payment-requests-response-class.ts +18 -6
  114. package/models/list-payout-methods-response-class.ts +9 -9
  115. package/models/list-refunds-response-class.ts +18 -6
  116. package/models/payment-class-without-expand-properties.ts +2 -2
  117. package/models/payment-class.ts +2 -2
  118. package/models/payment-entity.ts +1 -1
  119. package/models/payment-receipt-class.ts +1 -13
  120. package/models/payment-request-class.ts +6 -13
  121. package/models/shared-transaction-class.ts +0 -6
  122. package/models/transaction-entity.ts +0 -6
  123. package/package.json +2 -2
  124. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  125. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  126. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  127. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  128. package/dist/models/create-return-premium-credits-request-dto.d.ts +0 -24
  129. package/dist/models/create-return-premium-credits-request-dto.js +0 -15
  130. package/dist/models/create-return-premium-credits-response-class.d.ts +0 -25
  131. package/dist/models/create-return-premium-credits-response-class.js +0 -15
  132. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  133. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  134. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  135. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  136. package/dist/models/payment-receipt-entity.d.ts +0 -139
  137. package/dist/models/payment-receipt-entity.js +0 -20
  138. package/dist/models/payment-request-entity.d.ts +0 -223
  139. package/dist/models/payment-request-entity.js +0 -39
  140. package/models/create-exceeding-credit-request-dto.ts +0 -54
  141. package/models/create-exceeding-credit-response-class.ts +0 -31
  142. package/models/create-return-premium-credits-request-dto.ts +0 -30
  143. package/models/create-return-premium-credits-response-class.ts +0 -31
  144. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  145. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  146. package/models/payment-receipt-entity.ts +0 -148
  147. package/models/payment-request-entity.ts +0 -233
@@ -67,13 +67,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
- if (authorizationValue || authorizationKeepEmpty) {
76
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
72
  }
78
73
 
79
74
 
@@ -123,13 +118,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
123
118
  // http bearer authentication required
124
119
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
120
 
126
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
127
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
128
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
129
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
130
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
131
- if (authorizationValue || authorizationKeepEmpty) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
121
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
123
  }
134
124
 
135
125
 
@@ -176,13 +166,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
176
166
  // http bearer authentication required
177
167
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
168
 
179
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
180
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
181
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
182
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
183
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
184
- if (authorizationValue || authorizationKeepEmpty) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
171
  }
187
172
 
188
173
 
@@ -257,13 +242,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
257
242
  localVarQueryParameter['filters'] = filters;
258
243
  }
259
244
 
260
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
261
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
262
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
263
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
264
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
265
- if (authorizationValue || authorizationKeepEmpty) {
266
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
267
247
  }
268
248
 
269
249
 
@@ -555,7 +535,7 @@ export class PaymentRemindersApi extends BaseAPI {
555
535
  * @memberof PaymentRemindersApi
556
536
  */
557
537
  public createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig) {
558
- return PaymentRemindersApiFp(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
538
+ return PaymentRemindersApiFp(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
559
539
  }
560
540
 
561
541
  /**
@@ -567,7 +547,7 @@ export class PaymentRemindersApi extends BaseAPI {
567
547
  * @memberof PaymentRemindersApi
568
548
  */
569
549
  public deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig) {
570
- return PaymentRemindersApiFp(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
550
+ return PaymentRemindersApiFp(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
571
551
  }
572
552
 
573
553
  /**
@@ -579,7 +559,7 @@ export class PaymentRemindersApi extends BaseAPI {
579
559
  * @memberof PaymentRemindersApi
580
560
  */
581
561
  public getPaymentReminder(requestParameters: PaymentRemindersApiGetPaymentReminderRequest, options?: AxiosRequestConfig) {
582
- return PaymentRemindersApiFp(this.configuration).getPaymentReminder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
562
+ return PaymentRemindersApiFp(this.configuration).getPaymentReminder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
583
563
  }
584
564
 
585
565
  /**
@@ -591,6 +571,6 @@ export class PaymentRemindersApi extends BaseAPI {
591
571
  * @memberof PaymentRemindersApi
592
572
  */
593
573
  public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
594
- return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
574
+ return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
595
575
  }
596
576
  }
@@ -67,13 +67,8 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
- if (authorizationValue || authorizationKeepEmpty) {
76
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
72
  }
78
73
 
79
74
 
@@ -120,13 +115,8 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
120
115
  // http bearer authentication required
121
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
122
117
 
123
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
124
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
125
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
126
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
127
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
128
- if (authorizationValue || authorizationKeepEmpty) {
129
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
120
  }
131
121
 
132
122
 
@@ -177,13 +167,8 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
177
167
  localVarQueryParameter['expand'] = expand;
178
168
  }
179
169
 
180
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
181
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
182
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
183
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
184
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
185
- if (authorizationValue || authorizationKeepEmpty) {
186
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
172
  }
188
173
 
189
174
 
@@ -203,11 +188,11 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
203
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
189
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
205
190
  * @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.
206
- * @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>
207
- * @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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</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, bankOrderNumber</i>
208
193
  * @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>
209
194
  * @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>
210
- * @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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
211
196
  * @param {*} [options] Override http request option.
212
197
  * @throws {RequiredError}
213
198
  */
@@ -258,13 +243,8 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
258
243
  localVarQueryParameter['filters'] = filters;
259
244
  }
260
245
 
261
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
262
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
263
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
264
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
265
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
266
- if (authorizationValue || authorizationKeepEmpty) {
267
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
268
248
  }
269
249
 
270
250
 
@@ -311,13 +291,8 @@ export const PaymentRequestsApiAxiosParamCreator = function (configuration?: Con
311
291
  // http bearer authentication required
312
292
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
313
293
 
314
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
315
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
316
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
317
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
318
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
319
- if (authorizationValue || authorizationKeepEmpty) {
320
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
321
296
  }
322
297
 
323
298
 
@@ -387,11 +362,11 @@ export const PaymentRequestsApiFp = function(configuration?: Configuration) {
387
362
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
388
363
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
389
364
  * @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.
390
- * @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>
391
- * @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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</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, bankOrderNumber</i>
392
367
  * @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>
393
368
  * @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>
394
- * @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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
395
370
  * @param {*} [options] Override http request option.
396
371
  * @throws {RequiredError}
397
372
  */
@@ -462,11 +437,11 @@ export const PaymentRequestsApiFactory = function (configuration?: Configuration
462
437
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
463
438
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
464
439
  * @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.
465
- * @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>
466
- * @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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</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, bankOrderNumber</i>
467
442
  * @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>
468
443
  * @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>
469
- * @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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
470
445
  * @param {*} [options] Override http request option.
471
446
  * @throws {RequiredError}
472
447
  */
@@ -586,14 +561,14 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
586
561
  readonly pageToken?: string
587
562
 
588
563
  /**
589
- * 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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
590
565
  * @type {string}
591
566
  * @memberof PaymentRequestsApiListPaymentRequests
592
567
  */
593
568
  readonly filter?: string
594
569
 
595
570
  /**
596
- * 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>
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, bankOrderNumber</i>
597
572
  * @type {string}
598
573
  * @memberof PaymentRequestsApiListPaymentRequests
599
574
  */
@@ -614,7 +589,7 @@ export interface PaymentRequestsApiListPaymentRequestsRequest {
614
589
  readonly expand?: string
615
590
 
616
591
  /**
617
- * 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>
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, partnerCode, bankOrderCode, bankOrderNumber, creditAllocationType</i>
618
593
  * @type {string}
619
594
  * @memberof PaymentRequestsApiListPaymentRequests
620
595
  */
@@ -665,7 +640,7 @@ export class PaymentRequestsApi extends BaseAPI {
665
640
  * @memberof PaymentRequestsApi
666
641
  */
667
642
  public createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: AxiosRequestConfig) {
668
- return PaymentRequestsApiFp(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
643
+ return PaymentRequestsApiFp(this.configuration).createPaymentRequest(requestParameters.createPaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
669
644
  }
670
645
 
671
646
  /**
@@ -677,7 +652,7 @@ export class PaymentRequestsApi extends BaseAPI {
677
652
  * @memberof PaymentRequestsApi
678
653
  */
679
654
  public deletePaymentRequest(requestParameters: PaymentRequestsApiDeletePaymentRequestRequest, options?: AxiosRequestConfig) {
680
- return PaymentRequestsApiFp(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
655
+ return PaymentRequestsApiFp(this.configuration).deletePaymentRequest(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
681
656
  }
682
657
 
683
658
  /**
@@ -689,7 +664,7 @@ export class PaymentRequestsApi extends BaseAPI {
689
664
  * @memberof PaymentRequestsApi
690
665
  */
691
666
  public getPaymentRequest(requestParameters: PaymentRequestsApiGetPaymentRequestRequest, options?: AxiosRequestConfig) {
692
- return PaymentRequestsApiFp(this.configuration).getPaymentRequest(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
667
+ return PaymentRequestsApiFp(this.configuration).getPaymentRequest(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
693
668
  }
694
669
 
695
670
  /**
@@ -701,7 +676,7 @@ export class PaymentRequestsApi extends BaseAPI {
701
676
  * @memberof PaymentRequestsApi
702
677
  */
703
678
  public listPaymentRequests(requestParameters: PaymentRequestsApiListPaymentRequestsRequest = {}, options?: AxiosRequestConfig) {
704
- return PaymentRequestsApiFp(this.configuration).listPaymentRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
679
+ return PaymentRequestsApiFp(this.configuration).listPaymentRequests(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
705
680
  }
706
681
 
707
682
  /**
@@ -713,6 +688,6 @@ export class PaymentRequestsApi extends BaseAPI {
713
688
  * @memberof PaymentRequestsApi
714
689
  */
715
690
  public updatePaymentRequest(requestParameters: PaymentRequestsApiUpdatePaymentRequestRequest, options?: AxiosRequestConfig) {
716
- return PaymentRequestsApiFp(this.configuration).updatePaymentRequest(requestParameters.code, requestParameters.updatePaymentRequestRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
691
+ return PaymentRequestsApiFp(this.configuration).updatePaymentRequest(requestParameters.code, requestParameters.updatePaymentRequestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
717
692
  }
718
693
  }
@@ -63,13 +63,8 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
67
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
68
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
69
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
70
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
71
- if (authorizationValue || authorizationKeepEmpty) {
72
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
68
  }
74
69
 
75
70
 
@@ -115,13 +110,8 @@ export const PaymentSetupApiAxiosParamCreator = function (configuration?: Config
115
110
  // http bearer authentication required
116
111
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
112
 
118
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
119
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
120
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
121
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
122
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
123
- if (authorizationValue || authorizationKeepEmpty) {
124
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
113
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
114
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
125
115
  }
126
116
 
127
117
 
@@ -265,7 +255,7 @@ export class PaymentSetupApi extends BaseAPI {
265
255
  * @memberof PaymentSetupApi
266
256
  */
267
257
  public completePaymentSetup(requestParameters: PaymentSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig) {
268
- return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
258
+ return PaymentSetupApiFp(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
269
259
  }
270
260
 
271
261
  /**
@@ -277,6 +267,6 @@ export class PaymentSetupApi extends BaseAPI {
277
267
  * @memberof PaymentSetupApi
278
268
  */
279
269
  public initiatePaymentSetup(requestParameters: PaymentSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig) {
280
- return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
270
+ return PaymentSetupApiFp(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
281
271
  }
282
272
  }
@@ -68,22 +68,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
68
68
  // http bearer authentication required
69
69
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
70
 
71
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
72
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
73
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
74
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
75
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
76
- if (authorizationValue || authorizationKeepEmpty) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
71
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
72
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
73
  }
79
74
 
80
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
81
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
82
- const idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
83
- const idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
84
- const idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
85
- if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
86
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
75
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
76
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
87
77
  }
88
78
 
89
79
 
@@ -132,22 +122,12 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
132
122
  // http bearer authentication required
133
123
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
134
124
 
135
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
136
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
137
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
138
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
139
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
140
- if (authorizationValue || authorizationKeepEmpty) {
141
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
142
127
  }
143
128
 
144
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
145
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
146
- const idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
147
- const idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
148
- const idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
149
- if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
150
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
129
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
130
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
151
131
  }
152
132
 
153
133
 
@@ -199,13 +179,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
199
179
  localVarQueryParameter['expand'] = expand;
200
180
  }
201
181
 
202
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
203
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
204
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
205
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
206
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
207
- if (authorizationValue || authorizationKeepEmpty) {
208
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
209
184
  }
210
185
 
211
186
 
@@ -280,13 +255,8 @@ export const PaymentsApiAxiosParamCreator = function (configuration?: Configurat
280
255
  localVarQueryParameter['filters'] = filters;
281
256
  }
282
257
 
283
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
284
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
285
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
286
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
287
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
288
- if (authorizationValue || authorizationKeepEmpty) {
289
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
258
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
290
260
  }
291
261
 
292
262
 
@@ -596,7 +566,7 @@ export class PaymentsApi extends BaseAPI {
596
566
  * @memberof PaymentsApi
597
567
  */
598
568
  public createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig) {
599
- return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
569
+ return PaymentsApiFp(this.configuration).createPayment(requestParameters.idempotencyKey, requestParameters.createPaymentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
600
570
  }
601
571
 
602
572
  /**
@@ -608,7 +578,7 @@ export class PaymentsApi extends BaseAPI {
608
578
  * @memberof PaymentsApi
609
579
  */
610
580
  public createPaymentOrder(requestParameters: PaymentsApiCreatePaymentOrderRequest, options?: AxiosRequestConfig) {
611
- return PaymentsApiFp(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
581
+ return PaymentsApiFp(this.configuration).createPaymentOrder(requestParameters.idempotencyKey, requestParameters.createPaymentOrderDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
612
582
  }
613
583
 
614
584
  /**
@@ -620,7 +590,7 @@ export class PaymentsApi extends BaseAPI {
620
590
  * @memberof PaymentsApi
621
591
  */
622
592
  public getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig) {
623
- return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
593
+ return PaymentsApiFp(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
624
594
  }
625
595
 
626
596
  /**
@@ -632,6 +602,6 @@ export class PaymentsApi extends BaseAPI {
632
602
  * @memberof PaymentsApi
633
603
  */
634
604
  public listPayments(requestParameters: PaymentsApiListPaymentsRequest = {}, options?: AxiosRequestConfig) {
635
- return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
605
+ return PaymentsApiFp(this.configuration).listPayments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
636
606
  }
637
607
  }