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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +24 -12
  4. package/api/bank-orders-api.ts +20 -10
  5. package/api/bank-transaction-api.ts +24 -12
  6. package/api/billing-addresses-api.ts +20 -10
  7. package/api/credit-allocation-api.ts +12 -6
  8. package/api/exceeding-credits-api.ts +117 -4
  9. package/api/ibanvalidator-api.ts +4 -2
  10. package/api/payment-methods-api.ts +12 -6
  11. package/api/payment-receipts-api.ts +20 -10
  12. package/api/payment-reminders-api.ts +16 -8
  13. package/api/payment-requests-api.ts +32 -22
  14. package/api/payment-setup-api.ts +8 -4
  15. package/api/payments-api.ts +24 -12
  16. package/api/payout-methods-api.ts +24 -12
  17. package/api/policy-payment-methods-api.ts +12 -6
  18. package/api/refunds-api.ts +12 -6
  19. package/api/tenant-bank-account-api.ts +20 -10
  20. package/base.ts +174 -41
  21. package/configuration.ts +20 -0
  22. package/dist/api/bank-accounts-api.js +36 -22
  23. package/dist/api/bank-orders-api.js +29 -18
  24. package/dist/api/bank-transaction-api.js +36 -22
  25. package/dist/api/billing-addresses-api.js +32 -19
  26. package/dist/api/credit-allocation-api.js +18 -11
  27. package/dist/api/exceeding-credits-api.d.ts +57 -0
  28. package/dist/api/exceeding-credits-api.js +107 -7
  29. package/dist/api/ibanvalidator-api.js +7 -4
  30. package/dist/api/payment-methods-api.js +18 -11
  31. package/dist/api/payment-receipts-api.js +29 -18
  32. package/dist/api/payment-reminders-api.js +25 -15
  33. package/dist/api/payment-requests-api.d.ts +12 -12
  34. package/dist/api/payment-requests-api.js +38 -27
  35. package/dist/api/payment-setup-api.js +14 -8
  36. package/dist/api/payments-api.js +28 -18
  37. package/dist/api/payout-methods-api.js +36 -22
  38. package/dist/api/policy-payment-methods-api.js +18 -11
  39. package/dist/api/refunds-api.js +15 -10
  40. package/dist/api/tenant-bank-account-api.js +29 -18
  41. package/dist/base.d.ts +24 -0
  42. package/dist/base.js +178 -59
  43. package/dist/configuration.d.ts +17 -0
  44. package/dist/configuration.js +2 -0
  45. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  46. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  47. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  48. package/dist/models/create-exceeding-credit-response-class.js +15 -0
  49. package/dist/models/create-payment-order-dto.d.ts +1 -1
  50. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  51. package/dist/models/create-payment-request-dto.d.ts +1 -1
  52. package/dist/models/create-payment-request-request-dto.d.ts +6 -0
  53. package/dist/models/credit-allocation-class.d.ts +6 -0
  54. package/dist/models/credit-allocation-entity.d.ts +6 -0
  55. package/dist/models/index.d.ts +2 -0
  56. package/dist/models/index.js +2 -0
  57. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  58. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  59. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  60. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  61. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  62. package/dist/models/list-refunds-response-class.d.ts +6 -18
  63. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  64. package/dist/models/payment-class.d.ts +2 -2
  65. package/dist/models/payment-entity.d.ts +1 -1
  66. package/dist/models/payment-receipt-class.d.ts +1 -1
  67. package/dist/models/payment-request-class.d.ts +12 -6
  68. package/dist/models/shared-transaction-class.d.ts +6 -0
  69. package/dist/models/transaction-entity.d.ts +6 -0
  70. package/models/create-exceeding-credit-request-dto.ts +54 -0
  71. package/models/create-exceeding-credit-response-class.ts +31 -0
  72. package/models/create-payment-order-dto.ts +1 -1
  73. package/models/create-payment-receipt-request-dto.ts +1 -1
  74. package/models/create-payment-request-dto.ts +1 -1
  75. package/models/create-payment-request-request-dto.ts +6 -0
  76. package/models/credit-allocation-class.ts +6 -0
  77. package/models/credit-allocation-entity.ts +6 -0
  78. package/models/index.ts +2 -0
  79. package/models/list-billing-addresses-response-class.ts +9 -9
  80. package/models/list-exceeding-credits-response-class.ts +6 -18
  81. package/models/list-payment-receipts-response-class.ts +9 -9
  82. package/models/list-payment-requests-response-class.ts +6 -18
  83. package/models/list-payout-methods-response-class.ts +9 -9
  84. package/models/list-refunds-response-class.ts +6 -18
  85. package/models/payment-class-without-expand-properties.ts +2 -2
  86. package/models/payment-class.ts +2 -2
  87. package/models/payment-entity.ts +1 -1
  88. package/models/payment-receipt-class.ts +1 -1
  89. package/models/payment-request-class.ts +12 -6
  90. package/models/shared-transaction-class.ts +6 -0
  91. package/models/transaction-entity.ts +6 -0
  92. package/package.json +1 -1
@@ -60,6 +60,8 @@ models/create-billing-address-request-dto.ts
60
60
  models/create-billing-address-response-class.ts
61
61
  models/create-credit-allocation-request-dto.ts
62
62
  models/create-credit-allocation-response-class.ts
63
+ models/create-exceeding-credit-request-dto.ts
64
+ models/create-exceeding-credit-response-class.ts
63
65
  models/create-payment-method-response-class.ts
64
66
  models/create-payment-order-dto.ts
65
67
  models/create-payment-order-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/payment-sdk@1.22.1-beta.68 --save
20
+ npm install @emilgroup/payment-sdk@1.22.1-beta.71 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/payment-sdk@1.22.1-beta.68
24
+ yarn add @emilgroup/payment-sdk@1.22.1-beta.71
25
25
  ```
26
26
 
27
27
  And then you can import `PaymentsApi`.
@@ -69,8 +69,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
72
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
72
+ // Only Authorization falls back to the configured token; an empty value is never sent.
73
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
74
+ if (authorizationValue) {
75
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
76
  }
75
77
 
76
78
 
@@ -117,8 +119,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
117
119
  // http bearer authentication required
118
120
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
121
 
120
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
121
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
122
+ // Only Authorization falls back to the configured token; an empty value is never sent.
123
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
124
+ if (authorizationValue) {
125
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
122
126
  }
123
127
 
124
128
 
@@ -167,8 +171,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
167
171
  localVarQueryParameter['expand'] = expand;
168
172
  }
169
173
 
170
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
+ // Only Authorization falls back to the configured token; an empty value is never sent.
175
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
176
+ if (authorizationValue) {
177
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
172
178
  }
173
179
 
174
180
 
@@ -243,8 +249,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
243
249
  localVarQueryParameter['filters'] = filters;
244
250
  }
245
251
 
246
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ // Only Authorization falls back to the configured token; an empty value is never sent.
253
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
254
+ if (authorizationValue) {
255
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
248
256
  }
249
257
 
250
258
 
@@ -291,8 +299,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
291
299
  // http bearer authentication required
292
300
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
301
 
294
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
+ // Only Authorization falls back to the configured token; an empty value is never sent.
303
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
304
+ if (authorizationValue) {
305
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
296
306
  }
297
307
 
298
308
 
@@ -342,8 +352,10 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
342
352
  // http bearer authentication required
343
353
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
344
354
 
345
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
355
+ // Only Authorization falls back to the configured token; an empty value is never sent.
356
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
357
+ if (authorizationValue) {
358
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
347
359
  }
348
360
 
349
361
 
@@ -67,8 +67,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token; an empty value is never sent.
71
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
+ if (authorizationValue) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
74
  }
73
75
 
74
76
 
@@ -115,8 +117,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
115
117
  // http bearer authentication required
116
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
119
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ // Only Authorization falls back to the configured token; an empty value is never sent.
121
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
+ if (authorizationValue) {
123
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
124
  }
121
125
 
122
126
 
@@ -165,8 +169,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
165
169
  localVarQueryParameter['expand'] = expand;
166
170
  }
167
171
 
168
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ // Only Authorization falls back to the configured token; an empty value is never sent.
173
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
+ if (authorizationValue) {
175
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
176
  }
171
177
 
172
178
 
@@ -241,8 +247,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
241
247
  localVarQueryParameter['filters'] = filters;
242
248
  }
243
249
 
244
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
250
+ // Only Authorization falls back to the configured token; an empty value is never sent.
251
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
252
+ if (authorizationValue) {
253
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
254
  }
247
255
 
248
256
 
@@ -289,8 +297,10 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
289
297
  // http bearer authentication required
290
298
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
291
299
 
292
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ // Only Authorization falls back to the configured token; an empty value is never sent.
301
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
302
+ if (authorizationValue) {
303
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
294
304
  }
295
305
 
296
306
 
@@ -70,8 +70,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
70
70
  // http bearer authentication required
71
71
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
72
72
 
73
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
74
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
+ // Only Authorization falls back to the configured token; an empty value is never sent.
74
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
75
+ if (authorizationValue) {
76
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
75
77
  }
76
78
 
77
79
 
@@ -120,8 +122,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
120
122
  localVarQueryParameter['expand'] = expand;
121
123
  }
122
124
 
123
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
124
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
125
+ // Only Authorization falls back to the configured token; an empty value is never sent.
126
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
127
+ if (authorizationValue) {
128
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
125
129
  }
126
130
 
127
131
 
@@ -165,8 +169,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
165
169
  // http bearer authentication required
166
170
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
167
171
 
168
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ // Only Authorization falls back to the configured token; an empty value is never sent.
173
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
174
+ if (authorizationValue) {
175
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
176
  }
171
177
 
172
178
 
@@ -220,8 +226,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
220
226
  // http bearer authentication required
221
227
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
222
228
 
223
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
229
+ // Only Authorization falls back to the configured token; an empty value is never sent.
230
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
231
+ if (authorizationValue) {
232
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
225
233
  }
226
234
 
227
235
 
@@ -299,8 +307,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
299
307
  localVarQueryParameter['filters'] = filters;
300
308
  }
301
309
 
302
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ // Only Authorization falls back to the configured token; an empty value is never sent.
311
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
304
314
  }
305
315
 
306
316
 
@@ -344,8 +354,10 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
344
354
  // http bearer authentication required
345
355
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
346
356
 
347
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
348
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
+ // Only Authorization falls back to the configured token; an empty value is never sent.
358
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
359
+ if (authorizationValue) {
360
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
349
361
  }
350
362
 
351
363
 
@@ -67,8 +67,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
+ // Only Authorization falls back to the configured token; an empty value is never sent.
71
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
+ if (authorizationValue) {
73
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
72
74
  }
73
75
 
74
76
 
@@ -115,8 +117,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
115
117
  // http bearer authentication required
116
118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
119
 
118
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
+ // Only Authorization falls back to the configured token; an empty value is never sent.
121
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
+ if (authorizationValue) {
123
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
124
  }
121
125
 
122
126
 
@@ -160,8 +164,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
160
164
  // http bearer authentication required
161
165
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
166
 
163
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
167
+ // Only Authorization falls back to the configured token; an empty value is never sent.
168
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
169
+ if (authorizationValue) {
170
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
165
171
  }
166
172
 
167
173
 
@@ -236,8 +242,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
236
242
  localVarQueryParameter['filters'] = filters;
237
243
  }
238
244
 
239
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
245
+ // Only Authorization falls back to the configured token; an empty value is never sent.
246
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
247
+ if (authorizationValue) {
248
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
241
249
  }
242
250
 
243
251
 
@@ -284,8 +292,10 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
284
292
  // http bearer authentication required
285
293
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
286
294
 
287
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
288
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
295
+ // Only Authorization falls back to the configured token; an empty value is never sent.
296
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
297
+ if (authorizationValue) {
298
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
289
299
  }
290
300
 
291
301
 
@@ -63,8 +63,10 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
+ // Only Authorization falls back to the configured token; an empty value is never sent.
67
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
+ if (authorizationValue) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
70
  }
69
71
 
70
72
 
@@ -111,8 +113,10 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
111
113
  // http bearer authentication required
112
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
115
 
114
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ // Only Authorization falls back to the configured token; an empty value is never sent.
117
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
+ if (authorizationValue) {
119
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
116
120
  }
117
121
 
118
122
 
@@ -187,8 +191,10 @@ export const CreditAllocationApiAxiosParamCreator = function (configuration?: Co
187
191
  localVarQueryParameter['filters'] = filters;
188
192
  }
189
193
 
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
+ // Only Authorization falls back to the configured token; an empty value is never sent.
195
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
196
+ if (authorizationValue) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
198
  }
193
199
 
194
200
 
@@ -21,6 +21,10 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { CreateExceedingCreditRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateExceedingCreditResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { GetExceedingCreditResponseClass } from '../models';
25
29
  // @ts-ignore
26
30
  import { ListExceedingCreditsResponseClass } from '../models';
@@ -30,6 +34,55 @@ import { ListExceedingCreditsResponseClass } from '../models';
30
34
  */
31
35
  export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Configuration) {
32
36
  return {
37
+ /**
38
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
39
+ * @summary Create the exceeding credit
40
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
41
+ * @param {string} [authorization] Bearer Token
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ createExceedingCredit: async (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
47
+ assertParamExists('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto)
48
+ const localVarPath = `/paymentservice/v1/exceeding-credits`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ let baseAccessToken;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ baseAccessToken = configuration.accessToken;
56
+ }
57
+
58
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
+ const localVarHeaderParameter = {} as any;
60
+ const localVarQueryParameter = {} as any;
61
+
62
+ // authentication bearer required
63
+ // http bearer authentication required
64
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
+
66
+ // Only Authorization falls back to the configured token; an empty value is never sent.
67
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
+ if (authorizationValue) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ }
71
+
72
+
73
+
74
+ localVarHeaderParameter['Content-Type'] = 'application/json';
75
+
76
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
77
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
+ localVarRequestOptions.data = serializeDataIfNeeded(createExceedingCreditRequestDto, localVarRequestOptions, configuration)
80
+
81
+ return {
82
+ url: toPathString(localVarUrlObj),
83
+ options: localVarRequestOptions,
84
+ };
85
+ },
33
86
  /**
34
87
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
35
88
  * @summary Retrieve the exceeding credit
@@ -60,8 +113,10 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
60
113
  // http bearer authentication required
61
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
115
 
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ // Only Authorization falls back to the configured token; an empty value is never sent.
117
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
+ if (authorizationValue) {
119
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
65
120
  }
66
121
 
67
122
 
@@ -136,8 +191,10 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
136
191
  localVarQueryParameter['filters'] = filters;
137
192
  }
138
193
 
139
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
140
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
+ // Only Authorization falls back to the configured token; an empty value is never sent.
195
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
196
+ if (authorizationValue) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
141
198
  }
142
199
 
143
200
 
@@ -161,6 +218,18 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
161
218
  export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
162
219
  const localVarAxiosParamCreator = ExceedingCreditsApiAxiosParamCreator(configuration)
163
220
  return {
221
+ /**
222
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
223
+ * @summary Create the exceeding credit
224
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
225
+ * @param {string} [authorization] Bearer Token
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ async createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>> {
230
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options);
231
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
232
+ },
164
233
  /**
165
234
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
166
235
  * @summary Retrieve the exceeding credit
@@ -201,6 +270,17 @@ export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
201
270
  export const ExceedingCreditsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
202
271
  const localVarFp = ExceedingCreditsApiFp(configuration)
203
272
  return {
273
+ /**
274
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
275
+ * @summary Create the exceeding credit
276
+ * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
277
+ * @param {string} [authorization] Bearer Token
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass> {
282
+ return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then((request) => request(axios, basePath));
283
+ },
204
284
  /**
205
285
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
206
286
  * @summary Retrieve the exceeding credit
@@ -232,6 +312,27 @@ export const ExceedingCreditsApiFactory = function (configuration?: Configuratio
232
312
  };
233
313
  };
234
314
 
315
+ /**
316
+ * Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
317
+ * @export
318
+ * @interface ExceedingCreditsApiCreateExceedingCreditRequest
319
+ */
320
+ export interface ExceedingCreditsApiCreateExceedingCreditRequest {
321
+ /**
322
+ *
323
+ * @type {CreateExceedingCreditRequestDto}
324
+ * @memberof ExceedingCreditsApiCreateExceedingCredit
325
+ */
326
+ readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto
327
+
328
+ /**
329
+ * Bearer Token
330
+ * @type {string}
331
+ * @memberof ExceedingCreditsApiCreateExceedingCredit
332
+ */
333
+ readonly authorization?: string
334
+ }
335
+
235
336
  /**
236
337
  * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
237
338
  * @export
@@ -323,6 +424,18 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
323
424
  * @extends {BaseAPI}
324
425
  */
325
426
  export class ExceedingCreditsApi extends BaseAPI {
427
+ /**
428
+ * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
429
+ * @summary Create the exceeding credit
430
+ * @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ * @memberof ExceedingCreditsApi
434
+ */
435
+ public createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig) {
436
+ return ExceedingCreditsApiFp(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
437
+ }
438
+
326
439
  /**
327
440
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
328
441
  * @summary Retrieve the exceeding credit
@@ -59,8 +59,10 @@ export const IBANValidatorApiAxiosParamCreator = function (configuration?: Confi
59
59
  // http bearer authentication required
60
60
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
61
 
62
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
62
+ // Only Authorization falls back to the configured token; an empty value is never sent.
63
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
64
+ if (authorizationValue) {
65
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
64
66
  }
65
67
 
66
68
 
@@ -63,8 +63,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
66
+ // Only Authorization falls back to the configured token; an empty value is never sent.
67
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
+ if (authorizationValue) {
69
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
70
  }
69
71
 
70
72
 
@@ -111,8 +113,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
111
113
  // http bearer authentication required
112
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
115
 
114
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ // Only Authorization falls back to the configured token; an empty value is never sent.
117
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
+ if (authorizationValue) {
119
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
116
120
  }
117
121
 
118
122
 
@@ -187,8 +191,10 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
187
191
  localVarQueryParameter['filters'] = filters;
188
192
  }
189
193
 
190
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
+ // Only Authorization falls back to the configured token; an empty value is never sent.
195
+ const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
196
+ if (authorizationValue) {
197
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
198
  }
193
199
 
194
200