@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
|
@@ -97,7 +97,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* 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.
|
|
100
|
+
* 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\"
|
|
101
101
|
* @summary Create the Financial Account
|
|
102
102
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -253,11 +253,11 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
253
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
254
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
255
255
|
* @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.
|
|
256
|
-
* @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
|
|
256
|
+
* @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>
|
|
257
257
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
258
|
-
* @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
|
|
258
|
+
* @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>
|
|
259
259
|
* @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/>
|
|
260
|
-
* @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
|
|
260
|
+
* @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>
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
@@ -319,59 +319,6 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
319
319
|
});
|
|
320
320
|
});
|
|
321
321
|
},
|
|
322
|
-
/**
|
|
323
|
-
* 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\"
|
|
324
|
-
* @summary Update the Financial Account
|
|
325
|
-
* @param {string} code Unique identifier for the object.
|
|
326
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
327
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
328
|
-
* @param {*} [options] Override http request option.
|
|
329
|
-
* @throws {RequiredError}
|
|
330
|
-
*/
|
|
331
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
332
|
-
if (options === void 0) { options = {}; }
|
|
333
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
334
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
|
-
return __generator(this, function (_a) {
|
|
336
|
-
switch (_a.label) {
|
|
337
|
-
case 0:
|
|
338
|
-
// verify required parameter 'code' is not null or undefined
|
|
339
|
-
(0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
|
|
340
|
-
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
341
|
-
(0, common_1.assertParamExists)('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto);
|
|
342
|
-
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
343
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
344
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
-
if (configuration) {
|
|
346
|
-
baseOptions = configuration.baseOptions;
|
|
347
|
-
baseAccessToken = configuration.accessToken;
|
|
348
|
-
}
|
|
349
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
350
|
-
localVarHeaderParameter = {};
|
|
351
|
-
localVarQueryParameter = {};
|
|
352
|
-
// authentication bearer required
|
|
353
|
-
// http bearer authentication required
|
|
354
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
355
|
-
case 1:
|
|
356
|
-
// authentication bearer required
|
|
357
|
-
// http bearer authentication required
|
|
358
|
-
_a.sent();
|
|
359
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
360
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
361
|
-
}
|
|
362
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
363
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
364
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
366
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFinancialAccountBodyDto, localVarRequestOptions, configuration);
|
|
367
|
-
return [2 /*return*/, {
|
|
368
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
369
|
-
options: localVarRequestOptions,
|
|
370
|
-
}];
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
});
|
|
374
|
-
},
|
|
375
322
|
};
|
|
376
323
|
};
|
|
377
324
|
exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
|
|
@@ -383,7 +330,7 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
383
330
|
var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
|
|
384
331
|
return {
|
|
385
332
|
/**
|
|
386
|
-
* 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.
|
|
333
|
+
* 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\"
|
|
387
334
|
* @summary Create the Financial Account
|
|
388
335
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
389
336
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -452,11 +399,11 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
452
399
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
400
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
454
401
|
* @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.
|
|
455
|
-
* @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
|
|
402
|
+
* @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>
|
|
456
403
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
457
|
-
* @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
|
|
404
|
+
* @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>
|
|
458
405
|
* @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/>
|
|
459
|
-
* @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
|
|
406
|
+
* @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>
|
|
460
407
|
* @param {*} [options] Override http request option.
|
|
461
408
|
* @throws {RequiredError}
|
|
462
409
|
*/
|
|
@@ -473,28 +420,6 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
473
420
|
});
|
|
474
421
|
});
|
|
475
422
|
},
|
|
476
|
-
/**
|
|
477
|
-
* 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\"
|
|
478
|
-
* @summary Update the Financial Account
|
|
479
|
-
* @param {string} code Unique identifier for the object.
|
|
480
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
481
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
482
|
-
* @param {*} [options] Override http request option.
|
|
483
|
-
* @throws {RequiredError}
|
|
484
|
-
*/
|
|
485
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
486
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
487
|
-
var localVarAxiosArgs;
|
|
488
|
-
return __generator(this, function (_a) {
|
|
489
|
-
switch (_a.label) {
|
|
490
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options)];
|
|
491
|
-
case 1:
|
|
492
|
-
localVarAxiosArgs = _a.sent();
|
|
493
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
494
|
-
}
|
|
495
|
-
});
|
|
496
|
-
});
|
|
497
|
-
},
|
|
498
423
|
};
|
|
499
424
|
};
|
|
500
425
|
exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
|
|
@@ -506,7 +431,7 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
506
431
|
var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
|
|
507
432
|
return {
|
|
508
433
|
/**
|
|
509
|
-
* 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.
|
|
434
|
+
* 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\"
|
|
510
435
|
* @summary Create the Financial Account
|
|
511
436
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
512
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -545,29 +470,17 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
545
470
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
471
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
547
472
|
* @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.
|
|
548
|
-
* @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
|
|
473
|
+
* @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>
|
|
549
474
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
550
|
-
* @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
|
|
475
|
+
* @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>
|
|
551
476
|
* @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/>
|
|
552
|
-
* @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
|
|
477
|
+
* @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>
|
|
553
478
|
* @param {*} [options] Override http request option.
|
|
554
479
|
* @throws {RequiredError}
|
|
555
480
|
*/
|
|
556
481
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
557
482
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
558
483
|
},
|
|
559
|
-
/**
|
|
560
|
-
* 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\"
|
|
561
|
-
* @summary Update the Financial Account
|
|
562
|
-
* @param {string} code Unique identifier for the object.
|
|
563
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
564
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
565
|
-
* @param {*} [options] Override http request option.
|
|
566
|
-
* @throws {RequiredError}
|
|
567
|
-
*/
|
|
568
|
-
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
569
|
-
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
570
|
-
},
|
|
571
484
|
};
|
|
572
485
|
};
|
|
573
486
|
exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
|
|
@@ -583,7 +496,7 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
583
496
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
584
497
|
}
|
|
585
498
|
/**
|
|
586
|
-
* 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.
|
|
499
|
+
* 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\"
|
|
587
500
|
* @summary Create the Financial Account
|
|
588
501
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
589
502
|
* @param {*} [options] Override http request option.
|
|
@@ -631,18 +544,6 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
631
544
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
632
545
|
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); });
|
|
633
546
|
};
|
|
634
|
-
/**
|
|
635
|
-
* 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\"
|
|
636
|
-
* @summary Update the Financial Account
|
|
637
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
638
|
-
* @param {*} [options] Override http request option.
|
|
639
|
-
* @throws {RequiredError}
|
|
640
|
-
* @memberof FinancialAccountsApi
|
|
641
|
-
*/
|
|
642
|
-
FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
|
|
643
|
-
var _this = this;
|
|
644
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
645
|
-
};
|
|
646
547
|
return FinancialAccountsApi;
|
|
647
548
|
}(base_1.BaseAPI));
|
|
648
549
|
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];
|