@emilgroup/accounting-sdk-node 1.32.1-beta.77 → 1.32.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 (204) 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/common.ts +2 -3
  10. package/dist/api/booking-entries-api.d.ts +7 -121
  11. package/dist/api/booking-entries-api.js +14 -211
  12. package/dist/api/financial-accounts-api.d.ts +20 -86
  13. package/dist/api/financial-accounts-api.js +27 -137
  14. package/dist/api/financial-transactions-api.d.ts +2 -2
  15. package/dist/api/financial-transactions-api.js +6 -8
  16. package/dist/api/health-api.d.ts +1 -1
  17. package/dist/api/number-ranges-api.d.ts +4 -4
  18. package/dist/api/number-ranges-api.js +14 -22
  19. package/dist/api/personal-accounts-api.d.ts +4 -4
  20. package/dist/api/personal-accounts-api.js +14 -22
  21. package/dist/api.d.ts +0 -3
  22. package/dist/api.js +0 -3
  23. package/dist/common.d.ts +1 -1
  24. package/dist/common.js +0 -1
  25. package/dist/models/booking-entry-class.d.ts +0 -34
  26. package/dist/models/booking-entry-class.js +1 -10
  27. package/dist/models/create-booking-entry-request-dto.d.ts +2 -25
  28. package/dist/models/create-booking-entry-request-dto.js +0 -9
  29. package/dist/models/create-financial-account-request-dto.d.ts +5 -50
  30. package/dist/models/create-financial-account-request-dto.js +2 -26
  31. package/dist/models/create-number-range-request-dto.d.ts +4 -4
  32. package/dist/models/create-number-range-request-dto.js +4 -4
  33. package/dist/models/create-personal-account-request-dto.d.ts +6 -14
  34. package/dist/models/create-personal-account-request-dto.js +3 -3
  35. package/dist/models/financial-account-class.d.ts +2 -49
  36. package/dist/models/financial-account-class.js +2 -6
  37. package/dist/models/financial-transaction-class.d.ts +0 -6
  38. package/dist/models/financial-transaction-data-dto.d.ts +2 -11
  39. package/dist/models/financial-transaction-data-dto.js +0 -1
  40. package/dist/models/index.d.ts +0 -47
  41. package/dist/models/index.js +0 -47
  42. package/dist/models/personal-account-class.d.ts +2 -8
  43. package/dist/models/personal-account-class.js +1 -1
  44. package/models/booking-entry-class.ts +0 -35
  45. package/models/create-booking-entry-request-dto.ts +2 -26
  46. package/models/create-financial-account-request-dto.ts +5 -49
  47. package/models/create-number-range-request-dto.ts +4 -4
  48. package/models/create-personal-account-request-dto.ts +6 -12
  49. package/models/financial-account-class.ts +2 -50
  50. package/models/financial-transaction-class.ts +0 -6
  51. package/models/financial-transaction-data-dto.ts +2 -9
  52. package/models/index.ts +0 -47
  53. package/models/personal-account-class.ts +2 -8
  54. package/package.json +2 -2
  55. package/api/accounting-configs-api.ts +0 -868
  56. package/api/commission-account-mappings-api.ts +0 -1211
  57. package/api/product-account-mappings-api.ts +0 -1719
  58. package/dist/api/accounting-configs-api.d.ts +0 -451
  59. package/dist/api/accounting-configs-api.js +0 -887
  60. package/dist/api/commission-account-mappings-api.d.ts +0 -685
  61. package/dist/api/commission-account-mappings-api.js +0 -1026
  62. package/dist/api/product-account-mappings-api.d.ts +0 -972
  63. package/dist/api/product-account-mappings-api.js +0 -1451
  64. package/dist/models/account-mapping-class.d.ts +0 -73
  65. package/dist/models/account-mapping-class.js +0 -40
  66. package/dist/models/accounting-category-class.d.ts +0 -45
  67. package/dist/models/accounting-category-class.js +0 -24
  68. package/dist/models/accounting-config-class.d.ts +0 -78
  69. package/dist/models/accounting-config-class.js +0 -20
  70. package/dist/models/accounting-config-data-class.d.ts +0 -38
  71. package/dist/models/accounting-config-data-class.js +0 -15
  72. package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
  73. package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
  74. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -79
  75. package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -40
  76. package/dist/models/accounting-config-data-dto.d.ts +0 -38
  77. package/dist/models/accounting-config-data-dto.js +0 -15
  78. package/dist/models/accounting-configuration-class.d.ts +0 -36
  79. package/dist/models/accounting-configuration-class.js +0 -15
  80. package/dist/models/commission-account-mapping-class.d.ts +0 -49
  81. package/dist/models/commission-account-mapping-class.js +0 -15
  82. package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
  83. package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
  84. package/dist/models/commission-agreement-partner-class.d.ts +0 -30
  85. package/dist/models/commission-agreement-partner-class.js +0 -15
  86. package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
  87. package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
  88. package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
  89. package/dist/models/commission-type-account-mapping-class.js +0 -15
  90. package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
  91. package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
  92. package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
  93. package/dist/models/create-and-enable-subledger-response-class.js +0 -15
  94. package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
  95. package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
  96. package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
  97. package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
  98. package/dist/models/export-accounting-config-response-class.d.ts +0 -25
  99. package/dist/models/export-accounting-config-response-class.js +0 -15
  100. package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
  101. package/dist/models/get-accounting-categories-response-class.js +0 -15
  102. package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
  103. package/dist/models/get-activation-snapshot-response-class.js +0 -15
  104. package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
  105. package/dist/models/list-commission-account-mappings-response-class.js +0 -15
  106. package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
  107. package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
  108. package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
  109. package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
  110. package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
  111. package/dist/models/list-product-account-mappings-response-class.js +0 -15
  112. package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
  113. package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
  114. package/dist/models/opening-balance-item-dto.d.ts +0 -41
  115. package/dist/models/opening-balance-item-dto.js +0 -20
  116. package/dist/models/post-financial-event-request-dto.d.ts +0 -45
  117. package/dist/models/post-financial-event-request-dto.js +0 -24
  118. package/dist/models/post-financial-event-response-class.d.ts +0 -25
  119. package/dist/models/post-financial-event-response-class.js +0 -15
  120. package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
  121. package/dist/models/premium-item-account-mapping-class.js +0 -15
  122. package/dist/models/product-account-mapping-class.d.ts +0 -61
  123. package/dist/models/product-account-mapping-class.js +0 -15
  124. package/dist/models/product-account-mapping-detail-class.d.ts +0 -56
  125. package/dist/models/product-account-mapping-detail-class.js +0 -15
  126. package/dist/models/product-risk-carrier-class.d.ts +0 -42
  127. package/dist/models/product-risk-carrier-class.js +0 -15
  128. package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
  129. package/dist/models/product-version-account-mapping-detail-class.js +0 -15
  130. package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
  131. package/dist/models/product-version-with-account-mappings-class.js +0 -15
  132. package/dist/models/product-with-account-mappings-class.d.ts +0 -49
  133. package/dist/models/product-with-account-mappings-class.js +0 -15
  134. package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
  135. package/dist/models/put-premium-item-account-body-dto.js +0 -15
  136. package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
  137. package/dist/models/put-product-category-account-body-dto.js +0 -15
  138. package/dist/models/put-product-risk-carrier-body-dto.d.ts +0 -24
  139. package/dist/models/put-product-risk-carrier-body-dto.js +0 -15
  140. package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
  141. package/dist/models/put-product-version-category-account-body-dto.js +0 -15
  142. package/dist/models/resolved-account-mapping-class.d.ts +0 -31
  143. package/dist/models/resolved-account-mapping-class.js +0 -15
  144. package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
  145. package/dist/models/resolved-commission-account-mapping-class.js +0 -21
  146. package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
  147. package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
  148. package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
  149. package/dist/models/update-commission-type-account-body-dto.js +0 -15
  150. package/dist/models/update-financial-account-body-dto.d.ts +0 -48
  151. package/dist/models/update-financial-account-body-dto.js +0 -15
  152. package/dist/models/update-financial-account-response-class.d.ts +0 -25
  153. package/dist/models/update-financial-account-response-class.js +0 -15
  154. package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
  155. package/dist/models/validate-accounting-config-request-dto.js +0 -15
  156. package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
  157. package/dist/models/validate-accounting-config-response-class.js +0 -15
  158. package/models/account-mapping-class.ts +0 -82
  159. package/models/accounting-category-class.ts +0 -54
  160. package/models/accounting-config-class.ts +0 -87
  161. package/models/accounting-config-data-class.ts +0 -44
  162. package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
  163. package/models/accounting-config-data-dto-default-account-mappings.ts +0 -88
  164. package/models/accounting-config-data-dto.ts +0 -44
  165. package/models/accounting-configuration-class.ts +0 -42
  166. package/models/commission-account-mapping-class.ts +0 -55
  167. package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
  168. package/models/commission-agreement-partner-class.ts +0 -36
  169. package/models/commission-agreement-with-account-mapping-class.ts +0 -49
  170. package/models/commission-type-account-mapping-class.ts +0 -37
  171. package/models/create-and-enable-subledger-request-dto.ts +0 -31
  172. package/models/create-and-enable-subledger-response-class.ts +0 -31
  173. package/models/create-or-correct-opening-balance-dto.ts +0 -31
  174. package/models/create-or-correct-opening-balance-response-class.ts +0 -31
  175. package/models/export-accounting-config-response-class.ts +0 -31
  176. package/models/get-accounting-categories-response-class.ts +0 -31
  177. package/models/get-activation-snapshot-response-class.ts +0 -31
  178. package/models/list-commission-account-mappings-response-class.ts +0 -49
  179. package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
  180. package/models/list-commission-type-account-mappings-response-class.ts +0 -49
  181. package/models/list-product-account-mappings-response-class.ts +0 -49
  182. package/models/list-products-with-account-mappings-response-class.ts +0 -49
  183. package/models/opening-balance-item-dto.ts +0 -50
  184. package/models/post-financial-event-request-dto.ts +0 -54
  185. package/models/post-financial-event-response-class.ts +0 -31
  186. package/models/premium-item-account-mapping-class.ts +0 -43
  187. package/models/product-account-mapping-class.ts +0 -67
  188. package/models/product-account-mapping-detail-class.ts +0 -62
  189. package/models/product-risk-carrier-class.ts +0 -48
  190. package/models/product-version-account-mapping-detail-class.ts +0 -56
  191. package/models/product-version-with-account-mappings-class.ts +0 -48
  192. package/models/product-with-account-mappings-class.ts +0 -55
  193. package/models/put-premium-item-account-body-dto.ts +0 -30
  194. package/models/put-product-category-account-body-dto.ts +0 -30
  195. package/models/put-product-risk-carrier-body-dto.ts +0 -30
  196. package/models/put-product-version-category-account-body-dto.ts +0 -30
  197. package/models/resolved-account-mapping-class.ts +0 -37
  198. package/models/resolved-commission-account-mapping-class.ts +0 -46
  199. package/models/update-commission-agreement-account-body-dto.ts +0 -30
  200. package/models/update-commission-type-account-body-dto.ts +0 -30
  201. package/models/update-financial-account-body-dto.ts +0 -54
  202. package/models/update-financial-account-response-class.ts +0 -31
  203. package/models/validate-accounting-config-request-dto.ts +0 -31
  204. 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
  // URLSearchParams not necessarily used
36
32
  // @ts-ignore
37
33
  import { URL, URLSearchParams } from 'url';
@@ -43,7 +39,7 @@ const FormData = require('form-data');
43
39
  export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
44
40
  return {
45
41
  /**
46
- * 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\"
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. **Required Permissions** \"accounting-management.financial-accounts.create\"
47
43
  * @summary Create the Financial Account
48
44
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
49
45
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -71,10 +67,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
71
67
  // http bearer authentication required
72
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
69
 
74
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
72
  }
79
73
 
80
74
 
@@ -121,10 +115,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
121
115
  // http bearer authentication required
122
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
123
117
 
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
126
- if (authorizationValue) {
127
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
120
  }
129
121
 
130
122
 
@@ -175,10 +167,8 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
175
167
  localVarQueryParameter['expand'] = expand;
176
168
  }
177
169
 
178
- // Only Authorization falls back to the configured token; an empty value is never sent.
179
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
180
- if (authorizationValue) {
181
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
170
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
182
172
  }
183
173
 
184
174
 
@@ -198,11 +188,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
198
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
189
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
200
190
  * @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.
201
- * @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>
191
+ * @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>
202
192
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
203
- * @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>
193
+ * @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>
204
194
  * @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/>
205
- * @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>
195
+ * @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>
206
196
  * @param {*} [options] Override http request option.
207
197
  * @throws {RequiredError}
208
198
  */
@@ -253,70 +243,15 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
253
243
  localVarQueryParameter['filters'] = filters;
254
244
  }
255
245
 
256
- // Only Authorization falls back to the configured token; an empty value is never sent.
257
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
258
- if (authorizationValue) {
259
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
260
- }
261
-
262
-
263
-
264
- setSearchParams(localVarUrlObj, localVarQueryParameter);
265
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
266
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
267
-
268
- return {
269
- url: toPathString(localVarUrlObj),
270
- options: localVarRequestOptions,
271
- };
272
- },
273
- /**
274
- * 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\"
275
- * @summary Update the Financial Account
276
- * @param {string} code Unique identifier for the object.
277
- * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
278
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
279
- * @param {*} [options] Override http request option.
280
- * @throws {RequiredError}
281
- */
282
- updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
283
- // verify required parameter 'code' is not null or undefined
284
- assertParamExists('updateFinancialAccount', 'code', code)
285
- // verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
286
- assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
287
- const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
288
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
289
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
290
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
291
- let baseOptions;
292
- let baseAccessToken;
293
- if (configuration) {
294
- baseOptions = configuration.baseOptions;
295
- baseAccessToken = configuration.accessToken;
296
- }
297
-
298
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
299
- const localVarHeaderParameter = {} as any;
300
- const localVarQueryParameter = {} as any;
301
-
302
- // authentication bearer required
303
- // http bearer authentication required
304
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
305
-
306
- // Only Authorization falls back to the configured token; an empty value is never sent.
307
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
308
- if (authorizationValue) {
309
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
310
248
  }
311
249
 
312
250
 
313
251
 
314
- localVarHeaderParameter['Content-Type'] = 'application/json';
315
-
316
252
  setSearchParams(localVarUrlObj, localVarQueryParameter);
317
253
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
318
254
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
319
- localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
320
255
 
321
256
  return {
322
257
  url: toPathString(localVarUrlObj),
@@ -334,7 +269,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
334
269
  const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
335
270
  return {
336
271
  /**
337
- * 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\"
272
+ * 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\"
338
273
  * @summary Create the Financial Account
339
274
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
340
275
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -376,11 +311,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
376
311
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
377
312
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
378
313
  * @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.
379
- * @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;
314
+ * @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;
380
315
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
381
- * @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;
316
+ * @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;
382
317
  * @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;
383
- * @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;
318
+ * @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;
384
319
  * @param {*} [options] Override http request option.
385
320
  * @throws {RequiredError}
386
321
  */
@@ -388,19 +323,6 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
388
323
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
389
324
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
390
325
  },
391
- /**
392
- * 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\"
393
- * @summary Update the Financial Account
394
- * @param {string} code Unique identifier for the object.
395
- * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
396
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
397
- * @param {*} [options] Override http request option.
398
- * @throws {RequiredError}
399
- */
400
- async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
401
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
402
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
403
- },
404
326
  }
405
327
  };
406
328
 
@@ -412,7 +334,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
412
334
  const localVarFp = FinancialAccountsApiFp(configuration)
413
335
  return {
414
336
  /**
415
- * 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\"
337
+ * 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\"
416
338
  * @summary Create the Financial Account
417
339
  * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
418
340
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -451,29 +373,17 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
451
373
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
452
374
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
453
375
  * @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.
454
- * @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;
376
+ * @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;
455
377
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
456
- * @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;
378
+ * @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;
457
379
  * @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;
458
- * @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;
380
+ * @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;
459
381
  * @param {*} [options] Override http request option.
460
382
  * @throws {RequiredError}
461
383
  */
462
384
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
463
385
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
464
386
  },
465
- /**
466
- * 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\"
467
- * @summary Update the Financial Account
468
- * @param {string} code Unique identifier for the object.
469
- * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
470
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
- * @param {*} [options] Override http request option.
472
- * @throws {RequiredError}
473
- */
474
- updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
475
- return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
476
- },
477
387
  };
478
388
  };
479
389
 
@@ -575,7 +485,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
575
485
  readonly pageToken?: string
576
486
 
577
487
  /**
578
- * 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;
488
+ * 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;
579
489
  * @type {string}
580
490
  * @memberof FinancialAccountsApiListFinancialAccounts
581
491
  */
@@ -589,7 +499,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
589
499
  readonly search?: string
590
500
 
591
501
  /**
592
- * 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;
502
+ * 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;
593
503
  * @type {string}
594
504
  * @memberof FinancialAccountsApiListFinancialAccounts
595
505
  */
@@ -603,41 +513,13 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
603
513
  readonly expand?: string
604
514
 
605
515
  /**
606
- * 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;
516
+ * 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;
607
517
  * @type {string}
608
518
  * @memberof FinancialAccountsApiListFinancialAccounts
609
519
  */
610
520
  readonly filters?: string
611
521
  }
612
522
 
613
- /**
614
- * Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
615
- * @export
616
- * @interface FinancialAccountsApiUpdateFinancialAccountRequest
617
- */
618
- export interface FinancialAccountsApiUpdateFinancialAccountRequest {
619
- /**
620
- * Unique identifier for the object.
621
- * @type {string}
622
- * @memberof FinancialAccountsApiUpdateFinancialAccount
623
- */
624
- readonly code: string
625
-
626
- /**
627
- *
628
- * @type {UpdateFinancialAccountBodyDto}
629
- * @memberof FinancialAccountsApiUpdateFinancialAccount
630
- */
631
- readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
632
-
633
- /**
634
- * Bearer Token: provided by the login endpoint under the name accessToken.
635
- * @type {string}
636
- * @memberof FinancialAccountsApiUpdateFinancialAccount
637
- */
638
- readonly authorization?: string
639
- }
640
-
641
523
  /**
642
524
  * FinancialAccountsApi - object-oriented interface
643
525
  * @export
@@ -646,7 +528,7 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
646
528
  */
647
529
  export class FinancialAccountsApi extends BaseAPI {
648
530
  /**
649
- * 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\"
531
+ * 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\"
650
532
  * @summary Create the Financial Account
651
533
  * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
652
534
  * @param {*} [options] Override http request option.
@@ -692,16 +574,4 @@ export class FinancialAccountsApi extends BaseAPI {
692
574
  public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
693
575
  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));
694
576
  }
695
-
696
- /**
697
- * 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\"
698
- * @summary Update the Financial Account
699
- * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
700
- * @param {*} [options] Override http request option.
701
- * @throws {RequiredError}
702
- * @memberof FinancialAccountsApi
703
- */
704
- public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
705
- return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
706
- }
707
577
  }
@@ -71,10 +71,8 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
71
71
  localVarQueryParameter['expand'] = expand;
72
72
  }
73
73
 
74
- // Only Authorization falls back to the configured token; an empty value is never sent.
75
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
76
- if (authorizationValue) {
77
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
78
76
  }
79
77
 
80
78
 
@@ -149,10 +147,8 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
149
147
  localVarQueryParameter['filters'] = filters;
150
148
  }
151
149
 
152
- // Only Authorization falls back to the configured token; an empty value is never sent.
153
- const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
154
- if (authorizationValue) {
155
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
150
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
151
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
156
152
  }
157
153
 
158
154
 
@@ -67,10 +67,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
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
 
@@ -117,10 +115,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
117
115
  // http bearer authentication required
118
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
117
 
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);
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
120
  }
125
121
 
126
122
 
@@ -171,10 +167,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
171
167
  localVarQueryParameter['expand'] = expand;
172
168
  }
173
169
 
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);
170
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
172
  }
179
173
 
180
174
 
@@ -249,10 +243,8 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
249
243
  localVarQueryParameter['filters'] = filters;
250
244
  }
251
245
 
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);
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
248
  }
257
249
 
258
250
 
@@ -67,10 +67,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
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
 
@@ -117,10 +115,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
117
115
  // http bearer authentication required
118
116
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
119
117
 
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);
118
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
119
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
120
  }
125
121
 
126
122
 
@@ -171,10 +167,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
171
167
  localVarQueryParameter['expand'] = expand;
172
168
  }
173
169
 
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);
170
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
172
  }
179
173
 
180
174
 
@@ -249,10 +243,8 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
249
243
  localVarQueryParameter['filters'] = filters;
250
244
  }
251
245
 
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);
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
248
  }
257
249
 
258
250
 
package/api.ts CHANGED
@@ -24,24 +24,18 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
- import { AccountingConfigsApi } from './api';
28
27
  import { BookingEntriesApi } from './api';
29
- import { CommissionAccountMappingsApi } from './api';
30
28
  import { FinancialAccountsApi } from './api';
31
29
  import { FinancialTransactionsApi } from './api';
32
30
  import { HealthApi } from './api';
33
31
  import { NumberRangesApi } from './api';
34
32
  import { PersonalAccountsApi } from './api';
35
- import { ProductAccountMappingsApi } from './api';
36
33
 
37
34
 
38
- export * from './api/accounting-configs-api';
39
35
  export * from './api/booking-entries-api';
40
- export * from './api/commission-account-mappings-api';
41
36
  export * from './api/financial-accounts-api';
42
37
  export * from './api/financial-transactions-api';
43
38
  export * from './api/health-api';
44
39
  export * from './api/number-ranges-api';
45
40
  export * from './api/personal-accounts-api';
46
- export * from './api/product-account-mappings-api';
47
41
 
package/common.ts CHANGED
@@ -131,10 +131,9 @@ export const toPathString = function (url: URL) {
131
131
  * @export
132
132
  */
133
133
  export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
134
- // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
135
- return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
134
+ return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
136
135
  const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
137
- return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
136
+ return axios.request<T, R>(axiosRequestArgs);
138
137
  };
139
138
  }
140
139