@emilgroup/accounting-sdk-node 1.32.1-beta.6 → 1.32.1-beta.62
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 +230 -6
- package/api/commission-account-mappings-api.ts +1211 -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 +1719 -0
- package/api.ts +4 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +139 -28
- package/dist/api/booking-entries-api.d.ts +114 -0
- package/dist/api/booking-entries-api.js +207 -10
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1026 -0
- package/dist/api/financial-accounts-api.d.ts +78 -12
- package/dist/api/financial-accounts-api.js +134 -24
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/number-ranges-api.js +22 -14
- 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 +1451 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.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 +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 +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 +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 +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 +1 -1
package/api.ts
CHANGED
|
@@ -26,18 +26,22 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { AccountingConfigsApi } from './api';
|
|
28
28
|
import { BookingEntriesApi } from './api';
|
|
29
|
+
import { CommissionAccountMappingsApi } from './api';
|
|
29
30
|
import { FinancialAccountsApi } from './api';
|
|
30
31
|
import { FinancialTransactionsApi } from './api';
|
|
31
32
|
import { HealthApi } from './api';
|
|
32
33
|
import { NumberRangesApi } from './api';
|
|
33
34
|
import { PersonalAccountsApi } from './api';
|
|
35
|
+
import { ProductAccountMappingsApi } from './api';
|
|
34
36
|
|
|
35
37
|
|
|
36
38
|
export * from './api/accounting-configs-api';
|
|
37
39
|
export * from './api/booking-entries-api';
|
|
40
|
+
export * from './api/commission-account-mappings-api';
|
|
38
41
|
export * from './api/financial-accounts-api';
|
|
39
42
|
export * from './api/financial-transactions-api';
|
|
40
43
|
export * from './api/health-api';
|
|
41
44
|
export * from './api/number-ranges-api';
|
|
42
45
|
export * from './api/personal-accounts-api';
|
|
46
|
+
export * from './api/product-account-mappings-api';
|
|
43
47
|
|
|
@@ -16,6 +16,7 @@ import { CreateAndEnableSubledgerRequestDto } from '../models';
|
|
|
16
16
|
import { CreateAndEnableSubledgerResponseClass } from '../models';
|
|
17
17
|
import { ExportAccountingConfigResponseClass } from '../models';
|
|
18
18
|
import { GetAccountingCategoriesResponseClass } from '../models';
|
|
19
|
+
import { GetActivationSnapshotResponseClass } from '../models';
|
|
19
20
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
20
21
|
import { ValidateAccountingConfigResponseClass } from '../models';
|
|
21
22
|
/**
|
|
@@ -57,6 +58,14 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
|
|
|
57
58
|
* @throws {RequiredError}
|
|
58
59
|
*/
|
|
59
60
|
getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
* 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\"
|
|
63
|
+
* @summary Retrieve the get activation snapshot
|
|
64
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
getActivationSnapshot: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
69
|
/**
|
|
61
70
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
62
71
|
* @summary Delete the reset subledger
|
|
@@ -123,6 +132,14 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
|
|
|
123
132
|
* @throws {RequiredError}
|
|
124
133
|
*/
|
|
125
134
|
getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
|
|
135
|
+
/**
|
|
136
|
+
* 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\"
|
|
137
|
+
* @summary Retrieve the get activation snapshot
|
|
138
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>>;
|
|
126
143
|
/**
|
|
127
144
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
128
145
|
* @summary Delete the reset subledger
|
|
@@ -189,6 +206,14 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
|
|
|
189
206
|
* @throws {RequiredError}
|
|
190
207
|
*/
|
|
191
208
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
|
|
209
|
+
/**
|
|
210
|
+
* 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\"
|
|
211
|
+
* @summary Retrieve the get activation snapshot
|
|
212
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass>;
|
|
192
217
|
/**
|
|
193
218
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
194
219
|
* @summary Delete the reset subledger
|
|
@@ -280,6 +305,19 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
280
305
|
*/
|
|
281
306
|
readonly authorization?: string;
|
|
282
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
310
|
+
* @export
|
|
311
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
314
|
+
/**
|
|
315
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
318
|
+
*/
|
|
319
|
+
readonly authorization?: string;
|
|
320
|
+
}
|
|
283
321
|
/**
|
|
284
322
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
285
323
|
* @export
|
|
@@ -374,6 +412,15 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
374
412
|
* @memberof AccountingConfigsApi
|
|
375
413
|
*/
|
|
376
414
|
getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
|
|
415
|
+
/**
|
|
416
|
+
* 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\"
|
|
417
|
+
* @summary Retrieve the get activation snapshot
|
|
418
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof AccountingConfigsApi
|
|
422
|
+
*/
|
|
423
|
+
getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}>>;
|
|
377
424
|
/**
|
|
378
425
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
379
426
|
* @summary Delete the reset subledger
|
|
@@ -107,7 +107,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
@@ -124,13 +124,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -174,13 +177,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
174
177
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
175
178
|
// authentication bearer required
|
|
176
179
|
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
182
|
+
];
|
|
178
183
|
case 1:
|
|
179
184
|
// authentication bearer required
|
|
180
185
|
// http bearer authentication required
|
|
181
186
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
187
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
if (file !== undefined) {
|
|
186
192
|
localVarFormParams.append('file', file);
|
|
@@ -208,7 +214,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
208
214
|
exportAccountingConfig: function (authorization, options) {
|
|
209
215
|
if (options === void 0) { options = {}; }
|
|
210
216
|
return __awaiter(_this, void 0, void 0, function () {
|
|
211
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
212
218
|
return __generator(this, function (_a) {
|
|
213
219
|
switch (_a.label) {
|
|
214
220
|
case 0:
|
|
@@ -223,13 +229,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
223
229
|
localVarQueryParameter = {};
|
|
224
230
|
// authentication bearer required
|
|
225
231
|
// http bearer authentication required
|
|
226
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
232
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
233
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
234
|
+
];
|
|
227
235
|
case 1:
|
|
228
236
|
// authentication bearer required
|
|
229
237
|
// http bearer authentication required
|
|
230
238
|
_a.sent();
|
|
231
|
-
|
|
232
|
-
|
|
239
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
240
|
+
if (authorizationValue) {
|
|
241
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
233
242
|
}
|
|
234
243
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
244
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -252,7 +261,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
252
261
|
getAccountingCategories: function (authorization, options) {
|
|
253
262
|
if (options === void 0) { options = {}; }
|
|
254
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
255
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
264
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
256
265
|
return __generator(this, function (_a) {
|
|
257
266
|
switch (_a.label) {
|
|
258
267
|
case 0:
|
|
@@ -267,13 +276,63 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
267
276
|
localVarQueryParameter = {};
|
|
268
277
|
// authentication bearer required
|
|
269
278
|
// http bearer authentication required
|
|
270
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
279
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
280
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
281
|
+
];
|
|
271
282
|
case 1:
|
|
272
283
|
// authentication bearer required
|
|
273
284
|
// http bearer authentication required
|
|
274
285
|
_a.sent();
|
|
275
|
-
|
|
276
|
-
|
|
286
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
287
|
+
if (authorizationValue) {
|
|
288
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
289
|
+
}
|
|
290
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
293
|
+
return [2 /*return*/, {
|
|
294
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
295
|
+
options: localVarRequestOptions,
|
|
296
|
+
}];
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
* 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\"
|
|
303
|
+
* @summary Retrieve the get activation snapshot
|
|
304
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
getActivationSnapshot: function (authorization, options) {
|
|
309
|
+
if (options === void 0) { options = {}; }
|
|
310
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
311
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
312
|
+
return __generator(this, function (_a) {
|
|
313
|
+
switch (_a.label) {
|
|
314
|
+
case 0:
|
|
315
|
+
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
316
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
317
|
+
if (configuration) {
|
|
318
|
+
baseOptions = configuration.baseOptions;
|
|
319
|
+
baseAccessToken = configuration.accessToken;
|
|
320
|
+
}
|
|
321
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
322
|
+
localVarHeaderParameter = {};
|
|
323
|
+
localVarQueryParameter = {};
|
|
324
|
+
// authentication bearer required
|
|
325
|
+
// http bearer authentication required
|
|
326
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
327
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
328
|
+
];
|
|
329
|
+
case 1:
|
|
330
|
+
// authentication bearer required
|
|
331
|
+
// http bearer authentication required
|
|
332
|
+
_a.sent();
|
|
333
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
334
|
+
if (authorizationValue) {
|
|
335
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
277
336
|
}
|
|
278
337
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
338
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -296,7 +355,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
296
355
|
resetSubledger: function (authorization, options) {
|
|
297
356
|
if (options === void 0) { options = {}; }
|
|
298
357
|
return __awaiter(_this, void 0, void 0, function () {
|
|
299
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
358
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
300
359
|
return __generator(this, function (_a) {
|
|
301
360
|
switch (_a.label) {
|
|
302
361
|
case 0:
|
|
@@ -311,13 +370,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
311
370
|
localVarQueryParameter = {};
|
|
312
371
|
// authentication bearer required
|
|
313
372
|
// http bearer authentication required
|
|
314
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
373
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
374
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
375
|
+
];
|
|
315
376
|
case 1:
|
|
316
377
|
// authentication bearer required
|
|
317
378
|
// http bearer authentication required
|
|
318
379
|
_a.sent();
|
|
319
|
-
|
|
320
|
-
|
|
380
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
if (authorizationValue) {
|
|
382
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
321
383
|
}
|
|
322
384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
385
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -341,7 +403,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
341
403
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
342
404
|
if (options === void 0) { options = {}; }
|
|
343
405
|
return __awaiter(_this, void 0, void 0, function () {
|
|
344
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
406
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
345
407
|
return __generator(this, function (_a) {
|
|
346
408
|
switch (_a.label) {
|
|
347
409
|
case 0:
|
|
@@ -358,13 +420,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
358
420
|
localVarQueryParameter = {};
|
|
359
421
|
// authentication bearer required
|
|
360
422
|
// http bearer authentication required
|
|
361
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
423
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
424
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
425
|
+
];
|
|
362
426
|
case 1:
|
|
363
427
|
// authentication bearer required
|
|
364
428
|
// http bearer authentication required
|
|
365
429
|
_a.sent();
|
|
366
|
-
|
|
367
|
-
|
|
430
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
431
|
+
if (authorizationValue) {
|
|
432
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
368
433
|
}
|
|
369
434
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
370
435
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -390,7 +455,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
390
455
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
391
456
|
if (options === void 0) { options = {}; }
|
|
392
457
|
return __awaiter(_this, void 0, void 0, function () {
|
|
393
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
458
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
394
459
|
return __generator(this, function (_a) {
|
|
395
460
|
switch (_a.label) {
|
|
396
461
|
case 0:
|
|
@@ -408,13 +473,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
408
473
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
409
474
|
// authentication bearer required
|
|
410
475
|
// http bearer authentication required
|
|
411
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
476
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
477
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
478
|
+
];
|
|
412
479
|
case 1:
|
|
413
480
|
// authentication bearer required
|
|
414
481
|
// http bearer authentication required
|
|
415
482
|
_a.sent();
|
|
416
|
-
|
|
417
|
-
|
|
483
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
484
|
+
if (authorizationValue) {
|
|
485
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
418
486
|
}
|
|
419
487
|
if (file !== undefined) {
|
|
420
488
|
localVarFormParams.append('file', file);
|
|
@@ -524,6 +592,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
524
592
|
});
|
|
525
593
|
});
|
|
526
594
|
},
|
|
595
|
+
/**
|
|
596
|
+
* 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\"
|
|
597
|
+
* @summary Retrieve the get activation snapshot
|
|
598
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
getActivationSnapshot: function (authorization, options) {
|
|
603
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
604
|
+
var localVarAxiosArgs;
|
|
605
|
+
return __generator(this, function (_a) {
|
|
606
|
+
switch (_a.label) {
|
|
607
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
|
|
608
|
+
case 1:
|
|
609
|
+
localVarAxiosArgs = _a.sent();
|
|
610
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
},
|
|
527
615
|
/**
|
|
528
616
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
529
617
|
* @summary Delete the reset subledger
|
|
@@ -638,6 +726,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
638
726
|
getAccountingCategories: function (authorization, options) {
|
|
639
727
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
640
728
|
},
|
|
729
|
+
/**
|
|
730
|
+
* 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\"
|
|
731
|
+
* @summary Retrieve the get activation snapshot
|
|
732
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
*/
|
|
736
|
+
getActivationSnapshot: function (authorization, options) {
|
|
737
|
+
return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
738
|
+
},
|
|
641
739
|
/**
|
|
642
740
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
643
741
|
* @summary Delete the reset subledger
|
|
@@ -734,6 +832,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
734
832
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
735
833
|
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
736
834
|
};
|
|
835
|
+
/**
|
|
836
|
+
* 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\"
|
|
837
|
+
* @summary Retrieve the get activation snapshot
|
|
838
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
* @memberof AccountingConfigsApi
|
|
842
|
+
*/
|
|
843
|
+
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
844
|
+
var _this = this;
|
|
845
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
846
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
847
|
+
};
|
|
737
848
|
/**
|
|
738
849
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
739
850
|
* @summary Delete the reset subledger
|
|
@@ -14,8 +14,12 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBookingEntryRequestDto } from '../models';
|
|
16
16
|
import { CreateBookingEntryResponseClass } from '../models';
|
|
17
|
+
import { CreateOrCorrectOpeningBalanceDto } from '../models';
|
|
18
|
+
import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
|
|
17
19
|
import { GetBookingEntryResponseClass } from '../models';
|
|
18
20
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
21
|
+
import { PostFinancialEventRequestDto } from '../models';
|
|
22
|
+
import { PostFinancialEventResponseClass } from '../models';
|
|
19
23
|
/**
|
|
20
24
|
* BookingEntriesApi - axios parameter creator
|
|
21
25
|
* @export
|
|
@@ -30,6 +34,15 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
30
34
|
* @throws {RequiredError}
|
|
31
35
|
*/
|
|
32
36
|
createBookingEntry: (createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
+
/**
|
|
38
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
39
|
+
* @summary Update the create or correct opening balance
|
|
40
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
createOrCorrectOpeningBalance: (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
46
|
/**
|
|
34
47
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
35
48
|
* @summary Retrieve the booking entry
|
|
@@ -55,6 +68,15 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
55
68
|
* @throws {RequiredError}
|
|
56
69
|
*/
|
|
57
70
|
listBookingEntries: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
/**
|
|
72
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
73
|
+
* @summary Create the booking entry from a source entity
|
|
74
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
75
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
|
+
* @param {*} [options] Override http request option.
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
*/
|
|
79
|
+
postFinancialEvent: (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
80
|
};
|
|
59
81
|
/**
|
|
60
82
|
* BookingEntriesApi - functional programming interface
|
|
@@ -70,6 +92,15 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
70
92
|
* @throws {RequiredError}
|
|
71
93
|
*/
|
|
72
94
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingEntryResponseClass>>;
|
|
95
|
+
/**
|
|
96
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
97
|
+
* @summary Update the create or correct opening balance
|
|
98
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>>;
|
|
73
104
|
/**
|
|
74
105
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
75
106
|
* @summary Retrieve the booking entry
|
|
@@ -95,6 +126,15 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
95
126
|
* @throws {RequiredError}
|
|
96
127
|
*/
|
|
97
128
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingEntriesResponseClass>>;
|
|
129
|
+
/**
|
|
130
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
131
|
+
* @summary Create the booking entry from a source entity
|
|
132
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
133
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>>;
|
|
98
138
|
};
|
|
99
139
|
/**
|
|
100
140
|
* BookingEntriesApi - factory interface
|
|
@@ -110,6 +150,15 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
110
150
|
* @throws {RequiredError}
|
|
111
151
|
*/
|
|
112
152
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass>;
|
|
153
|
+
/**
|
|
154
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
155
|
+
* @summary Update the create or correct opening balance
|
|
156
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
157
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>;
|
|
113
162
|
/**
|
|
114
163
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
115
164
|
* @summary Retrieve the booking entry
|
|
@@ -135,6 +184,15 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
135
184
|
* @throws {RequiredError}
|
|
136
185
|
*/
|
|
137
186
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass>;
|
|
187
|
+
/**
|
|
188
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
189
|
+
* @summary Create the booking entry from a source entity
|
|
190
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
191
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass>;
|
|
138
196
|
};
|
|
139
197
|
/**
|
|
140
198
|
* Request parameters for createBookingEntry operation in BookingEntriesApi.
|
|
@@ -155,6 +213,25 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
155
213
|
*/
|
|
156
214
|
readonly authorization?: string;
|
|
157
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
218
|
+
* @export
|
|
219
|
+
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
220
|
+
*/
|
|
221
|
+
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
225
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
226
|
+
*/
|
|
227
|
+
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto;
|
|
228
|
+
/**
|
|
229
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
232
|
+
*/
|
|
233
|
+
readonly authorization?: string;
|
|
234
|
+
}
|
|
158
235
|
/**
|
|
159
236
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
160
237
|
* @export
|
|
@@ -235,6 +312,25 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
235
312
|
*/
|
|
236
313
|
readonly filters?: string;
|
|
237
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
317
|
+
* @export
|
|
318
|
+
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
319
|
+
*/
|
|
320
|
+
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {PostFinancialEventRequestDto}
|
|
324
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
325
|
+
*/
|
|
326
|
+
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto;
|
|
327
|
+
/**
|
|
328
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
329
|
+
* @type {string}
|
|
330
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
331
|
+
*/
|
|
332
|
+
readonly authorization?: string;
|
|
333
|
+
}
|
|
238
334
|
/**
|
|
239
335
|
* BookingEntriesApi - object-oriented interface
|
|
240
336
|
* @export
|
|
@@ -251,6 +347,15 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
251
347
|
* @memberof BookingEntriesApi
|
|
252
348
|
*/
|
|
253
349
|
createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
|
|
350
|
+
/**
|
|
351
|
+
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
352
|
+
* @summary Update the create or correct opening balance
|
|
353
|
+
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
* @memberof BookingEntriesApi
|
|
357
|
+
*/
|
|
358
|
+
createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}>>;
|
|
254
359
|
/**
|
|
255
360
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
256
361
|
* @summary Retrieve the booking entry
|
|
@@ -269,4 +374,13 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
269
374
|
* @memberof BookingEntriesApi
|
|
270
375
|
*/
|
|
271
376
|
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
|
|
377
|
+
/**
|
|
378
|
+
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
379
|
+
* @summary Create the booking entry from a source entity
|
|
380
|
+
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
* @memberof BookingEntriesApi
|
|
384
|
+
*/
|
|
385
|
+
postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}>>;
|
|
272
386
|
}
|