@emilgroup/accounting-sdk 1.34.1-beta.1 → 1.34.1-beta.100
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 +37 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +158 -28
- package/api/booking-entries-api.ts +252 -13
- package/api/commission-account-mappings-api.ts +1231 -0
- package/api/financial-accounts-api.ts +169 -24
- package/api/financial-transactions-api.ts +16 -6
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +32 -12
- package/api/personal-accounts-api.ts +32 -12
- package/api/product-account-mappings-api.ts +1751 -0
- package/api.ts +4 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +206 -63
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +241 -26
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1051 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +168 -40
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +22 -14
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +52 -30
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +52 -30
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1493 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- 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-class.d.ts +7 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/accounting-config-data-dto.d.ts +7 -0
- package/dist/models/booking-entry-class.d.ts +35 -0
- package/dist/models/booking-entry-class.js +11 -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 +22 -0
- package/dist/models/create-booking-entry-request-dto.js +10 -0
- package/dist/models/create-financial-account-request-dto.d.ts +14 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- 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-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +7 -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 +35 -0
- package/dist/models/index.js +35 -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/personal-account-class.d.ts +6 -0
- package/dist/models/personal-account-range-class.d.ts +42 -0
- package/dist/models/personal-account-range-class.js +21 -0
- package/dist/models/personal-account-range-dto.d.ts +42 -0
- package/dist/models/personal-account-range-dto.js +21 -0
- package/dist/models/post-financial-event-request-dto.d.ts +46 -0
- package/dist/models/post-financial-event-request-dto.js +25 -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 +56 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-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-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-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/account-mapping-class.ts +3 -1
- package/models/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-class.ts +7 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
- package/models/accounting-config-data-dto.ts +7 -0
- package/models/booking-entry-class.ts +36 -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 +25 -0
- package/models/create-financial-account-request-dto.ts +15 -1
- 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-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +7 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +35 -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/personal-account-class.ts +6 -0
- package/models/personal-account-range-class.ts +51 -0
- package/models/personal-account-range-dto.ts +51 -0
- package/models/post-financial-event-request-dto.ts +55 -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 +62 -0
- package/models/product-risk-carrier-class.ts +48 -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-risk-carrier-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 +2 -2
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,39 @@ 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/personal-account-range-class.ts
|
|
74
|
+
models/personal-account-range-dto.ts
|
|
75
|
+
models/post-financial-event-request-dto.ts
|
|
76
|
+
models/post-financial-event-response-class.ts
|
|
77
|
+
models/premium-item-account-mapping-class.ts
|
|
78
|
+
models/product-account-mapping-class.ts
|
|
79
|
+
models/product-account-mapping-detail-class.ts
|
|
80
|
+
models/product-risk-carrier-class.ts
|
|
81
|
+
models/product-version-account-mapping-detail-class.ts
|
|
82
|
+
models/product-version-with-account-mappings-class.ts
|
|
83
|
+
models/product-with-account-mappings-class.ts
|
|
84
|
+
models/put-premium-item-account-body-dto.ts
|
|
85
|
+
models/put-product-category-account-body-dto.ts
|
|
86
|
+
models/put-product-risk-carrier-body-dto.ts
|
|
87
|
+
models/put-product-version-category-account-body-dto.ts
|
|
88
|
+
models/resolved-account-mapping-class.ts
|
|
89
|
+
models/resolved-commission-account-mapping-class.ts
|
|
90
|
+
models/update-commission-agreement-account-body-dto.ts
|
|
91
|
+
models/update-commission-type-account-body-dto.ts
|
|
92
|
+
models/update-financial-account-body-dto.ts
|
|
93
|
+
models/update-financial-account-response-class.ts
|
|
57
94
|
models/validate-accounting-config-request-dto.ts
|
|
58
95
|
models/validate-accounting-config-response-class.ts
|
|
59
96
|
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.100 --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.100
|
|
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';
|
|
@@ -49,7 +51,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
49
51
|
createAndEnableSubledger: async (createAndEnableSubledgerRequestDto: CreateAndEnableSubledgerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
52
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
51
53
|
assertParamExists('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto)
|
|
52
|
-
const localVarPath = `/accountingservice/v1/
|
|
54
|
+
const localVarPath = `/accountingservice/v1/subledger`;
|
|
53
55
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
56
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
57
|
let baseOptions;
|
|
@@ -67,8 +69,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
67
69
|
// http bearer authentication required
|
|
68
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
71
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
73
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
74
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
75
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
77
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
79
|
}
|
|
73
80
|
|
|
74
81
|
|
|
@@ -96,7 +103,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
96
103
|
createAndEnableSubledgerFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
104
|
// verify required parameter 'file' is not null or undefined
|
|
98
105
|
assertParamExists('createAndEnableSubledgerFromFile', 'file', file)
|
|
99
|
-
const localVarPath = `/accountingservice/v1/
|
|
106
|
+
const localVarPath = `/accountingservice/v1/subledger/upload`;
|
|
100
107
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
101
108
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
102
109
|
let baseOptions;
|
|
@@ -115,8 +122,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
115
122
|
// http bearer authentication required
|
|
116
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
124
|
|
|
118
|
-
|
|
119
|
-
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
128
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
130
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
132
|
}
|
|
121
133
|
|
|
122
134
|
|
|
@@ -145,7 +157,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
145
157
|
* @throws {RequiredError}
|
|
146
158
|
*/
|
|
147
159
|
exportAccountingConfig: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
-
const localVarPath = `/accountingservice/v1/
|
|
160
|
+
const localVarPath = `/accountingservice/v1/subledger/config/export`;
|
|
149
161
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
162
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
163
|
let baseOptions;
|
|
@@ -163,8 +175,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
163
175
|
// http bearer authentication required
|
|
164
176
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
177
|
|
|
166
|
-
|
|
167
|
-
|
|
178
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
179
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
180
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
181
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
183
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
184
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
168
185
|
}
|
|
169
186
|
|
|
170
187
|
|
|
@@ -186,7 +203,53 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
186
203
|
* @throws {RequiredError}
|
|
187
204
|
*/
|
|
188
205
|
getAccountingCategories: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
189
|
-
const localVarPath = `/accountingservice/v1/
|
|
206
|
+
const localVarPath = `/accountingservice/v1/subledger/categories`;
|
|
207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
|
+
let baseOptions;
|
|
210
|
+
let baseAccessToken;
|
|
211
|
+
if (configuration) {
|
|
212
|
+
baseOptions = configuration.baseOptions;
|
|
213
|
+
baseAccessToken = configuration.accessToken;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
217
|
+
const localVarHeaderParameter = {} as any;
|
|
218
|
+
const localVarQueryParameter = {} as any;
|
|
219
|
+
|
|
220
|
+
// authentication bearer required
|
|
221
|
+
// http bearer authentication required
|
|
222
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
223
|
+
|
|
224
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
225
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
226
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
227
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
228
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
229
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
230
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
238
|
+
|
|
239
|
+
return {
|
|
240
|
+
url: toPathString(localVarUrlObj),
|
|
241
|
+
options: localVarRequestOptions,
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
/**
|
|
245
|
+
* 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\"
|
|
246
|
+
* @summary Retrieve the get activation snapshot
|
|
247
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
252
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
190
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
191
254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
192
255
|
let baseOptions;
|
|
@@ -204,8 +267,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
204
267
|
// http bearer authentication required
|
|
205
268
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
206
269
|
|
|
207
|
-
|
|
208
|
-
|
|
270
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
271
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
272
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
273
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
274
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
275
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
276
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
209
277
|
}
|
|
210
278
|
|
|
211
279
|
|
|
@@ -227,7 +295,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
227
295
|
* @throws {RequiredError}
|
|
228
296
|
*/
|
|
229
297
|
resetSubledger: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
230
|
-
const localVarPath = `/accountingservice/v1/
|
|
298
|
+
const localVarPath = `/accountingservice/v1/subledger/reset`;
|
|
231
299
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
232
300
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
233
301
|
let baseOptions;
|
|
@@ -245,8 +313,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
245
313
|
// http bearer authentication required
|
|
246
314
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
247
315
|
|
|
248
|
-
|
|
249
|
-
|
|
316
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
317
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
318
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
319
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
320
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
321
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
322
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
323
|
}
|
|
251
324
|
|
|
252
325
|
|
|
@@ -271,7 +344,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
271
344
|
validateAccountingConfig: async (validateAccountingConfigRequestDto: ValidateAccountingConfigRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
272
345
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
273
346
|
assertParamExists('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto)
|
|
274
|
-
const localVarPath = `/accountingservice/v1/
|
|
347
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate`;
|
|
275
348
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
276
349
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
277
350
|
let baseOptions;
|
|
@@ -289,8 +362,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
289
362
|
// http bearer authentication required
|
|
290
363
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
291
364
|
|
|
292
|
-
|
|
293
|
-
|
|
365
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
366
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
367
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
368
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
369
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
370
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
371
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
372
|
}
|
|
295
373
|
|
|
296
374
|
|
|
@@ -318,7 +396,7 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
318
396
|
validateAccountingConfigFromFile: async (file: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
319
397
|
// verify required parameter 'file' is not null or undefined
|
|
320
398
|
assertParamExists('validateAccountingConfigFromFile', 'file', file)
|
|
321
|
-
const localVarPath = `/accountingservice/v1/
|
|
399
|
+
const localVarPath = `/accountingservice/v1/subledger/config/validate/upload`;
|
|
322
400
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
323
401
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
324
402
|
let baseOptions;
|
|
@@ -337,8 +415,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
337
415
|
// http bearer authentication required
|
|
338
416
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
417
|
|
|
340
|
-
|
|
341
|
-
|
|
418
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
419
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
420
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
421
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
422
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
423
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
424
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
342
425
|
}
|
|
343
426
|
|
|
344
427
|
|
|
@@ -415,6 +498,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
415
498
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
|
|
416
499
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
500
|
},
|
|
501
|
+
/**
|
|
502
|
+
* 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\"
|
|
503
|
+
* @summary Retrieve the get activation snapshot
|
|
504
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
505
|
+
* @param {*} [options] Override http request option.
|
|
506
|
+
* @throws {RequiredError}
|
|
507
|
+
*/
|
|
508
|
+
async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
|
|
510
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
511
|
+
},
|
|
418
512
|
/**
|
|
419
513
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
420
514
|
* @summary Delete the reset subledger
|
|
@@ -502,6 +596,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
|
|
|
502
596
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
|
|
503
597
|
return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
|
|
504
598
|
},
|
|
599
|
+
/**
|
|
600
|
+
* 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\"
|
|
601
|
+
* @summary Retrieve the get activation snapshot
|
|
602
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
603
|
+
* @param {*} [options] Override http request option.
|
|
604
|
+
* @throws {RequiredError}
|
|
605
|
+
*/
|
|
606
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
607
|
+
return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
|
|
608
|
+
},
|
|
505
609
|
/**
|
|
506
610
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
507
611
|
* @summary Delete the reset subledger
|
|
@@ -607,6 +711,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
607
711
|
readonly authorization?: string
|
|
608
712
|
}
|
|
609
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
716
|
+
* @export
|
|
717
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
718
|
+
*/
|
|
719
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
720
|
+
/**
|
|
721
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
722
|
+
* @type {string}
|
|
723
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
724
|
+
*/
|
|
725
|
+
readonly authorization?: string
|
|
726
|
+
}
|
|
727
|
+
|
|
610
728
|
/**
|
|
611
729
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
612
730
|
* @export
|
|
@@ -679,7 +797,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
679
797
|
* @memberof AccountingConfigsApi
|
|
680
798
|
*/
|
|
681
799
|
public createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig) {
|
|
682
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
800
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
683
801
|
}
|
|
684
802
|
|
|
685
803
|
/**
|
|
@@ -691,7 +809,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
691
809
|
* @memberof AccountingConfigsApi
|
|
692
810
|
*/
|
|
693
811
|
public createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig) {
|
|
694
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
812
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
695
813
|
}
|
|
696
814
|
|
|
697
815
|
/**
|
|
@@ -703,7 +821,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
703
821
|
* @memberof AccountingConfigsApi
|
|
704
822
|
*/
|
|
705
823
|
public exportAccountingConfig(requestParameters: AccountingConfigsApiExportAccountingConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
706
|
-
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
824
|
+
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
707
825
|
}
|
|
708
826
|
|
|
709
827
|
/**
|
|
@@ -715,7 +833,19 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
715
833
|
* @memberof AccountingConfigsApi
|
|
716
834
|
*/
|
|
717
835
|
public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
718
|
-
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
836
|
+
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* 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\"
|
|
841
|
+
* @summary Retrieve the get activation snapshot
|
|
842
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
* @memberof AccountingConfigsApi
|
|
846
|
+
*/
|
|
847
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
848
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
719
849
|
}
|
|
720
850
|
|
|
721
851
|
/**
|
|
@@ -727,7 +857,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
727
857
|
* @memberof AccountingConfigsApi
|
|
728
858
|
*/
|
|
729
859
|
public resetSubledger(requestParameters: AccountingConfigsApiResetSubledgerRequest = {}, options?: AxiosRequestConfig) {
|
|
730
|
-
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
860
|
+
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
731
861
|
}
|
|
732
862
|
|
|
733
863
|
/**
|
|
@@ -739,7 +869,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
739
869
|
* @memberof AccountingConfigsApi
|
|
740
870
|
*/
|
|
741
871
|
public validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig) {
|
|
742
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
872
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
743
873
|
}
|
|
744
874
|
|
|
745
875
|
/**
|
|
@@ -751,6 +881,6 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
751
881
|
* @memberof AccountingConfigsApi
|
|
752
882
|
*/
|
|
753
883
|
public validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
|
|
754
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
884
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
755
885
|
}
|
|
756
886
|
}
|