@emilgroup/accounting-sdk 1.34.1-beta.7 → 1.34.1-beta.71

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 (168) hide show
  1. package/.openapi-generator/FILES +35 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +120 -14
  4. package/api/booking-entries-api.ts +234 -10
  5. package/api/commission-account-mappings-api.ts +1207 -0
  6. package/api/financial-accounts-api.ts +150 -20
  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 +1715 -0
  11. package/api.ts +4 -0
  12. package/base.ts +174 -41
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +54 -7
  16. package/dist/api/accounting-configs-api.js +139 -28
  17. package/dist/api/booking-entries-api.d.ts +121 -7
  18. package/dist/api/booking-entries-api.js +211 -14
  19. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  20. package/dist/api/commission-account-mappings-api.js +1022 -0
  21. package/dist/api/financial-accounts-api.d.ts +82 -16
  22. package/dist/api/financial-accounts-api.js +134 -24
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +8 -6
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/number-ranges-api.d.ts +4 -4
  27. package/dist/api/number-ranges-api.js +22 -14
  28. package/dist/api/personal-accounts-api.d.ts +4 -4
  29. package/dist/api/personal-accounts-api.js +22 -14
  30. package/dist/api/product-account-mappings-api.d.ts +972 -0
  31. package/dist/api/product-account-mappings-api.js +1447 -0
  32. package/dist/api.d.ts +2 -0
  33. package/dist/api.js +2 -0
  34. package/dist/base.d.ts +24 -0
  35. package/dist/base.js +178 -59
  36. package/dist/common.d.ts +1 -1
  37. package/dist/common.js +1 -0
  38. package/dist/configuration.d.ts +17 -0
  39. package/dist/configuration.js +2 -0
  40. package/dist/models/account-mapping-class.d.ts +2 -0
  41. package/dist/models/account-mapping-class.js +3 -1
  42. package/dist/models/accounting-config-class.d.ts +11 -0
  43. package/dist/models/accounting-config-class.js +5 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  46. package/dist/models/booking-entry-class.d.ts +21 -0
  47. package/dist/models/booking-entry-class.js +9 -1
  48. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  49. package/dist/models/commission-account-mapping-class.js +15 -0
  50. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  51. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  52. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  53. package/dist/models/commission-agreement-partner-class.js +15 -0
  54. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  55. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  56. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  57. package/dist/models/commission-type-account-mapping-class.js +15 -0
  58. package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
  59. package/dist/models/create-booking-entry-request-dto.js +9 -0
  60. package/dist/models/create-financial-account-request-dto.d.ts +8 -0
  61. package/dist/models/create-financial-account-request-dto.js +3 -1
  62. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  63. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  64. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  65. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  66. package/dist/models/financial-account-class.d.ts +24 -1
  67. package/dist/models/financial-account-class.js +5 -1
  68. package/dist/models/financial-transaction-class.d.ts +6 -0
  69. package/dist/models/financial-transaction-data-dto.d.ts +7 -0
  70. package/dist/models/financial-transaction-data-dto.js +1 -0
  71. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  72. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  73. package/dist/models/index.d.ts +33 -0
  74. package/dist/models/index.js +33 -0
  75. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  77. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  79. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  80. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  81. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  82. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  83. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  84. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  85. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  86. package/dist/models/opening-balance-item-dto.js +20 -0
  87. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  88. package/dist/models/post-financial-event-request-dto.js +24 -0
  89. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  90. package/dist/models/post-financial-event-response-class.js +15 -0
  91. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  92. package/dist/models/premium-item-account-mapping-class.js +15 -0
  93. package/dist/models/product-account-mapping-class.d.ts +61 -0
  94. package/dist/models/product-account-mapping-class.js +15 -0
  95. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  96. package/dist/models/product-account-mapping-detail-class.js +15 -0
  97. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  98. package/dist/models/product-risk-carrier-class.js +15 -0
  99. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  100. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  101. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  102. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  103. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  104. package/dist/models/product-with-account-mappings-class.js +15 -0
  105. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  106. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  107. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  108. package/dist/models/put-product-category-account-body-dto.js +15 -0
  109. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  110. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  111. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  112. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  113. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  114. package/dist/models/resolved-account-mapping-class.js +15 -0
  115. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  116. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  117. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  118. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  119. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  120. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  121. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  122. package/dist/models/update-financial-account-body-dto.js +15 -0
  123. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  124. package/dist/models/update-financial-account-response-class.js +15 -0
  125. package/models/account-mapping-class.ts +3 -1
  126. package/models/accounting-config-class.ts +14 -0
  127. package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
  128. package/models/booking-entry-class.ts +22 -0
  129. package/models/commission-account-mapping-class.ts +55 -0
  130. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  131. package/models/commission-agreement-partner-class.ts +36 -0
  132. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  133. package/models/commission-type-account-mapping-class.ts +37 -0
  134. package/models/create-booking-entry-request-dto.ts +24 -0
  135. package/models/create-financial-account-request-dto.ts +9 -1
  136. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  137. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  138. package/models/financial-account-class.ts +25 -1
  139. package/models/financial-transaction-class.ts +6 -0
  140. package/models/financial-transaction-data-dto.ts +7 -0
  141. package/models/get-activation-snapshot-response-class.ts +31 -0
  142. package/models/index.ts +33 -0
  143. package/models/list-commission-account-mappings-response-class.ts +49 -0
  144. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  145. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  146. package/models/list-product-account-mappings-response-class.ts +49 -0
  147. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  148. package/models/opening-balance-item-dto.ts +50 -0
  149. package/models/post-financial-event-request-dto.ts +54 -0
  150. package/models/post-financial-event-response-class.ts +31 -0
  151. package/models/premium-item-account-mapping-class.ts +43 -0
  152. package/models/product-account-mapping-class.ts +67 -0
  153. package/models/product-account-mapping-detail-class.ts +62 -0
  154. package/models/product-risk-carrier-class.ts +48 -0
  155. package/models/product-version-account-mapping-detail-class.ts +56 -0
  156. package/models/product-version-with-account-mappings-class.ts +48 -0
  157. package/models/product-with-account-mappings-class.ts +55 -0
  158. package/models/put-premium-item-account-body-dto.ts +30 -0
  159. package/models/put-product-category-account-body-dto.ts +30 -0
  160. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  161. package/models/put-product-version-category-account-body-dto.ts +30 -0
  162. package/models/resolved-account-mapping-class.ts +37 -0
  163. package/models/resolved-commission-account-mapping-class.ts +46 -0
  164. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  165. package/models/update-commission-type-account-body-dto.ts +30 -0
  166. package/models/update-financial-account-body-dto.ts +54 -0
  167. package/models/update-financial-account-response-class.ts +31 -0
  168. package/package.json +2 -2
@@ -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 : {};
@@ -296,7 +296,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof PersonalAccountsApi
298
298
  */
299
- createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any, {}>>;
299
+ createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, 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.financial-accounts.delete\"
302
302
  * @summary Delete the Personal Account
@@ -305,7 +305,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof PersonalAccountsApi
307
307
  */
308
- deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
308
+ deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
309
309
  /**
310
310
  * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
311
311
  * @summary Retrieve the Personal Account
@@ -314,7 +314,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof PersonalAccountsApi
316
316
  */
317
- getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}>>;
317
+ getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}, any>>;
318
318
  /**
319
319
  * Returns a list of Personal Accounts you have previously created. The Personal 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\"
320
320
  * @summary List Personal Accounts
@@ -323,5 +323,5 @@ export declare class PersonalAccountsApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof PersonalAccountsApi
325
325
  */
326
- listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}>>;
326
+ listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}, any>>;
327
327
  }
@@ -103,7 +103,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createPersonalAccount: function (createPersonalAccountRequestDto, 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 PersonalAccountsApiAxiosParamCreator = 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 PersonalAccountsApiAxiosParamCreator = function (configuration) {
152
155
  deletePersonalAccount: 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 PersonalAccountsApiAxiosParamCreator = 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 PersonalAccountsApiAxiosParamCreator = function (configuration) {
201
207
  getPersonalAccount: 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 PersonalAccountsApiAxiosParamCreator = 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 PersonalAccountsApiAxiosParamCreator = function (configuration) {
260
267
  listPersonalAccounts: 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 PersonalAccountsApiAxiosParamCreator = 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 : {};