@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
|
@@ -103,7 +103,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createAndEnableSubledger: function (createAndEnableSubledgerRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,13 +120,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
120
120
|
localVarQueryParameter = {};
|
|
121
121
|
// authentication bearer required
|
|
122
122
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
+
];
|
|
124
126
|
case 1:
|
|
125
127
|
// authentication bearer required
|
|
126
128
|
// http bearer authentication required
|
|
127
129
|
_a.sent();
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
if (authorizationValue) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
133
|
}
|
|
131
134
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
135
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,7 +155,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
152
155
|
createAndEnableSubledgerFromFile: function (file, authorization, options) {
|
|
153
156
|
if (options === void 0) { options = {}; }
|
|
154
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
158
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
156
159
|
return __generator(this, function (_a) {
|
|
157
160
|
switch (_a.label) {
|
|
158
161
|
case 0:
|
|
@@ -170,13 +173,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
170
173
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
171
174
|
// authentication bearer required
|
|
172
175
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
177
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
178
|
+
];
|
|
174
179
|
case 1:
|
|
175
180
|
// authentication bearer required
|
|
176
181
|
// http bearer authentication required
|
|
177
182
|
_a.sent();
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
if (authorizationValue) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
186
|
}
|
|
181
187
|
if (file !== undefined) {
|
|
182
188
|
localVarFormParams.append('file', file);
|
|
@@ -203,7 +209,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
203
209
|
exportAccountingConfig: function (authorization, options) {
|
|
204
210
|
if (options === void 0) { options = {}; }
|
|
205
211
|
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
212
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
207
213
|
return __generator(this, function (_a) {
|
|
208
214
|
switch (_a.label) {
|
|
209
215
|
case 0:
|
|
@@ -218,13 +224,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
218
224
|
localVarQueryParameter = {};
|
|
219
225
|
// authentication bearer required
|
|
220
226
|
// http bearer authentication required
|
|
221
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
227
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
228
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
229
|
+
];
|
|
222
230
|
case 1:
|
|
223
231
|
// authentication bearer required
|
|
224
232
|
// http bearer authentication required
|
|
225
233
|
_a.sent();
|
|
226
|
-
|
|
227
|
-
|
|
234
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
235
|
+
if (authorizationValue) {
|
|
236
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
228
237
|
}
|
|
229
238
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
239
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -247,7 +256,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
247
256
|
getAccountingCategories: function (authorization, options) {
|
|
248
257
|
if (options === void 0) { options = {}; }
|
|
249
258
|
return __awaiter(_this, void 0, void 0, function () {
|
|
250
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
259
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
251
260
|
return __generator(this, function (_a) {
|
|
252
261
|
switch (_a.label) {
|
|
253
262
|
case 0:
|
|
@@ -262,13 +271,63 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
262
271
|
localVarQueryParameter = {};
|
|
263
272
|
// authentication bearer required
|
|
264
273
|
// http bearer authentication required
|
|
265
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
274
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
275
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
276
|
+
];
|
|
266
277
|
case 1:
|
|
267
278
|
// authentication bearer required
|
|
268
279
|
// http bearer authentication required
|
|
269
280
|
_a.sent();
|
|
270
|
-
|
|
271
|
-
|
|
281
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
282
|
+
if (authorizationValue) {
|
|
283
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
284
|
+
}
|
|
285
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
286
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
288
|
+
return [2 /*return*/, {
|
|
289
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
290
|
+
options: localVarRequestOptions,
|
|
291
|
+
}];
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* 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\"
|
|
298
|
+
* @summary Retrieve the get activation snapshot
|
|
299
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
getActivationSnapshot: function (authorization, options) {
|
|
304
|
+
if (options === void 0) { options = {}; }
|
|
305
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
306
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
307
|
+
return __generator(this, function (_a) {
|
|
308
|
+
switch (_a.label) {
|
|
309
|
+
case 0:
|
|
310
|
+
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
311
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
312
|
+
if (configuration) {
|
|
313
|
+
baseOptions = configuration.baseOptions;
|
|
314
|
+
baseAccessToken = configuration.accessToken;
|
|
315
|
+
}
|
|
316
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
317
|
+
localVarHeaderParameter = {};
|
|
318
|
+
localVarQueryParameter = {};
|
|
319
|
+
// authentication bearer required
|
|
320
|
+
// http bearer authentication required
|
|
321
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
322
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
323
|
+
];
|
|
324
|
+
case 1:
|
|
325
|
+
// authentication bearer required
|
|
326
|
+
// http bearer authentication required
|
|
327
|
+
_a.sent();
|
|
328
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
329
|
+
if (authorizationValue) {
|
|
330
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
272
331
|
}
|
|
273
332
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
274
333
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -291,7 +350,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
291
350
|
resetSubledger: function (authorization, options) {
|
|
292
351
|
if (options === void 0) { options = {}; }
|
|
293
352
|
return __awaiter(_this, void 0, void 0, function () {
|
|
294
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
353
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
295
354
|
return __generator(this, function (_a) {
|
|
296
355
|
switch (_a.label) {
|
|
297
356
|
case 0:
|
|
@@ -306,13 +365,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
306
365
|
localVarQueryParameter = {};
|
|
307
366
|
// authentication bearer required
|
|
308
367
|
// http bearer authentication required
|
|
309
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
368
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
369
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
370
|
+
];
|
|
310
371
|
case 1:
|
|
311
372
|
// authentication bearer required
|
|
312
373
|
// http bearer authentication required
|
|
313
374
|
_a.sent();
|
|
314
|
-
|
|
315
|
-
|
|
375
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
376
|
+
if (authorizationValue) {
|
|
377
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
316
378
|
}
|
|
317
379
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
380
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -336,7 +398,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
336
398
|
validateAccountingConfig: function (validateAccountingConfigRequestDto, authorization, options) {
|
|
337
399
|
if (options === void 0) { options = {}; }
|
|
338
400
|
return __awaiter(_this, void 0, void 0, function () {
|
|
339
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
401
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
340
402
|
return __generator(this, function (_a) {
|
|
341
403
|
switch (_a.label) {
|
|
342
404
|
case 0:
|
|
@@ -353,13 +415,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
353
415
|
localVarQueryParameter = {};
|
|
354
416
|
// authentication bearer required
|
|
355
417
|
// http bearer authentication required
|
|
356
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
418
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
419
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
420
|
+
];
|
|
357
421
|
case 1:
|
|
358
422
|
// authentication bearer required
|
|
359
423
|
// http bearer authentication required
|
|
360
424
|
_a.sent();
|
|
361
|
-
|
|
362
|
-
|
|
425
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
426
|
+
if (authorizationValue) {
|
|
427
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
363
428
|
}
|
|
364
429
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
365
430
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -385,7 +450,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
385
450
|
validateAccountingConfigFromFile: function (file, authorization, options) {
|
|
386
451
|
if (options === void 0) { options = {}; }
|
|
387
452
|
return __awaiter(_this, void 0, void 0, function () {
|
|
388
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
|
|
453
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, authorizationValue, headersFromBaseOptions;
|
|
389
454
|
return __generator(this, function (_a) {
|
|
390
455
|
switch (_a.label) {
|
|
391
456
|
case 0:
|
|
@@ -403,13 +468,16 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
403
468
|
localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
404
469
|
// authentication bearer required
|
|
405
470
|
// http bearer authentication required
|
|
406
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
471
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
472
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
473
|
+
];
|
|
407
474
|
case 1:
|
|
408
475
|
// authentication bearer required
|
|
409
476
|
// http bearer authentication required
|
|
410
477
|
_a.sent();
|
|
411
|
-
|
|
412
|
-
|
|
478
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
479
|
+
if (authorizationValue) {
|
|
480
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
413
481
|
}
|
|
414
482
|
if (file !== undefined) {
|
|
415
483
|
localVarFormParams.append('file', file);
|
|
@@ -518,6 +586,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
518
586
|
});
|
|
519
587
|
});
|
|
520
588
|
},
|
|
589
|
+
/**
|
|
590
|
+
* 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\"
|
|
591
|
+
* @summary Retrieve the get activation snapshot
|
|
592
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
getActivationSnapshot: function (authorization, options) {
|
|
597
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
598
|
+
var localVarAxiosArgs;
|
|
599
|
+
return __generator(this, function (_a) {
|
|
600
|
+
switch (_a.label) {
|
|
601
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
|
|
602
|
+
case 1:
|
|
603
|
+
localVarAxiosArgs = _a.sent();
|
|
604
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
});
|
|
608
|
+
},
|
|
521
609
|
/**
|
|
522
610
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
523
611
|
* @summary Delete the reset subledger
|
|
@@ -632,6 +720,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
632
720
|
getAccountingCategories: function (authorization, options) {
|
|
633
721
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
634
722
|
},
|
|
723
|
+
/**
|
|
724
|
+
* 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\"
|
|
725
|
+
* @summary Retrieve the get activation snapshot
|
|
726
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
getActivationSnapshot: function (authorization, options) {
|
|
731
|
+
return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
732
|
+
},
|
|
635
733
|
/**
|
|
636
734
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
637
735
|
* @summary Delete the reset subledger
|
|
@@ -728,6 +826,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
728
826
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
729
827
|
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
730
828
|
};
|
|
829
|
+
/**
|
|
830
|
+
* 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\"
|
|
831
|
+
* @summary Retrieve the get activation snapshot
|
|
832
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
* @memberof AccountingConfigsApi
|
|
836
|
+
*/
|
|
837
|
+
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
838
|
+
var _this = this;
|
|
839
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
840
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
841
|
+
};
|
|
731
842
|
/**
|
|
732
843
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
733
844
|
* @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
|
|
@@ -41,7 +54,7 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
41
54
|
*/
|
|
42
55
|
getBookingEntry: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
56
|
/**
|
|
44
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
57
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
45
58
|
* @summary List booking entries
|
|
46
59
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
47
60
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -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
|
|
@@ -81,7 +112,7 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
81
112
|
*/
|
|
82
113
|
getBookingEntry(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingEntryResponseClass>>;
|
|
83
114
|
/**
|
|
84
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
115
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
85
116
|
* @summary List booking entries
|
|
86
117
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
87
118
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -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
|
|
@@ -121,7 +170,7 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
121
170
|
*/
|
|
122
171
|
getBookingEntry(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetBookingEntryResponseClass>;
|
|
123
172
|
/**
|
|
124
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
173
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
125
174
|
* @summary List booking entries
|
|
126
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
127
176
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -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
|
|
@@ -250,7 +346,16 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
250
346
|
* @throws {RequiredError}
|
|
251
347
|
* @memberof BookingEntriesApi
|
|
252
348
|
*/
|
|
253
|
-
createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
|
|
349
|
+
createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}, 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, {}, any>>;
|
|
254
359
|
/**
|
|
255
360
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
256
361
|
* @summary Retrieve the booking entry
|
|
@@ -259,14 +364,23 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
259
364
|
* @throws {RequiredError}
|
|
260
365
|
* @memberof BookingEntriesApi
|
|
261
366
|
*/
|
|
262
|
-
getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}>>;
|
|
367
|
+
getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBookingEntryResponseClass, any, {}, any>>;
|
|
263
368
|
/**
|
|
264
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
369
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
265
370
|
* @summary List booking entries
|
|
266
371
|
* @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
|
|
267
372
|
* @param {*} [options] Override http request option.
|
|
268
373
|
* @throws {RequiredError}
|
|
269
374
|
* @memberof BookingEntriesApi
|
|
270
375
|
*/
|
|
271
|
-
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
|
|
376
|
+
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}, 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, {}, any>>;
|
|
272
386
|
}
|