@emilgroup/accounting-sdk-node 1.32.1-beta.57 → 1.32.1-beta.59

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 (53) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +32 -16
  4. package/api/booking-entries-api.ts +20 -10
  5. package/api/commission-account-mappings-api.ts +32 -16
  6. package/api/financial-accounts-api.ts +20 -10
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +265 -20
  11. package/dist/api/accounting-configs-api.js +56 -32
  12. package/dist/api/booking-entries-api.js +29 -18
  13. package/dist/api/commission-account-mappings-api.js +47 -29
  14. package/dist/api/financial-accounts-api.js +29 -18
  15. package/dist/api/financial-transactions-api.js +8 -6
  16. package/dist/api/number-ranges-api.js +22 -14
  17. package/dist/api/personal-accounts-api.js +22 -14
  18. package/dist/api/product-account-mappings-api.d.ts +121 -0
  19. package/dist/api/product-account-mappings-api.js +261 -38
  20. package/dist/models/account-mapping-class.d.ts +2 -0
  21. package/dist/models/account-mapping-class.js +3 -1
  22. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -0
  23. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  24. package/dist/models/booking-entry-class.d.ts +1 -0
  25. package/dist/models/booking-entry-class.js +1 -0
  26. package/dist/models/create-booking-entry-request-dto.d.ts +1 -0
  27. package/dist/models/create-booking-entry-request-dto.js +1 -0
  28. package/dist/models/create-financial-account-request-dto.d.ts +2 -0
  29. package/dist/models/create-financial-account-request-dto.js +3 -1
  30. package/dist/models/financial-transaction-class.d.ts +6 -0
  31. package/dist/models/financial-transaction-data-dto.d.ts +6 -0
  32. package/dist/models/index.d.ts +2 -0
  33. package/dist/models/index.js +2 -0
  34. package/dist/models/post-financial-event-request-dto.d.ts +3 -2
  35. package/dist/models/post-financial-event-request-dto.js +1 -0
  36. package/dist/models/product-account-mapping-detail-class.d.ts +6 -0
  37. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  38. package/dist/models/product-risk-carrier-class.js +15 -0
  39. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  40. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  41. package/models/account-mapping-class.ts +3 -1
  42. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
  43. package/models/booking-entry-class.ts +1 -0
  44. package/models/create-booking-entry-request-dto.ts +1 -0
  45. package/models/create-financial-account-request-dto.ts +3 -1
  46. package/models/financial-transaction-class.ts +6 -0
  47. package/models/financial-transaction-data-dto.ts +6 -0
  48. package/models/index.ts +2 -0
  49. package/models/post-financial-event-request-dto.ts +3 -2
  50. package/models/product-account-mapping-detail-class.ts +6 -0
  51. package/models/product-risk-carrier-class.ts +48 -0
  52. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  53. package/package.json +1 -1
@@ -107,7 +107,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
107
107
  createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
156
159
  createAndEnableSubledgerFromFile: function (file, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
174
177
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  if (file !== undefined) {
186
192
  localVarFormParams.append('file', file);
@@ -208,7 +214,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
208
214
  exportAccountingConfig: function (authorization, options) {
209
215
  if (options === void 0) { options = {}; }
210
216
  return __awaiter(_this, void 0, void 0, function () {
211
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
217
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
212
218
  return __generator(this, function (_a) {
213
219
  switch (_a.label) {
214
220
  case 0:
@@ -223,13 +229,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
223
229
  localVarQueryParameter = {};
224
230
  // authentication bearer required
225
231
  // http bearer authentication required
226
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
232
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
233
+ // Only Authorization falls back to the configured token; an empty value is never sent.
234
+ ];
227
235
  case 1:
228
236
  // authentication bearer required
229
237
  // http bearer authentication required
230
238
  _a.sent();
231
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
240
+ if (authorizationValue) {
241
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
233
242
  }
234
243
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
235
244
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -252,7 +261,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
252
261
  getAccountingCategories: function (authorization, options) {
253
262
  if (options === void 0) { options = {}; }
254
263
  return __awaiter(_this, void 0, void 0, function () {
255
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
256
265
  return __generator(this, function (_a) {
257
266
  switch (_a.label) {
258
267
  case 0:
@@ -267,13 +276,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
267
276
  localVarQueryParameter = {};
268
277
  // authentication bearer required
269
278
  // http bearer authentication required
270
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
279
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
280
+ // Only Authorization falls back to the configured token; an empty value is never sent.
281
+ ];
271
282
  case 1:
272
283
  // authentication bearer required
273
284
  // http bearer authentication required
274
285
  _a.sent();
275
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
287
+ if (authorizationValue) {
288
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
277
289
  }
278
290
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
291
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -296,7 +308,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
296
308
  getActivationSnapshot: function (authorization, options) {
297
309
  if (options === void 0) { options = {}; }
298
310
  return __awaiter(_this, void 0, void 0, function () {
299
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
311
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
300
312
  return __generator(this, function (_a) {
301
313
  switch (_a.label) {
302
314
  case 0:
@@ -311,13 +323,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
311
323
  localVarQueryParameter = {};
312
324
  // authentication bearer required
313
325
  // http bearer authentication required
314
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
326
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
327
+ // Only Authorization falls back to the configured token; an empty value is never sent.
328
+ ];
315
329
  case 1:
316
330
  // authentication bearer required
317
331
  // http bearer authentication required
318
332
  _a.sent();
319
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
320
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
333
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
334
+ if (authorizationValue) {
335
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
321
336
  }
322
337
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
323
338
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -340,7 +355,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
340
355
  resetSubledger: function (authorization, options) {
341
356
  if (options === void 0) { options = {}; }
342
357
  return __awaiter(_this, void 0, void 0, function () {
343
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
358
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
344
359
  return __generator(this, function (_a) {
345
360
  switch (_a.label) {
346
361
  case 0:
@@ -355,13 +370,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
355
370
  localVarQueryParameter = {};
356
371
  // authentication bearer required
357
372
  // http bearer authentication required
358
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
373
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
374
+ // Only Authorization falls back to the configured token; an empty value is never sent.
375
+ ];
359
376
  case 1:
360
377
  // authentication bearer required
361
378
  // http bearer authentication required
362
379
  _a.sent();
363
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
364
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
380
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
381
+ if (authorizationValue) {
382
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
365
383
  }
366
384
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
367
385
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -385,7 +403,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
385
403
  validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
386
404
  if (options === void 0) { options = {}; }
387
405
  return __awaiter(_this, void 0, void 0, function () {
388
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
406
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
389
407
  return __generator(this, function (_a) {
390
408
  switch (_a.label) {
391
409
  case 0:
@@ -402,13 +420,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
402
420
  localVarQueryParameter = {};
403
421
  // authentication bearer required
404
422
  // http bearer authentication required
405
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
423
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
424
+ // Only Authorization falls back to the configured token; an empty value is never sent.
425
+ ];
406
426
  case 1:
407
427
  // authentication bearer required
408
428
  // http bearer authentication required
409
429
  _a.sent();
410
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
411
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
430
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
431
+ if (authorizationValue) {
432
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
412
433
  }
413
434
  localVarHeaderParameter['Content-Type'] = 'application/json';
414
435
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -434,7 +455,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
434
455
  validateAccountingConfigFromFile: function (file, authorization, options) {
435
456
  if (options === void 0) { options = {}; }
436
457
  return __awaiter(_this, void 0, void 0, function () {
437
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
458
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
438
459
  return __generator(this, function (_a) {
439
460
  switch (_a.label) {
440
461
  case 0:
@@ -452,13 +473,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
452
473
  localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
453
474
  // authentication bearer required
454
475
  // http bearer authentication required
455
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
476
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
477
+ // Only Authorization falls back to the configured token; an empty value is never sent.
478
+ ];
456
479
  case 1:
457
480
  // authentication bearer required
458
481
  // http bearer authentication required
459
482
  _a.sent();
460
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
461
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
483
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
484
+ if (authorizationValue) {
485
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
462
486
  }
463
487
  if (file !== undefined) {
464
488
  localVarFormParams.append('file', file);
@@ -107,7 +107,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
107
107
  createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
156
159
  createOrCorrectOpeningBalance: function (createOrCorrectOpeningBalanceDto, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -173,13 +176,16 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
+ // Only Authorization falls back to the configured token; an empty value is never sent.
181
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  localVarHeaderParameter['Content-Type'] = 'application/json';
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -206,7 +212,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
206
212
  getBookingEntry: function (code, expand, authorization, options) {
207
213
  if (options === void 0) { options = {}; }
208
214
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
210
216
  return __generator(this, function (_a) {
211
217
  switch (_a.label) {
212
218
  case 0:
@@ -234,8 +240,9 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
234
240
  if (expand !== undefined) {
235
241
  localVarQueryParameter['expand'] = expand;
236
242
  }
237
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
238
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
243
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
244
+ if (authorizationValue) {
245
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
239
246
  }
240
247
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
241
248
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -265,7 +272,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
265
272
  listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
266
273
  if (options === void 0) { options = {}; }
267
274
  return __awaiter(_this, void 0, void 0, function () {
268
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
275
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
269
276
  return __generator(this, function (_a) {
270
277
  switch (_a.label) {
271
278
  case 0:
@@ -306,8 +313,9 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
306
313
  if (filters !== undefined) {
307
314
  localVarQueryParameter['filters'] = filters;
308
315
  }
309
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
310
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
316
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
317
+ if (authorizationValue) {
318
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
311
319
  }
312
320
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
321
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -331,7 +339,7 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
331
339
  postFinancialEvent: function (postFinancialEventRequestDto, authorization, options) {
332
340
  if (options === void 0) { options = {}; }
333
341
  return __awaiter(_this, void 0, void 0, function () {
334
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
335
343
  return __generator(this, function (_a) {
336
344
  switch (_a.label) {
337
345
  case 0:
@@ -348,13 +356,16 @@ var BookingEntriesApiAxiosParamCreator = function (configuration) {
348
356
  localVarQueryParameter = {};
349
357
  // authentication bearer required
350
358
  // http bearer authentication required
351
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
359
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
360
+ // Only Authorization falls back to the configured token; an empty value is never sent.
361
+ ];
352
362
  case 1:
353
363
  // authentication bearer required
354
364
  // http bearer authentication required
355
365
  _a.sent();
356
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
357
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
367
+ if (authorizationValue) {
368
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
358
369
  }
359
370
  localVarHeaderParameter['Content-Type'] = 'application/json';
360
371
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -108,7 +108,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
108
108
  deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -129,13 +129,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
129
129
  localVarQueryParameter = {};
130
130
  // authentication bearer required
131
131
  // http bearer authentication required
132
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
133
+ // Only Authorization falls back to the configured token; an empty value is never sent.
134
+ ];
133
135
  case 1:
134
136
  // authentication bearer required
135
137
  // http bearer authentication required
136
138
  _a.sent();
137
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
140
+ if (authorizationValue) {
141
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
139
142
  }
140
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
144
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -159,7 +162,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
159
162
  deleteCommissionTypeAccount: function (commissionType, authorization, options) {
160
163
  if (options === void 0) { options = {}; }
161
164
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
163
166
  return __generator(this, function (_a) {
164
167
  switch (_a.label) {
165
168
  case 0:
@@ -177,13 +180,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
177
180
  localVarQueryParameter = {};
178
181
  // authentication bearer required
179
182
  // http bearer authentication required
180
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
183
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
184
+ // Only Authorization falls back to the configured token; an empty value is never sent.
185
+ ];
181
186
  case 1:
182
187
  // authentication bearer required
183
188
  // http bearer authentication required
184
189
  _a.sent();
185
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
186
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
191
+ if (authorizationValue) {
192
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
187
193
  }
188
194
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
189
195
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +213,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
207
213
  getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
208
214
  if (options === void 0) { options = {}; }
209
215
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
216
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
211
217
  return __generator(this, function (_a) {
212
218
  switch (_a.label) {
213
219
  case 0:
@@ -225,13 +231,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
225
231
  localVarQueryParameter = {};
226
232
  // authentication bearer required
227
233
  // http bearer authentication required
228
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
235
+ // Only Authorization falls back to the configured token; an empty value is never sent.
236
+ ];
229
237
  case 1:
230
238
  // authentication bearer required
231
239
  // http bearer authentication required
232
240
  _a.sent();
233
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
242
+ if (authorizationValue) {
243
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
235
244
  }
236
245
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
237
246
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -261,7 +270,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
261
270
  listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
262
271
  if (options === void 0) { options = {}; }
263
272
  return __awaiter(_this, void 0, void 0, function () {
264
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
273
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
265
274
  return __generator(this, function (_a) {
266
275
  switch (_a.label) {
267
276
  case 0:
@@ -302,8 +311,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
302
311
  if (filters !== undefined) {
303
312
  localVarQueryParameter['filters'] = filters;
304
313
  }
305
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
306
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
314
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
315
+ if (authorizationValue) {
316
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
307
317
  }
308
318
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
309
319
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -333,7 +343,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
333
343
  listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
334
344
  if (options === void 0) { options = {}; }
335
345
  return __awaiter(_this, void 0, void 0, function () {
336
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
346
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
337
347
  return __generator(this, function (_a) {
338
348
  switch (_a.label) {
339
349
  case 0:
@@ -374,8 +384,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
374
384
  if (filters !== undefined) {
375
385
  localVarQueryParameter['filters'] = filters;
376
386
  }
377
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
378
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
387
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
388
+ if (authorizationValue) {
389
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
379
390
  }
380
391
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
381
392
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -405,7 +416,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
405
416
  listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
406
417
  if (options === void 0) { options = {}; }
407
418
  return __awaiter(_this, void 0, void 0, function () {
408
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
419
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
409
420
  return __generator(this, function (_a) {
410
421
  switch (_a.label) {
411
422
  case 0:
@@ -446,8 +457,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
446
457
  if (filters !== undefined) {
447
458
  localVarQueryParameter['filters'] = filters;
448
459
  }
449
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
450
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
460
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
461
+ if (authorizationValue) {
462
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
451
463
  }
452
464
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
453
465
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -473,7 +485,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
473
485
  updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
474
486
  if (options === void 0) { options = {}; }
475
487
  return __awaiter(_this, void 0, void 0, function () {
476
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
488
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
477
489
  return __generator(this, function (_a) {
478
490
  switch (_a.label) {
479
491
  case 0:
@@ -496,13 +508,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
496
508
  localVarQueryParameter = {};
497
509
  // authentication bearer required
498
510
  // http bearer authentication required
499
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
511
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
512
+ // Only Authorization falls back to the configured token; an empty value is never sent.
513
+ ];
500
514
  case 1:
501
515
  // authentication bearer required
502
516
  // http bearer authentication required
503
517
  _a.sent();
504
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
505
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
518
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
519
+ if (authorizationValue) {
520
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
506
521
  }
507
522
  localVarHeaderParameter['Content-Type'] = 'application/json';
508
523
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -529,7 +544,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
529
544
  updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
530
545
  if (options === void 0) { options = {}; }
531
546
  return __awaiter(_this, void 0, void 0, function () {
532
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
547
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
533
548
  return __generator(this, function (_a) {
534
549
  switch (_a.label) {
535
550
  case 0:
@@ -549,13 +564,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
549
564
  localVarQueryParameter = {};
550
565
  // authentication bearer required
551
566
  // http bearer authentication required
552
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
567
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
568
+ // Only Authorization falls back to the configured token; an empty value is never sent.
569
+ ];
553
570
  case 1:
554
571
  // authentication bearer required
555
572
  // http bearer authentication required
556
573
  _a.sent();
557
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
558
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
574
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
575
+ if (authorizationValue) {
576
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
559
577
  }
560
578
  localVarHeaderParameter['Content-Type'] = 'application/json';
561
579
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);