@emilgroup/accounting-sdk-node 1.32.1-beta.7 → 1.32.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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +90 -0
- package/api/financial-accounts-api.ts +120 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +87 -0
- package/dist/api/financial-accounts-api.d.ts +66 -0
- package/dist/api/financial-accounts-api.js +99 -0
- package/dist/models/financial-account-class.d.ts +6 -0
- package/dist/models/get-subledger-settings-response-class.d.ts +36 -0
- package/dist/models/get-subledger-settings-response-class.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/update-financial-account-body-dto.d.ts +42 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -0
- package/models/financial-account-class.ts +6 -0
- package/models/get-subledger-settings-response-class.ts +42 -0
- package/models/index.ts +3 -0
- package/models/update-financial-account-body-dto.ts +48 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -44,6 +44,7 @@ models/get-financial-account-response-class.ts
|
|
|
44
44
|
models/get-financial-transaction-response-class.ts
|
|
45
45
|
models/get-number-range-response-class.ts
|
|
46
46
|
models/get-personal-account-response-class.ts
|
|
47
|
+
models/get-subledger-settings-response-class.ts
|
|
47
48
|
models/index.ts
|
|
48
49
|
models/inline-response200.ts
|
|
49
50
|
models/inline-response503.ts
|
|
@@ -54,6 +55,8 @@ models/list-number-range-response-class.ts
|
|
|
54
55
|
models/list-personal-accounts-response-class.ts
|
|
55
56
|
models/number-range-class.ts
|
|
56
57
|
models/personal-account-class.ts
|
|
58
|
+
models/update-financial-account-body-dto.ts
|
|
59
|
+
models/update-financial-account-response-class.ts
|
|
57
60
|
models/validate-accounting-config-request-dto.ts
|
|
58
61
|
models/validate-accounting-config-response-class.ts
|
|
59
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-node@1.32.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.9 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.9
|
|
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 { GetSubledgerSettingsResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
32
34
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
33
35
|
// @ts-ignore
|
|
34
36
|
import { ValidateAccountingConfigResponseClass } from '../models';
|
|
@@ -215,6 +217,47 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
215
217
|
|
|
216
218
|
|
|
217
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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
231
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
237
|
+
const localVarPath = `/accountingservice/v1/subledger/settings`;
|
|
238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
|
+
let baseOptions;
|
|
241
|
+
let baseAccessToken;
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
baseAccessToken = configuration.accessToken;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
248
|
+
const localVarHeaderParameter = {} as any;
|
|
249
|
+
const localVarQueryParameter = {} as any;
|
|
250
|
+
|
|
251
|
+
// authentication bearer required
|
|
252
|
+
// http bearer authentication required
|
|
253
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
254
|
+
|
|
255
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
256
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
218
261
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
219
262
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
220
263
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
469
|
+
* @summary Retrieve the get subledger settings
|
|
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 getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>> {
|
|
475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubledgerSettings(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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
567
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass> {
|
|
573
|
+
return localVarFp.getSubledgerSettings(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 getSubledgerSettings operation in AccountingConfigsApi.
|
|
682
|
+
* @export
|
|
683
|
+
* @interface AccountingConfigsApiGetSubledgerSettingsRequest
|
|
684
|
+
*/
|
|
685
|
+
export interface AccountingConfigsApiGetSubledgerSettingsRequest {
|
|
686
|
+
/**
|
|
687
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
688
|
+
* @type {string}
|
|
689
|
+
* @memberof AccountingConfigsApiGetSubledgerSettings
|
|
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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
807
|
+
* @summary Retrieve the get subledger settings
|
|
808
|
+
* @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
* @memberof AccountingConfigsApi
|
|
812
|
+
*/
|
|
813
|
+
public getSubledgerSettings(requestParameters: AccountingConfigsApiGetSubledgerSettingsRequest = {}, options?: AxiosRequestConfig) {
|
|
814
|
+
return AccountingConfigsApiFp(this.configuration).getSubledgerSettings(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
|
}
|
|
@@ -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 { GetSubledgerSettingsResponseClass } 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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
63
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings: (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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
137
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>>;
|
|
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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
211
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass>;
|
|
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 getSubledgerSettings operation in AccountingConfigsApi.
|
|
310
|
+
* @export
|
|
311
|
+
* @interface AccountingConfigsApiGetSubledgerSettingsRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface AccountingConfigsApiGetSubledgerSettingsRequest {
|
|
314
|
+
/**
|
|
315
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof AccountingConfigsApiGetSubledgerSettings
|
|
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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
417
|
+
* @summary Retrieve the get subledger settings
|
|
418
|
+
* @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof AccountingConfigsApi
|
|
422
|
+
*/
|
|
423
|
+
getSubledgerSettings(requestParameters?: AccountingConfigsApiGetSubledgerSettingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetSubledgerSettingsResponseClass, 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
|
|
@@ -286,6 +286,50 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
286
286
|
});
|
|
287
287
|
});
|
|
288
288
|
},
|
|
289
|
+
/**
|
|
290
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
291
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings: 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/settings";
|
|
304
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
305
|
+
if (configuration) {
|
|
306
|
+
baseOptions = configuration.baseOptions;
|
|
307
|
+
baseAccessToken = configuration.accessToken;
|
|
308
|
+
}
|
|
309
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
310
|
+
localVarHeaderParameter = {};
|
|
311
|
+
localVarQueryParameter = {};
|
|
312
|
+
// authentication bearer required
|
|
313
|
+
// http bearer authentication required
|
|
314
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
315
|
+
case 1:
|
|
316
|
+
// authentication bearer required
|
|
317
|
+
// http bearer authentication required
|
|
318
|
+
_a.sent();
|
|
319
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
321
|
+
}
|
|
322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
325
|
+
return [2 /*return*/, {
|
|
326
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
327
|
+
options: localVarRequestOptions,
|
|
328
|
+
}];
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
},
|
|
289
333
|
/**
|
|
290
334
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
291
335
|
* @summary Delete the reset subledger
|
|
@@ -524,6 +568,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
524
568
|
});
|
|
525
569
|
});
|
|
526
570
|
},
|
|
571
|
+
/**
|
|
572
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
573
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings: 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.getSubledgerSettings(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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
707
|
+
* @summary Retrieve the get subledger settings
|
|
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
|
+
getSubledgerSettings: function (authorization, options) {
|
|
713
|
+
return localVarFp.getSubledgerSettings(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 activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
813
|
+
* @summary Retrieve the get subledger settings
|
|
814
|
+
* @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
|
|
815
|
+
* @param {*} [options] Override http request option.
|
|
816
|
+
* @throws {RequiredError}
|
|
817
|
+
* @memberof AccountingConfigsApi
|
|
818
|
+
*/
|
|
819
|
+
AccountingConfigsApi.prototype.getSubledgerSettings = function (requestParameters, options) {
|
|
820
|
+
var _this = this;
|
|
821
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
822
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getSubledgerSettings(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;
|
|
@@ -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}
|
|
@@ -0,0 +1,36 @@
|
|
|
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 GetSubledgerSettingsResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSubledgerSettingsResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* The date the subledger becomes active
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSubledgerSettingsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'activationDate': string;
|
|
24
|
+
/**
|
|
25
|
+
* Default tax handling, \"CARRIER_PAYS\" or \"MGA_PAYS\"
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetSubledgerSettingsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'defaultTaxHandling': string;
|
|
30
|
+
/**
|
|
31
|
+
* Settlement recognition mode, \"SOLL\" or \"IST\"
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetSubledgerSettingsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'settlementRecognitionMode': string;
|
|
36
|
+
}
|
|
@@ -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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './get-financial-account-response-class';
|
|
|
27
27
|
export * from './get-financial-transaction-response-class';
|
|
28
28
|
export * from './get-number-range-response-class';
|
|
29
29
|
export * from './get-personal-account-response-class';
|
|
30
|
+
export * from './get-subledger-settings-response-class';
|
|
30
31
|
export * from './inline-response200';
|
|
31
32
|
export * from './inline-response503';
|
|
32
33
|
export * from './list-booking-entries-response-class';
|
|
@@ -36,5 +37,7 @@ export * from './list-number-range-response-class';
|
|
|
36
37
|
export * from './list-personal-accounts-response-class';
|
|
37
38
|
export * from './number-range-class';
|
|
38
39
|
export * from './personal-account-class';
|
|
40
|
+
export * from './update-financial-account-body-dto';
|
|
41
|
+
export * from './update-financial-account-response-class';
|
|
39
42
|
export * from './validate-accounting-config-request-dto';
|
|
40
43
|
export * from './validate-accounting-config-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __exportStar(require("./get-financial-account-response-class"), exports);
|
|
|
43
43
|
__exportStar(require("./get-financial-transaction-response-class"), exports);
|
|
44
44
|
__exportStar(require("./get-number-range-response-class"), exports);
|
|
45
45
|
__exportStar(require("./get-personal-account-response-class"), exports);
|
|
46
|
+
__exportStar(require("./get-subledger-settings-response-class"), exports);
|
|
46
47
|
__exportStar(require("./inline-response200"), exports);
|
|
47
48
|
__exportStar(require("./inline-response503"), exports);
|
|
48
49
|
__exportStar(require("./list-booking-entries-response-class"), exports);
|
|
@@ -52,5 +53,7 @@ __exportStar(require("./list-number-range-response-class"), exports);
|
|
|
52
53
|
__exportStar(require("./list-personal-accounts-response-class"), exports);
|
|
53
54
|
__exportStar(require("./number-range-class"), exports);
|
|
54
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);
|
|
55
58
|
__exportStar(require("./validate-accounting-config-request-dto"), exports);
|
|
56
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}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 GetSubledgerSettingsResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface GetSubledgerSettingsResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* The date the subledger becomes active
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetSubledgerSettingsResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'activationDate': string;
|
|
29
|
+
/**
|
|
30
|
+
* Default tax handling, \"CARRIER_PAYS\" or \"MGA_PAYS\"
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof GetSubledgerSettingsResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'defaultTaxHandling': string;
|
|
35
|
+
/**
|
|
36
|
+
* Settlement recognition mode, \"SOLL\" or \"IST\"
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof GetSubledgerSettingsResponseClass
|
|
39
|
+
*/
|
|
40
|
+
'settlementRecognitionMode': string;
|
|
41
|
+
}
|
|
42
|
+
|
package/models/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './get-financial-account-response-class';
|
|
|
27
27
|
export * from './get-financial-transaction-response-class';
|
|
28
28
|
export * from './get-number-range-response-class';
|
|
29
29
|
export * from './get-personal-account-response-class';
|
|
30
|
+
export * from './get-subledger-settings-response-class';
|
|
30
31
|
export * from './inline-response200';
|
|
31
32
|
export * from './inline-response503';
|
|
32
33
|
export * from './list-booking-entries-response-class';
|
|
@@ -36,5 +37,7 @@ export * from './list-number-range-response-class';
|
|
|
36
37
|
export * from './list-personal-accounts-response-class';
|
|
37
38
|
export * from './number-range-class';
|
|
38
39
|
export * from './personal-account-class';
|
|
40
|
+
export * from './update-financial-account-body-dto';
|
|
41
|
+
export * from './update-financial-account-response-class';
|
|
39
42
|
export * from './validate-accounting-config-request-dto';
|
|
40
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
|
+
|