@emilgroup/accounting-sdk 1.34.1-beta.82 → 1.34.1-beta.84

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 (34) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +48 -24
  4. package/api/booking-entries-api.ts +30 -15
  5. package/api/commission-account-mappings-api.ts +48 -24
  6. package/api/financial-accounts-api.ts +30 -15
  7. package/api/financial-transactions-api.ts +12 -6
  8. package/api/number-ranges-api.ts +24 -12
  9. package/api/personal-accounts-api.ts +24 -12
  10. package/api/product-account-mappings-api.ts +72 -36
  11. package/base.ts +14 -0
  12. package/dist/api/accounting-configs-api.js +88 -56
  13. package/dist/api/booking-entries-api.js +51 -33
  14. package/dist/api/commission-account-mappings-api.js +82 -53
  15. package/dist/api/financial-accounts-api.js +51 -33
  16. package/dist/api/financial-transactions-api.js +18 -12
  17. package/dist/api/number-ranges-api.js +40 -26
  18. package/dist/api/personal-accounts-api.js +40 -26
  19. package/dist/api/product-account-mappings-api.js +128 -82
  20. package/dist/base.js +15 -1
  21. package/dist/models/accounting-config-data-class.d.ts +7 -0
  22. package/dist/models/accounting-config-data-dto.d.ts +7 -0
  23. package/dist/models/index.d.ts +2 -0
  24. package/dist/models/index.js +2 -0
  25. package/dist/models/personal-account-range-class.d.ts +42 -0
  26. package/dist/models/personal-account-range-class.js +21 -0
  27. package/dist/models/personal-account-range-dto.d.ts +42 -0
  28. package/dist/models/personal-account-range-dto.js +21 -0
  29. package/models/accounting-config-data-class.ts +7 -0
  30. package/models/accounting-config-data-dto.ts +7 -0
  31. package/models/index.ts +2 -0
  32. package/models/personal-account-range-class.ts +51 -0
  33. package/models/personal-account-range-dto.ts +51 -0
  34. package/package.json +1 -1
@@ -70,6 +70,8 @@ models/list-products-with-account-mappings-response-class.ts
70
70
  models/number-range-class.ts
71
71
  models/opening-balance-item-dto.ts
72
72
  models/personal-account-class.ts
73
+ models/personal-account-range-class.ts
74
+ models/personal-account-range-dto.ts
73
75
  models/post-financial-event-request-dto.ts
74
76
  models/post-financial-event-response-class.ts
75
77
  models/premium-item-account-mapping-class.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/accounting-sdk@1.34.1-beta.82 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.84 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.82
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.84
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -69,9 +69,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
69
69
  // http bearer authentication required
70
70
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
71
 
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) {
72
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
73
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
74
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
75
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
76
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
77
+ if (authorizationValue || authorizationKeepEmpty) {
75
78
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
76
79
  }
77
80
 
@@ -119,9 +122,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
119
122
  // http bearer authentication required
120
123
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
124
 
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
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
128
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
129
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
130
+ if (authorizationValue || authorizationKeepEmpty) {
125
131
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
126
132
  }
127
133
 
@@ -169,9 +175,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
169
175
  // http bearer authentication required
170
176
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
171
177
 
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) {
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) {
175
184
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
176
185
  }
177
186
 
@@ -212,9 +221,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
212
221
  // http bearer authentication required
213
222
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
214
223
 
215
- // Only Authorization falls back to the configured token; an empty value is never sent.
216
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
217
- if (authorizationValue) {
224
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
225
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
226
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
227
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
228
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
229
+ if (authorizationValue || authorizationKeepEmpty) {
218
230
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
219
231
  }
220
232
 
@@ -255,9 +267,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
255
267
  // http bearer authentication required
256
268
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
257
269
 
258
- // Only Authorization falls back to the configured token; an empty value is never sent.
259
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
- if (authorizationValue) {
270
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
271
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
272
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
273
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
274
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
275
+ if (authorizationValue || authorizationKeepEmpty) {
261
276
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
262
277
  }
263
278
 
@@ -298,9 +313,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
298
313
  // http bearer authentication required
299
314
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
300
315
 
301
- // Only Authorization falls back to the configured token; an empty value is never sent.
302
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
303
- if (authorizationValue) {
316
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
317
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
318
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
319
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
320
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
321
+ if (authorizationValue || authorizationKeepEmpty) {
304
322
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
305
323
  }
306
324
 
@@ -344,9 +362,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
344
362
  // http bearer authentication required
345
363
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
346
364
 
347
- // Only Authorization falls back to the configured token; an empty value is never sent.
348
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
349
- if (authorizationValue) {
365
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
366
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
367
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
368
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
369
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
370
+ if (authorizationValue || authorizationKeepEmpty) {
350
371
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
351
372
  }
352
373
 
@@ -394,9 +415,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
394
415
  // http bearer authentication required
395
416
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
396
417
 
397
- // Only Authorization falls back to the configured token; an empty value is never sent.
398
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
399
- if (authorizationValue) {
418
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
419
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
420
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
421
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
422
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
423
+ if (authorizationValue || authorizationKeepEmpty) {
400
424
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
401
425
  }
402
426
 
@@ -71,9 +71,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
71
71
  // http bearer authentication required
72
72
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
73
 
74
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
74
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
75
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
76
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
77
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
78
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
79
+ if (authorizationValue || authorizationKeepEmpty) {
77
80
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
78
81
  }
79
82
 
@@ -120,9 +123,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
120
123
  // http bearer authentication required
121
124
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
122
125
 
123
- // Only Authorization falls back to the configured token; an empty value is never sent.
124
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
125
- if (authorizationValue) {
126
+ // 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) {
126
132
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
133
  }
128
134
 
@@ -177,9 +183,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
177
183
  localVarQueryParameter['expand'] = expand;
178
184
  }
179
185
 
180
- // Only Authorization falls back to the configured token; an empty value is never sent.
181
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
- if (authorizationValue) {
186
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
187
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
188
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
189
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
190
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
191
+ if (authorizationValue || authorizationKeepEmpty) {
183
192
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
193
  }
185
194
 
@@ -255,9 +264,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
255
264
  localVarQueryParameter['filters'] = filters;
256
265
  }
257
266
 
258
- // Only Authorization falls back to the configured token; an empty value is never sent.
259
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
260
- if (authorizationValue) {
267
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
268
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
269
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
270
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
271
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
272
+ if (authorizationValue || authorizationKeepEmpty) {
261
273
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
262
274
  }
263
275
 
@@ -301,9 +313,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
301
313
  // http bearer authentication required
302
314
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
303
315
 
304
- // Only Authorization falls back to the configured token; an empty value is never sent.
305
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
306
- if (authorizationValue) {
316
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
317
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
318
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
319
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
320
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
321
+ if (authorizationValue || authorizationKeepEmpty) {
307
322
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
308
323
  }
309
324
 
@@ -74,9 +74,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
74
74
  // http bearer authentication required
75
75
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
76
76
 
77
- // Only Authorization falls back to the configured token; an empty value is never sent.
78
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
79
- if (authorizationValue) {
77
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
78
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
79
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
80
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
81
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
82
+ if (authorizationValue || authorizationKeepEmpty) {
80
83
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
81
84
  }
82
85
 
@@ -121,9 +124,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
121
124
  // http bearer authentication required
122
125
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
126
 
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
126
- if (authorizationValue) {
127
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
128
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
129
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
130
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
131
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
132
+ if (authorizationValue || authorizationKeepEmpty) {
127
133
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
134
  }
129
135
 
@@ -168,9 +174,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
168
174
  // http bearer authentication required
169
175
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
170
176
 
171
- // Only Authorization falls back to the configured token; an empty value is never sent.
172
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
173
- if (authorizationValue) {
177
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
178
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
179
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
180
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
181
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
182
+ if (authorizationValue || authorizationKeepEmpty) {
174
183
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
175
184
  }
176
185
 
@@ -246,9 +255,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
246
255
  localVarQueryParameter['filters'] = filters;
247
256
  }
248
257
 
249
- // Only Authorization falls back to the configured token; an empty value is never sent.
250
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
251
- if (authorizationValue) {
258
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
259
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
260
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
261
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
262
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
263
+ if (authorizationValue || authorizationKeepEmpty) {
252
264
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
253
265
  }
254
266
 
@@ -324,9 +336,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
324
336
  localVarQueryParameter['filters'] = filters;
325
337
  }
326
338
 
327
- // Only Authorization falls back to the configured token; an empty value is never sent.
328
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
329
- if (authorizationValue) {
339
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
340
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
341
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
342
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
343
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
344
+ if (authorizationValue || authorizationKeepEmpty) {
330
345
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
331
346
  }
332
347
 
@@ -402,9 +417,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
402
417
  localVarQueryParameter['filters'] = filters;
403
418
  }
404
419
 
405
- // Only Authorization falls back to the configured token; an empty value is never sent.
406
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
407
- if (authorizationValue) {
420
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
421
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
422
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
423
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
424
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
425
+ if (authorizationValue || authorizationKeepEmpty) {
408
426
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
409
427
  }
410
428
 
@@ -456,9 +474,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
456
474
  // http bearer authentication required
457
475
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
458
476
 
459
- // Only Authorization falls back to the configured token; an empty value is never sent.
460
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
461
- if (authorizationValue) {
477
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
478
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
479
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
480
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
481
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
482
+ if (authorizationValue || authorizationKeepEmpty) {
462
483
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
463
484
  }
464
485
 
@@ -509,9 +530,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
509
530
  // http bearer authentication required
510
531
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
511
532
 
512
- // Only Authorization falls back to the configured token; an empty value is never sent.
513
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
514
- if (authorizationValue) {
533
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
534
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
535
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
536
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
537
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
538
+ if (authorizationValue || authorizationKeepEmpty) {
515
539
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
516
540
  }
517
541
 
@@ -67,9 +67,12 @@ export const FinancialAccountsApiAxiosParamCreator = 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; an empty value is never sent.
71
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
- if (authorizationValue) {
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) {
73
76
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
77
  }
75
78
 
@@ -117,9 +120,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
117
120
  // http bearer authentication required
118
121
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
122
 
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
+ // 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) {
123
129
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
124
130
  }
125
131
 
@@ -171,9 +177,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
171
177
  localVarQueryParameter['expand'] = expand;
172
178
  }
173
179
 
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) {
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) {
177
186
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
187
  }
179
188
 
@@ -249,9 +258,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
249
258
  localVarQueryParameter['filters'] = filters;
250
259
  }
251
260
 
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) {
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) {
255
267
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
256
268
  }
257
269
 
@@ -299,9 +311,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
299
311
  // http bearer authentication required
300
312
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
301
313
 
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) {
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) {
305
320
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
321
  }
307
322
 
@@ -67,9 +67,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
67
67
  localVarQueryParameter['expand'] = expand;
68
68
  }
69
69
 
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) {
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) {
73
76
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
77
  }
75
78
 
@@ -145,9 +148,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
145
148
  localVarQueryParameter['filters'] = filters;
146
149
  }
147
150
 
148
- // Only Authorization falls back to the configured token; an empty value is never sent.
149
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
150
- if (authorizationValue) {
151
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
152
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
153
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
154
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
155
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
156
+ if (authorizationValue || authorizationKeepEmpty) {
151
157
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
152
158
  }
153
159
 
@@ -63,9 +63,12 @@ export const NumberRangesApiAxiosParamCreator = 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; an empty value is never sent.
67
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
- if (authorizationValue) {
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) {
69
72
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
73
  }
71
74
 
@@ -113,9 +116,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
113
116
  // http bearer authentication required
114
117
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
118
 
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
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
120
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
121
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
122
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
123
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
124
+ if (authorizationValue || authorizationKeepEmpty) {
119
125
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
120
126
  }
121
127
 
@@ -167,9 +173,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
167
173
  localVarQueryParameter['expand'] = expand;
168
174
  }
169
175
 
170
- // Only Authorization falls back to the configured token; an empty value is never sent.
171
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
172
- if (authorizationValue) {
176
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
177
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
178
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
179
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
180
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
181
+ if (authorizationValue || authorizationKeepEmpty) {
173
182
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
174
183
  }
175
184
 
@@ -245,9 +254,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
245
254
  localVarQueryParameter['filters'] = filters;
246
255
  }
247
256
 
248
- // Only Authorization falls back to the configured token; an empty value is never sent.
249
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
250
- if (authorizationValue) {
257
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
258
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
259
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
260
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
261
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
262
+ if (authorizationValue || authorizationKeepEmpty) {
251
263
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
252
264
  }
253
265