@emilgroup/accounting-sdk-node 1.32.1-beta.78 → 1.32.1-beta.79

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 (204) hide show
  1. package/.openapi-generator/FILES +50 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +868 -0
  4. package/api/booking-entries-api.ts +234 -10
  5. package/api/commission-account-mappings-api.ts +1211 -0
  6. package/api/financial-accounts-api.ts +154 -24
  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 +1719 -0
  11. package/api.ts +6 -0
  12. package/common.ts +3 -2
  13. package/dist/api/accounting-configs-api.d.ts +451 -0
  14. package/dist/api/accounting-configs-api.js +887 -0
  15. package/dist/api/booking-entries-api.d.ts +121 -7
  16. package/dist/api/booking-entries-api.js +211 -14
  17. package/dist/api/commission-account-mappings-api.d.ts +685 -0
  18. package/dist/api/commission-account-mappings-api.js +1026 -0
  19. package/dist/api/financial-accounts-api.d.ts +86 -20
  20. package/dist/api/financial-accounts-api.js +137 -27
  21. package/dist/api/financial-transactions-api.d.ts +2 -2
  22. package/dist/api/financial-transactions-api.js +8 -6
  23. package/dist/api/health-api.d.ts +1 -1
  24. package/dist/api/number-ranges-api.d.ts +4 -4
  25. package/dist/api/number-ranges-api.js +22 -14
  26. package/dist/api/personal-accounts-api.d.ts +4 -4
  27. package/dist/api/personal-accounts-api.js +22 -14
  28. package/dist/api/product-account-mappings-api.d.ts +972 -0
  29. package/dist/api/product-account-mappings-api.js +1451 -0
  30. package/dist/api.d.ts +3 -0
  31. package/dist/api.js +3 -0
  32. package/dist/common.d.ts +1 -1
  33. package/dist/common.js +1 -0
  34. package/dist/models/account-mapping-class.d.ts +73 -0
  35. package/dist/models/account-mapping-class.js +40 -0
  36. package/dist/models/accounting-category-class.d.ts +45 -0
  37. package/dist/models/accounting-category-class.js +24 -0
  38. package/dist/models/accounting-config-class.d.ts +78 -0
  39. package/dist/models/accounting-config-class.js +20 -0
  40. package/dist/models/accounting-config-data-class.d.ts +38 -0
  41. package/dist/models/accounting-config-data-class.js +15 -0
  42. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +46 -0
  43. package/dist/models/accounting-config-data-dto-accounting-configuration.js +24 -0
  44. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +79 -0
  45. package/dist/models/accounting-config-data-dto-default-account-mappings.js +40 -0
  46. package/dist/models/accounting-config-data-dto.d.ts +38 -0
  47. package/dist/models/accounting-config-data-dto.js +15 -0
  48. package/dist/models/accounting-configuration-class.d.ts +36 -0
  49. package/dist/models/accounting-configuration-class.js +15 -0
  50. package/dist/models/booking-entry-class.d.ts +34 -0
  51. package/dist/models/booking-entry-class.js +10 -1
  52. package/dist/models/commission-account-mapping-class.d.ts +49 -0
  53. package/dist/models/commission-account-mapping-class.js +15 -0
  54. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
  55. package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
  56. package/dist/models/commission-agreement-partner-class.d.ts +30 -0
  57. package/dist/models/commission-agreement-partner-class.js +15 -0
  58. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
  59. package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
  60. package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
  61. package/dist/models/commission-type-account-mapping-class.js +15 -0
  62. package/dist/models/create-and-enable-subledger-request-dto.d.ts +25 -0
  63. package/dist/models/create-and-enable-subledger-request-dto.js +15 -0
  64. package/dist/models/create-and-enable-subledger-response-class.d.ts +25 -0
  65. package/dist/models/create-and-enable-subledger-response-class.js +15 -0
  66. package/dist/models/create-booking-entry-request-dto.d.ts +25 -2
  67. package/dist/models/create-booking-entry-request-dto.js +9 -0
  68. package/dist/models/create-financial-account-request-dto.d.ts +50 -5
  69. package/dist/models/create-financial-account-request-dto.js +26 -2
  70. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  71. package/dist/models/create-number-range-request-dto.js +4 -4
  72. package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
  73. package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
  74. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
  75. package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
  76. package/dist/models/create-personal-account-request-dto.d.ts +14 -6
  77. package/dist/models/create-personal-account-request-dto.js +3 -3
  78. package/dist/models/export-accounting-config-response-class.d.ts +25 -0
  79. package/dist/models/export-accounting-config-response-class.js +15 -0
  80. package/dist/models/financial-account-class.d.ts +49 -2
  81. package/dist/models/financial-account-class.js +6 -2
  82. package/dist/models/financial-transaction-class.d.ts +6 -0
  83. package/dist/models/financial-transaction-data-dto.d.ts +11 -2
  84. package/dist/models/financial-transaction-data-dto.js +1 -0
  85. package/dist/models/get-accounting-categories-response-class.d.ts +25 -0
  86. package/dist/models/get-accounting-categories-response-class.js +15 -0
  87. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  88. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  89. package/dist/models/index.d.ts +47 -0
  90. package/dist/models/index.js +47 -0
  91. package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
  92. package/dist/models/list-commission-account-mappings-response-class.js +15 -0
  93. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
  94. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
  95. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
  96. package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
  97. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  98. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  99. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  100. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  101. package/dist/models/opening-balance-item-dto.d.ts +41 -0
  102. package/dist/models/opening-balance-item-dto.js +20 -0
  103. package/dist/models/personal-account-class.d.ts +8 -2
  104. package/dist/models/personal-account-class.js +1 -1
  105. package/dist/models/post-financial-event-request-dto.d.ts +45 -0
  106. package/dist/models/post-financial-event-request-dto.js +24 -0
  107. package/dist/models/post-financial-event-response-class.d.ts +25 -0
  108. package/dist/models/post-financial-event-response-class.js +15 -0
  109. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  110. package/dist/models/premium-item-account-mapping-class.js +15 -0
  111. package/dist/models/product-account-mapping-class.d.ts +61 -0
  112. package/dist/models/product-account-mapping-class.js +15 -0
  113. package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
  114. package/dist/models/product-account-mapping-detail-class.js +15 -0
  115. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  116. package/dist/models/product-risk-carrier-class.js +15 -0
  117. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  118. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  119. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  120. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  121. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  122. package/dist/models/product-with-account-mappings-class.js +15 -0
  123. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  124. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  125. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  126. package/dist/models/put-product-category-account-body-dto.js +15 -0
  127. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  128. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  129. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  130. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  131. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  132. package/dist/models/resolved-account-mapping-class.js +15 -0
  133. package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
  134. package/dist/models/resolved-commission-account-mapping-class.js +21 -0
  135. package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
  136. package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
  137. package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
  138. package/dist/models/update-commission-type-account-body-dto.js +15 -0
  139. package/dist/models/update-financial-account-body-dto.d.ts +48 -0
  140. package/dist/models/update-financial-account-body-dto.js +15 -0
  141. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  142. package/dist/models/update-financial-account-response-class.js +15 -0
  143. package/dist/models/validate-accounting-config-request-dto.d.ts +25 -0
  144. package/dist/models/validate-accounting-config-request-dto.js +15 -0
  145. package/dist/models/validate-accounting-config-response-class.d.ts +30 -0
  146. package/dist/models/validate-accounting-config-response-class.js +15 -0
  147. package/models/account-mapping-class.ts +82 -0
  148. package/models/accounting-category-class.ts +54 -0
  149. package/models/accounting-config-class.ts +87 -0
  150. package/models/accounting-config-data-class.ts +44 -0
  151. package/models/accounting-config-data-dto-accounting-configuration.ts +56 -0
  152. package/models/accounting-config-data-dto-default-account-mappings.ts +88 -0
  153. package/models/accounting-config-data-dto.ts +44 -0
  154. package/models/accounting-configuration-class.ts +42 -0
  155. package/models/booking-entry-class.ts +35 -0
  156. package/models/commission-account-mapping-class.ts +55 -0
  157. package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
  158. package/models/commission-agreement-partner-class.ts +36 -0
  159. package/models/commission-agreement-with-account-mapping-class.ts +49 -0
  160. package/models/commission-type-account-mapping-class.ts +37 -0
  161. package/models/create-and-enable-subledger-request-dto.ts +31 -0
  162. package/models/create-and-enable-subledger-response-class.ts +31 -0
  163. package/models/create-booking-entry-request-dto.ts +26 -2
  164. package/models/create-financial-account-request-dto.ts +49 -5
  165. package/models/create-number-range-request-dto.ts +4 -4
  166. package/models/create-or-correct-opening-balance-dto.ts +31 -0
  167. package/models/create-or-correct-opening-balance-response-class.ts +31 -0
  168. package/models/create-personal-account-request-dto.ts +12 -6
  169. package/models/export-accounting-config-response-class.ts +31 -0
  170. package/models/financial-account-class.ts +50 -2
  171. package/models/financial-transaction-class.ts +6 -0
  172. package/models/financial-transaction-data-dto.ts +9 -2
  173. package/models/get-accounting-categories-response-class.ts +31 -0
  174. package/models/get-activation-snapshot-response-class.ts +31 -0
  175. package/models/index.ts +47 -0
  176. package/models/list-commission-account-mappings-response-class.ts +49 -0
  177. package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
  178. package/models/list-commission-type-account-mappings-response-class.ts +49 -0
  179. package/models/list-product-account-mappings-response-class.ts +49 -0
  180. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  181. package/models/opening-balance-item-dto.ts +50 -0
  182. package/models/personal-account-class.ts +8 -2
  183. package/models/post-financial-event-request-dto.ts +54 -0
  184. package/models/post-financial-event-response-class.ts +31 -0
  185. package/models/premium-item-account-mapping-class.ts +43 -0
  186. package/models/product-account-mapping-class.ts +67 -0
  187. package/models/product-account-mapping-detail-class.ts +62 -0
  188. package/models/product-risk-carrier-class.ts +48 -0
  189. package/models/product-version-account-mapping-detail-class.ts +56 -0
  190. package/models/product-version-with-account-mappings-class.ts +48 -0
  191. package/models/product-with-account-mappings-class.ts +55 -0
  192. package/models/put-premium-item-account-body-dto.ts +30 -0
  193. package/models/put-product-category-account-body-dto.ts +30 -0
  194. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  195. package/models/put-product-version-category-account-body-dto.ts +30 -0
  196. package/models/resolved-account-mapping-class.ts +37 -0
  197. package/models/resolved-commission-account-mapping-class.ts +46 -0
  198. package/models/update-commission-agreement-account-body-dto.ts +30 -0
  199. package/models/update-commission-type-account-body-dto.ts +30 -0
  200. package/models/update-financial-account-body-dto.ts +54 -0
  201. package/models/update-financial-account-response-class.ts +31 -0
  202. package/models/validate-accounting-config-request-dto.ts +31 -0
  203. package/models/validate-accounting-config-response-class.ts +36 -0
  204. package/package.json +2 -2
@@ -108,7 +108,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
108
108
  getFinancialTransaction: function (code, expand, authorization, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -136,8 +136,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
136
136
  if (expand !== undefined) {
137
137
  localVarQueryParameter['expand'] = expand;
138
138
  }
139
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
140
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
140
+ if (authorizationValue) {
141
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
141
142
  }
142
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
143
144
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -167,7 +168,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
167
168
  listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
168
169
  if (options === void 0) { options = {}; }
169
170
  return __awaiter(_this, void 0, void 0, function () {
170
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
171
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
171
172
  return __generator(this, function (_a) {
172
173
  switch (_a.label) {
173
174
  case 0:
@@ -208,8 +209,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
208
209
  if (filters !== undefined) {
209
210
  localVarQueryParameter['filters'] = filters;
210
211
  }
211
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
212
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
213
+ if (authorizationValue) {
214
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
213
215
  }
214
216
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
215
217
  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
  }
@@ -107,7 +107,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
107
107
  createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
156
159
  deleteNumberRange: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
205
211
  getNumberRange: function (code, expand, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -233,8 +239,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
233
239
  if (expand !== undefined) {
234
240
  localVarQueryParameter['expand'] = expand;
235
241
  }
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
245
  }
239
246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
247
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -264,7 +271,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
264
271
  listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
272
  if (options === void 0) { options = {}; }
266
273
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
268
275
  return __generator(this, function (_a) {
269
276
  switch (_a.label) {
270
277
  case 0:
@@ -305,8 +312,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
305
312
  if (filters !== undefined) {
306
313
  localVarQueryParameter['filters'] = filters;
307
314
  }
308
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
318
  }
311
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
320
  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
  }
@@ -107,7 +107,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
107
107
  createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
156
159
  deletePersonalAccount: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
205
211
  getPersonalAccount: function (code, expand, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -233,8 +239,9 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
233
239
  if (expand !== undefined) {
234
240
  localVarQueryParameter['expand'] = expand;
235
241
  }
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
245
  }
239
246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
247
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -264,7 +271,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
264
271
  listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
272
  if (options === void 0) { options = {}; }
266
273
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
268
275
  return __generator(this, function (_a) {
269
276
  switch (_a.label) {
270
277
  case 0:
@@ -305,8 +312,9 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
305
312
  if (filters !== undefined) {
306
313
  localVarQueryParameter['filters'] = filters;
307
314
  }
308
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
318
  }
311
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
320
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};