@emilgroup/accounting-sdk-node 1.32.1-beta.3 → 1.32.1-beta.30
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 +30 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +97 -7
- package/api/booking-entries-api.ts +107 -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 +94 -7
- package/dist/api/booking-entries-api.d.ts +57 -0
- package/dist/api/booking-entries-api.js +93 -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/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/financial-account-class.d.ts +30 -1
- package/dist/models/financial-account-class.js +5 -1
- 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 +28 -0
- package/dist/models/index.js +28 -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/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/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/financial-account-class.ts +31 -1
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +28 -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/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
|
|
@@ -39,6 +46,7 @@ models/financial-account-class.ts
|
|
|
39
46
|
models/financial-transaction-class.ts
|
|
40
47
|
models/financial-transaction-data-dto.ts
|
|
41
48
|
models/get-accounting-categories-response-class.ts
|
|
49
|
+
models/get-activation-snapshot-response-class.ts
|
|
42
50
|
models/get-booking-entry-response-class.ts
|
|
43
51
|
models/get-financial-account-response-class.ts
|
|
44
52
|
models/get-financial-transaction-response-class.ts
|
|
@@ -48,12 +56,34 @@ models/index.ts
|
|
|
48
56
|
models/inline-response200.ts
|
|
49
57
|
models/inline-response503.ts
|
|
50
58
|
models/list-booking-entries-response-class.ts
|
|
59
|
+
models/list-commission-account-mappings-response-class.ts
|
|
60
|
+
models/list-commission-agreements-with-account-mappings-response-class.ts
|
|
61
|
+
models/list-commission-type-account-mappings-response-class.ts
|
|
51
62
|
models/list-financial-accounts-response-class.ts
|
|
52
63
|
models/list-financial-transactions-response-class.ts
|
|
53
64
|
models/list-number-range-response-class.ts
|
|
54
65
|
models/list-personal-accounts-response-class.ts
|
|
66
|
+
models/list-product-account-mappings-response-class.ts
|
|
67
|
+
models/list-products-with-account-mappings-response-class.ts
|
|
55
68
|
models/number-range-class.ts
|
|
56
69
|
models/personal-account-class.ts
|
|
70
|
+
models/post-financial-event-request-dto.ts
|
|
71
|
+
models/post-financial-event-response-class.ts
|
|
72
|
+
models/premium-item-account-mapping-class.ts
|
|
73
|
+
models/product-account-mapping-class.ts
|
|
74
|
+
models/product-account-mapping-detail-class.ts
|
|
75
|
+
models/product-version-account-mapping-detail-class.ts
|
|
76
|
+
models/product-version-with-account-mappings-class.ts
|
|
77
|
+
models/product-with-account-mappings-class.ts
|
|
78
|
+
models/put-premium-item-account-body-dto.ts
|
|
79
|
+
models/put-product-category-account-body-dto.ts
|
|
80
|
+
models/put-product-version-category-account-body-dto.ts
|
|
81
|
+
models/resolved-account-mapping-class.ts
|
|
82
|
+
models/resolved-commission-account-mapping-class.ts
|
|
83
|
+
models/update-commission-agreement-account-body-dto.ts
|
|
84
|
+
models/update-commission-type-account-body-dto.ts
|
|
85
|
+
models/update-financial-account-body-dto.ts
|
|
86
|
+
models/update-financial-account-response-class.ts
|
|
57
87
|
models/validate-accounting-config-request-dto.ts
|
|
58
88
|
models/validate-accounting-config-response-class.ts
|
|
59
89
|
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.30 --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.30
|
|
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';
|
|
@@ -53,7 +55,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
53
55
|
createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54
56
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
55
57
|
assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
|
|
56
|
-
const localVarPath = `/accountingservice/v1/
|
|
58
|
+
const localVarPath = `/accountingservice/v1/subledger`;
|
|
57
59
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
60
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
61
|
let baseOptions;
|
|
@@ -100,7 +102,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
100
102
|
createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
103
|
// verify required parameter 'file' is not null or undefined
|
|
102
104
|
assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
|
|
103
|
-
const localVarPath = `/accountingservice/v1/
|
|
105
|
+
const localVarPath = `/accountingservice/v1/subledger/upload`;
|
|
104
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
108
|
let baseOptions;
|
|
@@ -150,7 +152,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
150
152
|
* @throws {RequiredError}
|
|
151
153
|
*/
|
|
152
154
|
exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
|
-
const localVarPath = `/accountingservice/v1/
|
|
155
|
+
const localVarPath = `/accountingservice/v1/subledger/config/export`;
|
|
154
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
155
157
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
156
158
|
let baseOptions;
|
|
@@ -191,7 +193,48 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
191
193
|
* @throws {RequiredError}
|
|
192
194
|
*/
|
|
193
195
|
getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
|
-
const localVarPath = `/accountingservice/v1/
|
|
196
|
+
const localVarPath = `/accountingservice/v1/subledger/categories`;
|
|
197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
199
|
+
let baseOptions;
|
|
200
|
+
let baseAccessToken;
|
|
201
|
+
if (configuration) {
|
|
202
|
+
baseOptions = configuration.baseOptions;
|
|
203
|
+
baseAccessToken = configuration.accessToken;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
207
|
+
const localVarHeaderParameter = {} as any;
|
|
208
|
+
const localVarQueryParameter = {} as any;
|
|
209
|
+
|
|
210
|
+
// authentication bearer required
|
|
211
|
+
// http bearer authentication required
|
|
212
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
|
+
|
|
214
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
215
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
221
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
223
|
+
|
|
224
|
+
return {
|
|
225
|
+
url: toPathString(localVarUrlObj),
|
|
226
|
+
options: localVarRequestOptions,
|
|
227
|
+
};
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* Returns the 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`;
|
|
195
238
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
239
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
240
|
let baseOptions;
|
|
@@ -232,7 +275,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
232
275
|
* @throws {RequiredError}
|
|
233
276
|
*/
|
|
234
277
|
resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
235
|
-
const localVarPath = `/accountingservice/v1/
|
|
278
|
+
const localVarPath = `/accountingservice/v1/subledger/reset`;
|
|
236
279
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
281
|
let baseOptions;
|
|
@@ -276,7 +319,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
276
319
|
validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
277
320
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
278
321
|
assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
|
|
279
|
-
const localVarPath = `/accountingservice/v1/
|
|
322
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate`;
|
|
280
323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
325
|
let baseOptions;
|
|
@@ -323,7 +366,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
323
366
|
validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
324
367
|
// verify required parameter 'file' is not null or undefined
|
|
325
368
|
assertParamExists('validateAccountingConfigFromFile', 'file', file)
|
|
326
|
-
const localVarPath = `/accountingservice/v1/
|
|
369
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
|
|
327
370
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
328
371
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
329
372
|
let baseOptions;
|
|
@@ -421,6 +464,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
421
464
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
|
|
422
465
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
423
466
|
},
|
|
467
|
+
/**
|
|
468
|
+
* Returns the 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
|
|
@@ -28,6 +28,10 @@ import { CreateBookingEntryResponseClass } from '../models';
|
|
|
28
28
|
import { GetBookingEntryResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { PostFinancialEventRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { PostFinancialEventResponseClass } from '../models';
|
|
31
35
|
// URLSearchParams not necessarily used
|
|
32
36
|
// @ts-ignore
|
|
33
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -208,6 +212,53 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
208
212
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
213
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
210
214
|
|
|
215
|
+
return {
|
|
216
|
+
url: toPathString(localVarUrlObj),
|
|
217
|
+
options: localVarRequestOptions,
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
/**
|
|
221
|
+
* 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\"
|
|
222
|
+
* @summary Create the booking entry from a source entity
|
|
223
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
224
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
*/
|
|
228
|
+
postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
229
|
+
// verify required parameter 'postFinancialEventRequestDto' is not null or undefined
|
|
230
|
+
assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
|
|
231
|
+
const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
|
|
232
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
233
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
234
|
+
let baseOptions;
|
|
235
|
+
let baseAccessToken;
|
|
236
|
+
if (configuration) {
|
|
237
|
+
baseOptions = configuration.baseOptions;
|
|
238
|
+
baseAccessToken = configuration.accessToken;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
242
|
+
const localVarHeaderParameter = {} as any;
|
|
243
|
+
const localVarQueryParameter = {} as any;
|
|
244
|
+
|
|
245
|
+
// authentication bearer required
|
|
246
|
+
// http bearer authentication required
|
|
247
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
248
|
+
|
|
249
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
250
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
256
|
+
|
|
257
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
259
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
260
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
|
|
261
|
+
|
|
211
262
|
return {
|
|
212
263
|
url: toPathString(localVarUrlObj),
|
|
213
264
|
options: localVarRequestOptions,
|
|
@@ -266,6 +317,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
266
317
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
267
318
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
319
|
},
|
|
320
|
+
/**
|
|
321
|
+
* 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\"
|
|
322
|
+
* @summary Create the booking entry from a source entity
|
|
323
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
324
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
|
|
330
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
331
|
+
},
|
|
269
332
|
}
|
|
270
333
|
};
|
|
271
334
|
|
|
@@ -316,6 +379,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
316
379
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
|
|
317
380
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
318
381
|
},
|
|
382
|
+
/**
|
|
383
|
+
* 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\"
|
|
384
|
+
* @summary Create the booking entry from a source entity
|
|
385
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
386
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
|
|
391
|
+
return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
392
|
+
},
|
|
319
393
|
};
|
|
320
394
|
};
|
|
321
395
|
|
|
@@ -431,6 +505,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
431
505
|
readonly filters?: string
|
|
432
506
|
}
|
|
433
507
|
|
|
508
|
+
/**
|
|
509
|
+
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
510
|
+
* @export
|
|
511
|
+
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
512
|
+
*/
|
|
513
|
+
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
514
|
+
/**
|
|
515
|
+
*
|
|
516
|
+
* @type {PostFinancialEventRequestDto}
|
|
517
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
518
|
+
*/
|
|
519
|
+
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
|
+
* @type {string}
|
|
524
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
525
|
+
*/
|
|
526
|
+
readonly authorization?: string
|
|
527
|
+
}
|
|
528
|
+
|
|
434
529
|
/**
|
|
435
530
|
* BookingEntriesApi - object-oriented interface
|
|
436
531
|
* @export
|
|
@@ -473,4 +568,16 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
473
568
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
474
569
|
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
570
|
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* 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\"
|
|
574
|
+
* @summary Create the booking entry from a source entity
|
|
575
|
+
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof BookingEntriesApi
|
|
579
|
+
*/
|
|
580
|
+
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
581
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
582
|
+
}
|
|
476
583
|
}
|