@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
@@ -66,13 +66,8 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
66
66
  // http bearer authentication required
67
67
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
68
 
69
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
70
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
71
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
72
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
73
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
74
- if (authorizationValue || authorizationKeepEmpty) {
75
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
69
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
70
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
71
  }
77
72
 
78
73
 
@@ -115,13 +110,8 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
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
 
@@ -171,13 +161,8 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
171
161
  // http bearer authentication required
172
162
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
173
163
 
174
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
175
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
176
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
177
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
178
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
179
- if (authorizationValue || authorizationKeepEmpty) {
180
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
164
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
165
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
166
  }
182
167
 
183
168
 
@@ -224,13 +209,8 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
224
209
  // http bearer authentication required
225
210
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
226
211
 
227
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
228
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
229
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
230
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
231
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
232
- if (authorizationValue || authorizationKeepEmpty) {
233
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
212
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
213
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
214
  }
235
215
 
236
216
 
@@ -279,13 +259,8 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
279
259
  localVarQueryParameter['expand'] = expand;
280
260
  }
281
261
 
282
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
283
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
284
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
285
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
286
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
287
- if (authorizationValue || authorizationKeepEmpty) {
288
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
262
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
263
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
289
264
  }
290
265
 
291
266
 
@@ -360,13 +335,8 @@ export const PayoutMethodsApiAxiosParamCreator = function (configuration?: Confi
360
335
  localVarQueryParameter['filters'] = filters;
361
336
  }
362
337
 
363
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
364
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
365
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
366
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
367
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
368
- if (authorizationValue || authorizationKeepEmpty) {
369
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
338
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
339
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
370
340
  }
371
341
 
372
342
 
@@ -755,7 +725,7 @@ export class PayoutMethodsApi extends BaseAPI {
755
725
  * @memberof PayoutMethodsApi
756
726
  */
757
727
  public activatePayoutMethod(requestParameters: PayoutMethodsApiActivatePayoutMethodRequest, options?: AxiosRequestConfig) {
758
- return PayoutMethodsApiFp(this.configuration).activatePayoutMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
728
+ return PayoutMethodsApiFp(this.configuration).activatePayoutMethod(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
759
729
  }
760
730
 
761
731
  /**
@@ -767,7 +737,7 @@ export class PayoutMethodsApi extends BaseAPI {
767
737
  * @memberof PayoutMethodsApi
768
738
  */
769
739
  public createPayoutMethod(requestParameters: PayoutMethodsApiCreatePayoutMethodRequest, options?: AxiosRequestConfig) {
770
- return PayoutMethodsApiFp(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
740
+ return PayoutMethodsApiFp(this.configuration).createPayoutMethod(requestParameters.createPayoutMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
771
741
  }
772
742
 
773
743
  /**
@@ -779,7 +749,7 @@ export class PayoutMethodsApi extends BaseAPI {
779
749
  * @memberof PayoutMethodsApi
780
750
  */
781
751
  public createPayoutMethodByBankAccount(requestParameters: PayoutMethodsApiCreatePayoutMethodByBankAccountRequest, options?: AxiosRequestConfig) {
782
- return PayoutMethodsApiFp(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.createPayoutMethodByBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
752
+ return PayoutMethodsApiFp(this.configuration).createPayoutMethodByBankAccount(requestParameters.code, requestParameters.createPayoutMethodByBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
783
753
  }
784
754
 
785
755
  /**
@@ -791,7 +761,7 @@ export class PayoutMethodsApi extends BaseAPI {
791
761
  * @memberof PayoutMethodsApi
792
762
  */
793
763
  public deletePayoutMethod(requestParameters: PayoutMethodsApiDeletePayoutMethodRequest, options?: AxiosRequestConfig) {
794
- return PayoutMethodsApiFp(this.configuration).deletePayoutMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
764
+ return PayoutMethodsApiFp(this.configuration).deletePayoutMethod(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
795
765
  }
796
766
 
797
767
  /**
@@ -803,7 +773,7 @@ export class PayoutMethodsApi extends BaseAPI {
803
773
  * @memberof PayoutMethodsApi
804
774
  */
805
775
  public getPayoutMethod(requestParameters: PayoutMethodsApiGetPayoutMethodRequest, options?: AxiosRequestConfig) {
806
- return PayoutMethodsApiFp(this.configuration).getPayoutMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
776
+ return PayoutMethodsApiFp(this.configuration).getPayoutMethod(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
807
777
  }
808
778
 
809
779
  /**
@@ -815,6 +785,6 @@ export class PayoutMethodsApi extends BaseAPI {
815
785
  * @memberof PayoutMethodsApi
816
786
  */
817
787
  public listPayoutMethods(requestParameters: PayoutMethodsApiListPayoutMethodsRequest = {}, options?: AxiosRequestConfig) {
818
- return PayoutMethodsApiFp(this.configuration).listPayoutMethods(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));
788
+ return PayoutMethodsApiFp(this.configuration).listPayoutMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
819
789
  }
820
790
  }
@@ -67,13 +67,8 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
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
 
@@ -119,13 +114,8 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
119
114
  // http bearer authentication required
120
115
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
116
 
122
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
123
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
124
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
125
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
126
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
127
- if (authorizationValue || authorizationKeepEmpty) {
128
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
117
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
119
  }
130
120
 
131
121
 
@@ -203,13 +193,8 @@ export const PolicyPaymentMethodsApiAxiosParamCreator = function (configuration?
203
193
  localVarQueryParameter['filters'] = filters;
204
194
  }
205
195
 
206
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
207
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
208
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
209
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
210
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
211
- if (authorizationValue || authorizationKeepEmpty) {
212
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
196
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
213
198
  }
214
199
 
215
200
 
@@ -457,7 +442,7 @@ export class PolicyPaymentMethodsApi extends BaseAPI {
457
442
  * @memberof PolicyPaymentMethodsApi
458
443
  */
459
444
  public activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig) {
460
- return PolicyPaymentMethodsApiFp(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
445
+ return PolicyPaymentMethodsApiFp(this.configuration).activatePolicyPaymentMethod(requestParameters.code, requestParameters.activatePolicyPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
461
446
  }
462
447
 
463
448
  /**
@@ -469,7 +454,7 @@ export class PolicyPaymentMethodsApi extends BaseAPI {
469
454
  * @memberof PolicyPaymentMethodsApi
470
455
  */
471
456
  public createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig) {
472
- return PolicyPaymentMethodsApiFp(this.configuration).createPolicyPaymentMethod(requestParameters.createPolicyPaymentMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
457
+ return PolicyPaymentMethodsApiFp(this.configuration).createPolicyPaymentMethod(requestParameters.createPolicyPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
473
458
  }
474
459
 
475
460
  /**
@@ -481,6 +466,6 @@ export class PolicyPaymentMethodsApi extends BaseAPI {
481
466
  * @memberof PolicyPaymentMethodsApi
482
467
  */
483
468
  public listPolicyPaymentMethods(requestParameters: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
484
- return PolicyPaymentMethodsApiFp(this.configuration).listPolicyPaymentMethods(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));
469
+ return PolicyPaymentMethodsApiFp(this.configuration).listPolicyPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
485
470
  }
486
471
  }
@@ -63,13 +63,8 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
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
 
@@ -121,13 +116,8 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
121
116
  localVarQueryParameter['expand'] = expand;
122
117
  }
123
118
 
124
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
125
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
126
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
127
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
128
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
129
- if (authorizationValue || authorizationKeepEmpty) {
130
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
119
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
120
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
121
  }
132
122
 
133
123
 
@@ -202,13 +192,8 @@ export const RefundsApiAxiosParamCreator = function (configuration?: Configurati
202
192
  localVarQueryParameter['filters'] = filters;
203
193
  }
204
194
 
205
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
206
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
207
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
208
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
209
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
210
- if (authorizationValue || authorizationKeepEmpty) {
211
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
195
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
196
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
197
  }
213
198
 
214
199
 
@@ -456,7 +441,7 @@ export class RefundsApi extends BaseAPI {
456
441
  * @memberof RefundsApi
457
442
  */
458
443
  public createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig) {
459
- return RefundsApiFp(this.configuration).createRefund(requestParameters.createRefundRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
444
+ return RefundsApiFp(this.configuration).createRefund(requestParameters.createRefundRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
460
445
  }
461
446
 
462
447
  /**
@@ -468,7 +453,7 @@ export class RefundsApi extends BaseAPI {
468
453
  * @memberof RefundsApi
469
454
  */
470
455
  public getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig) {
471
- return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
456
+ return RefundsApiFp(this.configuration).getRefund(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
472
457
  }
473
458
 
474
459
  /**
@@ -480,6 +465,6 @@ export class RefundsApi extends BaseAPI {
480
465
  * @memberof RefundsApi
481
466
  */
482
467
  public listRefunds(requestParameters: RefundsApiListRefundsRequest = {}, options?: AxiosRequestConfig) {
483
- return RefundsApiFp(this.configuration).listRefunds(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));
468
+ return RefundsApiFp(this.configuration).listRefunds(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
484
469
  }
485
470
  }
@@ -67,13 +67,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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 TenantBankAccountApiAxiosParamCreator = function (configuration?: C
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
 
@@ -175,13 +165,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
175
165
  localVarQueryParameter['expand'] = expand;
176
166
  }
177
167
 
178
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
179
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
180
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
181
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
182
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
183
- if (authorizationValue || authorizationKeepEmpty) {
184
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
168
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
185
170
  }
186
171
 
187
172
 
@@ -256,13 +241,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
256
241
  localVarQueryParameter['filters'] = filters;
257
242
  }
258
243
 
259
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
260
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
261
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
262
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
263
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
264
- if (authorizationValue || authorizationKeepEmpty) {
265
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
244
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
266
246
  }
267
247
 
268
248
 
@@ -309,13 +289,8 @@ export const TenantBankAccountApiAxiosParamCreator = function (configuration?: C
309
289
  // http bearer authentication required
310
290
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
311
291
 
312
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
313
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
314
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
315
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
316
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
317
- if (authorizationValue || authorizationKeepEmpty) {
318
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
292
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
294
  }
320
295
 
321
296
 
@@ -663,7 +638,7 @@ export class TenantBankAccountApi extends BaseAPI {
663
638
  * @memberof TenantBankAccountApi
664
639
  */
665
640
  public createTenantBankAccount(requestParameters: TenantBankAccountApiCreateTenantBankAccountRequest, options?: AxiosRequestConfig) {
666
- return TenantBankAccountApiFp(this.configuration).createTenantBankAccount(requestParameters.createTenantBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
641
+ return TenantBankAccountApiFp(this.configuration).createTenantBankAccount(requestParameters.createTenantBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
667
642
  }
668
643
 
669
644
  /**
@@ -675,7 +650,7 @@ export class TenantBankAccountApi extends BaseAPI {
675
650
  * @memberof TenantBankAccountApi
676
651
  */
677
652
  public deleteTenantBankAccount(requestParameters: TenantBankAccountApiDeleteTenantBankAccountRequest, options?: AxiosRequestConfig) {
678
- return TenantBankAccountApiFp(this.configuration).deleteTenantBankAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
653
+ return TenantBankAccountApiFp(this.configuration).deleteTenantBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
654
  }
680
655
 
681
656
  /**
@@ -687,7 +662,7 @@ export class TenantBankAccountApi extends BaseAPI {
687
662
  * @memberof TenantBankAccountApi
688
663
  */
689
664
  public getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig) {
690
- return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
665
+ return TenantBankAccountApiFp(this.configuration).getTenantBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
691
666
  }
692
667
 
693
668
  /**
@@ -699,7 +674,7 @@ export class TenantBankAccountApi extends BaseAPI {
699
674
  * @memberof TenantBankAccountApi
700
675
  */
701
676
  public listTenantBankAccounts(requestParameters: TenantBankAccountApiListTenantBankAccountsRequest = {}, options?: AxiosRequestConfig) {
702
- return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(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));
677
+ return TenantBankAccountApiFp(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
703
678
  }
704
679
 
705
680
  /**
@@ -711,6 +686,6 @@ export class TenantBankAccountApi extends BaseAPI {
711
686
  * @memberof TenantBankAccountApi
712
687
  */
713
688
  public updateTenantBankAccount(requestParameters: TenantBankAccountApiUpdateTenantBankAccountRequest, options?: AxiosRequestConfig) {
714
- return TenantBankAccountApiFp(this.configuration).updateTenantBankAccount(requestParameters.code, requestParameters.updateTenantBankAccountRestRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
689
+ return TenantBankAccountApiFp(this.configuration).updateTenantBankAccount(requestParameters.code, requestParameters.updateTenantBankAccountRestRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
715
690
  }
716
691
  }
@@ -276,7 +276,7 @@ export class WebhooksApi extends BaseAPI {
276
276
  * @memberof WebhooksApi
277
277
  */
278
278
  public postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig) {
279
- return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
279
+ return WebhooksApiFp(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
280
280
  }
281
281
 
282
282
  /**
@@ -288,6 +288,6 @@ export class WebhooksApi extends BaseAPI {
288
288
  * @memberof WebhooksApi
289
289
  */
290
290
  public postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig) {
291
- return WebhooksApiFp(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
291
+ return WebhooksApiFp(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
292
292
  }
293
293
  }