@emilgroup/accounting-sdk 1.34.1-beta.4 → 1.34.1-beta.40
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 +1191 -0
- package/api/financial-accounts-api.ts +132 -12
- package/api/product-account-mappings-api.ts +1470 -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 +1004 -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 +1224 -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@1.34.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk@1.34.1-beta.40 --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.40
|
|
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';
|
|
@@ -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 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\"
|
|
226
|
+
* @summary Retrieve the get activation snapshot
|
|
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
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
232
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
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 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\"
|
|
463
|
+
* @summary Retrieve the get activation snapshot
|
|
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 getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
469
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(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 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\"
|
|
561
|
+
* @summary Retrieve the get activation snapshot
|
|
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
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
567
|
+
return localVarFp.getActivationSnapshot(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 getActivationSnapshot operation in AccountingConfigsApi.
|
|
676
|
+
* @export
|
|
677
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
678
|
+
*/
|
|
679
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
680
|
+
/**
|
|
681
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
682
|
+
* @type {string}
|
|
683
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
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 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\"
|
|
801
|
+
* @summary Retrieve the get activation snapshot
|
|
802
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
803
|
+
* @param {*} [options] Override http request option.
|
|
804
|
+
* @throws {RequiredError}
|
|
805
|
+
* @memberof AccountingConfigsApi
|
|
806
|
+
*/
|
|
807
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
808
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(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
|
|
@@ -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
|
/**
|
|
32
40
|
* BookingEntriesApi - axios parameter creator
|
|
33
41
|
* @export
|
|
@@ -81,6 +89,53 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
81
89
|
options: localVarRequestOptions,
|
|
82
90
|
};
|
|
83
91
|
},
|
|
92
|
+
/**
|
|
93
|
+
* 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\"
|
|
94
|
+
* @summary Update the create or correct opening balance
|
|
95
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
96
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
// verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
|
|
102
|
+
assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
|
|
103
|
+
const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
|
|
104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
+
let baseOptions;
|
|
107
|
+
let baseAccessToken;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
baseAccessToken = configuration.accessToken;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
114
|
+
const localVarHeaderParameter = {} as any;
|
|
115
|
+
const localVarQueryParameter = {} as any;
|
|
116
|
+
|
|
117
|
+
// authentication bearer required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
+
|
|
121
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
+
|
|
129
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
84
139
|
/**
|
|
85
140
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
86
141
|
* @summary Retrieve the booking entry
|
|
@@ -204,6 +259,53 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
204
259
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
260
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
206
261
|
|
|
262
|
+
return {
|
|
263
|
+
url: toPathString(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* 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\"
|
|
269
|
+
* @summary Create the booking entry from a source entity
|
|
270
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
271
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
276
|
+
// verify required parameter 'postFinancialEventRequestDto' is not null or undefined
|
|
277
|
+
assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
|
|
278
|
+
const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
|
|
279
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
281
|
+
let baseOptions;
|
|
282
|
+
let baseAccessToken;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
baseAccessToken = configuration.accessToken;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
289
|
+
const localVarHeaderParameter = {} as any;
|
|
290
|
+
const localVarQueryParameter = {} as any;
|
|
291
|
+
|
|
292
|
+
// authentication bearer required
|
|
293
|
+
// http bearer authentication required
|
|
294
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
295
|
+
|
|
296
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
297
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
303
|
+
|
|
304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
307
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
|
|
308
|
+
|
|
207
309
|
return {
|
|
208
310
|
url: toPathString(localVarUrlObj),
|
|
209
311
|
options: localVarRequestOptions,
|
|
@@ -231,6 +333,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
231
333
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
|
|
232
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
233
335
|
},
|
|
336
|
+
/**
|
|
337
|
+
* 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\"
|
|
338
|
+
* @summary Update the create or correct opening balance
|
|
339
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
340
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
|
|
345
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
|
|
346
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
347
|
+
},
|
|
234
348
|
/**
|
|
235
349
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
236
350
|
* @summary Retrieve the booking entry
|
|
@@ -262,6 +376,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
262
376
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
263
377
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
264
378
|
},
|
|
379
|
+
/**
|
|
380
|
+
* 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\"
|
|
381
|
+
* @summary Create the booking entry from a source entity
|
|
382
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
383
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
|
|
388
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
|
|
389
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
|
+
},
|
|
265
391
|
}
|
|
266
392
|
};
|
|
267
393
|
|
|
@@ -283,6 +409,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
283
409
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
|
|
284
410
|
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
285
411
|
},
|
|
412
|
+
/**
|
|
413
|
+
* 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\"
|
|
414
|
+
* @summary Update the create or correct opening balance
|
|
415
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
416
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
417
|
+
* @param {*} [options] Override http request option.
|
|
418
|
+
* @throws {RequiredError}
|
|
419
|
+
*/
|
|
420
|
+
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
|
|
421
|
+
return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
|
|
422
|
+
},
|
|
286
423
|
/**
|
|
287
424
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
288
425
|
* @summary Retrieve the booking entry
|
|
@@ -312,6 +449,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
312
449
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
|
|
313
450
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
314
451
|
},
|
|
452
|
+
/**
|
|
453
|
+
* 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\"
|
|
454
|
+
* @summary Create the booking entry from a source entity
|
|
455
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
456
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
|
|
461
|
+
return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
462
|
+
},
|
|
315
463
|
};
|
|
316
464
|
};
|
|
317
465
|
|
|
@@ -336,6 +484,27 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
336
484
|
readonly authorization?: string
|
|
337
485
|
}
|
|
338
486
|
|
|
487
|
+
/**
|
|
488
|
+
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
489
|
+
* @export
|
|
490
|
+
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
491
|
+
*/
|
|
492
|
+
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
496
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
497
|
+
*/
|
|
498
|
+
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
|
+
* @type {string}
|
|
503
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
504
|
+
*/
|
|
505
|
+
readonly authorization?: string
|
|
506
|
+
}
|
|
507
|
+
|
|
339
508
|
/**
|
|
340
509
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
341
510
|
* @export
|
|
@@ -427,6 +596,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
427
596
|
readonly filters?: string
|
|
428
597
|
}
|
|
429
598
|
|
|
599
|
+
/**
|
|
600
|
+
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
601
|
+
* @export
|
|
602
|
+
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
603
|
+
*/
|
|
604
|
+
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {PostFinancialEventRequestDto}
|
|
608
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
609
|
+
*/
|
|
610
|
+
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
616
|
+
*/
|
|
617
|
+
readonly authorization?: string
|
|
618
|
+
}
|
|
619
|
+
|
|
430
620
|
/**
|
|
431
621
|
* BookingEntriesApi - object-oriented interface
|
|
432
622
|
* @export
|
|
@@ -446,6 +636,18 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
446
636
|
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
447
637
|
}
|
|
448
638
|
|
|
639
|
+
/**
|
|
640
|
+
* 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\"
|
|
641
|
+
* @summary Update the create or correct opening balance
|
|
642
|
+
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
* @memberof BookingEntriesApi
|
|
646
|
+
*/
|
|
647
|
+
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
648
|
+
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
649
|
+
}
|
|
650
|
+
|
|
449
651
|
/**
|
|
450
652
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
451
653
|
* @summary Retrieve the booking entry
|
|
@@ -469,4 +671,16 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
469
671
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
470
672
|
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));
|
|
471
673
|
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* 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\"
|
|
677
|
+
* @summary Create the booking entry from a source entity
|
|
678
|
+
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
679
|
+
* @param {*} [options] Override http request option.
|
|
680
|
+
* @throws {RequiredError}
|
|
681
|
+
* @memberof BookingEntriesApi
|
|
682
|
+
*/
|
|
683
|
+
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
684
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
685
|
+
}
|
|
472
686
|
}
|