@emilgroup/accounting-sdk-node 1.32.1-beta.81 → 1.32.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.
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-node@1.32.1-beta.81 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.83 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.81
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.83
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -73,9 +73,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
73
73
  // http bearer authentication required
74
74
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
75
75
 
76
- // Only Authorization falls back to the configured token; an empty value is never sent.
77
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
78
- if (authorizationValue) {
76
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
77
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
78
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
79
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
80
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
81
+ if (authorizationValue || authorizationKeepEmpty) {
79
82
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
80
83
  }
81
84
 
@@ -123,9 +126,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
123
126
  // http bearer authentication required
124
127
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
128
 
126
- // Only Authorization falls back to the configured token; an empty value is never sent.
127
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
128
- if (authorizationValue) {
129
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
130
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
131
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
132
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
133
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
134
+ if (authorizationValue || authorizationKeepEmpty) {
129
135
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
136
  }
131
137
 
@@ -174,9 +180,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
174
180
  // http bearer authentication required
175
181
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
176
182
 
177
- // Only Authorization falls back to the configured token; an empty value is never sent.
178
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
179
- if (authorizationValue) {
183
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
184
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
185
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
186
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
187
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
188
+ if (authorizationValue || authorizationKeepEmpty) {
180
189
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
190
  }
182
191
 
@@ -217,9 +226,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
217
226
  // http bearer authentication required
218
227
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
219
228
 
220
- // Only Authorization falls back to the configured token; an empty value is never sent.
221
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
222
- if (authorizationValue) {
229
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
230
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
231
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
232
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
233
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
234
+ if (authorizationValue || authorizationKeepEmpty) {
223
235
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
224
236
  }
225
237
 
@@ -260,9 +272,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
260
272
  // http bearer authentication required
261
273
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
262
274
 
263
- // Only Authorization falls back to the configured token; an empty value is never sent.
264
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
265
- if (authorizationValue) {
275
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
276
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
277
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
278
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
279
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
280
+ if (authorizationValue || authorizationKeepEmpty) {
266
281
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
267
282
  }
268
283
 
@@ -303,9 +318,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
303
318
  // http bearer authentication required
304
319
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
305
320
 
306
- // Only Authorization falls back to the configured token; an empty value is never sent.
307
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
- if (authorizationValue) {
321
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
322
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
323
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
326
+ if (authorizationValue || authorizationKeepEmpty) {
309
327
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
328
  }
311
329
 
@@ -349,9 +367,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
349
367
  // http bearer authentication required
350
368
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
351
369
 
352
- // Only Authorization falls back to the configured token; an empty value is never sent.
353
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
354
- if (authorizationValue) {
370
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
371
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
372
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
373
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
374
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
375
+ if (authorizationValue || authorizationKeepEmpty) {
355
376
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
356
377
  }
357
378
 
@@ -399,9 +420,12 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
399
420
  // http bearer authentication required
400
421
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
401
422
 
402
- // Only Authorization falls back to the configured token; an empty value is never sent.
403
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
404
- if (authorizationValue) {
423
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
424
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
425
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
426
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
427
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
428
+ if (authorizationValue || authorizationKeepEmpty) {
405
429
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
430
  }
407
431
 
@@ -75,9 +75,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
75
75
  // http bearer authentication required
76
76
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
77
 
78
- // Only Authorization falls back to the configured token; an empty value is never sent.
79
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
80
- if (authorizationValue) {
78
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
79
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
80
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
81
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
82
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
83
+ if (authorizationValue || authorizationKeepEmpty) {
81
84
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
82
85
  }
83
86
 
@@ -124,9 +127,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
124
127
  // http bearer authentication required
125
128
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
126
129
 
127
- // Only Authorization falls back to the configured token; an empty value is never sent.
128
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
129
- if (authorizationValue) {
130
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
131
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
132
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
135
+ if (authorizationValue || authorizationKeepEmpty) {
130
136
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
131
137
  }
132
138
 
@@ -181,9 +187,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
181
187
  localVarQueryParameter['expand'] = expand;
182
188
  }
183
189
 
184
- // Only Authorization falls back to the configured token; an empty value is never sent.
185
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
186
- if (authorizationValue) {
190
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
191
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
192
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
193
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
194
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
195
+ if (authorizationValue || authorizationKeepEmpty) {
187
196
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
197
  }
189
198
 
@@ -259,9 +268,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
259
268
  localVarQueryParameter['filters'] = filters;
260
269
  }
261
270
 
262
- // Only Authorization falls back to the configured token; an empty value is never sent.
263
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
264
- if (authorizationValue) {
271
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
272
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
273
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
274
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
275
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
276
+ if (authorizationValue || authorizationKeepEmpty) {
265
277
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
266
278
  }
267
279
 
@@ -305,9 +317,12 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
305
317
  // http bearer authentication required
306
318
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
307
319
 
308
- // Only Authorization falls back to the configured token; an empty value is never sent.
309
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
- if (authorizationValue) {
320
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
321
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
322
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
323
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
324
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
325
+ if (authorizationValue || authorizationKeepEmpty) {
311
326
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
312
327
  }
313
328
 
@@ -78,9 +78,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
78
78
  // http bearer authentication required
79
79
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
80
80
 
81
- // Only Authorization falls back to the configured token; an empty value is never sent.
82
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
83
- if (authorizationValue) {
81
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
82
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
83
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
84
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
85
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
86
+ if (authorizationValue || authorizationKeepEmpty) {
84
87
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
85
88
  }
86
89
 
@@ -125,9 +128,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
125
128
  // http bearer authentication required
126
129
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
130
 
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
130
- if (authorizationValue) {
131
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
132
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
133
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
134
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
135
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
136
+ if (authorizationValue || authorizationKeepEmpty) {
131
137
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
138
  }
133
139
 
@@ -172,9 +178,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
172
178
  // http bearer authentication required
173
179
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
174
180
 
175
- // Only Authorization falls back to the configured token; an empty value is never sent.
176
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
177
- if (authorizationValue) {
181
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
182
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
183
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
184
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
185
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
186
+ if (authorizationValue || authorizationKeepEmpty) {
178
187
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
179
188
  }
180
189
 
@@ -250,9 +259,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
250
259
  localVarQueryParameter['filters'] = filters;
251
260
  }
252
261
 
253
- // Only Authorization falls back to the configured token; an empty value is never sent.
254
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
255
- if (authorizationValue) {
262
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
263
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
264
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
265
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
266
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
267
+ if (authorizationValue || authorizationKeepEmpty) {
256
268
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
257
269
  }
258
270
 
@@ -328,9 +340,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
328
340
  localVarQueryParameter['filters'] = filters;
329
341
  }
330
342
 
331
- // Only Authorization falls back to the configured token; an empty value is never sent.
332
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
333
- if (authorizationValue) {
343
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
344
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
345
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
346
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
347
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
348
+ if (authorizationValue || authorizationKeepEmpty) {
334
349
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
335
350
  }
336
351
 
@@ -406,9 +421,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
406
421
  localVarQueryParameter['filters'] = filters;
407
422
  }
408
423
 
409
- // Only Authorization falls back to the configured token; an empty value is never sent.
410
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
411
- if (authorizationValue) {
424
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
425
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
426
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
427
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
428
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
429
+ if (authorizationValue || authorizationKeepEmpty) {
412
430
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
413
431
  }
414
432
 
@@ -460,9 +478,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
460
478
  // http bearer authentication required
461
479
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
462
480
 
463
- // Only Authorization falls back to the configured token; an empty value is never sent.
464
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
465
- if (authorizationValue) {
481
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
482
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
483
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
484
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
485
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
486
+ if (authorizationValue || authorizationKeepEmpty) {
466
487
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
467
488
  }
468
489
 
@@ -513,9 +534,12 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
513
534
  // http bearer authentication required
514
535
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
515
536
 
516
- // Only Authorization falls back to the configured token; an empty value is never sent.
517
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
518
- if (authorizationValue) {
537
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
538
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
539
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
540
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
541
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
542
+ if (authorizationValue || authorizationKeepEmpty) {
519
543
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
520
544
  }
521
545
 
@@ -71,9 +71,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
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
 
@@ -121,9 +124,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
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
 
@@ -175,9 +181,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
175
181
  localVarQueryParameter['expand'] = expand;
176
182
  }
177
183
 
178
- // Only Authorization falls back to the configured token; an empty value is never sent.
179
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
180
- if (authorizationValue) {
184
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
185
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
186
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
187
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
188
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
189
+ if (authorizationValue || authorizationKeepEmpty) {
181
190
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
182
191
  }
183
192
 
@@ -253,9 +262,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
253
262
  localVarQueryParameter['filters'] = filters;
254
263
  }
255
264
 
256
- // Only Authorization falls back to the configured token; an empty value is never sent.
257
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
258
- if (authorizationValue) {
265
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
266
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
267
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
268
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
269
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
270
+ if (authorizationValue || authorizationKeepEmpty) {
259
271
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
260
272
  }
261
273
 
@@ -303,9 +315,12 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
303
315
  // http bearer authentication required
304
316
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
305
317
 
306
- // Only Authorization falls back to the configured token; an empty value is never sent.
307
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
- if (authorizationValue) {
318
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
319
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
320
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
321
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
322
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
323
+ if (authorizationValue || authorizationKeepEmpty) {
309
324
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
325
  }
311
326
 
@@ -71,9 +71,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
71
71
  localVarQueryParameter['expand'] = expand;
72
72
  }
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
 
@@ -149,9 +152,12 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
149
152
  localVarQueryParameter['filters'] = filters;
150
153
  }
151
154
 
152
- // Only Authorization falls back to the configured token; an empty value is never sent.
153
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
154
- if (authorizationValue) {
155
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
156
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
157
+ const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
158
+ const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
159
+ const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
160
+ if (authorizationValue || authorizationKeepEmpty) {
155
161
  localVarHeaderParameter['Authorization'] = String(authorizationValue);
156
162
  }
157
163
 
@@ -67,9 +67,12 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
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 NumberRangesApiAxiosParamCreator = function (configuration?: Config
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 NumberRangesApiAxiosParamCreator = function (configuration?: Config
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 NumberRangesApiAxiosParamCreator = function (configuration?: Config
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