@emilgroup/accounting-sdk-node 1.32.1-beta.1 → 1.32.1-beta.11
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 +97 -7
- 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 +94 -7
- package/dist/api/financial-accounts-api.d.ts +66 -0
- package/dist/api/financial-accounts-api.js +99 -0
- package/dist/models/create-financial-account-request-dto.d.ts +6 -0
- package/dist/models/financial-account-class.d.ts +12 -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/create-financial-account-request-dto.ts +6 -0
- package/models/financial-account-class.ts +12 -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.11 --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.11
|
|
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';
|
|
@@ -53,7 +55,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
53
55
|
createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
56
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
55
57
|
assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
|
|
56
|
-
const localVarPath = `/accountingservice/v1/
|
|
58
|
+
const localVarPath = `/accountingservice/v1/subledger`;
|
|
57
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
61
|
let baseOptions;
|
|
@@ -100,7 +102,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
100
102
|
createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
103
|
// verify required parameter 'file' is not null or undefined
|
|
102
104
|
assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
|
|
103
|
-
const localVarPath = `/accountingservice/v1/
|
|
105
|
+
const localVarPath = `/accountingservice/v1/subledger/upload`;
|
|
104
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
108
|
let baseOptions;
|
|
@@ -150,7 +152,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
150
152
|
* @throws {RequiredError}
|
|
151
153
|
*/
|
|
152
154
|
exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
|
-
const localVarPath = `/accountingservice/v1/
|
|
155
|
+
const localVarPath = `/accountingservice/v1/subledger/config/export`;
|
|
154
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
157
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
158
|
let baseOptions;
|
|
@@ -191,7 +193,48 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
191
193
|
* @throws {RequiredError}
|
|
192
194
|
*/
|
|
193
195
|
getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
|
-
const localVarPath = `/accountingservice/v1/
|
|
196
|
+
const localVarPath = `/accountingservice/v1/subledger/categories`;
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
let baseAccessToken;
|
|
201
|
+
if (configuration) {
|
|
202
|
+
baseOptions = configuration.baseOptions;
|
|
203
|
+
baseAccessToken = configuration.accessToken;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
207
|
+
const localVarHeaderParameter = {} as any;
|
|
208
|
+
const localVarQueryParameter = {} as any;
|
|
209
|
+
|
|
210
|
+
// authentication bearer required
|
|
211
|
+
// http bearer authentication required
|
|
212
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
|
+
|
|
214
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
215
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
223
|
+
|
|
224
|
+
return {
|
|
225
|
+
url: toPathString(localVarUrlObj),
|
|
226
|
+
options: localVarRequestOptions,
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Returns the 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`;
|
|
195
238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
239
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
240
|
let baseOptions;
|
|
@@ -232,7 +275,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
232
275
|
* @throws {RequiredError}
|
|
233
276
|
*/
|
|
234
277
|
resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
235
|
-
const localVarPath = `/accountingservice/v1/
|
|
278
|
+
const localVarPath = `/accountingservice/v1/subledger/reset`;
|
|
236
279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
281
|
let baseOptions;
|
|
@@ -276,7 +319,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
276
319
|
validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
277
320
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
278
321
|
assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
|
|
279
|
-
const localVarPath = `/accountingservice/v1/
|
|
322
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate`;
|
|
280
323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
325
|
let baseOptions;
|
|
@@ -323,7 +366,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
323
366
|
validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
324
367
|
// verify required parameter 'file' is not null or undefined
|
|
325
368
|
assertParamExists('validateAccountingConfigFromFile', 'file', file)
|
|
326
|
-
const localVarPath = `/accountingservice/v1/
|
|
369
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
|
|
327
370
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
328
371
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
329
372
|
let baseOptions;
|
|
@@ -421,6 +464,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
421
464
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
|
|
422
465
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
466
|
},
|
|
467
|
+
/**
|
|
468
|
+
* Returns the 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
|
|
@@ -113,7 +113,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
113
113
|
case 0:
|
|
114
114
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
115
115
|
(0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
|
|
116
|
-
localVarPath = "/accountingservice/v1/
|
|
116
|
+
localVarPath = "/accountingservice/v1/subledger";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
119
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -162,7 +162,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
162
162
|
case 0:
|
|
163
163
|
// verify required parameter 'file' is not null or undefined
|
|
164
164
|
(0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
|
|
165
|
-
localVarPath = "/accountingservice/v1/
|
|
165
|
+
localVarPath = "/accountingservice/v1/subledger/upload";
|
|
166
166
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
167
|
if (configuration) {
|
|
168
168
|
baseOptions = configuration.baseOptions;
|
|
@@ -212,7 +212,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
212
212
|
return __generator(this, function (_a) {
|
|
213
213
|
switch (_a.label) {
|
|
214
214
|
case 0:
|
|
215
|
-
localVarPath = "/accountingservice/v1/
|
|
215
|
+
localVarPath = "/accountingservice/v1/subledger/config/export";
|
|
216
216
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
217
217
|
if (configuration) {
|
|
218
218
|
baseOptions = configuration.baseOptions;
|
|
@@ -256,7 +256,51 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
256
256
|
return __generator(this, function (_a) {
|
|
257
257
|
switch (_a.label) {
|
|
258
258
|
case 0:
|
|
259
|
-
localVarPath = "/accountingservice/v1/
|
|
259
|
+
localVarPath = "/accountingservice/v1/subledger/categories";
|
|
260
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
|
+
if (configuration) {
|
|
262
|
+
baseOptions = configuration.baseOptions;
|
|
263
|
+
baseAccessToken = configuration.accessToken;
|
|
264
|
+
}
|
|
265
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
266
|
+
localVarHeaderParameter = {};
|
|
267
|
+
localVarQueryParameter = {};
|
|
268
|
+
// authentication bearer required
|
|
269
|
+
// http bearer authentication required
|
|
270
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
271
|
+
case 1:
|
|
272
|
+
// authentication bearer required
|
|
273
|
+
// http bearer authentication required
|
|
274
|
+
_a.sent();
|
|
275
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
276
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
277
|
+
}
|
|
278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
+
return [2 /*return*/, {
|
|
282
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions,
|
|
284
|
+
}];
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
});
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
* Returns the 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";
|
|
260
304
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
305
|
if (configuration) {
|
|
262
306
|
baseOptions = configuration.baseOptions;
|
|
@@ -300,7 +344,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
300
344
|
return __generator(this, function (_a) {
|
|
301
345
|
switch (_a.label) {
|
|
302
346
|
case 0:
|
|
303
|
-
localVarPath = "/accountingservice/v1/
|
|
347
|
+
localVarPath = "/accountingservice/v1/subledger/reset";
|
|
304
348
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
305
349
|
if (configuration) {
|
|
306
350
|
baseOptions = configuration.baseOptions;
|
|
@@ -347,7 +391,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
347
391
|
case 0:
|
|
348
392
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
349
393
|
(0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
|
|
350
|
-
localVarPath = "/accountingservice/v1/
|
|
394
|
+
localVarPath = "/accountingservice/v1/subledger/config/validate";
|
|
351
395
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
352
396
|
if (configuration) {
|
|
353
397
|
baseOptions = configuration.baseOptions;
|
|
@@ -396,7 +440,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
396
440
|
case 0:
|
|
397
441
|
// verify required parameter 'file' is not null or undefined
|
|
398
442
|
(0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
|
|
399
|
-
localVarPath = "/accountingservice/v1/
|
|
443
|
+
localVarPath = "/accountingservice/v1/subledger/config/validate/upload";
|
|
400
444
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
401
445
|
if (configuration) {
|
|
402
446
|
baseOptions = configuration.baseOptions;
|
|
@@ -524,6 +568,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
524
568
|
});
|
|
525
569
|
});
|
|
526
570
|
},
|
|
571
|
+
/**
|
|
572
|
+
* Returns the 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
|