@emilgroup/accounting-sdk 1.34.1-beta.6 → 1.34.1-beta.8
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 +1 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +90 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +87 -0
- package/dist/models/create-financial-account-request-dto.d.ts +6 -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 +1 -0
- package/dist/models/index.js +1 -0
- package/models/create-financial-account-request-dto.ts +6 -0
- package/models/financial-account-class.ts +6 -0
- package/models/get-subledger-settings-response-class.ts +42 -0
- package/models/index.ts +1 -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
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk@1.34.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk@1.34.1-beta.8 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk@1.34.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk@1.34.1-beta.8
|
|
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';
|
|
@@ -210,6 +212,47 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
210
212
|
|
|
211
213
|
|
|
212
214
|
|
|
215
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
216
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
217
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
218
|
+
|
|
219
|
+
return {
|
|
220
|
+
url: toPathString(localVarUrlObj),
|
|
221
|
+
options: localVarRequestOptions,
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
/**
|
|
225
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
226
|
+
* @summary Retrieve the get subledger settings
|
|
227
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
228
|
+
* @param {*} [options] Override http request option.
|
|
229
|
+
* @throws {RequiredError}
|
|
230
|
+
*/
|
|
231
|
+
getSubledgerSettings: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
232
|
+
const localVarPath = `/accountingservice/v1/subledger/settings`;
|
|
233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
235
|
+
let baseOptions;
|
|
236
|
+
let baseAccessToken;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
baseAccessToken = configuration.accessToken;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
243
|
+
const localVarHeaderParameter = {} as any;
|
|
244
|
+
const localVarQueryParameter = {} as any;
|
|
245
|
+
|
|
246
|
+
// authentication bearer required
|
|
247
|
+
// http bearer authentication required
|
|
248
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
|
+
|
|
250
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
213
256
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
214
257
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
215
258
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -415,6 +458,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
415
458
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
|
|
416
459
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
460
|
},
|
|
461
|
+
/**
|
|
462
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
463
|
+
* @summary Retrieve the get subledger settings
|
|
464
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
async getSubledgerSettings(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSubledgerSettingsResponseClass>> {
|
|
469
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSubledgerSettings(authorization, options);
|
|
470
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
|
+
},
|
|
418
472
|
/**
|
|
419
473
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
420
474
|
* @summary Delete the reset subledger
|
|
@@ -502,6 +556,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
|
|
|
502
556
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
|
|
503
557
|
return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
|
|
504
558
|
},
|
|
559
|
+
/**
|
|
560
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
561
|
+
* @summary Retrieve the get subledger settings
|
|
562
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
getSubledgerSettings(authorization?: string, options?: any): AxiosPromise<GetSubledgerSettingsResponseClass> {
|
|
567
|
+
return localVarFp.getSubledgerSettings(authorization, options).then((request) => request(axios, basePath));
|
|
568
|
+
},
|
|
505
569
|
/**
|
|
506
570
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
507
571
|
* @summary Delete the reset subledger
|
|
@@ -607,6 +671,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
607
671
|
readonly authorization?: string
|
|
608
672
|
}
|
|
609
673
|
|
|
674
|
+
/**
|
|
675
|
+
* Request parameters for getSubledgerSettings operation in AccountingConfigsApi.
|
|
676
|
+
* @export
|
|
677
|
+
* @interface AccountingConfigsApiGetSubledgerSettingsRequest
|
|
678
|
+
*/
|
|
679
|
+
export interface AccountingConfigsApiGetSubledgerSettingsRequest {
|
|
680
|
+
/**
|
|
681
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
682
|
+
* @type {string}
|
|
683
|
+
* @memberof AccountingConfigsApiGetSubledgerSettings
|
|
684
|
+
*/
|
|
685
|
+
readonly authorization?: string
|
|
686
|
+
}
|
|
687
|
+
|
|
610
688
|
/**
|
|
611
689
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
612
690
|
* @export
|
|
@@ -718,6 +796,18 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
718
796
|
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
719
797
|
}
|
|
720
798
|
|
|
799
|
+
/**
|
|
800
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
801
|
+
* @summary Retrieve the get subledger settings
|
|
802
|
+
* @param {AccountingConfigsApiGetSubledgerSettingsRequest} requestParameters Request parameters.
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
* @memberof AccountingConfigsApi
|
|
806
|
+
*/
|
|
807
|
+
public getSubledgerSettings(requestParameters: AccountingConfigsApiGetSubledgerSettingsRequest = {}, options?: AxiosRequestConfig) {
|
|
808
|
+
return AccountingConfigsApiFp(this.configuration).getSubledgerSettings(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
809
|
+
}
|
|
810
|
+
|
|
721
811
|
/**
|
|
722
812
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
723
813
|
* @summary Delete the reset subledger
|
|
@@ -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
|
|
@@ -281,6 +281,50 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
},
|
|
284
|
+
/**
|
|
285
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
286
|
+
* @summary Retrieve the get subledger settings
|
|
287
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
getSubledgerSettings: function (authorization, options) {
|
|
292
|
+
if (options === void 0) { options = {}; }
|
|
293
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
294
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
295
|
+
return __generator(this, function (_a) {
|
|
296
|
+
switch (_a.label) {
|
|
297
|
+
case 0:
|
|
298
|
+
localVarPath = "/accountingservice/v1/subledger/settings";
|
|
299
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
300
|
+
if (configuration) {
|
|
301
|
+
baseOptions = configuration.baseOptions;
|
|
302
|
+
baseAccessToken = configuration.accessToken;
|
|
303
|
+
}
|
|
304
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
305
|
+
localVarHeaderParameter = {};
|
|
306
|
+
localVarQueryParameter = {};
|
|
307
|
+
// authentication bearer required
|
|
308
|
+
// http bearer authentication required
|
|
309
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
310
|
+
case 1:
|
|
311
|
+
// authentication bearer required
|
|
312
|
+
// http bearer authentication required
|
|
313
|
+
_a.sent();
|
|
314
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
315
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
316
|
+
}
|
|
317
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
320
|
+
return [2 /*return*/, {
|
|
321
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
322
|
+
options: localVarRequestOptions,
|
|
323
|
+
}];
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
},
|
|
284
328
|
/**
|
|
285
329
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
286
330
|
* @summary Delete the reset subledger
|
|
@@ -518,6 +562,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
518
562
|
});
|
|
519
563
|
});
|
|
520
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: function (authorization, options) {
|
|
573
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
574
|
+
var localVarAxiosArgs;
|
|
575
|
+
return __generator(this, function (_a) {
|
|
576
|
+
switch (_a.label) {
|
|
577
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSubledgerSettings(authorization, options)];
|
|
578
|
+
case 1:
|
|
579
|
+
localVarAxiosArgs = _a.sent();
|
|
580
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
});
|
|
584
|
+
},
|
|
521
585
|
/**
|
|
522
586
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
523
587
|
* @summary Delete the reset subledger
|
|
@@ -632,6 +696,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
632
696
|
getAccountingCategories: function (authorization, options) {
|
|
633
697
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
634
698
|
},
|
|
699
|
+
/**
|
|
700
|
+
* Returns the activation date and accounting configuration settings for the active subledger. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
701
|
+
* @summary Retrieve the get subledger settings
|
|
702
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
getSubledgerSettings: function (authorization, options) {
|
|
707
|
+
return localVarFp.getSubledgerSettings(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
708
|
+
},
|
|
635
709
|
/**
|
|
636
710
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
637
711
|
* @summary Delete the reset subledger
|
|
@@ -728,6 +802,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
728
802
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
729
803
|
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
730
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
|
+
AccountingConfigsApi.prototype.getSubledgerSettings = function (requestParameters, options) {
|
|
814
|
+
var _this = this;
|
|
815
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
816
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getSubledgerSettings(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
817
|
+
};
|
|
731
818
|
/**
|
|
732
819
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
733
820
|
* @summary Delete the reset subledger
|
|
@@ -77,6 +77,12 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
77
77
|
* @memberof CreateFinancialAccountRequestDto
|
|
78
78
|
*/
|
|
79
79
|
'functionalCategory': CreateFinancialAccountRequestDtoFunctionalCategoryEnum;
|
|
80
|
+
/**
|
|
81
|
+
* Whether this account is the default for its functional category. Only meaningful for pool categories. Setting true on creation will clear isDefault on any other account in the same category.
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof CreateFinancialAccountRequestDto
|
|
84
|
+
*/
|
|
85
|
+
'isDefault'?: boolean;
|
|
80
86
|
}
|
|
81
87
|
export declare const CreateFinancialAccountRequestDtoTypeEnum: {
|
|
82
88
|
readonly Asset: "asset";
|
|
@@ -93,6 +93,12 @@ export interface FinancialAccountClass {
|
|
|
93
93
|
* @memberof FinancialAccountClass
|
|
94
94
|
*/
|
|
95
95
|
'functionalCategory': string;
|
|
96
|
+
/**
|
|
97
|
+
* Whether this is the default account for its functional category. Only one pool-category account per category can have isDefault set to true.
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof FinancialAccountClass
|
|
100
|
+
*/
|
|
101
|
+
'isDefault': boolean;
|
|
96
102
|
/**
|
|
97
103
|
* Time at which the object was created.
|
|
98
104
|
* @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';
|
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);
|
|
@@ -80,6 +80,12 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
80
80
|
* @memberof CreateFinancialAccountRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'functionalCategory': CreateFinancialAccountRequestDtoFunctionalCategoryEnum;
|
|
83
|
+
/**
|
|
84
|
+
* Whether this account is the default for its functional category. Only meaningful for pool categories. Setting true on creation will clear isDefault on any other account in the same category.
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof CreateFinancialAccountRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'isDefault'?: boolean;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
export const CreateFinancialAccountRequestDtoTypeEnum = {
|
|
@@ -98,6 +98,12 @@ export interface FinancialAccountClass {
|
|
|
98
98
|
* @memberof FinancialAccountClass
|
|
99
99
|
*/
|
|
100
100
|
'functionalCategory': string;
|
|
101
|
+
/**
|
|
102
|
+
* Whether this is the default account for its functional category. Only one pool-category account per category can have isDefault set to true.
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof FinancialAccountClass
|
|
105
|
+
*/
|
|
106
|
+
'isDefault': boolean;
|
|
101
107
|
/**
|
|
102
108
|
* Time at which the object was created.
|
|
103
109
|
* @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';
|