@emilgroup/accounting-sdk 1.34.1-beta.7 → 1.34.1-beta.71
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 +35 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +120 -14
- package/api/booking-entries-api.ts +234 -10
- package/api/commission-account-mappings-api.ts +1207 -0
- package/api/financial-accounts-api.ts +150 -20
- package/api/financial-transactions-api.ts +8 -4
- package/api/number-ranges-api.ts +16 -8
- package/api/personal-accounts-api.ts +16 -8
- package/api/product-account-mappings-api.ts +1715 -0
- package/api.ts +4 -0
- package/base.ts +174 -41
- 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 +139 -28
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +211 -14
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1022 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +134 -24
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +22 -14
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +22 -14
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1447 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- 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-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +21 -0
- package/dist/models/booking-entry-class.js +9 -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 +21 -0
- package/dist/models/create-booking-entry-request-dto.js +9 -0
- package/dist/models/create-financial-account-request-dto.d.ts +8 -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 +24 -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 +33 -0
- package/dist/models/index.js +33 -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 +45 -0
- package/dist/models/post-financial-event-request-dto.js +24 -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-dto-default-account-mappings.ts +9 -1
- package/models/booking-entry-class.ts +22 -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 +24 -0
- package/models/create-financial-account-request-dto.ts +9 -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 +25 -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 +33 -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 +54 -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,37 @@ 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-risk-carrier-class.ts
|
|
79
|
+
models/product-version-account-mapping-detail-class.ts
|
|
80
|
+
models/product-version-with-account-mappings-class.ts
|
|
81
|
+
models/product-with-account-mappings-class.ts
|
|
82
|
+
models/put-premium-item-account-body-dto.ts
|
|
83
|
+
models/put-product-category-account-body-dto.ts
|
|
84
|
+
models/put-product-risk-carrier-body-dto.ts
|
|
85
|
+
models/put-product-version-category-account-body-dto.ts
|
|
86
|
+
models/resolved-account-mapping-class.ts
|
|
87
|
+
models/resolved-commission-account-mapping-class.ts
|
|
88
|
+
models/update-commission-agreement-account-body-dto.ts
|
|
89
|
+
models/update-commission-type-account-body-dto.ts
|
|
90
|
+
models/update-financial-account-body-dto.ts
|
|
91
|
+
models/update-financial-account-response-class.ts
|
|
57
92
|
models/validate-accounting-config-request-dto.ts
|
|
58
93
|
models/validate-accounting-config-response-class.ts
|
|
59
94
|
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.71 --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.71
|
|
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';
|
|
@@ -67,8 +69,10 @@ 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; an empty value is never sent.
|
|
73
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
if (authorizationValue) {
|
|
75
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
|
|
@@ -115,8 +119,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
115
119
|
// http bearer authentication required
|
|
116
120
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
121
|
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
123
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
124
|
+
if (authorizationValue) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
|
|
@@ -163,8 +169,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
163
169
|
// http bearer authentication required
|
|
164
170
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
171
|
|
|
166
|
-
|
|
167
|
-
|
|
172
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
173
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
174
|
+
if (authorizationValue) {
|
|
175
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
168
176
|
}
|
|
169
177
|
|
|
170
178
|
|
|
@@ -204,8 +212,53 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
204
212
|
// http bearer authentication required
|
|
205
213
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
206
214
|
|
|
207
|
-
|
|
208
|
-
|
|
215
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
216
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
217
|
+
if (authorizationValue) {
|
|
218
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
226
|
+
|
|
227
|
+
return {
|
|
228
|
+
url: toPathString(localVarUrlObj),
|
|
229
|
+
options: localVarRequestOptions,
|
|
230
|
+
};
|
|
231
|
+
},
|
|
232
|
+
/**
|
|
233
|
+
* 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\"
|
|
234
|
+
* @summary Retrieve the get activation snapshot
|
|
235
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
240
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
|
+
let baseOptions;
|
|
244
|
+
let baseAccessToken;
|
|
245
|
+
if (configuration) {
|
|
246
|
+
baseOptions = configuration.baseOptions;
|
|
247
|
+
baseAccessToken = configuration.accessToken;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
251
|
+
const localVarHeaderParameter = {} as any;
|
|
252
|
+
const localVarQueryParameter = {} as any;
|
|
253
|
+
|
|
254
|
+
// authentication bearer required
|
|
255
|
+
// http bearer authentication required
|
|
256
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
257
|
+
|
|
258
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
259
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
260
|
+
if (authorizationValue) {
|
|
261
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
209
262
|
}
|
|
210
263
|
|
|
211
264
|
|
|
@@ -245,8 +298,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
245
298
|
// http bearer authentication required
|
|
246
299
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
247
300
|
|
|
248
|
-
|
|
249
|
-
|
|
301
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
302
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
303
|
+
if (authorizationValue) {
|
|
304
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
305
|
}
|
|
251
306
|
|
|
252
307
|
|
|
@@ -289,8 +344,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
289
344
|
// http bearer authentication required
|
|
290
345
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
291
346
|
|
|
292
|
-
|
|
293
|
-
|
|
347
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
348
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
349
|
+
if (authorizationValue) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
351
|
}
|
|
295
352
|
|
|
296
353
|
|
|
@@ -337,8 +394,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
337
394
|
// http bearer authentication required
|
|
338
395
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
396
|
|
|
340
|
-
|
|
341
|
-
|
|
397
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
398
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
399
|
+
if (authorizationValue) {
|
|
400
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
342
401
|
}
|
|
343
402
|
|
|
344
403
|
|
|
@@ -415,6 +474,17 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
415
474
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountingCategories(authorization, options);
|
|
416
475
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
476
|
},
|
|
477
|
+
/**
|
|
478
|
+
* 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\"
|
|
479
|
+
* @summary Retrieve the get activation snapshot
|
|
480
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
|
|
486
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
487
|
+
},
|
|
418
488
|
/**
|
|
419
489
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
420
490
|
* @summary Delete the reset subledger
|
|
@@ -502,6 +572,16 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
|
|
|
502
572
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass> {
|
|
503
573
|
return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
|
|
504
574
|
},
|
|
575
|
+
/**
|
|
576
|
+
* 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\"
|
|
577
|
+
* @summary Retrieve the get activation snapshot
|
|
578
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
579
|
+
* @param {*} [options] Override http request option.
|
|
580
|
+
* @throws {RequiredError}
|
|
581
|
+
*/
|
|
582
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
583
|
+
return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
|
|
584
|
+
},
|
|
505
585
|
/**
|
|
506
586
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
507
587
|
* @summary Delete the reset subledger
|
|
@@ -607,6 +687,20 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
607
687
|
readonly authorization?: string
|
|
608
688
|
}
|
|
609
689
|
|
|
690
|
+
/**
|
|
691
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
692
|
+
* @export
|
|
693
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
694
|
+
*/
|
|
695
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
696
|
+
/**
|
|
697
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
698
|
+
* @type {string}
|
|
699
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
700
|
+
*/
|
|
701
|
+
readonly authorization?: string
|
|
702
|
+
}
|
|
703
|
+
|
|
610
704
|
/**
|
|
611
705
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
612
706
|
* @export
|
|
@@ -718,6 +812,18 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
718
812
|
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
719
813
|
}
|
|
720
814
|
|
|
815
|
+
/**
|
|
816
|
+
* 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\"
|
|
817
|
+
* @summary Retrieve the get activation snapshot
|
|
818
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
* @memberof AccountingConfigsApi
|
|
822
|
+
*/
|
|
823
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
824
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
825
|
+
}
|
|
826
|
+
|
|
721
827
|
/**
|
|
722
828
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
723
829
|
* @summary Delete the reset subledger
|