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

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 (210) hide show
  1. package/.openapi-generator/FILES +0 -50
  2. package/README.md +2 -2
  3. package/api/booking-entries-api.ts +10 -234
  4. package/api/financial-accounts-api.ts +24 -154
  5. package/api/financial-transactions-api.ts +4 -8
  6. package/api/number-ranges-api.ts +8 -16
  7. package/api/personal-accounts-api.ts +8 -16
  8. package/api.ts +0 -6
  9. package/base.ts +41 -174
  10. package/common.ts +2 -3
  11. package/configuration.ts +0 -20
  12. package/dist/api/booking-entries-api.d.ts +7 -121
  13. package/dist/api/booking-entries-api.js +14 -211
  14. package/dist/api/financial-accounts-api.d.ts +20 -86
  15. package/dist/api/financial-accounts-api.js +27 -137
  16. package/dist/api/financial-transactions-api.d.ts +2 -2
  17. package/dist/api/financial-transactions-api.js +6 -8
  18. package/dist/api/health-api.d.ts +1 -1
  19. package/dist/api/number-ranges-api.d.ts +4 -4
  20. package/dist/api/number-ranges-api.js +14 -22
  21. package/dist/api/personal-accounts-api.d.ts +4 -4
  22. package/dist/api/personal-accounts-api.js +14 -22
  23. package/dist/api.d.ts +0 -3
  24. package/dist/api.js +0 -3
  25. package/dist/base.d.ts +0 -24
  26. package/dist/base.js +59 -178
  27. package/dist/common.d.ts +1 -1
  28. package/dist/common.js +0 -1
  29. package/dist/configuration.d.ts +0 -17
  30. package/dist/configuration.js +0 -2
  31. package/dist/models/booking-entry-class.d.ts +0 -34
  32. package/dist/models/booking-entry-class.js +1 -10
  33. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  34. package/dist/models/create-booking-entry-request-dto.js +0 -9
  35. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  36. package/dist/models/create-financial-account-request-dto.js +2 -26
  37. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  38. package/dist/models/create-number-range-request-dto.js +4 -4
  39. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  40. package/dist/models/create-personal-account-request-dto.js +3 -3
  41. package/dist/models/financial-account-class.d.ts +2 -49
  42. package/dist/models/financial-account-class.js +2 -6
  43. package/dist/models/financial-transaction-class.d.ts +0 -6
  44. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  45. package/dist/models/financial-transaction-data-dto.js +0 -1
  46. package/dist/models/index.d.ts +0 -47
  47. package/dist/models/index.js +0 -47
  48. package/dist/models/personal-account-class.d.ts +2 -8
  49. package/dist/models/personal-account-class.js +1 -1
  50. package/models/booking-entry-class.ts +0 -35
  51. package/models/create-booking-entry-request-dto.ts +2 -26
  52. package/models/create-financial-account-request-dto.ts +5 -49
  53. package/models/create-number-range-request-dto.ts +4 -4
  54. package/models/create-personal-account-request-dto.ts +6 -12
  55. package/models/financial-account-class.ts +2 -50
  56. package/models/financial-transaction-class.ts +0 -6
  57. package/models/financial-transaction-data-dto.ts +2 -9
  58. package/models/index.ts +0 -47
  59. package/models/personal-account-class.ts +2 -8
  60. package/package.json +2 -2
  61. package/api/accounting-configs-api.ts +0 -862
  62. package/api/commission-account-mappings-api.ts +0 -1207
  63. package/api/product-account-mappings-api.ts +0 -1715
  64. package/dist/api/accounting-configs-api.d.ts +0 -451
  65. package/dist/api/accounting-configs-api.js +0 -881
  66. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  67. package/dist/api/commission-account-mappings-api.js +0 -1022
  68. package/dist/api/product-account-mappings-api.d.ts +0 -972
  69. package/dist/api/product-account-mappings-api.js +0 -1447
  70. package/dist/models/account-mapping-class.d.ts +0 -73
  71. package/dist/models/account-mapping-class.js +0 -40
  72. package/dist/models/accounting-category-class.d.ts +0 -45
  73. package/dist/models/accounting-category-class.js +0 -24
  74. package/dist/models/accounting-config-class.d.ts +0 -78
  75. package/dist/models/accounting-config-class.js +0 -20
  76. package/dist/models/accounting-config-data-class.d.ts +0 -38
  77. package/dist/models/accounting-config-data-class.js +0 -15
  78. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  79. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  80. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  81. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  82. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  83. package/dist/models/accounting-config-data-dto.js +0 -15
  84. package/dist/models/accounting-configuration-class.d.ts +0 -36
  85. package/dist/models/accounting-configuration-class.js +0 -15
  86. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  87. package/dist/models/commission-account-mapping-class.js +0 -15
  88. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  89. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  90. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  91. package/dist/models/commission-agreement-partner-class.js +0 -15
  92. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  93. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  94. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  95. package/dist/models/commission-type-account-mapping-class.js +0 -15
  96. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  97. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  98. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  99. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  100. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  101. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  102. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  103. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  104. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  105. package/dist/models/export-accounting-config-response-class.js +0 -15
  106. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  107. package/dist/models/get-accounting-categories-response-class.js +0 -15
  108. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  109. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  110. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  115. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  116. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  117. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  118. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  119. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  120. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  121. package/dist/models/opening-balance-item-dto.js +0 -20
  122. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  123. package/dist/models/post-financial-event-request-dto.js +0 -24
  124. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  125. package/dist/models/post-financial-event-response-class.js +0 -15
  126. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  127. package/dist/models/premium-item-account-mapping-class.js +0 -15
  128. package/dist/models/product-account-mapping-class.d.ts +0 -61
  129. package/dist/models/product-account-mapping-class.js +0 -15
  130. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  131. package/dist/models/product-account-mapping-detail-class.js +0 -15
  132. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  133. package/dist/models/product-risk-carrier-class.js +0 -15
  134. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  135. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  136. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  137. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  138. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  139. package/dist/models/product-with-account-mappings-class.js +0 -15
  140. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  142. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  143. package/dist/models/put-product-category-account-body-dto.js +0 -15
  144. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  145. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  146. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  147. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  148. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  149. package/dist/models/resolved-account-mapping-class.js +0 -15
  150. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  151. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  152. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  153. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  154. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  155. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  156. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  157. package/dist/models/update-financial-account-body-dto.js +0 -15
  158. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  159. package/dist/models/update-financial-account-response-class.js +0 -15
  160. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  161. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  162. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  163. package/dist/models/validate-accounting-config-response-class.js +0 -15
  164. package/models/account-mapping-class.ts +0 -82
  165. package/models/accounting-category-class.ts +0 -54
  166. package/models/accounting-config-class.ts +0 -87
  167. package/models/accounting-config-data-class.ts +0 -44
  168. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  169. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  170. package/models/accounting-config-data-dto.ts +0 -44
  171. package/models/accounting-configuration-class.ts +0 -42
  172. package/models/commission-account-mapping-class.ts +0 -55
  173. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  174. package/models/commission-agreement-partner-class.ts +0 -36
  175. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  176. package/models/commission-type-account-mapping-class.ts +0 -37
  177. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  178. package/models/create-and-enable-subledger-response-class.ts +0 -31
  179. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  180. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  181. package/models/export-accounting-config-response-class.ts +0 -31
  182. package/models/get-accounting-categories-response-class.ts +0 -31
  183. package/models/get-activation-snapshot-response-class.ts +0 -31
  184. package/models/list-commission-account-mappings-response-class.ts +0 -49
  185. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  186. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  187. package/models/list-product-account-mappings-response-class.ts +0 -49
  188. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  189. package/models/opening-balance-item-dto.ts +0 -50
  190. package/models/post-financial-event-request-dto.ts +0 -54
  191. package/models/post-financial-event-response-class.ts +0 -31
  192. package/models/premium-item-account-mapping-class.ts +0 -43
  193. package/models/product-account-mapping-class.ts +0 -67
  194. package/models/product-account-mapping-detail-class.ts +0 -62
  195. package/models/product-risk-carrier-class.ts +0 -48
  196. package/models/product-version-account-mapping-detail-class.ts +0 -56
  197. package/models/product-version-with-account-mappings-class.ts +0 -48
  198. package/models/product-with-account-mappings-class.ts +0 -55
  199. package/models/put-premium-item-account-body-dto.ts +0 -30
  200. package/models/put-product-category-account-body-dto.ts +0 -30
  201. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  202. package/models/put-product-version-category-account-body-dto.ts +0 -30
  203. package/models/resolved-account-mapping-class.ts +0 -37
  204. package/models/resolved-commission-account-mapping-class.ts +0 -46
  205. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  206. package/models/update-commission-type-account-body-dto.ts +0 -30
  207. package/models/update-financial-account-body-dto.ts +0 -54
  208. package/models/update-financial-account-response-class.ts +0 -31
  209. package/models/validate-accounting-config-request-dto.ts +0 -31
  210. package/models/validate-accounting-config-response-class.ts +0 -36
@@ -28,10 +28,6 @@ import { CreateFinancialAccountResponseClass } from '../models';
28
28
  import { GetFinancialAccountResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListFinancialAccountsResponseClass } from '../models';
31
- // @ts-ignore
32
- import { UpdateFinancialAccountBodyDto } from '../models';
33
- // @ts-ignore
34
- import { UpdateFinancialAccountResponseClass } from '../models';
35
31
  /**
36
32
  * FinancialAccountsApi - axios parameter creator
37
33
  * @export
@@ -39,7 +35,7 @@ import { UpdateFinancialAccountResponseClass } from '../models';
39
35
  export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
40
36
  return {
41
37
  /**
42
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
38
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
43
39
  * @summary Create the Financial Account
44
40
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
45
41
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -67,10 +63,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
67
63
  // http bearer authentication required
68
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
65
 
70
- // Only Authorization falls back to the configured token; an empty value is never sent.
71
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
- if (authorizationValue) {
73
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
74
68
  }
75
69
 
76
70
 
@@ -117,10 +111,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
117
111
  // http bearer authentication required
118
112
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
113
 
120
- // Only Authorization falls back to the configured token; an empty value is never sent.
121
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
122
- if (authorizationValue) {
123
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
114
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
116
  }
125
117
 
126
118
 
@@ -171,10 +163,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
171
163
  localVarQueryParameter['expand'] = expand;
172
164
  }
173
165
 
174
- // Only Authorization falls back to the configured token; an empty value is never sent.
175
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
176
- if (authorizationValue) {
177
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
168
  }
179
169
 
180
170
 
@@ -194,11 +184,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
194
184
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
195
185
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
196
186
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
197
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
187
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
198
188
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
199
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
189
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
200
190
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
201
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
191
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
202
192
  * @param {*} [options] Override http request option.
203
193
  * @throws {RequiredError}
204
194
  */
@@ -249,70 +239,15 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
249
239
  localVarQueryParameter['filters'] = filters;
250
240
  }
251
241
 
252
- // Only Authorization falls back to the configured token; an empty value is never sent.
253
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
254
- if (authorizationValue) {
255
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
256
- }
257
-
258
-
259
-
260
- setSearchParams(localVarUrlObj, localVarQueryParameter);
261
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
262
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
263
-
264
- return {
265
- url: toPathString(localVarUrlObj),
266
- options: localVarRequestOptions,
267
- };
268
- },
269
- /**
270
- * 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\"
271
- * @summary Update the Financial Account
272
- * @param {string} code Unique identifier for the object.
273
- * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
274
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
275
- * @param {*} [options] Override http request option.
276
- * @throws {RequiredError}
277
- */
278
- updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
279
- // verify required parameter 'code' is not null or undefined
280
- assertParamExists('updateFinancialAccount', 'code', code)
281
- // verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
282
- assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
283
- const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
284
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
285
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
- let baseOptions;
288
- let baseAccessToken;
289
- if (configuration) {
290
- baseOptions = configuration.baseOptions;
291
- baseAccessToken = configuration.accessToken;
292
- }
293
-
294
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
295
- const localVarHeaderParameter = {} as any;
296
- const localVarQueryParameter = {} as any;
297
-
298
- // authentication bearer required
299
- // http bearer authentication required
300
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
301
-
302
- // Only Authorization falls back to the configured token; an empty value is never sent.
303
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
304
- if (authorizationValue) {
305
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
242
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
244
  }
307
245
 
308
246
 
309
247
 
310
- localVarHeaderParameter['Content-Type'] = 'application/json';
311
-
312
248
  setSearchParams(localVarUrlObj, localVarQueryParameter);
313
249
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
250
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
315
- localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
316
251
 
317
252
  return {
318
253
  url: toPathString(localVarUrlObj),
@@ -330,7 +265,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
330
265
  const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
331
266
  return {
332
267
  /**
333
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
268
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
334
269
  * @summary Create the Financial Account
335
270
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
336
271
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -372,11 +307,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
372
307
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
308
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
374
309
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
375
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
310
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
376
311
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
377
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
312
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
378
313
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
379
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
314
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
380
315
  * @param {*} [options] Override http request option.
381
316
  * @throws {RequiredError}
382
317
  */
@@ -384,19 +319,6 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
384
319
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
385
320
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
321
  },
387
- /**
388
- * 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\"
389
- * @summary Update the Financial Account
390
- * @param {string} code Unique identifier for the object.
391
- * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
392
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
393
- * @param {*} [options] Override http request option.
394
- * @throws {RequiredError}
395
- */
396
- async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
397
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
398
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
399
- },
400
322
  }
401
323
  };
402
324
 
@@ -408,7 +330,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
408
330
  const localVarFp = FinancialAccountsApiFp(configuration)
409
331
  return {
410
332
  /**
411
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
333
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
412
334
  * @summary Create the Financial Account
413
335
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
414
336
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -447,29 +369,17 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
447
369
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
370
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
449
371
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
450
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
372
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
451
373
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
452
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
374
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
453
375
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
454
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
376
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
455
377
  * @param {*} [options] Override http request option.
456
378
  * @throws {RequiredError}
457
379
  */
458
380
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
459
381
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
460
382
  },
461
- /**
462
- * 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\"
463
- * @summary Update the Financial Account
464
- * @param {string} code Unique identifier for the object.
465
- * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
466
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
- * @param {*} [options] Override http request option.
468
- * @throws {RequiredError}
469
- */
470
- updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
471
- return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
472
- },
473
383
  };
474
384
  };
475
385
 
@@ -571,7 +481,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
571
481
  readonly pageToken?: string
572
482
 
573
483
  /**
574
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
484
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
575
485
  * @type {string}
576
486
  * @memberof FinancialAccountsApiListFinancialAccounts
577
487
  */
@@ -585,7 +495,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
585
495
  readonly search?: string
586
496
 
587
497
  /**
588
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type&lt;/i&gt;
498
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
589
499
  * @type {string}
590
500
  * @memberof FinancialAccountsApiListFinancialAccounts
591
501
  */
@@ -599,41 +509,13 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
599
509
  readonly expand?: string
600
510
 
601
511
  /**
602
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban&lt;/i&gt;
512
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
603
513
  * @type {string}
604
514
  * @memberof FinancialAccountsApiListFinancialAccounts
605
515
  */
606
516
  readonly filters?: string
607
517
  }
608
518
 
609
- /**
610
- * Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
611
- * @export
612
- * @interface FinancialAccountsApiUpdateFinancialAccountRequest
613
- */
614
- export interface FinancialAccountsApiUpdateFinancialAccountRequest {
615
- /**
616
- * Unique identifier for the object.
617
- * @type {string}
618
- * @memberof FinancialAccountsApiUpdateFinancialAccount
619
- */
620
- readonly code: string
621
-
622
- /**
623
- *
624
- * @type {UpdateFinancialAccountBodyDto}
625
- * @memberof FinancialAccountsApiUpdateFinancialAccount
626
- */
627
- readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
628
-
629
- /**
630
- * Bearer Token: provided by the login endpoint under the name accessToken.
631
- * @type {string}
632
- * @memberof FinancialAccountsApiUpdateFinancialAccount
633
- */
634
- readonly authorization?: string
635
- }
636
-
637
519
  /**
638
520
  * FinancialAccountsApi - object-oriented interface
639
521
  * @export
@@ -642,7 +524,7 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
642
524
  */
643
525
  export class FinancialAccountsApi extends BaseAPI {
644
526
  /**
645
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
527
+ * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
646
528
  * @summary Create the Financial Account
647
529
  * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
648
530
  * @param {*} [options] Override http request option.
@@ -688,16 +570,4 @@ export class FinancialAccountsApi extends BaseAPI {
688
570
  public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
689
571
  return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
690
572
  }
691
-
692
- /**
693
- * 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\"
694
- * @summary Update the Financial Account
695
- * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
696
- * @param {*} [options] Override http request option.
697
- * @throws {RequiredError}
698
- * @memberof FinancialAccountsApi
699
- */
700
- public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
701
- return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
702
- }
703
573
  }
@@ -67,10 +67,8 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
67
67
  localVarQueryParameter['expand'] = expand;
68
68
  }
69
69
 
70
- // Only Authorization falls back to the configured token; an empty value is never sent.
71
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
72
- if (authorizationValue) {
73
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
74
72
  }
75
73
 
76
74
 
@@ -145,10 +143,8 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
145
143
  localVarQueryParameter['filters'] = filters;
146
144
  }
147
145
 
148
- // Only Authorization falls back to the configured token; an empty value is never sent.
149
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
150
- if (authorizationValue) {
151
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
146
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
147
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
152
148
  }
153
149
 
154
150
 
@@ -63,10 +63,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- // Only Authorization falls back to the configured token; an empty value is never sent.
67
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
- if (authorizationValue) {
69
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
68
  }
71
69
 
72
70
 
@@ -113,10 +111,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
113
111
  // http bearer authentication required
114
112
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
113
 
116
- // Only Authorization falls back to the configured token; an empty value is never sent.
117
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
- if (authorizationValue) {
119
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
114
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
116
  }
121
117
 
122
118
 
@@ -167,10 +163,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
167
163
  localVarQueryParameter['expand'] = expand;
168
164
  }
169
165
 
170
- // Only Authorization falls back to the configured token; an empty value is never sent.
171
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
172
- if (authorizationValue) {
173
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
168
  }
175
169
 
176
170
 
@@ -245,10 +239,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
245
239
  localVarQueryParameter['filters'] = filters;
246
240
  }
247
241
 
248
- // Only Authorization falls back to the configured token; an empty value is never sent.
249
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
250
- if (authorizationValue) {
251
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
242
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
244
  }
253
245
 
254
246
 
@@ -63,10 +63,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- // Only Authorization falls back to the configured token; an empty value is never sent.
67
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
68
- if (authorizationValue) {
69
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
70
68
  }
71
69
 
72
70
 
@@ -113,10 +111,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
113
111
  // http bearer authentication required
114
112
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
115
113
 
116
- // Only Authorization falls back to the configured token; an empty value is never sent.
117
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
118
- if (authorizationValue) {
119
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
114
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
120
116
  }
121
117
 
122
118
 
@@ -167,10 +163,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
167
163
  localVarQueryParameter['expand'] = expand;
168
164
  }
169
165
 
170
- // Only Authorization falls back to the configured token; an empty value is never sent.
171
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
172
- if (authorizationValue) {
173
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
174
168
  }
175
169
 
176
170
 
@@ -245,10 +239,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
245
239
  localVarQueryParameter['filters'] = filters;
246
240
  }
247
241
 
248
- // Only Authorization falls back to the configured token; an empty value is never sent.
249
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
250
- if (authorizationValue) {
251
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
242
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
244
  }
253
245
 
254
246
 
package/api.ts CHANGED
@@ -20,24 +20,18 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
- import { AccountingConfigsApi } from './api';
24
23
  import { BookingEntriesApi } from './api';
25
- import { CommissionAccountMappingsApi } from './api';
26
24
  import { FinancialAccountsApi } from './api';
27
25
  import { FinancialTransactionsApi } from './api';
28
26
  import { HealthApi } from './api';
29
27
  import { NumberRangesApi } from './api';
30
28
  import { PersonalAccountsApi } from './api';
31
- import { ProductAccountMappingsApi } from './api';
32
29
 
33
30
 
34
- export * from './api/accounting-configs-api';
35
31
  export * from './api/booking-entries-api';
36
- export * from './api/commission-account-mappings-api';
37
32
  export * from './api/financial-accounts-api';
38
33
  export * from './api/financial-transactions-api';
39
34
  export * from './api/health-api';
40
35
  export * from './api/number-ranges-api';
41
36
  export * from './api/personal-accounts-api';
42
- export * from './api/product-account-mappings-api';
43
37