@emilgroup/accounting-sdk 1.34.1-beta.76 → 1.34.1-beta.77

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 (70) 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 +24 -14
  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/base.ts +174 -41
  12. package/common.ts +3 -2
  13. package/configuration.ts +20 -0
  14. package/dist/api/accounting-configs-api.d.ts +8 -8
  15. package/dist/api/accounting-configs-api.js +56 -32
  16. package/dist/api/booking-entries-api.d.ts +9 -9
  17. package/dist/api/booking-entries-api.js +33 -22
  18. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  19. package/dist/api/commission-account-mappings-api.js +47 -29
  20. package/dist/api/financial-accounts-api.d.ts +5 -5
  21. package/dist/api/financial-accounts-api.js +29 -18
  22. package/dist/api/financial-transactions-api.d.ts +2 -2
  23. package/dist/api/financial-transactions-api.js +8 -6
  24. package/dist/api/health-api.d.ts +1 -1
  25. package/dist/api/number-ranges-api.d.ts +4 -4
  26. package/dist/api/number-ranges-api.js +22 -14
  27. package/dist/api/personal-accounts-api.d.ts +4 -4
  28. package/dist/api/personal-accounts-api.js +22 -14
  29. package/dist/api/product-account-mappings-api.d.ts +131 -10
  30. package/dist/api/product-account-mappings-api.js +261 -38
  31. package/dist/base.d.ts +24 -0
  32. package/dist/base.js +178 -59
  33. package/dist/common.d.ts +1 -1
  34. package/dist/common.js +1 -0
  35. package/dist/configuration.d.ts +17 -0
  36. package/dist/configuration.js +2 -0
  37. package/dist/models/account-mapping-class.d.ts +2 -0
  38. package/dist/models/account-mapping-class.js +3 -1
  39. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -0
  40. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  41. package/dist/models/booking-entry-class.d.ts +16 -2
  42. package/dist/models/booking-entry-class.js +3 -1
  43. package/dist/models/create-booking-entry-request-dto.d.ts +3 -2
  44. package/dist/models/create-booking-entry-request-dto.js +3 -2
  45. package/dist/models/create-financial-account-request-dto.d.ts +2 -0
  46. package/dist/models/create-financial-account-request-dto.js +3 -1
  47. package/dist/models/financial-transaction-class.d.ts +6 -0
  48. package/dist/models/financial-transaction-data-dto.d.ts +6 -0
  49. package/dist/models/index.d.ts +2 -0
  50. package/dist/models/index.js +2 -0
  51. package/dist/models/post-financial-event-request-dto.d.ts +3 -2
  52. package/dist/models/post-financial-event-request-dto.js +1 -0
  53. package/dist/models/product-account-mapping-detail-class.d.ts +6 -0
  54. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  55. package/dist/models/product-risk-carrier-class.js +15 -0
  56. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  57. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  58. package/models/account-mapping-class.ts +3 -1
  59. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
  60. package/models/booking-entry-class.ts +17 -3
  61. package/models/create-booking-entry-request-dto.ts +4 -3
  62. package/models/create-financial-account-request-dto.ts +3 -1
  63. package/models/financial-transaction-class.ts +6 -0
  64. package/models/financial-transaction-data-dto.ts +6 -0
  65. package/models/index.ts +2 -0
  66. package/models/post-financial-event-request-dto.ts +3 -2
  67. package/models/product-account-mapping-detail-class.ts +6 -0
  68. package/models/product-risk-carrier-class.ts +48 -0
  69. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  70. package/package.json +2 -2
@@ -104,7 +104,7 @@ 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, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -125,13 +125,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
+ // Only Authorization falls back to the configured token; an empty value is never sent.
130
+ ];
129
131
  case 1:
130
132
  // authentication bearer required
131
133
  // http bearer authentication required
132
134
  _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
138
  }
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
140
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -155,7 +158,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
155
158
  deleteCommissionTypeAccount: function (commissionType, authorization, options) {
156
159
  if (options === void 0) { options = {}; }
157
160
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
162
  return __generator(this, function (_a) {
160
163
  switch (_a.label) {
161
164
  case 0:
@@ -173,13 +176,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = 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
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
185
191
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -203,7 +209,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
203
209
  getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
204
210
  if (options === void 0) { options = {}; }
205
211
  return __awaiter(_this, void 0, void 0, function () {
206
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
207
213
  return __generator(this, function (_a) {
208
214
  switch (_a.label) {
209
215
  case 0:
@@ -221,13 +227,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
221
227
  localVarQueryParameter = {};
222
228
  // authentication bearer required
223
229
  // http bearer authentication required
224
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
231
+ // Only Authorization falls back to the configured token; an empty value is never sent.
232
+ ];
225
233
  case 1:
226
234
  // authentication bearer required
227
235
  // http bearer authentication required
228
236
  _a.sent();
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
238
+ if (authorizationValue) {
239
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
231
240
  }
232
241
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
233
242
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -257,7 +266,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
257
266
  listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
258
267
  if (options === void 0) { options = {}; }
259
268
  return __awaiter(_this, void 0, void 0, function () {
260
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
261
270
  return __generator(this, function (_a) {
262
271
  switch (_a.label) {
263
272
  case 0:
@@ -298,8 +307,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
298
307
  if (filters !== undefined) {
299
308
  localVarQueryParameter['filters'] = filters;
300
309
  }
301
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
302
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
311
+ if (authorizationValue) {
312
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
303
313
  }
304
314
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
305
315
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -329,7 +339,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
329
339
  listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
330
340
  if (options === void 0) { options = {}; }
331
341
  return __awaiter(_this, void 0, void 0, function () {
332
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
333
343
  return __generator(this, function (_a) {
334
344
  switch (_a.label) {
335
345
  case 0:
@@ -370,8 +380,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
370
380
  if (filters !== undefined) {
371
381
  localVarQueryParameter['filters'] = filters;
372
382
  }
373
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
374
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
383
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
384
+ if (authorizationValue) {
385
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
375
386
  }
376
387
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
377
388
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -401,7 +412,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
401
412
  listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
402
413
  if (options === void 0) { options = {}; }
403
414
  return __awaiter(_this, void 0, void 0, function () {
404
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
415
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
405
416
  return __generator(this, function (_a) {
406
417
  switch (_a.label) {
407
418
  case 0:
@@ -442,8 +453,9 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
442
453
  if (filters !== undefined) {
443
454
  localVarQueryParameter['filters'] = filters;
444
455
  }
445
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
446
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
456
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
457
+ if (authorizationValue) {
458
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
447
459
  }
448
460
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
449
461
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -469,7 +481,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
469
481
  updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
470
482
  if (options === void 0) { options = {}; }
471
483
  return __awaiter(_this, void 0, void 0, function () {
472
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
484
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
473
485
  return __generator(this, function (_a) {
474
486
  switch (_a.label) {
475
487
  case 0:
@@ -492,13 +504,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
492
504
  localVarQueryParameter = {};
493
505
  // authentication bearer required
494
506
  // http bearer authentication required
495
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
507
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
508
+ // Only Authorization falls back to the configured token; an empty value is never sent.
509
+ ];
496
510
  case 1:
497
511
  // authentication bearer required
498
512
  // http bearer authentication required
499
513
  _a.sent();
500
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
501
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
514
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
515
+ if (authorizationValue) {
516
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
502
517
  }
503
518
  localVarHeaderParameter['Content-Type'] = 'application/json';
504
519
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -525,7 +540,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
525
540
  updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
526
541
  if (options === void 0) { options = {}; }
527
542
  return __awaiter(_this, void 0, void 0, function () {
528
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
543
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
529
544
  return __generator(this, function (_a) {
530
545
  switch (_a.label) {
531
546
  case 0:
@@ -545,13 +560,16 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
545
560
  localVarQueryParameter = {};
546
561
  // authentication bearer required
547
562
  // http bearer authentication required
548
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
563
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
564
+ // Only Authorization falls back to the configured token; an empty value is never sent.
565
+ ];
549
566
  case 1:
550
567
  // authentication bearer required
551
568
  // http bearer authentication required
552
569
  _a.sent();
553
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
554
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
570
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
571
+ if (authorizationValue) {
572
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
555
573
  }
556
574
  localVarHeaderParameter['Content-Type'] = 'application/json';
557
575
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -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, {}>>;
356
+ createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}, 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, {}>>;
365
+ deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, 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, {}>>;
374
+ getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}, 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, {}>>;
383
+ listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}, 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, {}>>;
392
+ updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}, any>>;
393
393
  }
@@ -103,7 +103,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createFinancialAccount: function (createFinancialAccountRequestDto, 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, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
152
155
  deleteFinancialAccount: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,7 +207,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
201
207
  getFinancialAccount: function (code, expand, authorization, options) {
202
208
  if (options === void 0) { options = {}; }
203
209
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
205
211
  return __generator(this, function (_a) {
206
212
  switch (_a.label) {
207
213
  case 0:
@@ -229,8 +235,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
229
235
  if (expand !== undefined) {
230
236
  localVarQueryParameter['expand'] = expand;
231
237
  }
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
234
241
  }
235
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -260,7 +267,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
260
267
  listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
268
  if (options === void 0) { options = {}; }
262
269
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
264
271
  return __generator(this, function (_a) {
265
272
  switch (_a.label) {
266
273
  case 0:
@@ -301,8 +308,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
301
308
  if (filters !== undefined) {
302
309
  localVarQueryParameter['filters'] = filters;
303
310
  }
304
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
314
  }
307
315
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
316
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -327,7 +335,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
327
335
  updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
328
336
  if (options === void 0) { options = {}; }
329
337
  return __awaiter(_this, void 0, void 0, function () {
330
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
338
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
331
339
  return __generator(this, function (_a) {
332
340
  switch (_a.label) {
333
341
  case 0:
@@ -347,13 +355,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
347
355
  localVarQueryParameter = {};
348
356
  // authentication bearer required
349
357
  // http bearer authentication required
350
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
359
+ // Only Authorization falls back to the configured token; an empty value is never sent.
360
+ ];
351
361
  case 1:
352
362
  // authentication bearer required
353
363
  // http bearer authentication required
354
364
  _a.sent();
355
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
365
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
366
+ if (authorizationValue) {
367
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
357
368
  }
358
369
  localVarHeaderParameter['Content-Type'] = 'application/json';
359
370
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -202,7 +202,7 @@ export declare class FinancialTransactionsApi extends BaseAPI {
202
202
  * @throws {RequiredError}
203
203
  * @memberof FinancialTransactionsApi
204
204
  */
205
- getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}>>;
205
+ getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialTransactionResponseClass, any, {}, any>>;
206
206
  /**
207
207
  * This endpoint list financial transactions. **Required Permissions** \"accounting-management.transactions.view\"
208
208
  * @summary List financial transactions
@@ -211,5 +211,5 @@ export declare class FinancialTransactionsApi extends BaseAPI {
211
211
  * @throws {RequiredError}
212
212
  * @memberof FinancialTransactionsApi
213
213
  */
214
- listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}>>;
214
+ listFinancialTransactions(requestParameters?: FinancialTransactionsApiListFinancialTransactionsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialTransactionsResponseClass, any, {}, any>>;
215
215
  }
@@ -104,7 +104,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
104
104
  getFinancialTransaction: function (code, expand, 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, headersFromBaseOptions;
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
108
108
  return __generator(this, function (_a) {
109
109
  switch (_a.label) {
110
110
  case 0:
@@ -132,8 +132,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
132
132
  if (expand !== undefined) {
133
133
  localVarQueryParameter['expand'] = expand;
134
134
  }
135
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
137
138
  }
138
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
140
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -163,7 +164,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
163
164
  listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
164
165
  if (options === void 0) { options = {}; }
165
166
  return __awaiter(_this, void 0, void 0, function () {
166
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
167
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
167
168
  return __generator(this, function (_a) {
168
169
  switch (_a.label) {
169
170
  case 0:
@@ -204,8 +205,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
204
205
  if (filters !== undefined) {
205
206
  localVarQueryParameter['filters'] = filters;
206
207
  }
207
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
208
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
208
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
209
+ if (authorizationValue) {
210
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
209
211
  }
210
212
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
211
213
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -66,5 +66,5 @@ export declare class HealthApi extends BaseAPI {
66
66
  * @throws {RequiredError}
67
67
  * @memberof HealthApi
68
68
  */
69
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
69
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
70
70
  }
@@ -296,7 +296,7 @@ export declare class NumberRangesApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof NumberRangesApi
298
298
  */
299
- createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}>>;
299
+ createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateNumberRangeResponseClass, any, {}, any>>;
300
300
  /**
301
301
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.transactions.delete\"
302
302
  * @summary Delete the Personal Account
@@ -305,7 +305,7 @@ export declare class NumberRangesApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof NumberRangesApi
307
307
  */
308
- deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
308
+ deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
309
309
  /**
310
310
  * 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.transactions.view\"
311
311
  * @summary Retrieve the Financial Account
@@ -314,7 +314,7 @@ export declare class NumberRangesApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof NumberRangesApi
316
316
  */
317
- getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}>>;
317
+ getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetNumberRangeResponseClass, any, {}, any>>;
318
318
  /**
319
319
  * 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.transactions.view\"
320
320
  * @summary List Financial Accounts
@@ -323,5 +323,5 @@ export declare class NumberRangesApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof NumberRangesApi
325
325
  */
326
- listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}>>;
326
+ listNumberRanges(requestParameters?: NumberRangesApiListNumberRangesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListNumberRangeResponseClass, any, {}, any>>;
327
327
  }
@@ -103,7 +103,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
103
103
  createNumberRange: function (createNumberRangeRequestDto, 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, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,13 +120,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
+ // Only Authorization falls back to the configured token; an empty value is never sent.
125
+ ];
124
126
  case 1:
125
127
  // authentication bearer required
126
128
  // http bearer authentication required
127
129
  _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
+ if (authorizationValue) {
132
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
133
  }
131
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,7 +155,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
152
155
  deleteNumberRange: function (code, authorization, options) {
153
156
  if (options === void 0) { options = {}; }
154
157
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
156
159
  return __generator(this, function (_a) {
157
160
  switch (_a.label) {
158
161
  case 0:
@@ -170,13 +173,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
170
173
  localVarQueryParameter = {};
171
174
  // authentication bearer required
172
175
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
+ // Only Authorization falls back to the configured token; an empty value is never sent.
178
+ ];
174
179
  case 1:
175
180
  // authentication bearer required
176
181
  // http bearer authentication required
177
182
  _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
+ if (authorizationValue) {
185
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
186
  }
181
187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,7 +207,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
201
207
  getNumberRange: function (code, expand, authorization, options) {
202
208
  if (options === void 0) { options = {}; }
203
209
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
205
211
  return __generator(this, function (_a) {
206
212
  switch (_a.label) {
207
213
  case 0:
@@ -229,8 +235,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
229
235
  if (expand !== undefined) {
230
236
  localVarQueryParameter['expand'] = expand;
231
237
  }
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
234
241
  }
235
242
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
243
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -260,7 +267,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
260
267
  listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
268
  if (options === void 0) { options = {}; }
262
269
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
270
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
264
271
  return __generator(this, function (_a) {
265
272
  switch (_a.label) {
266
273
  case 0:
@@ -301,8 +308,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
301
308
  if (filters !== undefined) {
302
309
  localVarQueryParameter['filters'] = filters;
303
310
  }
304
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
312
+ if (authorizationValue) {
313
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
314
  }
307
315
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
316
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};