@emilgroup/accounting-sdk 1.34.1-beta.8 → 1.34.1-beta.9

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.
@@ -55,6 +55,8 @@ models/list-number-range-response-class.ts
55
55
  models/list-personal-accounts-response-class.ts
56
56
  models/number-range-class.ts
57
57
  models/personal-account-class.ts
58
+ models/update-financial-account-body-dto.ts
59
+ models/update-financial-account-response-class.ts
58
60
  models/validate-accounting-config-request-dto.ts
59
61
  models/validate-accounting-config-response-class.ts
60
62
  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@1.34.1-beta.8 --save
20
+ npm install @emilgroup/accounting-sdk@1.34.1-beta.9 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/accounting-sdk@1.34.1-beta.8
24
+ yarn add @emilgroup/accounting-sdk@1.34.1-beta.9
25
25
  ```
26
26
 
27
27
  And then you can import `FinancialAccountsApi`.
@@ -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
  /**
32
36
  * FinancialAccountsApi - axios parameter creator
33
37
  * @export
@@ -249,6 +253,57 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
249
253
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
254
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
251
255
 
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ },
261
+ /**
262
+ * 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\"
263
+ * @summary Update the Financial Account
264
+ * @param {string} code Unique identifier for the object.
265
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
266
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
271
+ // verify required parameter 'code' is not null or undefined
272
+ assertParamExists('updateFinancialAccount', 'code', code)
273
+ // verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
274
+ assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
275
+ const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
276
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
+ let baseOptions;
280
+ let baseAccessToken;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ baseAccessToken = configuration.accessToken;
284
+ }
285
+
286
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
287
+ const localVarHeaderParameter = {} as any;
288
+ const localVarQueryParameter = {} as any;
289
+
290
+ // authentication bearer required
291
+ // http bearer authentication required
292
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
+
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+
298
+
299
+
300
+ localVarHeaderParameter['Content-Type'] = 'application/json';
301
+
302
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
305
+ localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
306
+
252
307
  return {
253
308
  url: toPathString(localVarUrlObj),
254
309
  options: localVarRequestOptions,
@@ -319,6 +374,19 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
319
374
  const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
320
375
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
376
  },
377
+ /**
378
+ * 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\"
379
+ * @summary Update the Financial Account
380
+ * @param {string} code Unique identifier for the object.
381
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
388
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
389
+ },
322
390
  }
323
391
  };
324
392
 
@@ -380,6 +448,18 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
380
448
  listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
381
449
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
382
450
  },
451
+ /**
452
+ * 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\"
453
+ * @summary Update the Financial Account
454
+ * @param {string} code Unique identifier for the object.
455
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
456
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
461
+ return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
462
+ },
383
463
  };
384
464
  };
385
465
 
@@ -516,6 +596,34 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
516
596
  readonly filters?: string
517
597
  }
518
598
 
599
+ /**
600
+ * Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
601
+ * @export
602
+ * @interface FinancialAccountsApiUpdateFinancialAccountRequest
603
+ */
604
+ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
605
+ /**
606
+ * Unique identifier for the object.
607
+ * @type {string}
608
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
609
+ */
610
+ readonly code: string
611
+
612
+ /**
613
+ *
614
+ * @type {UpdateFinancialAccountBodyDto}
615
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
616
+ */
617
+ readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
618
+
619
+ /**
620
+ * Bearer Token: provided by the login endpoint under the name accessToken.
621
+ * @type {string}
622
+ * @memberof FinancialAccountsApiUpdateFinancialAccount
623
+ */
624
+ readonly authorization?: string
625
+ }
626
+
519
627
  /**
520
628
  * FinancialAccountsApi - object-oriented interface
521
629
  * @export
@@ -570,4 +678,16 @@ export class FinancialAccountsApi extends BaseAPI {
570
678
  public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
571
679
  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));
572
680
  }
681
+
682
+ /**
683
+ * 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\"
684
+ * @summary Update the Financial Account
685
+ * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
686
+ * @param {*} [options] Override http request option.
687
+ * @throws {RequiredError}
688
+ * @memberof FinancialAccountsApi
689
+ */
690
+ public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
691
+ return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
692
+ }
573
693
  }
@@ -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
  }
@@ -315,6 +315,59 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
315
315
  });
316
316
  });
317
317
  },
318
+ /**
319
+ * 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\"
320
+ * @summary Update the Financial Account
321
+ * @param {string} code Unique identifier for the object.
322
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
323
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
333
+ case 0:
334
+ // verify required parameter 'code' is not null or undefined
335
+ (0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
336
+ // verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
337
+ (0, common_1.assertParamExists)('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto);
338
+ localVarPath = "/accountingservice/v1/financial-accounts/{code}"
339
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
340
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
341
+ if (configuration) {
342
+ baseOptions = configuration.baseOptions;
343
+ baseAccessToken = configuration.accessToken;
344
+ }
345
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
346
+ localVarHeaderParameter = {};
347
+ localVarQueryParameter = {};
348
+ // authentication bearer required
349
+ // http bearer authentication required
350
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
351
+ case 1:
352
+ // authentication bearer required
353
+ // http bearer authentication required
354
+ _a.sent();
355
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
+ }
358
+ localVarHeaderParameter['Content-Type'] = 'application/json';
359
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFinancialAccountBodyDto, localVarRequestOptions, configuration);
363
+ return [2 /*return*/, {
364
+ url: (0, common_1.toPathString)(localVarUrlObj),
365
+ options: localVarRequestOptions,
366
+ }];
367
+ }
368
+ });
369
+ });
370
+ },
318
371
  };
319
372
  };
320
373
  exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
@@ -416,6 +469,28 @@ var FinancialAccountsApiFp = function (configuration) {
416
469
  });
417
470
  });
418
471
  },
472
+ /**
473
+ * 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\"
474
+ * @summary Update the Financial Account
475
+ * @param {string} code Unique identifier for the object.
476
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
477
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
482
+ return __awaiter(this, void 0, void 0, function () {
483
+ var localVarAxiosArgs;
484
+ return __generator(this, function (_a) {
485
+ switch (_a.label) {
486
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options)];
487
+ case 1:
488
+ localVarAxiosArgs = _a.sent();
489
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
490
+ }
491
+ });
492
+ });
493
+ },
419
494
  };
420
495
  };
421
496
  exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
@@ -477,6 +552,18 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
477
552
  listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
478
553
  return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
479
554
  },
555
+ /**
556
+ * 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\"
557
+ * @summary Update the Financial Account
558
+ * @param {string} code Unique identifier for the object.
559
+ * @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
560
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ */
564
+ updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
565
+ return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
566
+ },
480
567
  };
481
568
  };
482
569
  exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
@@ -540,6 +627,18 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
540
627
  if (requestParameters === void 0) { requestParameters = {}; }
541
628
  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); });
542
629
  };
630
+ /**
631
+ * 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\"
632
+ * @summary Update the Financial Account
633
+ * @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ * @memberof FinancialAccountsApi
637
+ */
638
+ FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
639
+ var _this = this;
640
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
641
+ };
543
642
  return FinancialAccountsApi;
544
643
  }(base_1.BaseAPI));
545
644
  exports.FinancialAccountsApi = FinancialAccountsApi;
@@ -99,6 +99,12 @@ export interface FinancialAccountClass {
99
99
  * @memberof FinancialAccountClass
100
100
  */
101
101
  'isDefault': boolean;
102
+ /**
103
+ * Whether the account is locked. Set automatically the first time the account is posted to; once true, financialAccountNumber can no longer be changed.
104
+ * @type {boolean}
105
+ * @memberof FinancialAccountClass
106
+ */
107
+ 'isLocked': boolean;
102
108
  /**
103
109
  * Time at which the object was created.
104
110
  * @type {string}
@@ -37,5 +37,7 @@ export * from './list-number-range-response-class';
37
37
  export * from './list-personal-accounts-response-class';
38
38
  export * from './number-range-class';
39
39
  export * from './personal-account-class';
40
+ export * from './update-financial-account-body-dto';
41
+ export * from './update-financial-account-response-class';
40
42
  export * from './validate-accounting-config-request-dto';
41
43
  export * from './validate-accounting-config-response-class';
@@ -53,5 +53,7 @@ __exportStar(require("./list-number-range-response-class"), exports);
53
53
  __exportStar(require("./list-personal-accounts-response-class"), exports);
54
54
  __exportStar(require("./number-range-class"), exports);
55
55
  __exportStar(require("./personal-account-class"), exports);
56
+ __exportStar(require("./update-financial-account-body-dto"), exports);
57
+ __exportStar(require("./update-financial-account-response-class"), exports);
56
58
  __exportStar(require("./validate-accounting-config-request-dto"), exports);
57
59
  __exportStar(require("./validate-accounting-config-response-class"), exports);
@@ -0,0 +1,42 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateFinancialAccountBodyDto
16
+ */
17
+ export interface UpdateFinancialAccountBodyDto {
18
+ /**
19
+ * The new name of the account. Always editable.
20
+ * @type {string}
21
+ * @memberof UpdateFinancialAccountBodyDto
22
+ */
23
+ 'name'?: string;
24
+ /**
25
+ * The new description of the account. Always editable.
26
+ * @type {string}
27
+ * @memberof UpdateFinancialAccountBodyDto
28
+ */
29
+ 'description'?: string;
30
+ /**
31
+ * The new account number. Only editable while the account is not locked (isLocked: false). Resubmitting the current value is always allowed, even while locked.
32
+ * @type {string}
33
+ * @memberof UpdateFinancialAccountBodyDto
34
+ */
35
+ 'financialAccountNumber'?: string;
36
+ /**
37
+ * Set true to make this the default account for its (pool-category) functional category — this demotes the previous default. Setting false is rejected: set a different account as default instead.
38
+ * @type {boolean}
39
+ * @memberof UpdateFinancialAccountBodyDto
40
+ */
41
+ 'isDefault'?: boolean;
42
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL AccountingService
3
+ * The EMIL AccountingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { FinancialAccountClass } from './financial-account-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateFinancialAccountResponseClass
17
+ */
18
+ export interface UpdateFinancialAccountResponseClass {
19
+ /**
20
+ * The financial account response.
21
+ * @type {FinancialAccountClass}
22
+ * @memberof UpdateFinancialAccountResponseClass
23
+ */
24
+ 'financialAccount': FinancialAccountClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -104,6 +104,12 @@ export interface FinancialAccountClass {
104
104
  * @memberof FinancialAccountClass
105
105
  */
106
106
  'isDefault': boolean;
107
+ /**
108
+ * Whether the account is locked. Set automatically the first time the account is posted to; once true, financialAccountNumber can no longer be changed.
109
+ * @type {boolean}
110
+ * @memberof FinancialAccountClass
111
+ */
112
+ 'isLocked': boolean;
107
113
  /**
108
114
  * Time at which the object was created.
109
115
  * @type {string}
package/models/index.ts CHANGED
@@ -37,5 +37,7 @@ export * from './list-number-range-response-class';
37
37
  export * from './list-personal-accounts-response-class';
38
38
  export * from './number-range-class';
39
39
  export * from './personal-account-class';
40
+ export * from './update-financial-account-body-dto';
41
+ export * from './update-financial-account-response-class';
40
42
  export * from './validate-accounting-config-request-dto';
41
43
  export * from './validate-accounting-config-response-class';
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface UpdateFinancialAccountBodyDto
21
+ */
22
+ export interface UpdateFinancialAccountBodyDto {
23
+ /**
24
+ * The new name of the account. Always editable.
25
+ * @type {string}
26
+ * @memberof UpdateFinancialAccountBodyDto
27
+ */
28
+ 'name'?: string;
29
+ /**
30
+ * The new description of the account. Always editable.
31
+ * @type {string}
32
+ * @memberof UpdateFinancialAccountBodyDto
33
+ */
34
+ 'description'?: string;
35
+ /**
36
+ * The new account number. Only editable while the account is not locked (isLocked: false). Resubmitting the current value is always allowed, even while locked.
37
+ * @type {string}
38
+ * @memberof UpdateFinancialAccountBodyDto
39
+ */
40
+ 'financialAccountNumber'?: string;
41
+ /**
42
+ * Set true to make this the default account for its (pool-category) functional category — this demotes the previous default. Setting false is rejected: set a different account as default instead.
43
+ * @type {boolean}
44
+ * @memberof UpdateFinancialAccountBodyDto
45
+ */
46
+ 'isDefault'?: boolean;
47
+ }
48
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { FinancialAccountClass } from './financial-account-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface UpdateFinancialAccountResponseClass
22
+ */
23
+ export interface UpdateFinancialAccountResponseClass {
24
+ /**
25
+ * The financial account response.
26
+ * @type {FinancialAccountClass}
27
+ * @memberof UpdateFinancialAccountResponseClass
28
+ */
29
+ 'financialAccount': FinancialAccountClass;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/accounting-sdk",
3
- "version": "1.34.1-beta.8",
3
+ "version": "1.34.1-beta.9",
4
4
  "description": "OpenAPI client for @emilgroup/accounting-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [