@emilgroup/accounting-sdk 1.34.1-beta.76 → 1.34.1-beta.78
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 -846
- package/api/commission-account-mappings-api.ts +0 -1191
- package/api/product-account-mappings-api.ts +0 -1470
- package/dist/api/accounting-configs-api.d.ts +0 -451
- package/dist/api/accounting-configs-api.js +0 -857
- package/dist/api/commission-account-mappings-api.d.ts +0 -685
- package/dist/api/commission-account-mappings-api.js +0 -1004
- package/dist/api/product-account-mappings-api.d.ts +0 -851
- package/dist/api/product-account-mappings-api.js +0 -1224
- 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
|
@@ -93,7 +93,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* 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.
|
|
96
|
+
* 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\"
|
|
97
97
|
* @summary Create the Financial Account
|
|
98
98
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -249,11 +249,11 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
249
249
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
250
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
251
251
|
* @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.
|
|
252
|
-
* @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
|
|
252
|
+
* @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>
|
|
253
253
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
254
|
-
* @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
|
|
254
|
+
* @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>
|
|
255
255
|
* @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/>
|
|
256
|
-
* @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
|
|
256
|
+
* @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>
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
@@ -315,59 +315,6 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
},
|
|
318
|
-
/**
|
|
319
|
-
* 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\"
|
|
320
|
-
* @summary Update the Financial Account
|
|
321
|
-
* @param {string} code Unique identifier for the object.
|
|
322
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
323
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
|
-
* @param {*} [options] Override http request option.
|
|
325
|
-
* @throws {RequiredError}
|
|
326
|
-
*/
|
|
327
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
328
|
-
if (options === void 0) { options = {}; }
|
|
329
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
330
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
331
|
-
return __generator(this, function (_a) {
|
|
332
|
-
switch (_a.label) {
|
|
333
|
-
case 0:
|
|
334
|
-
// verify required parameter 'code' is not null or undefined
|
|
335
|
-
(0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
|
|
336
|
-
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
337
|
-
(0, common_1.assertParamExists)('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto);
|
|
338
|
-
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
339
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
340
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
-
if (configuration) {
|
|
342
|
-
baseOptions = configuration.baseOptions;
|
|
343
|
-
baseAccessToken = configuration.accessToken;
|
|
344
|
-
}
|
|
345
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
346
|
-
localVarHeaderParameter = {};
|
|
347
|
-
localVarQueryParameter = {};
|
|
348
|
-
// authentication bearer required
|
|
349
|
-
// http bearer authentication required
|
|
350
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
351
|
-
case 1:
|
|
352
|
-
// authentication bearer required
|
|
353
|
-
// http bearer authentication required
|
|
354
|
-
_a.sent();
|
|
355
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
356
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
357
|
-
}
|
|
358
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
359
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
360
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
361
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
362
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFinancialAccountBodyDto, localVarRequestOptions, configuration);
|
|
363
|
-
return [2 /*return*/, {
|
|
364
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
365
|
-
options: localVarRequestOptions,
|
|
366
|
-
}];
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
});
|
|
370
|
-
},
|
|
371
318
|
};
|
|
372
319
|
};
|
|
373
320
|
exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
|
|
@@ -379,7 +326,7 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
379
326
|
var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
|
|
380
327
|
return {
|
|
381
328
|
/**
|
|
382
|
-
* 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.
|
|
329
|
+
* 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\"
|
|
383
330
|
* @summary Create the Financial Account
|
|
384
331
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
385
332
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -448,11 +395,11 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
448
395
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
449
396
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
450
397
|
* @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.
|
|
451
|
-
* @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
|
|
398
|
+
* @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>
|
|
452
399
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
453
|
-
* @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
|
|
400
|
+
* @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>
|
|
454
401
|
* @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/>
|
|
455
|
-
* @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
|
|
402
|
+
* @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>
|
|
456
403
|
* @param {*} [options] Override http request option.
|
|
457
404
|
* @throws {RequiredError}
|
|
458
405
|
*/
|
|
@@ -469,28 +416,6 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
469
416
|
});
|
|
470
417
|
});
|
|
471
418
|
},
|
|
472
|
-
/**
|
|
473
|
-
* 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\"
|
|
474
|
-
* @summary Update the Financial Account
|
|
475
|
-
* @param {string} code Unique identifier for the object.
|
|
476
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
477
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
478
|
-
* @param {*} [options] Override http request option.
|
|
479
|
-
* @throws {RequiredError}
|
|
480
|
-
*/
|
|
481
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
482
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
483
|
-
var localVarAxiosArgs;
|
|
484
|
-
return __generator(this, function (_a) {
|
|
485
|
-
switch (_a.label) {
|
|
486
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options)];
|
|
487
|
-
case 1:
|
|
488
|
-
localVarAxiosArgs = _a.sent();
|
|
489
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
});
|
|
493
|
-
},
|
|
494
419
|
};
|
|
495
420
|
};
|
|
496
421
|
exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
|
|
@@ -502,7 +427,7 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
502
427
|
var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
|
|
503
428
|
return {
|
|
504
429
|
/**
|
|
505
|
-
* 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.
|
|
430
|
+
* 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\"
|
|
506
431
|
* @summary Create the Financial Account
|
|
507
432
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
508
433
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -541,29 +466,17 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
541
466
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
467
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
468
|
* @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.
|
|
544
|
-
* @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
|
|
469
|
+
* @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>
|
|
545
470
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
546
|
-
* @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
|
|
471
|
+
* @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>
|
|
547
472
|
* @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/>
|
|
548
|
-
* @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
|
|
473
|
+
* @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>
|
|
549
474
|
* @param {*} [options] Override http request option.
|
|
550
475
|
* @throws {RequiredError}
|
|
551
476
|
*/
|
|
552
477
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
553
478
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
554
479
|
},
|
|
555
|
-
/**
|
|
556
|
-
* 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\"
|
|
557
|
-
* @summary Update the Financial Account
|
|
558
|
-
* @param {string} code Unique identifier for the object.
|
|
559
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
560
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
|
-
* @param {*} [options] Override http request option.
|
|
562
|
-
* @throws {RequiredError}
|
|
563
|
-
*/
|
|
564
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
565
|
-
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
566
|
-
},
|
|
567
480
|
};
|
|
568
481
|
};
|
|
569
482
|
exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
|
|
@@ -579,7 +492,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
579
492
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
580
493
|
}
|
|
581
494
|
/**
|
|
582
|
-
* 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.
|
|
495
|
+
* 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\"
|
|
583
496
|
* @summary Create the Financial Account
|
|
584
497
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
585
498
|
* @param {*} [options] Override http request option.
|
|
@@ -627,18 +540,6 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
627
540
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
628
541
|
return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
629
542
|
};
|
|
630
|
-
/**
|
|
631
|
-
* 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\"
|
|
632
|
-
* @summary Update the Financial Account
|
|
633
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
634
|
-
* @param {*} [options] Override http request option.
|
|
635
|
-
* @throws {RequiredError}
|
|
636
|
-
* @memberof FinancialAccountsApi
|
|
637
|
-
*/
|
|
638
|
-
FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
|
|
639
|
-
var _this = this;
|
|
640
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
641
|
-
};
|
|
642
543
|
return FinancialAccountsApi;
|
|
643
544
|
}(base_1.BaseAPI));
|
|
644
545
|
exports.FinancialAccountsApi = FinancialAccountsApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -9,12 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export * from './api/accounting-configs-api';
|
|
13
12
|
export * from './api/booking-entries-api';
|
|
14
|
-
export * from './api/commission-account-mappings-api';
|
|
15
13
|
export * from './api/financial-accounts-api';
|
|
16
14
|
export * from './api/financial-transactions-api';
|
|
17
15
|
export * from './api/health-api';
|
|
18
16
|
export * from './api/number-ranges-api';
|
|
19
17
|
export * from './api/personal-accounts-api';
|
|
20
|
-
export * from './api/product-account-mappings-api';
|
package/dist/api.js
CHANGED
|
@@ -27,12 +27,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
__exportStar(require("./api/accounting-configs-api"), exports);
|
|
31
30
|
__exportStar(require("./api/booking-entries-api"), exports);
|
|
32
|
-
__exportStar(require("./api/commission-account-mappings-api"), exports);
|
|
33
31
|
__exportStar(require("./api/financial-accounts-api"), exports);
|
|
34
32
|
__exportStar(require("./api/financial-transactions-api"), exports);
|
|
35
33
|
__exportStar(require("./api/health-api"), exports);
|
|
36
34
|
__exportStar(require("./api/number-ranges-api"), exports);
|
|
37
35
|
__exportStar(require("./api/personal-accounts-api"), exports);
|
|
38
|
-
__exportStar(require("./api/product-account-mappings-api"), exports);
|
|
@@ -76,18 +76,6 @@ export interface BookingEntryClass {
|
|
|
76
76
|
* @memberof BookingEntryClass
|
|
77
77
|
*/
|
|
78
78
|
'externalNumber'?: string;
|
|
79
|
-
/**
|
|
80
|
-
* The code of the source entity this entry was posted for, such as an invoice or payment code. Always set together with sourceEntityType.
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof BookingEntryClass
|
|
83
|
-
*/
|
|
84
|
-
'sourceEntityCode'?: string;
|
|
85
|
-
/**
|
|
86
|
-
* The kind of source entity this entry was posted for. Always set together with sourceEntityCode.
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof BookingEntryClass
|
|
89
|
-
*/
|
|
90
|
-
'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
|
|
91
79
|
/**
|
|
92
80
|
* A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
|
|
93
81
|
* @type {Array<FinancialTransactionClass>}
|
|
@@ -133,11 +121,3 @@ export declare const BookingEntryClassCurrencyEnum: {
|
|
|
133
121
|
readonly Sek: "SEK";
|
|
134
122
|
};
|
|
135
123
|
export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
|
|
136
|
-
export declare const BookingEntryClassSourceEntityTypeEnum: {
|
|
137
|
-
readonly Invoice: "invoice";
|
|
138
|
-
readonly Payment: "payment";
|
|
139
|
-
readonly Credit: "credit";
|
|
140
|
-
readonly CreditAllocation: "credit_allocation";
|
|
141
|
-
readonly Commission: "commission";
|
|
142
|
-
};
|
|
143
|
-
export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.BookingEntryClassCurrencyEnum = void 0;
|
|
17
17
|
exports.BookingEntryClassCurrencyEnum = {
|
|
18
18
|
Eur: 'EUR',
|
|
19
19
|
Usd: 'USD',
|
|
@@ -27,10 +27,3 @@ exports.BookingEntryClassCurrencyEnum = {
|
|
|
27
27
|
Nok: 'NOK',
|
|
28
28
|
Sek: 'SEK'
|
|
29
29
|
};
|
|
30
|
-
exports.BookingEntryClassSourceEntityTypeEnum = {
|
|
31
|
-
Invoice: 'invoice',
|
|
32
|
-
Payment: 'payment',
|
|
33
|
-
Credit: 'credit',
|
|
34
|
-
CreditAllocation: 'credit_allocation',
|
|
35
|
-
Commission: 'commission'
|
|
36
|
-
};
|
|
@@ -40,18 +40,6 @@ export interface CreateBookingEntryRequestDto {
|
|
|
40
40
|
* @memberof CreateBookingEntryRequestDto
|
|
41
41
|
*/
|
|
42
42
|
'externalNumber'?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The code of the source entity this entry was posted for, such as an invoice or payment code. Must be provided together with sourceEntityType.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreateBookingEntryRequestDto
|
|
47
|
-
*/
|
|
48
|
-
'sourceEntityCode'?: string;
|
|
49
|
-
/**
|
|
50
|
-
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof CreateBookingEntryRequestDto
|
|
53
|
-
*/
|
|
54
|
-
'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
|
|
55
43
|
/**
|
|
56
44
|
* A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
|
|
57
45
|
* @type {string}
|
|
@@ -60,12 +48,10 @@ export interface CreateBookingEntryRequestDto {
|
|
|
60
48
|
'description': string;
|
|
61
49
|
/**
|
|
62
50
|
* Optional key-value pairs containing additional custom information for the booking entry. These fields may include document numbers, reasons, or other contextual metadata.
|
|
63
|
-
* @type {
|
|
51
|
+
* @type {object}
|
|
64
52
|
* @memberof CreateBookingEntryRequestDto
|
|
65
53
|
*/
|
|
66
|
-
'customFields'?:
|
|
67
|
-
[key: string]: object;
|
|
68
|
-
};
|
|
54
|
+
'customFields'?: object;
|
|
69
55
|
/**
|
|
70
56
|
* An array of financial transactions associated with this booking entry. Each transaction includes details such as financial account, amount, and debit or credit status.
|
|
71
57
|
* @type {Array<FinancialTransactionDataDto>}
|
|
@@ -73,11 +59,3 @@ export interface CreateBookingEntryRequestDto {
|
|
|
73
59
|
*/
|
|
74
60
|
'financialTransactions': Array<FinancialTransactionDataDto>;
|
|
75
61
|
}
|
|
76
|
-
export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
|
|
77
|
-
readonly Invoice: "invoice";
|
|
78
|
-
readonly Payment: "payment";
|
|
79
|
-
readonly Credit: "credit";
|
|
80
|
-
readonly CreditAllocation: "credit_allocation";
|
|
81
|
-
readonly Commission: "commission";
|
|
82
|
-
};
|
|
83
|
-
export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
|
|
@@ -13,11 +13,3 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = void 0;
|
|
17
|
-
exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
|
|
18
|
-
Invoice: 'invoice',
|
|
19
|
-
Payment: 'payment',
|
|
20
|
-
Credit: 'credit',
|
|
21
|
-
CreditAllocation: 'credit_allocation',
|
|
22
|
-
Commission: 'commission'
|
|
23
|
-
};
|
|
@@ -47,12 +47,10 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
47
47
|
'parentId'?: number;
|
|
48
48
|
/**
|
|
49
49
|
* Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
51
51
|
* @memberof CreateFinancialAccountRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'customFields'
|
|
54
|
-
[key: string]: object;
|
|
55
|
-
};
|
|
53
|
+
'customFields': object;
|
|
56
54
|
/**
|
|
57
55
|
* A detailed description of the financial account
|
|
58
56
|
* @type {string}
|
|
@@ -66,59 +64,18 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
66
64
|
*/
|
|
67
65
|
'clearable': boolean;
|
|
68
66
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {boolean}
|
|
71
|
-
* @memberof CreateFinancialAccountRequestDto
|
|
72
|
-
*/
|
|
73
|
-
'isControlAccount': boolean;
|
|
74
|
-
/**
|
|
75
|
-
* The functional category of the account. Empty string means unset.
|
|
67
|
+
* Not used on this release line. Declared so the DTO matches the generated proto interface. Empty string means unset.
|
|
76
68
|
* @type {string}
|
|
77
69
|
* @memberof CreateFinancialAccountRequestDto
|
|
78
70
|
*/
|
|
79
|
-
'functionalCategory'
|
|
80
|
-
/**
|
|
81
|
-
* Whether this account is the default for its functional category. Only meaningful for pool categories. Setting true on creation will clear isDefault on any other account in the same category.
|
|
82
|
-
* @type {boolean}
|
|
83
|
-
* @memberof CreateFinancialAccountRequestDto
|
|
84
|
-
*/
|
|
85
|
-
'isDefault'?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* The connected bank account this account books, given as its code. Permitted only on bank_acc accounts, and rejected if another financial account already links that bank account. Its IBAN is read from the bank account and returned as linkedBankAccountIban; it is never accepted here.
|
|
88
|
-
* @type {string}
|
|
89
|
-
* @memberof CreateFinancialAccountRequestDto
|
|
90
|
-
*/
|
|
91
|
-
'linkedBankAccountCode'?: string;
|
|
71
|
+
'functionalCategory'?: string;
|
|
92
72
|
}
|
|
93
73
|
export declare const CreateFinancialAccountRequestDtoTypeEnum: {
|
|
94
74
|
readonly Asset: "asset";
|
|
95
75
|
readonly Liability: "liability";
|
|
96
76
|
readonly Equity: "equity";
|
|
97
|
-
readonly
|
|
77
|
+
readonly Revenue: "revenue";
|
|
98
78
|
readonly Expense: "expense";
|
|
99
79
|
readonly OpeningBalance: "opening_balance";
|
|
100
80
|
};
|
|
101
81
|
export type CreateFinancialAccountRequestDtoTypeEnum = typeof CreateFinancialAccountRequestDtoTypeEnum[keyof typeof CreateFinancialAccountRequestDtoTypeEnum];
|
|
102
|
-
export declare const CreateFinancialAccountRequestDtoFunctionalCategoryEnum: {
|
|
103
|
-
readonly BankAcc: "bank_acc";
|
|
104
|
-
readonly TaxPendingAcc: "tax_pending_acc";
|
|
105
|
-
readonly TaxForwardedAcc: "tax_forwarded_acc";
|
|
106
|
-
readonly TaxDueAcc: "tax_due_acc";
|
|
107
|
-
readonly VatPendingAcc: "vat_pending_acc";
|
|
108
|
-
readonly VatDueAcc: "vat_due_acc";
|
|
109
|
-
readonly RevenueBufferAcc: "revenue_buffer_acc";
|
|
110
|
-
readonly RevenueFinalAcc: "revenue_final_acc";
|
|
111
|
-
readonly ClaimExpenseAcc: "claim_expense_acc";
|
|
112
|
-
readonly CustomerCreditLiabAcc: "customer_credit_liab_acc";
|
|
113
|
-
readonly WriteOffExpAcc: "write_off_exp_acc";
|
|
114
|
-
readonly RoundingDiffAcc: "rounding_diff_acc";
|
|
115
|
-
readonly PaymentFeesExpAcc: "payment_fees_exp_acc";
|
|
116
|
-
readonly FeeRevenueAcc: "fee_revenue_acc";
|
|
117
|
-
readonly UnallocatedReceiptsAcc: "unallocated_receipts_acc";
|
|
118
|
-
readonly OpeningBalEquityAcc: "opening_bal_equity_acc";
|
|
119
|
-
readonly ReceivablesCtrlAcc: "receivables_ctrl_acc";
|
|
120
|
-
readonly BrokerCtrlAcc: "broker_ctrl_acc";
|
|
121
|
-
readonly CarrierCtrlAcc: "carrier_ctrl_acc";
|
|
122
|
-
readonly MainLedgerBridgeAcc: "main_ledger_bridge_acc";
|
|
123
|
-
};
|
|
124
|
-
export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
|
|
@@ -13,34 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CreateFinancialAccountRequestDtoTypeEnum = void 0;
|
|
17
17
|
exports.CreateFinancialAccountRequestDtoTypeEnum = {
|
|
18
18
|
Asset: 'asset',
|
|
19
19
|
Liability: 'liability',
|
|
20
20
|
Equity: 'equity',
|
|
21
|
-
|
|
21
|
+
Revenue: 'revenue',
|
|
22
22
|
Expense: 'expense',
|
|
23
23
|
OpeningBalance: 'opening_balance'
|
|
24
24
|
};
|
|
25
|
-
exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
|
|
26
|
-
BankAcc: 'bank_acc',
|
|
27
|
-
TaxPendingAcc: 'tax_pending_acc',
|
|
28
|
-
TaxForwardedAcc: 'tax_forwarded_acc',
|
|
29
|
-
TaxDueAcc: 'tax_due_acc',
|
|
30
|
-
VatPendingAcc: 'vat_pending_acc',
|
|
31
|
-
VatDueAcc: 'vat_due_acc',
|
|
32
|
-
RevenueBufferAcc: 'revenue_buffer_acc',
|
|
33
|
-
RevenueFinalAcc: 'revenue_final_acc',
|
|
34
|
-
ClaimExpenseAcc: 'claim_expense_acc',
|
|
35
|
-
CustomerCreditLiabAcc: 'customer_credit_liab_acc',
|
|
36
|
-
WriteOffExpAcc: 'write_off_exp_acc',
|
|
37
|
-
RoundingDiffAcc: 'rounding_diff_acc',
|
|
38
|
-
PaymentFeesExpAcc: 'payment_fees_exp_acc',
|
|
39
|
-
FeeRevenueAcc: 'fee_revenue_acc',
|
|
40
|
-
UnallocatedReceiptsAcc: 'unallocated_receipts_acc',
|
|
41
|
-
OpeningBalEquityAcc: 'opening_bal_equity_acc',
|
|
42
|
-
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
43
|
-
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
44
|
-
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
45
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
46
|
-
};
|
|
@@ -41,13 +41,13 @@ export interface CreateNumberRangeRequestDto {
|
|
|
41
41
|
'accountType': CreateNumberRangeRequestDtoAccountTypeEnum;
|
|
42
42
|
}
|
|
43
43
|
export declare const CreateNumberRangeRequestDtoAccountTypeEnum: {
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
44
|
+
readonly Customer: "customer";
|
|
45
|
+
readonly Supplier: "supplier";
|
|
46
|
+
readonly Employee: "employee";
|
|
47
47
|
readonly Asset: "asset";
|
|
48
48
|
readonly Liability: "liability";
|
|
49
49
|
readonly Equity: "equity";
|
|
50
|
-
readonly
|
|
50
|
+
readonly Revenue: "revenue";
|
|
51
51
|
readonly Expense: "expense";
|
|
52
52
|
};
|
|
53
53
|
export type CreateNumberRangeRequestDtoAccountTypeEnum = typeof CreateNumberRangeRequestDtoAccountTypeEnum[keyof typeof CreateNumberRangeRequestDtoAccountTypeEnum];
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateNumberRangeRequestDtoAccountTypeEnum = void 0;
|
|
17
17
|
exports.CreateNumberRangeRequestDtoAccountTypeEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
Customer: 'customer',
|
|
19
|
+
Supplier: 'supplier',
|
|
20
|
+
Employee: 'employee',
|
|
21
21
|
Asset: 'asset',
|
|
22
22
|
Liability: 'liability',
|
|
23
23
|
Equity: 'equity',
|
|
24
|
-
|
|
24
|
+
Revenue: 'revenue',
|
|
25
25
|
Expense: 'expense'
|
|
26
26
|
};
|
|
@@ -40,29 +40,21 @@ export interface CreatePersonalAccountRequestDto {
|
|
|
40
40
|
*/
|
|
41
41
|
'partnerNumber': string;
|
|
42
42
|
/**
|
|
43
|
-
* The
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreatePersonalAccountRequestDto
|
|
46
|
-
*/
|
|
47
|
-
'partnerCode': string;
|
|
48
|
-
/**
|
|
49
|
-
* The type of personal account, specifying its category or classification, such as policyholder, risk_carrier, or broker. This categorization helps in accounting and reporting.
|
|
43
|
+
* The type of personal account, specifying its category or classification, such as customer, supplier, or employee. This categorization helps in accounting and reporting.
|
|
50
44
|
* @type {string}
|
|
51
45
|
* @memberof CreatePersonalAccountRequestDto
|
|
52
46
|
*/
|
|
53
47
|
'type': CreatePersonalAccountRequestDtoTypeEnum;
|
|
54
48
|
/**
|
|
55
49
|
* Optional key-value pairs to store additional custom metadata or specific attributes related to the financial account, such as account purpose or manager.
|
|
56
|
-
* @type {
|
|
50
|
+
* @type {object}
|
|
57
51
|
* @memberof CreatePersonalAccountRequestDto
|
|
58
52
|
*/
|
|
59
|
-
'customFields'?:
|
|
60
|
-
[key: string]: object;
|
|
61
|
-
};
|
|
53
|
+
'customFields'?: object;
|
|
62
54
|
}
|
|
63
55
|
export declare const CreatePersonalAccountRequestDtoTypeEnum: {
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
56
|
+
readonly Customer: "customer";
|
|
57
|
+
readonly Supplier: "supplier";
|
|
58
|
+
readonly Employee: "employee";
|
|
67
59
|
};
|
|
68
60
|
export type CreatePersonalAccountRequestDtoTypeEnum = typeof CreatePersonalAccountRequestDtoTypeEnum[keyof typeof CreatePersonalAccountRequestDtoTypeEnum];
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreatePersonalAccountRequestDtoTypeEnum = void 0;
|
|
17
17
|
exports.CreatePersonalAccountRequestDtoTypeEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
Customer: 'customer',
|
|
19
|
+
Supplier: 'supplier',
|
|
20
|
+
Employee: 'employee'
|
|
21
21
|
};
|
|
@@ -52,7 +52,7 @@ export interface FinancialAccountClass {
|
|
|
52
52
|
*/
|
|
53
53
|
'partnerNumber': string;
|
|
54
54
|
/**
|
|
55
|
-
* The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"
|
|
55
|
+
* The type of account, e.g. \"Asset\", \"Liability\", \"Equity\", \"Revenue\", \"Expense\".
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof FinancialAccountClass
|
|
58
58
|
*/
|
|
@@ -75,48 +75,6 @@ export interface FinancialAccountClass {
|
|
|
75
75
|
* @memberof FinancialAccountClass
|
|
76
76
|
*/
|
|
77
77
|
'clearable': boolean;
|
|
78
|
-
/**
|
|
79
|
-
* The status of the account, either \'active\' or \'inactive\'.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof FinancialAccountClass
|
|
82
|
-
*/
|
|
83
|
-
'status': FinancialAccountClassStatusEnum;
|
|
84
|
-
/**
|
|
85
|
-
* Whether the account is a control account.
|
|
86
|
-
* @type {boolean}
|
|
87
|
-
* @memberof FinancialAccountClass
|
|
88
|
-
*/
|
|
89
|
-
'isControlAccount': boolean;
|
|
90
|
-
/**
|
|
91
|
-
* The functional category of the account. Empty string means unset.
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof FinancialAccountClass
|
|
94
|
-
*/
|
|
95
|
-
'functionalCategory': string;
|
|
96
|
-
/**
|
|
97
|
-
* Whether this is the default account for its functional category. Only one pool-category account per category can have isDefault set to true.
|
|
98
|
-
* @type {boolean}
|
|
99
|
-
* @memberof FinancialAccountClass
|
|
100
|
-
*/
|
|
101
|
-
'isDefault': boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Whether the account is locked. Set automatically the first time the account is posted to; once true, financialAccountNumber can no longer be changed.
|
|
104
|
-
* @type {boolean}
|
|
105
|
-
* @memberof FinancialAccountClass
|
|
106
|
-
*/
|
|
107
|
-
'isLocked': boolean;
|
|
108
|
-
/**
|
|
109
|
-
* The connected bank account this account books, if one is linked. Absent when unlinked, which is every account outside the bank category.
|
|
110
|
-
* @type {string}
|
|
111
|
-
* @memberof FinancialAccountClass
|
|
112
|
-
*/
|
|
113
|
-
'linkedBankAccountCode'?: string;
|
|
114
|
-
/**
|
|
115
|
-
* IBAN of the linked bank account. Read-only: it is read from the bank account when the link is written and cannot be set here.
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof FinancialAccountClass
|
|
118
|
-
*/
|
|
119
|
-
'linkedBankAccountIban'?: string;
|
|
120
78
|
/**
|
|
121
79
|
* Time at which the object was created.
|
|
122
80
|
* @type {string}
|
|
@@ -146,13 +104,8 @@ export declare const FinancialAccountClassTypeEnum: {
|
|
|
146
104
|
readonly Asset: "asset";
|
|
147
105
|
readonly Liability: "liability";
|
|
148
106
|
readonly Equity: "equity";
|
|
149
|
-
readonly
|
|
107
|
+
readonly Revenue: "revenue";
|
|
150
108
|
readonly Expense: "expense";
|
|
151
109
|
readonly OpeningBalance: "opening_balance";
|
|
152
110
|
};
|
|
153
111
|
export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
|
|
154
|
-
export declare const FinancialAccountClassStatusEnum: {
|
|
155
|
-
readonly Active: "active";
|
|
156
|
-
readonly Inactive: "inactive";
|
|
157
|
-
};
|
|
158
|
-
export type FinancialAccountClassStatusEnum = typeof FinancialAccountClassStatusEnum[keyof typeof FinancialAccountClassStatusEnum];
|