@emilgroup/accounting-sdk-node 1.32.1-beta.4 → 1.32.1-beta.41
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 +33 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +90 -0
- package/api/booking-entries-api.ts +214 -0
- package/api/commission-account-mappings-api.ts +1195 -0
- package/api/financial-accounts-api.ts +132 -12
- package/api/product-account-mappings-api.ts +1474 -0
- package/api.ts +4 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +87 -0
- package/dist/api/booking-entries-api.d.ts +114 -0
- package/dist/api/booking-entries-api.js +186 -0
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1008 -0
- package/dist/api/financial-accounts-api.d.ts +78 -12
- package/dist/api/financial-accounts-api.js +109 -10
- package/dist/api/product-account-mappings-api.d.ts +851 -0
- package/dist/api/product-account-mappings-api.js +1228 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +6 -0
- package/dist/models/booking-entry-class.d.ts +19 -0
- package/dist/models/booking-entry-class.js +7 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -0
- package/dist/models/commission-account-mapping-class.js +15 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
- package/dist/models/commission-agreement-partner-class.d.ts +30 -0
- package/dist/models/commission-agreement-partner-class.js +15 -0
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
- package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
- package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
- package/dist/models/commission-type-account-mapping-class.js +15 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +19 -0
- package/dist/models/create-booking-entry-request-dto.js +7 -0
- package/dist/models/create-financial-account-request-dto.d.ts +12 -0
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +30 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/financial-transaction-data-dto.d.ts +1 -0
- package/dist/models/financial-transaction-data-dto.js +1 -0
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +31 -0
- package/dist/models/index.js +31 -0
- package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/opening-balance-item-dto.d.ts +41 -0
- package/dist/models/opening-balance-item-dto.js +20 -0
- package/dist/models/post-financial-event-request-dto.d.ts +43 -0
- package/dist/models/post-financial-event-request-dto.js +22 -0
- package/dist/models/post-financial-event-response-class.d.ts +25 -0
- package/dist/models/post-financial-event-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
- package/dist/models/resolved-commission-account-mapping-class.js +21 -0
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
- package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-type-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +48 -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/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +6 -0
- package/models/booking-entry-class.ts +20 -0
- package/models/commission-account-mapping-class.ts +55 -0
- package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
- package/models/commission-agreement-partner-class.ts +36 -0
- package/models/commission-agreement-with-account-mapping-class.ts +49 -0
- package/models/commission-type-account-mapping-class.ts +37 -0
- package/models/create-booking-entry-request-dto.ts +22 -0
- package/models/create-financial-account-request-dto.ts +12 -0
- package/models/create-or-correct-opening-balance-dto.ts +31 -0
- package/models/create-or-correct-opening-balance-response-class.ts +31 -0
- package/models/financial-account-class.ts +31 -1
- package/models/financial-transaction-data-dto.ts +1 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +31 -0
- package/models/list-commission-account-mappings-response-class.ts +49 -0
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
- package/models/list-commission-type-account-mappings-response-class.ts +49 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/opening-balance-item-dto.ts +50 -0
- package/models/post-financial-event-request-dto.ts +52 -0
- package/models/post-financial-event-response-class.ts +31 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +56 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/resolved-commission-account-mapping-class.ts +46 -0
- package/models/update-commission-agreement-account-body-dto.ts +30 -0
- package/models/update-commission-type-account-body-dto.ts +30 -0
- package/models/update-financial-account-body-dto.ts +54 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -5,11 +5,13 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/accounting-configs-api.ts
|
|
7
7
|
api/booking-entries-api.ts
|
|
8
|
+
api/commission-account-mappings-api.ts
|
|
8
9
|
api/financial-accounts-api.ts
|
|
9
10
|
api/financial-transactions-api.ts
|
|
10
11
|
api/health-api.ts
|
|
11
12
|
api/number-ranges-api.ts
|
|
12
13
|
api/personal-accounts-api.ts
|
|
14
|
+
api/product-account-mappings-api.ts
|
|
13
15
|
base.ts
|
|
14
16
|
common.ts
|
|
15
17
|
configuration.ts
|
|
@@ -24,6 +26,11 @@ models/accounting-config-data-dto-default-account-mappings.ts
|
|
|
24
26
|
models/accounting-config-data-dto.ts
|
|
25
27
|
models/accounting-configuration-class.ts
|
|
26
28
|
models/booking-entry-class.ts
|
|
29
|
+
models/commission-account-mapping-class.ts
|
|
30
|
+
models/commission-agreement-account-mapping-detail-class.ts
|
|
31
|
+
models/commission-agreement-partner-class.ts
|
|
32
|
+
models/commission-agreement-with-account-mapping-class.ts
|
|
33
|
+
models/commission-type-account-mapping-class.ts
|
|
27
34
|
models/create-and-enable-subledger-request-dto.ts
|
|
28
35
|
models/create-and-enable-subledger-response-class.ts
|
|
29
36
|
models/create-booking-entry-request-dto.ts
|
|
@@ -32,6 +39,8 @@ models/create-financial-account-request-dto.ts
|
|
|
32
39
|
models/create-financial-account-response-class.ts
|
|
33
40
|
models/create-number-range-request-dto.ts
|
|
34
41
|
models/create-number-range-response-class.ts
|
|
42
|
+
models/create-or-correct-opening-balance-dto.ts
|
|
43
|
+
models/create-or-correct-opening-balance-response-class.ts
|
|
35
44
|
models/create-personal-account-request-dto.ts
|
|
36
45
|
models/create-personal-account-response-class.ts
|
|
37
46
|
models/export-accounting-config-response-class.ts
|
|
@@ -39,6 +48,7 @@ models/financial-account-class.ts
|
|
|
39
48
|
models/financial-transaction-class.ts
|
|
40
49
|
models/financial-transaction-data-dto.ts
|
|
41
50
|
models/get-accounting-categories-response-class.ts
|
|
51
|
+
models/get-activation-snapshot-response-class.ts
|
|
42
52
|
models/get-booking-entry-response-class.ts
|
|
43
53
|
models/get-financial-account-response-class.ts
|
|
44
54
|
models/get-financial-transaction-response-class.ts
|
|
@@ -48,12 +58,35 @@ models/index.ts
|
|
|
48
58
|
models/inline-response200.ts
|
|
49
59
|
models/inline-response503.ts
|
|
50
60
|
models/list-booking-entries-response-class.ts
|
|
61
|
+
models/list-commission-account-mappings-response-class.ts
|
|
62
|
+
models/list-commission-agreements-with-account-mappings-response-class.ts
|
|
63
|
+
models/list-commission-type-account-mappings-response-class.ts
|
|
51
64
|
models/list-financial-accounts-response-class.ts
|
|
52
65
|
models/list-financial-transactions-response-class.ts
|
|
53
66
|
models/list-number-range-response-class.ts
|
|
54
67
|
models/list-personal-accounts-response-class.ts
|
|
68
|
+
models/list-product-account-mappings-response-class.ts
|
|
69
|
+
models/list-products-with-account-mappings-response-class.ts
|
|
55
70
|
models/number-range-class.ts
|
|
71
|
+
models/opening-balance-item-dto.ts
|
|
56
72
|
models/personal-account-class.ts
|
|
73
|
+
models/post-financial-event-request-dto.ts
|
|
74
|
+
models/post-financial-event-response-class.ts
|
|
75
|
+
models/premium-item-account-mapping-class.ts
|
|
76
|
+
models/product-account-mapping-class.ts
|
|
77
|
+
models/product-account-mapping-detail-class.ts
|
|
78
|
+
models/product-version-account-mapping-detail-class.ts
|
|
79
|
+
models/product-version-with-account-mappings-class.ts
|
|
80
|
+
models/product-with-account-mappings-class.ts
|
|
81
|
+
models/put-premium-item-account-body-dto.ts
|
|
82
|
+
models/put-product-category-account-body-dto.ts
|
|
83
|
+
models/put-product-version-category-account-body-dto.ts
|
|
84
|
+
models/resolved-account-mapping-class.ts
|
|
85
|
+
models/resolved-commission-account-mapping-class.ts
|
|
86
|
+
models/update-commission-agreement-account-body-dto.ts
|
|
87
|
+
models/update-commission-type-account-body-dto.ts
|
|
88
|
+
models/update-financial-account-body-dto.ts
|
|
89
|
+
models/update-financial-account-response-class.ts
|
|
57
90
|
models/validate-accounting-config-request-dto.ts
|
|
58
91
|
models/validate-accounting-config-response-class.ts
|
|
59
92
|
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.41 --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.41
|
|
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 { GetActivationSnapshotResponseClass } 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 subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
231
|
+
* @summary Retrieve the get activation snapshot
|
|
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
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
237
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
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 subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
469
|
+
* @summary Retrieve the get activation snapshot
|
|
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 getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
475
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(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 subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
567
|
+
* @summary Retrieve the get activation snapshot
|
|
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
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
573
|
+
return localVarFp.getActivationSnapshot(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 getActivationSnapshot operation in AccountingConfigsApi.
|
|
682
|
+
* @export
|
|
683
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
684
|
+
*/
|
|
685
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
686
|
+
/**
|
|
687
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
688
|
+
* @type {string}
|
|
689
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
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 subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
807
|
+
* @summary Retrieve the get activation snapshot
|
|
808
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
* @memberof AccountingConfigsApi
|
|
812
|
+
*/
|
|
813
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
814
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(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
|
|
@@ -25,9 +25,17 @@ import { CreateBookingEntryRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateBookingEntryResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { CreateOrCorrectOpeningBalanceDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
28
32
|
import { GetBookingEntryResponseClass } from '../models';
|
|
29
33
|
// @ts-ignore
|
|
30
34
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { PostFinancialEventRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { PostFinancialEventResponseClass } from '../models';
|
|
31
39
|
// URLSearchParams not necessarily used
|
|
32
40
|
// @ts-ignore
|
|
33
41
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -85,6 +93,53 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
85
93
|
options: localVarRequestOptions,
|
|
86
94
|
};
|
|
87
95
|
},
|
|
96
|
+
/**
|
|
97
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
98
|
+
* @summary Update the create or correct opening balance
|
|
99
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
100
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
// verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
|
|
106
|
+
assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
|
|
107
|
+
const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
let baseAccessToken;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
baseAccessToken = configuration.accessToken;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
118
|
+
const localVarHeaderParameter = {} as any;
|
|
119
|
+
const localVarQueryParameter = {} as any;
|
|
120
|
+
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
|
+
|
|
125
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
88
143
|
/**
|
|
89
144
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
90
145
|
* @summary Retrieve the booking entry
|
|
@@ -208,6 +263,53 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
208
263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
264
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
210
265
|
|
|
266
|
+
return {
|
|
267
|
+
url: toPathString(localVarUrlObj),
|
|
268
|
+
options: localVarRequestOptions,
|
|
269
|
+
};
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
273
|
+
* @summary Create the booking entry from a source entity
|
|
274
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
275
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
280
|
+
// verify required parameter 'postFinancialEventRequestDto' is not null or undefined
|
|
281
|
+
assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
|
|
282
|
+
const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
|
|
283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
285
|
+
let baseOptions;
|
|
286
|
+
let baseAccessToken;
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
baseAccessToken = configuration.accessToken;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
293
|
+
const localVarHeaderParameter = {} as any;
|
|
294
|
+
const localVarQueryParameter = {} as any;
|
|
295
|
+
|
|
296
|
+
// authentication bearer required
|
|
297
|
+
// http bearer authentication required
|
|
298
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
|
+
|
|
300
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
301
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
307
|
+
|
|
308
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
309
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
311
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
|
|
312
|
+
|
|
211
313
|
return {
|
|
212
314
|
url: toPathString(localVarUrlObj),
|
|
213
315
|
options: localVarRequestOptions,
|
|
@@ -235,6 +337,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
235
337
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
|
|
236
338
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
237
339
|
},
|
|
340
|
+
/**
|
|
341
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
342
|
+
* @summary Update the create or correct opening balance
|
|
343
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
344
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
|
|
350
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
351
|
+
},
|
|
238
352
|
/**
|
|
239
353
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
240
354
|
* @summary Retrieve the booking entry
|
|
@@ -266,6 +380,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
266
380
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
267
381
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
382
|
},
|
|
383
|
+
/**
|
|
384
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
385
|
+
* @summary Create the booking entry from a source entity
|
|
386
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
387
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
*/
|
|
391
|
+
async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
|
|
392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
|
|
393
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
394
|
+
},
|
|
269
395
|
}
|
|
270
396
|
};
|
|
271
397
|
|
|
@@ -287,6 +413,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
287
413
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
|
|
288
414
|
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
289
415
|
},
|
|
416
|
+
/**
|
|
417
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
418
|
+
* @summary Update the create or correct opening balance
|
|
419
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
420
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
421
|
+
* @param {*} [options] Override http request option.
|
|
422
|
+
* @throws {RequiredError}
|
|
423
|
+
*/
|
|
424
|
+
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
|
|
425
|
+
return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
|
|
426
|
+
},
|
|
290
427
|
/**
|
|
291
428
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
292
429
|
* @summary Retrieve the booking entry
|
|
@@ -316,6 +453,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
316
453
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
|
|
317
454
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
318
455
|
},
|
|
456
|
+
/**
|
|
457
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
458
|
+
* @summary Create the booking entry from a source entity
|
|
459
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
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
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
|
|
465
|
+
return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
466
|
+
},
|
|
319
467
|
};
|
|
320
468
|
};
|
|
321
469
|
|
|
@@ -340,6 +488,27 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
340
488
|
readonly authorization?: string
|
|
341
489
|
}
|
|
342
490
|
|
|
491
|
+
/**
|
|
492
|
+
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
493
|
+
* @export
|
|
494
|
+
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
495
|
+
*/
|
|
496
|
+
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
500
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
501
|
+
*/
|
|
502
|
+
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
506
|
+
* @type {string}
|
|
507
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
508
|
+
*/
|
|
509
|
+
readonly authorization?: string
|
|
510
|
+
}
|
|
511
|
+
|
|
343
512
|
/**
|
|
344
513
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
345
514
|
* @export
|
|
@@ -431,6 +600,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
431
600
|
readonly filters?: string
|
|
432
601
|
}
|
|
433
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
605
|
+
* @export
|
|
606
|
+
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
607
|
+
*/
|
|
608
|
+
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
609
|
+
/**
|
|
610
|
+
*
|
|
611
|
+
* @type {PostFinancialEventRequestDto}
|
|
612
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
613
|
+
*/
|
|
614
|
+
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
618
|
+
* @type {string}
|
|
619
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
620
|
+
*/
|
|
621
|
+
readonly authorization?: string
|
|
622
|
+
}
|
|
623
|
+
|
|
434
624
|
/**
|
|
435
625
|
* BookingEntriesApi - object-oriented interface
|
|
436
626
|
* @export
|
|
@@ -450,6 +640,18 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
450
640
|
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
451
641
|
}
|
|
452
642
|
|
|
643
|
+
/**
|
|
644
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
645
|
+
* @summary Update the create or correct opening balance
|
|
646
|
+
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
* @memberof BookingEntriesApi
|
|
650
|
+
*/
|
|
651
|
+
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
652
|
+
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
653
|
+
}
|
|
654
|
+
|
|
453
655
|
/**
|
|
454
656
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
455
657
|
* @summary Retrieve the booking entry
|
|
@@ -473,4 +675,16 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
473
675
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
474
676
|
return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
475
677
|
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
681
|
+
* @summary Create the booking entry from a source entity
|
|
682
|
+
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
683
|
+
* @param {*} [options] Override http request option.
|
|
684
|
+
* @throws {RequiredError}
|
|
685
|
+
* @memberof BookingEntriesApi
|
|
686
|
+
*/
|
|
687
|
+
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
688
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
689
|
+
}
|
|
476
690
|
}
|