@emilgroup/accounting-sdk-node 1.32.1-beta.2 → 1.32.1-beta.20

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 (71) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +97 -7
  4. package/api/financial-accounts-api.ts +120 -0
  5. package/api/product-account-mappings-api.ts +1474 -0
  6. package/api.ts +2 -0
  7. package/dist/api/accounting-configs-api.d.ts +47 -0
  8. package/dist/api/accounting-configs-api.js +94 -7
  9. package/dist/api/financial-accounts-api.d.ts +66 -0
  10. package/dist/api/financial-accounts-api.js +99 -0
  11. package/dist/api/product-account-mappings-api.d.ts +851 -0
  12. package/dist/api/product-account-mappings-api.js +1228 -0
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/accounting-config-class.d.ts +11 -0
  16. package/dist/models/accounting-config-class.js +5 -0
  17. package/dist/models/create-financial-account-request-dto.d.ts +6 -0
  18. package/dist/models/financial-account-class.d.ts +18 -1
  19. package/dist/models/financial-account-class.js +5 -1
  20. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  21. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  22. package/dist/models/index.d.ts +15 -0
  23. package/dist/models/index.js +15 -0
  24. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  25. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  26. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  27. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  28. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  29. package/dist/models/premium-item-account-mapping-class.js +15 -0
  30. package/dist/models/product-account-mapping-class.d.ts +61 -0
  31. package/dist/models/product-account-mapping-class.js +15 -0
  32. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  33. package/dist/models/product-account-mapping-detail-class.js +15 -0
  34. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  35. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  36. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  37. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  38. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  39. package/dist/models/product-with-account-mappings-class.js +15 -0
  40. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  41. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  42. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  43. package/dist/models/put-product-category-account-body-dto.js +15 -0
  44. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  45. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  46. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  47. package/dist/models/resolved-account-mapping-class.js +15 -0
  48. package/dist/models/update-financial-account-body-dto.d.ts +42 -0
  49. package/dist/models/update-financial-account-body-dto.js +15 -0
  50. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  51. package/dist/models/update-financial-account-response-class.js +15 -0
  52. package/models/accounting-config-class.ts +14 -0
  53. package/models/create-financial-account-request-dto.ts +6 -0
  54. package/models/financial-account-class.ts +19 -1
  55. package/models/get-activation-snapshot-response-class.ts +31 -0
  56. package/models/index.ts +15 -0
  57. package/models/list-product-account-mappings-response-class.ts +49 -0
  58. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  59. package/models/premium-item-account-mapping-class.ts +43 -0
  60. package/models/product-account-mapping-class.ts +67 -0
  61. package/models/product-account-mapping-detail-class.ts +56 -0
  62. package/models/product-version-account-mapping-detail-class.ts +56 -0
  63. package/models/product-version-with-account-mappings-class.ts +48 -0
  64. package/models/product-with-account-mappings-class.ts +55 -0
  65. package/models/put-premium-item-account-body-dto.ts +30 -0
  66. package/models/put-product-category-account-body-dto.ts +30 -0
  67. package/models/put-product-version-category-account-body-dto.ts +30 -0
  68. package/models/resolved-account-mapping-class.ts +37 -0
  69. package/models/update-financial-account-body-dto.ts +48 -0
  70. package/models/update-financial-account-response-class.ts +31 -0
  71. package/package.json +1 -1
@@ -10,6 +10,7 @@ api/financial-transactions-api.ts
10
10
  api/health-api.ts
11
11
  api/number-ranges-api.ts
12
12
  api/personal-accounts-api.ts
13
+ api/product-account-mappings-api.ts
13
14
  base.ts
14
15
  common.ts
15
16
  configuration.ts
@@ -39,6 +40,7 @@ models/financial-account-class.ts
39
40
  models/financial-transaction-class.ts
40
41
  models/financial-transaction-data-dto.ts
41
42
  models/get-accounting-categories-response-class.ts
43
+ models/get-activation-snapshot-response-class.ts
42
44
  models/get-booking-entry-response-class.ts
43
45
  models/get-financial-account-response-class.ts
44
46
  models/get-financial-transaction-response-class.ts
@@ -52,8 +54,22 @@ models/list-financial-accounts-response-class.ts
52
54
  models/list-financial-transactions-response-class.ts
53
55
  models/list-number-range-response-class.ts
54
56
  models/list-personal-accounts-response-class.ts
57
+ models/list-product-account-mappings-response-class.ts
58
+ models/list-products-with-account-mappings-response-class.ts
55
59
  models/number-range-class.ts
56
60
  models/personal-account-class.ts
61
+ models/premium-item-account-mapping-class.ts
62
+ models/product-account-mapping-class.ts
63
+ models/product-account-mapping-detail-class.ts
64
+ models/product-version-account-mapping-detail-class.ts
65
+ models/product-version-with-account-mappings-class.ts
66
+ models/product-with-account-mappings-class.ts
67
+ models/put-premium-item-account-body-dto.ts
68
+ models/put-product-category-account-body-dto.ts
69
+ models/put-product-version-category-account-body-dto.ts
70
+ models/resolved-account-mapping-class.ts
71
+ models/update-financial-account-body-dto.ts
72
+ models/update-financial-account-response-class.ts
57
73
  models/validate-accounting-config-request-dto.ts
58
74
  models/validate-accounting-config-response-class.ts
59
75
  package.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/accounting-sdk-node@1.32.1-beta.2 --save
20
+ npm install @emilgroup/accounting-sdk-node@1.32.1-beta.20 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.2
24
+ yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.20
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -29,6 +29,8 @@ import { ExportAccountingConfigResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { GetAccountingCategoriesResponseClass } from '../models';
31
31
  // @ts-ignore
32
+ import { GetActivationSnapshotResponseClass } from '../models';
33
+ // @ts-ignore
32
34
  import { ValidateAccountingConfigRequestDto } from '../models';
33
35
  // @ts-ignore
34
36
  import { ValidateAccountingConfigResponseClass } from '../models';
@@ -53,7 +55,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
53
55
  createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
56
  // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
55
57
  assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
56
- const localVarPath = `/accountingservice/v1/accountingconfigs`;
58
+ const localVarPath = `/accountingservice/v1/subledger`;
57
59
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
60
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
61
  let baseOptions;
@@ -100,7 +102,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
100
102
  createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
103
  // verify required parameter 'file' is not null or undefined
102
104
  assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
103
- const localVarPath = `/accountingservice/v1/accountingconfigs/upload`;
105
+ const localVarPath = `/accountingservice/v1/subledger/upload`;
104
106
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
107
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
108
  let baseOptions;
@@ -150,7 +152,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
150
152
  * @throws {RequiredError}
151
153
  */
152
154
  exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
153
- const localVarPath = `/accountingservice/v1/accountingconfigs`;
155
+ const localVarPath = `/accountingservice/v1/subledger/config/export`;
154
156
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
155
157
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
156
158
  let baseOptions;
@@ -191,7 +193,48 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
191
193
  * @throws {RequiredError}
192
194
  */
193
195
  getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
194
- const localVarPath = `/accountingservice/v1/accountingconfigs/categories`;
196
+ const localVarPath = `/accountingservice/v1/subledger/categories`;
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ let baseAccessToken;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ baseAccessToken = configuration.accessToken;
204
+ }
205
+
206
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
207
+ const localVarHeaderParameter = {} as any;
208
+ const localVarQueryParameter = {} as any;
209
+
210
+ // authentication bearer required
211
+ // http bearer authentication required
212
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
+
214
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
215
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
216
+ }
217
+
218
+
219
+
220
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
221
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
223
+
224
+ return {
225
+ url: toPathString(localVarUrlObj),
226
+ options: localVarRequestOptions,
227
+ };
228
+ },
229
+ /**
230
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
231
+ * @summary Retrieve the get activation snapshot
232
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
237
+ const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
195
238
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
239
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
197
240
  let baseOptions;
@@ -232,7 +275,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
232
275
  * @throws {RequiredError}
233
276
  */
234
277
  resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
235
- const localVarPath = `/accountingservice/v1/accountingconfigs`;
278
+ const localVarPath = `/accountingservice/v1/subledger/reset`;
236
279
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
237
280
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
238
281
  let baseOptions;
@@ -276,7 +319,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
276
319
  validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
277
320
  // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
278
321
  assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
279
- const localVarPath = `/accountingservice/v1/accountingconfigs/validate`;
322
+ const localVarPath = `/accountingservice/v1/subledger/config/validate`;
280
323
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
324
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
282
325
  let baseOptions;
@@ -323,7 +366,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
323
366
  validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
324
367
  // verify required parameter 'file' is not null or undefined
325
368
  assertParamExists('validateAccountingConfigFromFile', 'file', file)
326
- const localVarPath = `/accountingservice/v1/accountingconfigs/validate/upload`;
369
+ const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
327
370
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
371
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
329
372
  let baseOptions;
@@ -421,6 +464,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
421
464
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
422
465
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
423
466
  },
467
+ /**
468
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
469
+ * @summary Retrieve the get activation snapshot
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
+ async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
475
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
476
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
477
+ },
424
478
  /**
425
479
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
426
480
  * @summary Delete the reset subledger
@@ -508,6 +562,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
508
562
  getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
509
563
  return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
510
564
  },
565
+ /**
566
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
567
+ * @summary Retrieve the get activation snapshot
568
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
573
+ return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
574
+ },
511
575
  /**
512
576
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
513
577
  * @summary Delete the reset subledger
@@ -613,6 +677,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
613
677
  readonly authorization?: string
614
678
  }
615
679
 
680
+ /**
681
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
682
+ * @export
683
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
684
+ */
685
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
686
+ /**
687
+ * Bearer Token: provided by the login endpoint under the name accessToken.
688
+ * @type {string}
689
+ * @memberof AccountingConfigsApiGetActivationSnapshot
690
+ */
691
+ readonly authorization?: string
692
+ }
693
+
616
694
  /**
617
695
  * Request parameters for resetSubledger operation in AccountingConfigsApi.
618
696
  * @export
@@ -724,6 +802,18 @@ export class AccountingConfigsApi extends BaseAPI {
724
802
  return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
725
803
  }
726
804
 
805
+ /**
806
+ * Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
807
+ * @summary Retrieve the get activation snapshot
808
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ * @memberof AccountingConfigsApi
812
+ */
813
+ public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
814
+ return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
815
+ }
816
+
727
817
  /**
728
818
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
729
819
  * @summary Delete the reset subledger
@@ -28,6 +28,10 @@ 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';
31
35
  // URLSearchParams not necessarily used
32
36
  // @ts-ignore
33
37
  import { URL, URLSearchParams } from 'url';
@@ -253,6 +257,57 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
253
257
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
258
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
255
259
 
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
267
+ * @summary Update the Financial Account
268
+ * @param {string} code Unique identifier for the object.
269
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateFinancialAccount', 'code', code)
277
+ // verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
278
+ assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
279
+ const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ let baseAccessToken;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+
290
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
291
+ const localVarHeaderParameter = {} as any;
292
+ const localVarQueryParameter = {} as any;
293
+
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
+
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ }
301
+
302
+
303
+
304
+ localVarHeaderParameter['Content-Type'] = 'application/json';
305
+
306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
+ localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
310
+
256
311
  return {
257
312
  url: toPathString(localVarUrlObj),
258
313
  options: localVarRequestOptions,
@@ -323,6 +378,19 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
323
378
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
324
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
325
380
  },
381
+ /**
382
+ * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
383
+ * @summary Update the Financial Account
384
+ * @param {string} code Unique identifier for the object.
385
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
386
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
392
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
+ },
326
394
  }
327
395
  };
328
396
 
@@ -384,6 +452,18 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
384
452
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
385
453
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
386
454
  },
455
+ /**
456
+ * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
457
+ * @summary Update the Financial Account
458
+ * @param {string} code Unique identifier for the object.
459
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
460
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
465
+ return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
466
+ },
387
467
  };
388
468
  };
389
469
 
@@ -520,6 +600,34 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
520
600
  readonly filters?: string
521
601
  }
522
602
 
603
+ /**
604
+ * Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
605
+ * @export
606
+ * @interface FinancialAccountsApiUpdateFinancialAccountRequest
607
+ */
608
+ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
609
+ /**
610
+ * Unique identifier for the object.
611
+ * @type {string}
612
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
613
+ */
614
+ readonly code: string
615
+
616
+ /**
617
+ *
618
+ * @type {UpdateFinancialAccountBodyDto}
619
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
620
+ */
621
+ readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
622
+
623
+ /**
624
+ * Bearer Token: provided by the login endpoint under the name accessToken.
625
+ * @type {string}
626
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
627
+ */
628
+ readonly authorization?: string
629
+ }
630
+
523
631
  /**
524
632
  * FinancialAccountsApi - object-oriented interface
525
633
  * @export
@@ -574,4 +682,16 @@ export class FinancialAccountsApi extends BaseAPI {
574
682
  public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
575
683
  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));
576
684
  }
685
+
686
+ /**
687
+ * Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
688
+ * @summary Update the Financial Account
689
+ * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ * @memberof FinancialAccountsApi
693
+ */
694
+ public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
695
+ return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
696
+ }
577
697
  }