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

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
package/api.ts CHANGED
@@ -31,6 +31,7 @@ import { FinancialTransactionsApi } from './api';
31
31
  import { HealthApi } from './api';
32
32
  import { NumberRangesApi } from './api';
33
33
  import { PersonalAccountsApi } from './api';
34
+ import { ProductAccountMappingsApi } from './api';
34
35
 
35
36
 
36
37
  export * from './api/accounting-configs-api';
@@ -40,4 +41,5 @@ export * from './api/financial-transactions-api';
40
41
  export * from './api/health-api';
41
42
  export * from './api/number-ranges-api';
42
43
  export * from './api/personal-accounts-api';
44
+ export * from './api/product-account-mappings-api';
43
45
 
@@ -16,6 +16,7 @@ import { CreateAndEnableSubledgerRequestDto } from '../models';
16
16
  import { CreateAndEnableSubledgerResponseClass } from '../models';
17
17
  import { ExportAccountingConfigResponseClass } from '../models';
18
18
  import { GetAccountingCategoriesResponseClass } from '../models';
19
+ import { GetActivationSnapshotResponseClass } from '../models';
19
20
  import { ValidateAccountingConfigRequestDto } from '../models';
20
21
  import { ValidateAccountingConfigResponseClass } from '../models';
21
22
  /**
@@ -57,6 +58,14 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
57
58
  * @throws {RequiredError}
58
59
  */
59
60
  getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
61
+ /**
62
+ * 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\"
63
+ * @summary Retrieve the get activation snapshot
64
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ getActivationSnapshot: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
69
  /**
61
70
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
62
71
  * @summary Delete the reset subledger
@@ -123,6 +132,14 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
123
132
  * @throws {RequiredError}
124
133
  */
125
134
  getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
135
+ /**
136
+ * 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\"
137
+ * @summary Retrieve the get activation snapshot
138
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>>;
126
143
  /**
127
144
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
128
145
  * @summary Delete the reset subledger
@@ -189,6 +206,14 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
189
206
  * @throws {RequiredError}
190
207
  */
191
208
  getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
209
+ /**
210
+ * 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\"
211
+ * @summary Retrieve the get activation snapshot
212
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass>;
192
217
  /**
193
218
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
194
219
  * @summary Delete the reset subledger
@@ -280,6 +305,19 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
280
305
  */
281
306
  readonly authorization?: string;
282
307
  }
308
+ /**
309
+ * Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
310
+ * @export
311
+ * @interface AccountingConfigsApiGetActivationSnapshotRequest
312
+ */
313
+ export interface AccountingConfigsApiGetActivationSnapshotRequest {
314
+ /**
315
+ * Bearer Token: provided by the login endpoint under the name accessToken.
316
+ * @type {string}
317
+ * @memberof AccountingConfigsApiGetActivationSnapshot
318
+ */
319
+ readonly authorization?: string;
320
+ }
283
321
  /**
284
322
  * Request parameters for resetSubledger operation in AccountingConfigsApi.
285
323
  * @export
@@ -374,6 +412,15 @@ export declare class AccountingConfigsApi extends BaseAPI {
374
412
  * @memberof AccountingConfigsApi
375
413
  */
376
414
  getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
415
+ /**
416
+ * 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\"
417
+ * @summary Retrieve the get activation snapshot
418
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ * @memberof AccountingConfigsApi
422
+ */
423
+ getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}>>;
377
424
  /**
378
425
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
379
426
  * @summary Delete the reset subledger
@@ -113,7 +113,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
113
113
  case 0:
114
114
  // verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
115
115
  (0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
116
- localVarPath = "/accountingservice/v1/accountingconfigs";
116
+ localVarPath = "/accountingservice/v1/subledger";
117
117
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
118
  if (configuration) {
119
119
  baseOptions = configuration.baseOptions;
@@ -162,7 +162,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
162
162
  case 0:
163
163
  // verify required parameter 'file' is not null or undefined
164
164
  (0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
165
- localVarPath = "/accountingservice/v1/accountingconfigs/upload";
165
+ localVarPath = "/accountingservice/v1/subledger/upload";
166
166
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
167
  if (configuration) {
168
168
  baseOptions = configuration.baseOptions;
@@ -212,7 +212,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
212
212
  return __generator(this, function (_a) {
213
213
  switch (_a.label) {
214
214
  case 0:
215
- localVarPath = "/accountingservice/v1/accountingconfigs";
215
+ localVarPath = "/accountingservice/v1/subledger/config/export";
216
216
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
217
217
  if (configuration) {
218
218
  baseOptions = configuration.baseOptions;
@@ -256,7 +256,51 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
256
256
  return __generator(this, function (_a) {
257
257
  switch (_a.label) {
258
258
  case 0:
259
- localVarPath = "/accountingservice/v1/accountingconfigs/categories";
259
+ localVarPath = "/accountingservice/v1/subledger/categories";
260
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ baseAccessToken = configuration.accessToken;
264
+ }
265
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
266
+ localVarHeaderParameter = {};
267
+ localVarQueryParameter = {};
268
+ // authentication bearer required
269
+ // http bearer authentication required
270
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
271
+ case 1:
272
+ // authentication bearer required
273
+ // http bearer authentication required
274
+ _a.sent();
275
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
+ }
278
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
281
+ return [2 /*return*/, {
282
+ url: (0, common_1.toPathString)(localVarUrlObj),
283
+ options: localVarRequestOptions,
284
+ }];
285
+ }
286
+ });
287
+ });
288
+ },
289
+ /**
290
+ * 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\"
291
+ * @summary Retrieve the get activation snapshot
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ getActivationSnapshot: function (authorization, options) {
297
+ if (options === void 0) { options = {}; }
298
+ return __awaiter(_this, void 0, void 0, function () {
299
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
300
+ return __generator(this, function (_a) {
301
+ switch (_a.label) {
302
+ case 0:
303
+ localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
260
304
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
261
305
  if (configuration) {
262
306
  baseOptions = configuration.baseOptions;
@@ -300,7 +344,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
300
344
  return __generator(this, function (_a) {
301
345
  switch (_a.label) {
302
346
  case 0:
303
- localVarPath = "/accountingservice/v1/accountingconfigs";
347
+ localVarPath = "/accountingservice/v1/subledger/reset";
304
348
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
305
349
  if (configuration) {
306
350
  baseOptions = configuration.baseOptions;
@@ -347,7 +391,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
347
391
  case 0:
348
392
  // verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
349
393
  (0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
350
- localVarPath = "/accountingservice/v1/accountingconfigs/validate";
394
+ localVarPath = "/accountingservice/v1/subledger/config/validate";
351
395
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
352
396
  if (configuration) {
353
397
  baseOptions = configuration.baseOptions;
@@ -396,7 +440,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
396
440
  case 0:
397
441
  // verify required parameter 'file' is not null or undefined
398
442
  (0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
399
- localVarPath = "/accountingservice/v1/accountingconfigs/validate/upload";
443
+ localVarPath = "/accountingservice/v1/subledger/config/validate/upload";
400
444
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
401
445
  if (configuration) {
402
446
  baseOptions = configuration.baseOptions;
@@ -524,6 +568,26 @@ var AccountingConfigsApiFp = function (configuration) {
524
568
  });
525
569
  });
526
570
  },
571
+ /**
572
+ * 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\"
573
+ * @summary Retrieve the get activation snapshot
574
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ */
578
+ getActivationSnapshot: function (authorization, options) {
579
+ return __awaiter(this, void 0, void 0, function () {
580
+ var localVarAxiosArgs;
581
+ return __generator(this, function (_a) {
582
+ switch (_a.label) {
583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
584
+ case 1:
585
+ localVarAxiosArgs = _a.sent();
586
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
587
+ }
588
+ });
589
+ });
590
+ },
527
591
  /**
528
592
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
529
593
  * @summary Delete the reset subledger
@@ -638,6 +702,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
638
702
  getAccountingCategories: function (authorization, options) {
639
703
  return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
640
704
  },
705
+ /**
706
+ * 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\"
707
+ * @summary Retrieve the get activation snapshot
708
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ getActivationSnapshot: function (authorization, options) {
713
+ return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
714
+ },
641
715
  /**
642
716
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
643
717
  * @summary Delete the reset subledger
@@ -734,6 +808,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
734
808
  if (requestParameters === void 0) { requestParameters = {}; }
735
809
  return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
736
810
  };
811
+ /**
812
+ * 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\"
813
+ * @summary Retrieve the get activation snapshot
814
+ * @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
815
+ * @param {*} [options] Override http request option.
816
+ * @throws {RequiredError}
817
+ * @memberof AccountingConfigsApi
818
+ */
819
+ AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
820
+ var _this = this;
821
+ if (requestParameters === void 0) { requestParameters = {}; }
822
+ return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
823
+ };
737
824
  /**
738
825
  * This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
739
826
  * @summary Delete the reset subledger
@@ -16,6 +16,8 @@ import { CreateFinancialAccountRequestDto } from '../models';
16
16
  import { CreateFinancialAccountResponseClass } from '../models';
17
17
  import { GetFinancialAccountResponseClass } from '../models';
18
18
  import { ListFinancialAccountsResponseClass } from '../models';
19
+ import { UpdateFinancialAccountBodyDto } from '../models';
20
+ import { UpdateFinancialAccountResponseClass } from '../models';
19
21
  /**
20
22
  * FinancialAccountsApi - axios parameter creator
21
23
  * @export
@@ -64,6 +66,16 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
64
66
  * @throws {RequiredError}
65
67
  */
66
68
  listFinancialAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
+ /**
70
+ * 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\"
71
+ * @summary Update the Financial Account
72
+ * @param {string} code Unique identifier for the object.
73
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
74
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ updateFinancialAccount: (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
79
  };
68
80
  /**
69
81
  * FinancialAccountsApi - functional programming interface
@@ -113,6 +125,16 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
113
125
  * @throws {RequiredError}
114
126
  */
115
127
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialAccountsResponseClass>>;
128
+ /**
129
+ * 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\"
130
+ * @summary Update the Financial Account
131
+ * @param {string} code Unique identifier for the object.
132
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
133
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>>;
116
138
  };
117
139
  /**
118
140
  * FinancialAccountsApi - factory interface
@@ -162,6 +184,16 @@ export declare const FinancialAccountsApiFactory: (configuration?: Configuration
162
184
  * @throws {RequiredError}
163
185
  */
164
186
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass>;
187
+ /**
188
+ * 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\"
189
+ * @summary Update the Financial Account
190
+ * @param {string} code Unique identifier for the object.
191
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass>;
165
197
  };
166
198
  /**
167
199
  * Request parameters for createFinancialAccount operation in FinancialAccountsApi.
@@ -281,6 +313,31 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
281
313
  */
282
314
  readonly filters?: string;
283
315
  }
316
+ /**
317
+ * Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
318
+ * @export
319
+ * @interface FinancialAccountsApiUpdateFinancialAccountRequest
320
+ */
321
+ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
322
+ /**
323
+ * Unique identifier for the object.
324
+ * @type {string}
325
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
326
+ */
327
+ readonly code: string;
328
+ /**
329
+ *
330
+ * @type {UpdateFinancialAccountBodyDto}
331
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
332
+ */
333
+ readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto;
334
+ /**
335
+ * Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @type {string}
337
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
338
+ */
339
+ readonly authorization?: string;
340
+ }
284
341
  /**
285
342
  * FinancialAccountsApi - object-oriented interface
286
343
  * @export
@@ -324,4 +381,13 @@ export declare class FinancialAccountsApi extends BaseAPI {
324
381
  * @memberof FinancialAccountsApi
325
382
  */
326
383
  listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
384
+ /**
385
+ * 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\"
386
+ * @summary Update the Financial Account
387
+ * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ * @memberof FinancialAccountsApi
391
+ */
392
+ updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}>>;
327
393
  }
@@ -319,6 +319,59 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
319
319
  });
320
320
  });
321
321
  },
322
+ /**
323
+ * 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\"
324
+ * @summary Update the Financial Account
325
+ * @param {string} code Unique identifier for the object.
326
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
327
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
332
+ if (options === void 0) { options = {}; }
333
+ return __awaiter(_this, void 0, void 0, function () {
334
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
+ return __generator(this, function (_a) {
336
+ switch (_a.label) {
337
+ case 0:
338
+ // verify required parameter 'code' is not null or undefined
339
+ (0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
340
+ // verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
341
+ (0, common_1.assertParamExists)('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto);
342
+ localVarPath = "/accountingservice/v1/financial-accounts/{code}"
343
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
344
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
345
+ if (configuration) {
346
+ baseOptions = configuration.baseOptions;
347
+ baseAccessToken = configuration.accessToken;
348
+ }
349
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
350
+ localVarHeaderParameter = {};
351
+ localVarQueryParameter = {};
352
+ // authentication bearer required
353
+ // http bearer authentication required
354
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
355
+ case 1:
356
+ // authentication bearer required
357
+ // http bearer authentication required
358
+ _a.sent();
359
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
360
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
361
+ }
362
+ localVarHeaderParameter['Content-Type'] = 'application/json';
363
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
364
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
365
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
366
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFinancialAccountBodyDto, localVarRequestOptions, configuration);
367
+ return [2 /*return*/, {
368
+ url: (0, common_1.toPathString)(localVarUrlObj),
369
+ options: localVarRequestOptions,
370
+ }];
371
+ }
372
+ });
373
+ });
374
+ },
322
375
  };
323
376
  };
324
377
  exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
@@ -420,6 +473,28 @@ var FinancialAccountsApiFp = function (configuration) {
420
473
  });
421
474
  });
422
475
  },
476
+ /**
477
+ * 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\"
478
+ * @summary Update the Financial Account
479
+ * @param {string} code Unique identifier for the object.
480
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
481
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
486
+ return __awaiter(this, void 0, void 0, function () {
487
+ var localVarAxiosArgs;
488
+ return __generator(this, function (_a) {
489
+ switch (_a.label) {
490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options)];
491
+ case 1:
492
+ localVarAxiosArgs = _a.sent();
493
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
494
+ }
495
+ });
496
+ });
497
+ },
423
498
  };
424
499
  };
425
500
  exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
@@ -481,6 +556,18 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
481
556
  listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
482
557
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
483
558
  },
559
+ /**
560
+ * 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\"
561
+ * @summary Update the Financial Account
562
+ * @param {string} code Unique identifier for the object.
563
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
564
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
569
+ return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
570
+ },
484
571
  };
485
572
  };
486
573
  exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
@@ -544,6 +631,18 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
544
631
  if (requestParameters === void 0) { requestParameters = {}; }
545
632
  return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
546
633
  };
634
+ /**
635
+ * 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\"
636
+ * @summary Update the Financial Account
637
+ * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof FinancialAccountsApi
641
+ */
642
+ FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
643
+ var _this = this;
644
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
645
+ };
547
646
  return FinancialAccountsApi;
548
647
  }(base_1.BaseAPI));
549
648
  exports.FinancialAccountsApi = FinancialAccountsApi;