@emilgroup/accounting-sdk 1.34.1-beta.8 → 1.34.1-beta.81
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 -1
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +54 -38
- 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 +25 -25
- package/dist/api/accounting-configs-api.js +73 -49
- 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 +34 -0
- package/dist/models/booking-entry-class.js +10 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -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 -1
- package/dist/models/index.js +33 -1
- 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/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 +35 -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 -1
- 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/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/dist/models/get-subledger-settings-response-class.d.ts +0 -36
- package/models/get-subledger-settings-response-class.ts +0 -42
- /package/dist/models/{get-subledger-settings-response-class.js → commission-account-mapping-class.js} +0 -0
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,22 +48,47 @@ 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
|
|
45
55
|
models/get-number-range-response-class.ts
|
|
46
56
|
models/get-personal-account-response-class.ts
|
|
47
|
-
models/get-subledger-settings-response-class.ts
|
|
48
57
|
models/index.ts
|
|
49
58
|
models/inline-response200.ts
|
|
50
59
|
models/inline-response503.ts
|
|
51
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
|
|
52
64
|
models/list-financial-accounts-response-class.ts
|
|
53
65
|
models/list-financial-transactions-response-class.ts
|
|
54
66
|
models/list-number-range-response-class.ts
|
|
55
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
|
|
56
70
|
models/number-range-class.ts
|
|
71
|
+
models/opening-balance-item-dto.ts
|
|
57
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
|
|
58
92
|
models/validate-accounting-config-request-dto.ts
|
|
59
93
|
models/validate-accounting-config-response-class.ts
|
|
60
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.81 --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.81
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -29,7 +29,7 @@ import { ExportAccountingConfigResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { GetAccountingCategoriesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { GetActivationSnapshotResponseClass } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
@@ -69,8 +69,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
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);
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
|
|
@@ -117,8 +119,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
117
119
|
// http bearer authentication required
|
|
118
120
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
121
|
|
|
120
|
-
|
|
121
|
-
|
|
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);
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
|
|
@@ -165,8 +169,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
165
169
|
// http bearer authentication required
|
|
166
170
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
167
171
|
|
|
168
|
-
|
|
169
|
-
|
|
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);
|
|
170
176
|
}
|
|
171
177
|
|
|
172
178
|
|
|
@@ -206,8 +212,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
206
212
|
// http bearer authentication required
|
|
207
213
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
208
214
|
|
|
209
|
-
|
|
210
|
-
|
|
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);
|
|
211
219
|
}
|
|
212
220
|
|
|
213
221
|
|
|
@@ -222,14 +230,14 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
222
230
|
};
|
|
223
231
|
},
|
|
224
232
|
/**
|
|
225
|
-
* Returns the
|
|
226
|
-
* @summary Retrieve the get
|
|
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
|
|
227
235
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
228
236
|
* @param {*} [options] Override http request option.
|
|
229
237
|
* @throws {RequiredError}
|
|
230
238
|
*/
|
|
231
|
-
|
|
232
|
-
const localVarPath = `/accountingservice/v1/subledger/
|
|
239
|
+
getActivationSnapshot: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
240
|
+
const localVarPath = `/accountingservice/v1/subledger/activation-snapshot`;
|
|
233
241
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
242
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
235
243
|
let baseOptions;
|
|
@@ -247,8 +255,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
247
255
|
// http bearer authentication required
|
|
248
256
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
249
257
|
|
|
250
|
-
|
|
251
|
-
|
|
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);
|
|
252
262
|
}
|
|
253
263
|
|
|
254
264
|
|
|
@@ -288,8 +298,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
288
298
|
// http bearer authentication required
|
|
289
299
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
290
300
|
|
|
291
|
-
|
|
292
|
-
|
|
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);
|
|
293
305
|
}
|
|
294
306
|
|
|
295
307
|
|
|
@@ -332,8 +344,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
332
344
|
// http bearer authentication required
|
|
333
345
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
334
346
|
|
|
335
|
-
|
|
336
|
-
|
|
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);
|
|
337
351
|
}
|
|
338
352
|
|
|
339
353
|
|
|
@@ -380,8 +394,10 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
380
394
|
// http bearer authentication required
|
|
381
395
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
382
396
|
|
|
383
|
-
|
|
384
|
-
|
|
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);
|
|
385
401
|
}
|
|
386
402
|
|
|
387
403
|
|
|
@@ -459,14 +475,14 @@ export const AccountingConfigsApiFp = function(configuration?: Configuration) {
|
|
|
459
475
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
460
476
|
},
|
|
461
477
|
/**
|
|
462
|
-
* Returns the
|
|
463
|
-
* @summary Retrieve the get
|
|
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
|
|
464
480
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
481
|
* @param {*} [options] Override http request option.
|
|
466
482
|
* @throws {RequiredError}
|
|
467
483
|
*/
|
|
468
|
-
async
|
|
469
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
484
|
+
async getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>> {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getActivationSnapshot(authorization, options);
|
|
470
486
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
487
|
},
|
|
472
488
|
/**
|
|
@@ -557,14 +573,14 @@ export const AccountingConfigsApiFactory = function (configuration?: Configurati
|
|
|
557
573
|
return localVarFp.getAccountingCategories(authorization, options).then((request) => request(axios, basePath));
|
|
558
574
|
},
|
|
559
575
|
/**
|
|
560
|
-
* Returns the
|
|
561
|
-
* @summary Retrieve the get
|
|
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
|
|
562
578
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
563
579
|
* @param {*} [options] Override http request option.
|
|
564
580
|
* @throws {RequiredError}
|
|
565
581
|
*/
|
|
566
|
-
|
|
567
|
-
return localVarFp.
|
|
582
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass> {
|
|
583
|
+
return localVarFp.getActivationSnapshot(authorization, options).then((request) => request(axios, basePath));
|
|
568
584
|
},
|
|
569
585
|
/**
|
|
570
586
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -672,15 +688,15 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
672
688
|
}
|
|
673
689
|
|
|
674
690
|
/**
|
|
675
|
-
* Request parameters for
|
|
691
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
676
692
|
* @export
|
|
677
|
-
* @interface
|
|
693
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
678
694
|
*/
|
|
679
|
-
export interface
|
|
695
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
680
696
|
/**
|
|
681
697
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
682
698
|
* @type {string}
|
|
683
|
-
* @memberof
|
|
699
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
684
700
|
*/
|
|
685
701
|
readonly authorization?: string
|
|
686
702
|
}
|
|
@@ -797,15 +813,15 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
797
813
|
}
|
|
798
814
|
|
|
799
815
|
/**
|
|
800
|
-
* Returns the
|
|
801
|
-
* @summary Retrieve the get
|
|
802
|
-
* @param {
|
|
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.
|
|
803
819
|
* @param {*} [options] Override http request option.
|
|
804
820
|
* @throws {RequiredError}
|
|
805
821
|
* @memberof AccountingConfigsApi
|
|
806
822
|
*/
|
|
807
|
-
public
|
|
808
|
-
return AccountingConfigsApiFp(this.configuration).
|
|
823
|
+
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
824
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
809
825
|
}
|
|
810
826
|
|
|
811
827
|
/**
|