@emilgroup/accounting-sdk-node 1.32.1-beta.57 → 1.32.1-beta.58
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 +0 -48
- package/README.md +2 -2
- package/api/booking-entries-api.ts +0 -214
- package/api/financial-accounts-api.ts +16 -136
- package/api.ts +0 -6
- package/dist/api/booking-entries-api.d.ts +0 -114
- package/dist/api/booking-entries-api.js +0 -186
- package/dist/api/financial-accounts-api.d.ts +16 -82
- package/dist/api/financial-accounts-api.js +13 -112
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/models/booking-entry-class.d.ts +0 -20
- package/dist/models/booking-entry-class.js +1 -8
- package/dist/models/create-booking-entry-request-dto.d.ts +2 -24
- package/dist/models/create-booking-entry-request-dto.js +0 -8
- package/dist/models/create-financial-account-request-dto.d.ts +5 -48
- package/dist/models/create-financial-account-request-dto.js +2 -24
- package/dist/models/create-number-range-request-dto.d.ts +4 -4
- package/dist/models/create-number-range-request-dto.js +4 -4
- package/dist/models/create-personal-account-request-dto.d.ts +6 -14
- package/dist/models/create-personal-account-request-dto.js +3 -3
- package/dist/models/financial-account-class.d.ts +2 -49
- package/dist/models/financial-account-class.js +2 -6
- package/dist/models/financial-transaction-data-dto.d.ts +2 -5
- package/dist/models/financial-transaction-data-dto.js +0 -1
- package/dist/models/index.d.ts +0 -45
- package/dist/models/index.js +0 -45
- package/dist/models/personal-account-class.d.ts +2 -8
- package/dist/models/personal-account-class.js +1 -1
- package/models/booking-entry-class.ts +0 -21
- package/models/create-booking-entry-request-dto.ts +2 -25
- package/models/create-financial-account-request-dto.ts +5 -47
- package/models/create-number-range-request-dto.ts +4 -4
- package/models/create-personal-account-request-dto.ts +6 -12
- package/models/financial-account-class.ts +2 -50
- package/models/financial-transaction-data-dto.ts +2 -3
- package/models/index.ts +0 -45
- package/models/personal-account-class.ts +2 -8
- package/package.json +1 -1
- package/api/accounting-configs-api.ts +0 -852
- package/api/commission-account-mappings-api.ts +0 -1195
- package/api/product-account-mappings-api.ts +0 -1474
- package/dist/api/accounting-configs-api.d.ts +0 -451
- package/dist/api/accounting-configs-api.js +0 -863
- package/dist/api/commission-account-mappings-api.d.ts +0 -685
- package/dist/api/commission-account-mappings-api.js +0 -1008
- package/dist/api/product-account-mappings-api.d.ts +0 -851
- package/dist/api/product-account-mappings-api.js +0 -1228
- package/dist/models/account-mapping-class.d.ts +0 -71
- package/dist/models/account-mapping-class.js +0 -38
- package/dist/models/accounting-category-class.d.ts +0 -45
- package/dist/models/accounting-category-class.js +0 -24
- package/dist/models/accounting-config-class.d.ts +0 -78
- package/dist/models/accounting-config-class.js +0 -20
- package/dist/models/accounting-config-data-class.d.ts +0 -38
- package/dist/models/accounting-config-data-class.js +0 -15
- package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
- package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -77
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -38
- package/dist/models/accounting-config-data-dto.d.ts +0 -38
- package/dist/models/accounting-config-data-dto.js +0 -15
- package/dist/models/accounting-configuration-class.d.ts +0 -36
- package/dist/models/accounting-configuration-class.js +0 -15
- package/dist/models/commission-account-mapping-class.d.ts +0 -49
- package/dist/models/commission-account-mapping-class.js +0 -15
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
- package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
- package/dist/models/commission-agreement-partner-class.d.ts +0 -30
- package/dist/models/commission-agreement-partner-class.js +0 -15
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
- package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
- package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
- package/dist/models/commission-type-account-mapping-class.js +0 -15
- package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
- package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
- package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
- package/dist/models/create-and-enable-subledger-response-class.js +0 -15
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
- package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
- package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
- package/dist/models/export-accounting-config-response-class.d.ts +0 -25
- package/dist/models/export-accounting-config-response-class.js +0 -15
- package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
- package/dist/models/get-accounting-categories-response-class.js +0 -15
- package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
- package/dist/models/get-activation-snapshot-response-class.js +0 -15
- package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-account-mappings-response-class.js +0 -15
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
- package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-product-account-mappings-response-class.js +0 -15
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
- package/dist/models/opening-balance-item-dto.d.ts +0 -41
- package/dist/models/opening-balance-item-dto.js +0 -20
- package/dist/models/post-financial-event-request-dto.d.ts +0 -44
- package/dist/models/post-financial-event-request-dto.js +0 -23
- package/dist/models/post-financial-event-response-class.d.ts +0 -25
- package/dist/models/post-financial-event-response-class.js +0 -15
- package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
- package/dist/models/premium-item-account-mapping-class.js +0 -15
- package/dist/models/product-account-mapping-class.d.ts +0 -61
- package/dist/models/product-account-mapping-class.js +0 -15
- package/dist/models/product-account-mapping-detail-class.d.ts +0 -50
- package/dist/models/product-account-mapping-detail-class.js +0 -15
- package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
- package/dist/models/product-version-account-mapping-detail-class.js +0 -15
- package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
- package/dist/models/product-version-with-account-mappings-class.js +0 -15
- package/dist/models/product-with-account-mappings-class.d.ts +0 -49
- package/dist/models/product-with-account-mappings-class.js +0 -15
- package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
- package/dist/models/put-premium-item-account-body-dto.js +0 -15
- package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
- package/dist/models/put-product-category-account-body-dto.js +0 -15
- package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
- package/dist/models/put-product-version-category-account-body-dto.js +0 -15
- package/dist/models/resolved-account-mapping-class.d.ts +0 -31
- package/dist/models/resolved-account-mapping-class.js +0 -15
- package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
- package/dist/models/resolved-commission-account-mapping-class.js +0 -21
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
- package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
- package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
- package/dist/models/update-commission-type-account-body-dto.js +0 -15
- package/dist/models/update-financial-account-body-dto.d.ts +0 -48
- package/dist/models/update-financial-account-body-dto.js +0 -15
- package/dist/models/update-financial-account-response-class.d.ts +0 -25
- package/dist/models/update-financial-account-response-class.js +0 -15
- package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
- package/dist/models/validate-accounting-config-request-dto.js +0 -15
- package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
- package/dist/models/validate-accounting-config-response-class.js +0 -15
- package/models/account-mapping-class.ts +0 -80
- package/models/accounting-category-class.ts +0 -54
- package/models/accounting-config-class.ts +0 -87
- package/models/accounting-config-data-class.ts +0 -44
- package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
- package/models/accounting-config-data-dto-default-account-mappings.ts +0 -86
- package/models/accounting-config-data-dto.ts +0 -44
- package/models/accounting-configuration-class.ts +0 -42
- package/models/commission-account-mapping-class.ts +0 -55
- package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
- package/models/commission-agreement-partner-class.ts +0 -36
- package/models/commission-agreement-with-account-mapping-class.ts +0 -49
- package/models/commission-type-account-mapping-class.ts +0 -37
- package/models/create-and-enable-subledger-request-dto.ts +0 -31
- package/models/create-and-enable-subledger-response-class.ts +0 -31
- package/models/create-or-correct-opening-balance-dto.ts +0 -31
- package/models/create-or-correct-opening-balance-response-class.ts +0 -31
- package/models/export-accounting-config-response-class.ts +0 -31
- package/models/get-accounting-categories-response-class.ts +0 -31
- package/models/get-activation-snapshot-response-class.ts +0 -31
- package/models/list-commission-account-mappings-response-class.ts +0 -49
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
- package/models/list-commission-type-account-mappings-response-class.ts +0 -49
- package/models/list-product-account-mappings-response-class.ts +0 -49
- package/models/list-products-with-account-mappings-response-class.ts +0 -49
- package/models/opening-balance-item-dto.ts +0 -50
- package/models/post-financial-event-request-dto.ts +0 -53
- package/models/post-financial-event-response-class.ts +0 -31
- package/models/premium-item-account-mapping-class.ts +0 -43
- package/models/product-account-mapping-class.ts +0 -67
- package/models/product-account-mapping-detail-class.ts +0 -56
- package/models/product-version-account-mapping-detail-class.ts +0 -56
- package/models/product-version-with-account-mappings-class.ts +0 -48
- package/models/product-with-account-mappings-class.ts +0 -55
- package/models/put-premium-item-account-body-dto.ts +0 -30
- package/models/put-product-category-account-body-dto.ts +0 -30
- package/models/put-product-version-category-account-body-dto.ts +0 -30
- package/models/resolved-account-mapping-class.ts +0 -37
- package/models/resolved-commission-account-mapping-class.ts +0 -46
- package/models/update-commission-agreement-account-body-dto.ts +0 -30
- package/models/update-commission-type-account-body-dto.ts +0 -30
- package/models/update-financial-account-body-dto.ts +0 -54
- package/models/update-financial-account-response-class.ts +0 -31
- package/models/validate-accounting-config-request-dto.ts +0 -31
- package/models/validate-accounting-config-response-class.ts +0 -36
|
@@ -28,10 +28,6 @@ import { CreateFinancialAccountResponseClass } from '../models';
|
|
|
28
28
|
import { GetFinancialAccountResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListFinancialAccountsResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { UpdateFinancialAccountBodyDto } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
import { UpdateFinancialAccountResponseClass } from '../models';
|
|
35
31
|
// URLSearchParams not necessarily used
|
|
36
32
|
// @ts-ignore
|
|
37
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -43,7 +39,7 @@ const FormData = require('form-data');
|
|
|
43
39
|
export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
40
|
return {
|
|
45
41
|
/**
|
|
46
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
42
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
47
43
|
* @summary Create the Financial Account
|
|
48
44
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
49
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -192,11 +188,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
192
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
189
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
194
190
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
195
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
191
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
196
192
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
197
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
193
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
198
194
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
199
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
195
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
200
196
|
* @param {*} [options] Override http request option.
|
|
201
197
|
* @throws {RequiredError}
|
|
202
198
|
*/
|
|
@@ -257,57 +253,6 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
257
253
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
254
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
259
255
|
|
|
260
|
-
return {
|
|
261
|
-
url: toPathString(localVarUrlObj),
|
|
262
|
-
options: localVarRequestOptions,
|
|
263
|
-
};
|
|
264
|
-
},
|
|
265
|
-
/**
|
|
266
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
267
|
-
* @summary Update the Financial Account
|
|
268
|
-
* @param {string} code Unique identifier for the object.
|
|
269
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
270
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
271
|
-
* @param {*} [options] Override http request option.
|
|
272
|
-
* @throws {RequiredError}
|
|
273
|
-
*/
|
|
274
|
-
updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
275
|
-
// verify required parameter 'code' is not null or undefined
|
|
276
|
-
assertParamExists('updateFinancialAccount', 'code', code)
|
|
277
|
-
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
278
|
-
assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
|
|
279
|
-
const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
|
|
280
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
281
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
282
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
283
|
-
let baseOptions;
|
|
284
|
-
let baseAccessToken;
|
|
285
|
-
if (configuration) {
|
|
286
|
-
baseOptions = configuration.baseOptions;
|
|
287
|
-
baseAccessToken = configuration.accessToken;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
291
|
-
const localVarHeaderParameter = {} as any;
|
|
292
|
-
const localVarQueryParameter = {} as any;
|
|
293
|
-
|
|
294
|
-
// authentication bearer required
|
|
295
|
-
// http bearer authentication required
|
|
296
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
297
|
-
|
|
298
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
299
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
305
|
-
|
|
306
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
307
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
309
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
|
|
310
|
-
|
|
311
256
|
return {
|
|
312
257
|
url: toPathString(localVarUrlObj),
|
|
313
258
|
options: localVarRequestOptions,
|
|
@@ -324,7 +269,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
324
269
|
const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
|
|
325
270
|
return {
|
|
326
271
|
/**
|
|
327
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
272
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
328
273
|
* @summary Create the Financial Account
|
|
329
274
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
330
275
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -366,11 +311,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
366
311
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
367
312
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
368
313
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
369
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
314
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
370
315
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
371
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
316
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
372
317
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
373
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
318
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
374
319
|
* @param {*} [options] Override http request option.
|
|
375
320
|
* @throws {RequiredError}
|
|
376
321
|
*/
|
|
@@ -378,19 +323,6 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
378
323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
379
324
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
380
325
|
},
|
|
381
|
-
/**
|
|
382
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
383
|
-
* @summary Update the Financial Account
|
|
384
|
-
* @param {string} code Unique identifier for the object.
|
|
385
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
386
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
387
|
-
* @param {*} [options] Override http request option.
|
|
388
|
-
* @throws {RequiredError}
|
|
389
|
-
*/
|
|
390
|
-
async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
|
|
391
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
|
|
392
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
|
-
},
|
|
394
326
|
}
|
|
395
327
|
};
|
|
396
328
|
|
|
@@ -402,7 +334,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
402
334
|
const localVarFp = FinancialAccountsApiFp(configuration)
|
|
403
335
|
return {
|
|
404
336
|
/**
|
|
405
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
337
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
406
338
|
* @summary Create the Financial Account
|
|
407
339
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
408
340
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -441,29 +373,17 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
441
373
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
442
374
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
443
375
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
444
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
376
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
445
377
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
446
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
378
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
447
379
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
448
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
380
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
449
381
|
* @param {*} [options] Override http request option.
|
|
450
382
|
* @throws {RequiredError}
|
|
451
383
|
*/
|
|
452
384
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
|
|
453
385
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
454
386
|
},
|
|
455
|
-
/**
|
|
456
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
457
|
-
* @summary Update the Financial Account
|
|
458
|
-
* @param {string} code Unique identifier for the object.
|
|
459
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
460
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
461
|
-
* @param {*} [options] Override http request option.
|
|
462
|
-
* @throws {RequiredError}
|
|
463
|
-
*/
|
|
464
|
-
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
|
|
465
|
-
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
466
|
-
},
|
|
467
387
|
};
|
|
468
388
|
};
|
|
469
389
|
|
|
@@ -565,7 +485,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
565
485
|
readonly pageToken?: string
|
|
566
486
|
|
|
567
487
|
/**
|
|
568
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
488
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
569
489
|
* @type {string}
|
|
570
490
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
571
491
|
*/
|
|
@@ -579,7 +499,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
579
499
|
readonly search?: string
|
|
580
500
|
|
|
581
501
|
/**
|
|
582
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber
|
|
502
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
583
503
|
* @type {string}
|
|
584
504
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
585
505
|
*/
|
|
@@ -593,41 +513,13 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
593
513
|
readonly expand?: string
|
|
594
514
|
|
|
595
515
|
/**
|
|
596
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type
|
|
516
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
597
517
|
* @type {string}
|
|
598
518
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
599
519
|
*/
|
|
600
520
|
readonly filters?: string
|
|
601
521
|
}
|
|
602
522
|
|
|
603
|
-
/**
|
|
604
|
-
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
605
|
-
* @export
|
|
606
|
-
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
607
|
-
*/
|
|
608
|
-
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
609
|
-
/**
|
|
610
|
-
* Unique identifier for the object.
|
|
611
|
-
* @type {string}
|
|
612
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
613
|
-
*/
|
|
614
|
-
readonly code: string
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
*
|
|
618
|
-
* @type {UpdateFinancialAccountBodyDto}
|
|
619
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
620
|
-
*/
|
|
621
|
-
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
625
|
-
* @type {string}
|
|
626
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
627
|
-
*/
|
|
628
|
-
readonly authorization?: string
|
|
629
|
-
}
|
|
630
|
-
|
|
631
523
|
/**
|
|
632
524
|
* FinancialAccountsApi - object-oriented interface
|
|
633
525
|
* @export
|
|
@@ -636,7 +528,7 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
|
636
528
|
*/
|
|
637
529
|
export class FinancialAccountsApi extends BaseAPI {
|
|
638
530
|
/**
|
|
639
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
|
|
531
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
640
532
|
* @summary Create the Financial Account
|
|
641
533
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
642
534
|
* @param {*} [options] Override http request option.
|
|
@@ -682,16 +574,4 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
682
574
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
683
575
|
return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
684
576
|
}
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
688
|
-
* @summary Update the Financial Account
|
|
689
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
690
|
-
* @param {*} [options] Override http request option.
|
|
691
|
-
* @throws {RequiredError}
|
|
692
|
-
* @memberof FinancialAccountsApi
|
|
693
|
-
*/
|
|
694
|
-
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
695
|
-
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
696
|
-
}
|
|
697
577
|
}
|
package/api.ts
CHANGED
|
@@ -24,24 +24,18 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
-
import { AccountingConfigsApi } from './api';
|
|
28
27
|
import { BookingEntriesApi } from './api';
|
|
29
|
-
import { CommissionAccountMappingsApi } from './api';
|
|
30
28
|
import { FinancialAccountsApi } from './api';
|
|
31
29
|
import { FinancialTransactionsApi } from './api';
|
|
32
30
|
import { HealthApi } from './api';
|
|
33
31
|
import { NumberRangesApi } from './api';
|
|
34
32
|
import { PersonalAccountsApi } from './api';
|
|
35
|
-
import { ProductAccountMappingsApi } from './api';
|
|
36
33
|
|
|
37
34
|
|
|
38
|
-
export * from './api/accounting-configs-api';
|
|
39
35
|
export * from './api/booking-entries-api';
|
|
40
|
-
export * from './api/commission-account-mappings-api';
|
|
41
36
|
export * from './api/financial-accounts-api';
|
|
42
37
|
export * from './api/financial-transactions-api';
|
|
43
38
|
export * from './api/health-api';
|
|
44
39
|
export * from './api/number-ranges-api';
|
|
45
40
|
export * from './api/personal-accounts-api';
|
|
46
|
-
export * from './api/product-account-mappings-api';
|
|
47
41
|
|
|
@@ -14,12 +14,8 @@ 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';
|
|
19
17
|
import { GetBookingEntryResponseClass } from '../models';
|
|
20
18
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
21
|
-
import { PostFinancialEventRequestDto } from '../models';
|
|
22
|
-
import { PostFinancialEventResponseClass } from '../models';
|
|
23
19
|
/**
|
|
24
20
|
* BookingEntriesApi - axios parameter creator
|
|
25
21
|
* @export
|
|
@@ -34,15 +30,6 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
34
30
|
* @throws {RequiredError}
|
|
35
31
|
*/
|
|
36
32
|
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>;
|
|
46
33
|
/**
|
|
47
34
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
48
35
|
* @summary Retrieve the booking entry
|
|
@@ -68,15 +55,6 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
68
55
|
* @throws {RequiredError}
|
|
69
56
|
*/
|
|
70
57
|
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>;
|
|
80
58
|
};
|
|
81
59
|
/**
|
|
82
60
|
* BookingEntriesApi - functional programming interface
|
|
@@ -92,15 +70,6 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
92
70
|
* @throws {RequiredError}
|
|
93
71
|
*/
|
|
94
72
|
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>>;
|
|
104
73
|
/**
|
|
105
74
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
106
75
|
* @summary Retrieve the booking entry
|
|
@@ -126,15 +95,6 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
126
95
|
* @throws {RequiredError}
|
|
127
96
|
*/
|
|
128
97
|
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>>;
|
|
138
98
|
};
|
|
139
99
|
/**
|
|
140
100
|
* BookingEntriesApi - factory interface
|
|
@@ -150,15 +110,6 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
150
110
|
* @throws {RequiredError}
|
|
151
111
|
*/
|
|
152
112
|
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>;
|
|
162
113
|
/**
|
|
163
114
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
164
115
|
* @summary Retrieve the booking entry
|
|
@@ -184,15 +135,6 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
184
135
|
* @throws {RequiredError}
|
|
185
136
|
*/
|
|
186
137
|
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>;
|
|
196
138
|
};
|
|
197
139
|
/**
|
|
198
140
|
* Request parameters for createBookingEntry operation in BookingEntriesApi.
|
|
@@ -213,25 +155,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
213
155
|
*/
|
|
214
156
|
readonly authorization?: string;
|
|
215
157
|
}
|
|
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
|
-
}
|
|
235
158
|
/**
|
|
236
159
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
237
160
|
* @export
|
|
@@ -312,25 +235,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
312
235
|
*/
|
|
313
236
|
readonly filters?: string;
|
|
314
237
|
}
|
|
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
|
-
}
|
|
334
238
|
/**
|
|
335
239
|
* BookingEntriesApi - object-oriented interface
|
|
336
240
|
* @export
|
|
@@ -347,15 +251,6 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
347
251
|
* @memberof BookingEntriesApi
|
|
348
252
|
*/
|
|
349
253
|
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, {}>>;
|
|
359
254
|
/**
|
|
360
255
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
361
256
|
* @summary Retrieve the booking entry
|
|
@@ -374,13 +269,4 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
374
269
|
* @memberof BookingEntriesApi
|
|
375
270
|
*/
|
|
376
271
|
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, {}>>;
|
|
386
272
|
}
|