@emilgroup/accounting-sdk 1.34.1-beta.111 → 1.34.1-beta.113

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 (52) hide show
  1. package/README.md +2 -2
  2. package/api/accounting-configs-api.ts +24 -64
  3. package/api/booking-entries-api.ts +15 -40
  4. package/api/commission-account-mappings-api.ts +24 -64
  5. package/api/financial-accounts-api.ts +15 -40
  6. package/api/financial-transactions-api.ts +6 -16
  7. package/api/health-api.ts +1 -1
  8. package/api/number-ranges-api.ts +12 -32
  9. package/api/personal-accounts-api.ts +12 -32
  10. package/api/product-account-mappings-api.ts +36 -96
  11. package/base.ts +43 -239
  12. package/common.ts +2 -3
  13. package/configuration.ts +0 -20
  14. package/dist/api/accounting-configs-api.d.ts +8 -8
  15. package/dist/api/accounting-configs-api.js +64 -120
  16. package/dist/api/booking-entries-api.d.ts +5 -5
  17. package/dist/api/booking-entries-api.js +38 -67
  18. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  19. package/dist/api/commission-account-mappings-api.js +61 -108
  20. package/dist/api/financial-accounts-api.d.ts +5 -5
  21. package/dist/api/financial-accounts-api.js +38 -67
  22. package/dist/api/financial-transactions-api.d.ts +2 -2
  23. package/dist/api/financial-transactions-api.js +14 -22
  24. package/dist/api/health-api.d.ts +1 -1
  25. package/dist/api/health-api.js +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +30 -52
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +30 -52
  30. package/dist/api/product-account-mappings-api.d.ts +12 -12
  31. package/dist/api/product-account-mappings-api.js +94 -172
  32. package/dist/base.d.ts +0 -26
  33. package/dist/base.js +60 -243
  34. package/dist/common.d.ts +1 -1
  35. package/dist/common.js +0 -1
  36. package/dist/configuration.d.ts +0 -17
  37. package/dist/configuration.js +0 -2
  38. package/dist/models/account-mapping-class.d.ts +2 -3
  39. package/dist/models/account-mapping-class.js +3 -4
  40. package/dist/models/accounting-category-class.d.ts +0 -12
  41. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -3
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -4
  43. package/dist/models/create-booking-entry-request-dto.d.ts +7 -1
  44. package/dist/models/create-booking-entry-request-dto.js +6 -0
  45. package/dist/models/create-financial-account-request-dto.d.ts +2 -3
  46. package/dist/models/create-financial-account-request-dto.js +3 -4
  47. package/models/account-mapping-class.ts +3 -4
  48. package/models/accounting-category-class.ts +0 -12
  49. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -4
  50. package/models/create-booking-entry-request-dto.ts +7 -1
  51. package/models/create-financial-account-request-dto.ts +3 -4
  52. package/package.json +2 -2
@@ -103,10 +103,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
103
103
  createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
109
- switch (_b.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
110
109
  case 0:
111
110
  // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
112
111
  (0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
@@ -121,19 +120,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
121
120
  localVarQueryParameter = {};
122
121
  // authentication bearer required
123
122
  // http bearer authentication required
124
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
124
  case 1:
129
125
  // authentication bearer required
130
126
  // http bearer authentication required
131
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
- if (authorizationValue || authorizationKeepEmpty) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
130
  }
138
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,10 +152,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
159
152
  createAndEnableSubledgerFromFile: function (file, authorization, options) {
160
153
  if (options === void 0) { options = {}; }
161
154
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
- var _a;
164
- return __generator(this, function (_b) {
165
- switch (_b.label) {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
166
158
  case 0:
167
159
  // verify required parameter 'file' is not null or undefined
168
160
  (0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
@@ -178,19 +170,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
178
170
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
179
171
  // authentication bearer required
180
172
  // http bearer authentication required
181
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
182
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
185
174
  case 1:
186
175
  // authentication bearer required
187
176
  // http bearer authentication required
188
- _b.sent();
189
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
- if (authorizationValue || authorizationKeepEmpty) {
193
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
194
180
  }
195
181
  if (file !== undefined) {
196
182
  localVarFormParams.append('file', file);
@@ -217,10 +203,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
217
203
  exportAccountingConfig: function (authorization, options) {
218
204
  if (options === void 0) { options = {}; }
219
205
  return __awaiter(_this, void 0, void 0, function () {
220
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
221
- var _a;
222
- return __generator(this, function (_b) {
223
- switch (_b.label) {
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
207
+ return __generator(this, function (_a) {
208
+ switch (_a.label) {
224
209
  case 0:
225
210
  localVarPath = "/accountingservice/v1/subledger/config/export";
226
211
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -233,19 +218,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
233
218
  localVarQueryParameter = {};
234
219
  // authentication bearer required
235
220
  // http bearer authentication required
236
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
237
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
238
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
239
- ];
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
240
222
  case 1:
241
223
  // authentication bearer required
242
224
  // http bearer authentication required
243
- _b.sent();
244
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
245
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
246
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
247
- if (authorizationValue || authorizationKeepEmpty) {
248
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
249
228
  }
250
229
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
230
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -268,10 +247,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
268
247
  getAccountingCategories: function (authorization, options) {
269
248
  if (options === void 0) { options = {}; }
270
249
  return __awaiter(_this, void 0, void 0, function () {
271
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
272
- var _a;
273
- return __generator(this, function (_b) {
274
- switch (_b.label) {
250
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
251
+ return __generator(this, function (_a) {
252
+ switch (_a.label) {
275
253
  case 0:
276
254
  localVarPath = "/accountingservice/v1/subledger/categories";
277
255
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -284,19 +262,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
284
262
  localVarQueryParameter = {};
285
263
  // authentication bearer required
286
264
  // http bearer authentication required
287
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
288
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
289
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
290
- ];
265
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
291
266
  case 1:
292
267
  // authentication bearer required
293
268
  // http bearer authentication required
294
- _b.sent();
295
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
296
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
297
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
298
- if (authorizationValue || authorizationKeepEmpty) {
299
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
269
+ _a.sent();
270
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
271
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
272
  }
301
273
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
274
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -319,10 +291,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
319
291
  getActivationSnapshot: function (authorization, options) {
320
292
  if (options === void 0) { options = {}; }
321
293
  return __awaiter(_this, void 0, void 0, function () {
322
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
323
- var _a;
324
- return __generator(this, function (_b) {
325
- switch (_b.label) {
294
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
295
+ return __generator(this, function (_a) {
296
+ switch (_a.label) {
326
297
  case 0:
327
298
  localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
328
299
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -335,19 +306,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
335
306
  localVarQueryParameter = {};
336
307
  // authentication bearer required
337
308
  // http bearer authentication required
338
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
- ];
309
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
342
310
  case 1:
343
311
  // authentication bearer required
344
312
  // http bearer authentication required
345
- _b.sent();
346
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
347
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
348
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
349
- if (authorizationValue || authorizationKeepEmpty) {
350
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
313
+ _a.sent();
314
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
315
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
351
316
  }
352
317
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
353
318
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -370,10 +335,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
370
335
  resetSubledger: function (authorization, options) {
371
336
  if (options === void 0) { options = {}; }
372
337
  return __awaiter(_this, void 0, void 0, function () {
373
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
374
- var _a;
375
- return __generator(this, function (_b) {
376
- switch (_b.label) {
338
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
377
341
  case 0:
378
342
  localVarPath = "/accountingservice/v1/subledger/reset";
379
343
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -386,19 +350,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
386
350
  localVarQueryParameter = {};
387
351
  // authentication bearer required
388
352
  // http bearer authentication required
389
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
390
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
391
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
392
- ];
353
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
393
354
  case 1:
394
355
  // authentication bearer required
395
356
  // http bearer authentication required
396
- _b.sent();
397
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
398
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
399
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
400
- if (authorizationValue || authorizationKeepEmpty) {
401
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
357
+ _a.sent();
358
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
402
360
  }
403
361
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
404
362
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -422,10 +380,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
422
380
  validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
423
381
  if (options === void 0) { options = {}; }
424
382
  return __awaiter(_this, void 0, void 0, function () {
425
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
426
- var _a;
427
- return __generator(this, function (_b) {
428
- switch (_b.label) {
383
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
384
+ return __generator(this, function (_a) {
385
+ switch (_a.label) {
429
386
  case 0:
430
387
  // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
431
388
  (0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
@@ -440,19 +397,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
440
397
  localVarQueryParameter = {};
441
398
  // authentication bearer required
442
399
  // http bearer authentication required
443
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
444
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
445
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
446
- ];
400
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
447
401
  case 1:
448
402
  // authentication bearer required
449
403
  // http bearer authentication required
450
- _b.sent();
451
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
452
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
453
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
454
- if (authorizationValue || authorizationKeepEmpty) {
455
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
404
+ _a.sent();
405
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
406
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
456
407
  }
457
408
  localVarHeaderParameter['Content-Type'] = 'application/json';
458
409
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -478,10 +429,9 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
478
429
  validateAccountingConfigFromFile: function (file, authorization, options) {
479
430
  if (options === void 0) { options = {}; }
480
431
  return __awaiter(_this, void 0, void 0, function () {
481
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
482
- var _a;
483
- return __generator(this, function (_b) {
484
- switch (_b.label) {
432
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
433
+ return __generator(this, function (_a) {
434
+ switch (_a.label) {
485
435
  case 0:
486
436
  // verify required parameter 'file' is not null or undefined
487
437
  (0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
@@ -497,19 +447,13 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
497
447
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
498
448
  // authentication bearer required
499
449
  // http bearer authentication required
500
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
501
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
502
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
503
- ];
450
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
504
451
  case 1:
505
452
  // authentication bearer required
506
453
  // http bearer authentication required
507
- _b.sent();
508
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
509
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
510
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
511
- if (authorizationValue || authorizationKeepEmpty) {
512
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
454
+ _a.sent();
455
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
456
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
513
457
  }
514
458
  if (file !== undefined) {
515
459
  localVarFormParams.append('file', file);
@@ -818,7 +762,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
818
762
  */
819
763
  AccountingConfigsApi.prototype.createAndEnableSubledger = function (requestParameters, options) {
820
764
  var _this = this;
821
- return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
765
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
822
766
  };
823
767
  /**
824
768
  * This will create and enable the subledger, using an accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
@@ -830,7 +774,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
830
774
  */
831
775
  AccountingConfigsApi.prototype.createAndEnableSubledgerFromFile = function (requestParameters, options) {
832
776
  var _this = this;
833
- return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
777
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
834
778
  };
835
779
  /**
836
780
  * This will export the accounting config. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -843,7 +787,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
843
787
  AccountingConfigsApi.prototype.exportAccountingConfig = function (requestParameters, options) {
844
788
  var _this = this;
845
789
  if (requestParameters === void 0) { requestParameters = {}; }
846
- return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
790
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
847
791
  };
848
792
  /**
849
793
  * This will get the accounting categories. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -856,7 +800,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
856
800
  AccountingConfigsApi.prototype.getAccountingCategories = function (requestParameters, options) {
857
801
  var _this = this;
858
802
  if (requestParameters === void 0) { requestParameters = {}; }
859
- return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
803
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
860
804
  };
861
805
  /**
862
806
  * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -869,7 +813,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
869
813
  AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
870
814
  var _this = this;
871
815
  if (requestParameters === void 0) { requestParameters = {}; }
872
- return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
816
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
873
817
  };
874
818
  /**
875
819
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -882,7 +826,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
882
826
  AccountingConfigsApi.prototype.resetSubledger = function (requestParameters, options) {
883
827
  var _this = this;
884
828
  if (requestParameters === void 0) { requestParameters = {}; }
885
- return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
829
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).resetSubledger(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
886
830
  };
887
831
  /**
888
832
  * This will validate accounting config. **Required Permissions** \"accounting-management.financial-accounts.create\"
@@ -894,7 +838,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
894
838
  */
895
839
  AccountingConfigsApi.prototype.validateAccountingConfig = function (requestParameters, options) {
896
840
  var _this = this;
897
- return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
841
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
898
842
  };
899
843
  /**
900
844
  * This will validate accounting config from a file. **Required Permissions** \"accounting-management.financial-accounts.create\"
@@ -906,7 +850,7 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
906
850
  */
907
851
  AccountingConfigsApi.prototype.validateAccountingConfigFromFile = function (requestParameters, options) {
908
852
  var _this = this;
909
- return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
853
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
910
854
  };
911
855
  return AccountingConfigsApi;
912
856
  }(base_1.BaseAPI));
@@ -346,7 +346,7 @@ export declare class BookingEntriesApi extends BaseAPI {
346
346
  * @throws {RequiredError}
347
347
  * @memberof BookingEntriesApi
348
348
  */
349
- createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}, any>>;
349
+ createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
350
350
  /**
351
351
  * Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
352
352
  * @summary Update the create or correct opening balance
@@ -355,7 +355,7 @@ export declare class BookingEntriesApi extends BaseAPI {
355
355
  * @throws {RequiredError}
356
356
  * @memberof BookingEntriesApi
357
357
  */
358
- createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}, any>>;
358
+ createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}>>;
359
359
  /**
360
360
  * This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
361
361
  * @summary Retrieve the booking entry
@@ -364,7 +364,7 @@ export declare class BookingEntriesApi extends BaseAPI {
364
364
  * @throws {RequiredError}
365
365
  * @memberof BookingEntriesApi
366
366
  */
367
- getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}, any>>;
367
+ getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}>>;
368
368
  /**
369
369
  * This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
370
370
  * @summary List booking entries
@@ -373,7 +373,7 @@ export declare class BookingEntriesApi extends BaseAPI {
373
373
  * @throws {RequiredError}
374
374
  * @memberof BookingEntriesApi
375
375
  */
376
- listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}, any>>;
376
+ listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
377
377
  /**
378
378
  * This endpoint posts the booking entry for an existing invoice, payment, exceeding credit, credit allocation, commission, claim regulation or payment receipt on demand. A credit allocation books nothing, so it always fails with a precondition error. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
379
379
  * @summary Create the booking entry from a source entity
@@ -382,5 +382,5 @@ export declare class BookingEntriesApi extends BaseAPI {
382
382
  * @throws {RequiredError}
383
383
  * @memberof BookingEntriesApi
384
384
  */
385
- postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}, any>>;
385
+ postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}>>;
386
386
  }