@emilgroup/accounting-sdk 1.34.1-beta.112 → 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 (61) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +24 -64
  4. package/api/booking-entries-api.ts +15 -40
  5. package/api/commission-account-mappings-api.ts +24 -64
  6. package/api/financial-accounts-api.ts +15 -40
  7. package/api/financial-transactions-api.ts +6 -16
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +12 -32
  10. package/api/personal-accounts-api.ts +12 -32
  11. package/api/product-account-mappings-api.ts +36 -377
  12. package/base.ts +43 -239
  13. package/common.ts +2 -3
  14. package/configuration.ts +0 -20
  15. package/dist/api/accounting-configs-api.d.ts +8 -8
  16. package/dist/api/accounting-configs-api.js +64 -120
  17. package/dist/api/booking-entries-api.d.ts +5 -5
  18. package/dist/api/booking-entries-api.js +38 -67
  19. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  20. package/dist/api/commission-account-mappings-api.js +61 -108
  21. package/dist/api/financial-accounts-api.d.ts +5 -5
  22. package/dist/api/financial-accounts-api.js +38 -67
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +14 -22
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/health-api.js +1 -1
  27. package/dist/api/number-ranges-api.d.ts +4 -4
  28. package/dist/api/number-ranges-api.js +30 -52
  29. package/dist/api/personal-accounts-api.d.ts +4 -4
  30. package/dist/api/personal-accounts-api.js +30 -52
  31. package/dist/api/product-account-mappings-api.d.ts +12 -168
  32. package/dist/api/product-account-mappings-api.js +94 -401
  33. package/dist/base.d.ts +0 -26
  34. package/dist/base.js +60 -243
  35. package/dist/common.d.ts +1 -1
  36. package/dist/common.js +0 -1
  37. package/dist/configuration.d.ts +0 -17
  38. package/dist/configuration.js +0 -2
  39. package/dist/models/account-mapping-class.d.ts +2 -3
  40. package/dist/models/account-mapping-class.js +3 -4
  41. package/dist/models/accounting-category-class.d.ts +0 -12
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -3
  43. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -4
  44. package/dist/models/create-booking-entry-request-dto.d.ts +7 -1
  45. package/dist/models/create-booking-entry-request-dto.js +6 -0
  46. package/dist/models/create-financial-account-request-dto.d.ts +2 -3
  47. package/dist/models/create-financial-account-request-dto.js +3 -4
  48. package/dist/models/index.d.ts +0 -1
  49. package/dist/models/index.js +0 -1
  50. package/dist/models/premium-item-account-mapping-class.d.ts +0 -12
  51. package/models/account-mapping-class.ts +3 -4
  52. package/models/accounting-category-class.ts +0 -12
  53. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -4
  54. package/models/create-booking-entry-request-dto.ts +7 -1
  55. package/models/create-financial-account-request-dto.ts +3 -4
  56. package/models/index.ts +0 -1
  57. package/models/premium-item-account-mapping-class.ts +0 -12
  58. package/package.json +2 -2
  59. package/dist/models/put-premium-item-carrier-body-dto.d.ts +0 -24
  60. package/dist/models/put-premium-item-carrier-body-dto.js +0 -15
  61. package/models/put-premium-item-carrier-body-dto.ts +0 -30
@@ -104,10 +104,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
104
104
  deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
105
105
  if (options === void 0) { options = {}; }
106
106
  return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
108
- var _a;
109
- return __generator(this, function (_b) {
110
- switch (_b.label) {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
+ return __generator(this, function (_a) {
109
+ switch (_a.label) {
111
110
  case 0:
112
111
  // verify required parameter 'commissionAgreementCode' is not null or undefined
113
112
  (0, common_1.assertParamExists)('deleteCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
@@ -126,19 +125,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
126
125
  localVarQueryParameter = {};
127
126
  // authentication bearer required
128
127
  // http bearer authentication required
129
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
- ];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
133
129
  case 1:
134
130
  // authentication bearer required
135
131
  // http bearer authentication required
136
- _b.sent();
137
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
138
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
139
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
140
- if (authorizationValue || authorizationKeepEmpty) {
141
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
+ _a.sent();
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
142
135
  }
143
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
137
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -162,10 +155,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
162
155
  deleteCommissionTypeAccount: function (commissionType, authorization, options) {
163
156
  if (options === void 0) { options = {}; }
164
157
  return __awaiter(_this, void 0, void 0, function () {
165
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
166
- var _a;
167
- return __generator(this, function (_b) {
168
- switch (_b.label) {
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
+ return __generator(this, function (_a) {
160
+ switch (_a.label) {
169
161
  case 0:
170
162
  // verify required parameter 'commissionType' is not null or undefined
171
163
  (0, common_1.assertParamExists)('deleteCommissionTypeAccount', 'commissionType', commissionType);
@@ -181,19 +173,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
181
173
  localVarQueryParameter = {};
182
174
  // authentication bearer required
183
175
  // http bearer authentication required
184
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
185
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
186
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
187
- ];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
188
177
  case 1:
189
178
  // authentication bearer required
190
179
  // http bearer authentication required
191
- _b.sent();
192
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
193
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
194
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
195
- if (authorizationValue || authorizationKeepEmpty) {
196
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
+ _a.sent();
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
197
183
  }
198
184
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
199
185
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -217,10 +203,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
217
203
  getCommissionAgreementAccountMapping: function (commissionAgreementCode, 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
  // verify required parameter 'commissionAgreementCode' is not null or undefined
226
211
  (0, common_1.assertParamExists)('getCommissionAgreementAccountMapping', 'commissionAgreementCode', commissionAgreementCode);
@@ -236,19 +221,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
236
221
  localVarQueryParameter = {};
237
222
  // authentication bearer required
238
223
  // http bearer authentication required
239
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
240
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
241
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
242
- ];
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
243
225
  case 1:
244
226
  // authentication bearer required
245
227
  // http bearer authentication required
246
- _b.sent();
247
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
- if (authorizationValue || authorizationKeepEmpty) {
251
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
228
+ _a.sent();
229
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
231
  }
253
232
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
233
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -278,10 +257,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
278
257
  listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
279
258
  if (options === void 0) { options = {}; }
280
259
  return __awaiter(_this, void 0, void 0, function () {
281
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
282
- var _a;
283
- return __generator(this, function (_b) {
284
- switch (_b.label) {
260
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
261
+ return __generator(this, function (_a) {
262
+ switch (_a.label) {
285
263
  case 0:
286
264
  localVarPath = "/accountingservice/v1/commission-account-mappings";
287
265
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -298,7 +276,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
298
276
  case 1:
299
277
  // authentication bearer required
300
278
  // http bearer authentication required
301
- _b.sent();
279
+ _a.sent();
302
280
  if (pageSize !== undefined) {
303
281
  localVarQueryParameter['pageSize'] = pageSize;
304
282
  }
@@ -320,11 +298,8 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
320
298
  if (filters !== undefined) {
321
299
  localVarQueryParameter['filters'] = filters;
322
300
  }
323
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
326
- if (authorizationValue || authorizationKeepEmpty) {
327
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
301
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
302
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
328
303
  }
329
304
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
330
305
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -354,10 +329,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
354
329
  listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
355
330
  if (options === void 0) { options = {}; }
356
331
  return __awaiter(_this, void 0, void 0, function () {
357
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
358
- var _a;
359
- return __generator(this, function (_b) {
360
- switch (_b.label) {
332
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
333
+ return __generator(this, function (_a) {
334
+ switch (_a.label) {
361
335
  case 0:
362
336
  localVarPath = "/accountingservice/v1/commission-account-mappings/agreements";
363
337
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -374,7 +348,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
374
348
  case 1:
375
349
  // authentication bearer required
376
350
  // http bearer authentication required
377
- _b.sent();
351
+ _a.sent();
378
352
  if (pageSize !== undefined) {
379
353
  localVarQueryParameter['pageSize'] = pageSize;
380
354
  }
@@ -396,11 +370,8 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
396
370
  if (filters !== undefined) {
397
371
  localVarQueryParameter['filters'] = filters;
398
372
  }
399
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
400
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
401
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
402
- if (authorizationValue || authorizationKeepEmpty) {
403
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
373
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
374
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
404
375
  }
405
376
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
406
377
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -430,10 +401,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
430
401
  listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
431
402
  if (options === void 0) { options = {}; }
432
403
  return __awaiter(_this, void 0, void 0, function () {
433
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
434
- var _a;
435
- return __generator(this, function (_b) {
436
- switch (_b.label) {
404
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
405
+ return __generator(this, function (_a) {
406
+ switch (_a.label) {
437
407
  case 0:
438
408
  localVarPath = "/accountingservice/v1/commission-account-mappings/types";
439
409
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -450,7 +420,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
450
420
  case 1:
451
421
  // authentication bearer required
452
422
  // http bearer authentication required
453
- _b.sent();
423
+ _a.sent();
454
424
  if (pageSize !== undefined) {
455
425
  localVarQueryParameter['pageSize'] = pageSize;
456
426
  }
@@ -472,11 +442,8 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
472
442
  if (filters !== undefined) {
473
443
  localVarQueryParameter['filters'] = filters;
474
444
  }
475
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
476
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
477
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
478
- if (authorizationValue || authorizationKeepEmpty) {
479
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
445
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
446
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
480
447
  }
481
448
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
482
449
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -502,10 +469,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
502
469
  updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
503
470
  if (options === void 0) { options = {}; }
504
471
  return __awaiter(_this, void 0, void 0, function () {
505
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
506
- var _a;
507
- return __generator(this, function (_b) {
508
- switch (_b.label) {
472
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
473
+ return __generator(this, function (_a) {
474
+ switch (_a.label) {
509
475
  case 0:
510
476
  // verify required parameter 'commissionAgreementCode' is not null or undefined
511
477
  (0, common_1.assertParamExists)('updateCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
@@ -526,19 +492,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
526
492
  localVarQueryParameter = {};
527
493
  // authentication bearer required
528
494
  // http bearer authentication required
529
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
530
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
531
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
532
- ];
495
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
533
496
  case 1:
534
497
  // authentication bearer required
535
498
  // http bearer authentication required
536
- _b.sent();
537
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
538
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
539
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
540
- if (authorizationValue || authorizationKeepEmpty) {
541
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
499
+ _a.sent();
500
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
501
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
542
502
  }
543
503
  localVarHeaderParameter['Content-Type'] = 'application/json';
544
504
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -565,10 +525,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
565
525
  updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
566
526
  if (options === void 0) { options = {}; }
567
527
  return __awaiter(_this, void 0, void 0, function () {
568
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
569
- var _a;
570
- return __generator(this, function (_b) {
571
- switch (_b.label) {
528
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
529
+ return __generator(this, function (_a) {
530
+ switch (_a.label) {
572
531
  case 0:
573
532
  // verify required parameter 'commissionType' is not null or undefined
574
533
  (0, common_1.assertParamExists)('updateCommissionTypeAccount', 'commissionType', commissionType);
@@ -586,19 +545,13 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
586
545
  localVarQueryParameter = {};
587
546
  // authentication bearer required
588
547
  // http bearer authentication required
589
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
590
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
591
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
592
- ];
548
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
593
549
  case 1:
594
550
  // authentication bearer required
595
551
  // http bearer authentication required
596
- _b.sent();
597
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
598
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
599
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
600
- if (authorizationValue || authorizationKeepEmpty) {
601
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
552
+ _a.sent();
553
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
554
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
602
555
  }
603
556
  localVarHeaderParameter['Content-Type'] = 'application/json';
604
557
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -957,7 +910,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
957
910
  */
958
911
  CommissionAccountMappingsApi.prototype.deleteCommissionAgreementAccount = function (requestParameters, options) {
959
912
  var _this = this;
960
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
913
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
961
914
  };
962
915
  /**
963
916
  * Permanently deletes the Commission Type Account. Supply the unique code that was returned when you created the Commission Type Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -969,7 +922,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
969
922
  */
970
923
  CommissionAccountMappingsApi.prototype.deleteCommissionTypeAccount = function (requestParameters, options) {
971
924
  var _this = this;
972
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
925
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
973
926
  };
974
927
  /**
975
928
  * Retrieves the details of the Commission Agreement Account Mapping that was previously created. Supply the unique Commission Agreement Account Mapping code that was returned when you created it and Emil Api will return the corresponding Commission Agreement Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -981,7 +934,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
981
934
  */
982
935
  CommissionAccountMappingsApi.prototype.getCommissionAgreementAccountMapping = function (requestParameters, options) {
983
936
  var _this = this;
984
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
937
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
985
938
  };
986
939
  /**
987
940
  * Paginated list of the actual stored override rows, across both levels (commission type/agreement). Filterable by commissionAgreementCode/commissionType. For browsing the commission-type standards or the agreement catalog, use the more specific endpoints below instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -994,7 +947,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
994
947
  CommissionAccountMappingsApi.prototype.listCommissionAccountMappings = function (requestParameters, options) {
995
948
  var _this = this;
996
949
  if (requestParameters === void 0) { requestParameters = {}; }
997
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
950
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
998
951
  };
999
952
  /**
1000
953
  * Paginated commission-agreement catalog (proxied from commissionservice), each item carrying its Agreement Number, Main Partner, and a hasCustomMapping badge. Cheap -- no per-type resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -1007,7 +960,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
1007
960
  CommissionAccountMappingsApi.prototype.listCommissionAgreementsWithAccountMappings = function (requestParameters, options) {
1008
961
  var _this = this;
1009
962
  if (requestParameters === void 0) { requestParameters = {}; }
1010
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAgreementsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
963
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAgreementsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1011
964
  };
1012
965
  /**
1013
966
  * Paginated \"Standards per Commission Type\" section -- one entry per commission type that currently has a tenant-wide default. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -1020,7 +973,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
1020
973
  CommissionAccountMappingsApi.prototype.listCommissionTypeAccountMappings = function (requestParameters, options) {
1021
974
  var _this = this;
1022
975
  if (requestParameters === void 0) { requestParameters = {}; }
1023
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionTypeAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
976
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionTypeAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1024
977
  };
1025
978
  /**
1026
979
  * Updates the specified Commission Agreement Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
@@ -1032,7 +985,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
1032
985
  */
1033
986
  CommissionAccountMappingsApi.prototype.updateCommissionAgreementAccount = function (requestParameters, options) {
1034
987
  var _this = this;
1035
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
988
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1036
989
  };
1037
990
  /**
1038
991
  * Updates the specified Commission Type Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
@@ -1044,7 +997,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
1044
997
  */
1045
998
  CommissionAccountMappingsApi.prototype.updateCommissionTypeAccount = function (requestParameters, options) {
1046
999
  var _this = this;
1047
- return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1000
+ return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1048
1001
  };
1049
1002
  return CommissionAccountMappingsApi;
1050
1003
  }(base_1.BaseAPI));
@@ -353,7 +353,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof FinancialAccountsApi
355
355
  */
356
- createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}, any>>;
356
+ createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}>>;
357
357
  /**
358
358
  * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
359
359
  * @summary Delete the Financial Account
@@ -362,7 +362,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof FinancialAccountsApi
364
364
  */
365
- deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
365
+ deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
366
366
  /**
367
367
  * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
368
368
  * @summary Retrieve the Financial Account
@@ -371,7 +371,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof FinancialAccountsApi
373
373
  */
374
- getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}, any>>;
374
+ getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}>>;
375
375
  /**
376
376
  * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
377
377
  * @summary List Financial Accounts
@@ -380,7 +380,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof FinancialAccountsApi
382
382
  */
383
- listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}, any>>;
383
+ listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
384
384
  /**
385
385
  * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
386
386
  * @summary Update the Financial Account
@@ -389,5 +389,5 @@ export declare class FinancialAccountsApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof FinancialAccountsApi
391
391
  */
392
- updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}, any>>;
392
+ updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}>>;
393
393
  }