@emilgroup/accounting-sdk 1.34.1-beta.7 → 1.34.1-beta.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +35 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +120 -14
- package/api/booking-entries-api.ts +234 -10
- package/api/commission-account-mappings-api.ts +1207 -0
- package/api/financial-accounts-api.ts +150 -20
- package/api/financial-transactions-api.ts +8 -4
- package/api/number-ranges-api.ts +16 -8
- package/api/personal-accounts-api.ts +16 -8
- package/api/product-account-mappings-api.ts +1715 -0
- package/api.ts +4 -0
- package/base.ts +174 -41
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +139 -28
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +211 -14
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1022 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +134 -24
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +22 -14
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +22 -14
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1447 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +21 -0
- package/dist/models/booking-entry-class.js +9 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -0
- package/dist/models/commission-account-mapping-class.js +15 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
- package/dist/models/commission-agreement-partner-class.d.ts +30 -0
- package/dist/models/commission-agreement-partner-class.js +15 -0
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
- package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
- package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
- package/dist/models/commission-type-account-mapping-class.js +15 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
- package/dist/models/create-booking-entry-request-dto.js +9 -0
- package/dist/models/create-financial-account-request-dto.d.ts +8 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +24 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +7 -0
- package/dist/models/financial-transaction-data-dto.js +1 -0
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.js +33 -0
- package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/opening-balance-item-dto.d.ts +41 -0
- package/dist/models/opening-balance-item-dto.js +20 -0
- package/dist/models/post-financial-event-request-dto.d.ts +45 -0
- package/dist/models/post-financial-event-request-dto.js +24 -0
- package/dist/models/post-financial-event-response-class.d.ts +25 -0
- package/dist/models/post-financial-event-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
- package/dist/models/resolved-commission-account-mapping-class.js +21 -0
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
- package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-type-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +48 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -0
- package/models/account-mapping-class.ts +3 -1
- package/models/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
- package/models/booking-entry-class.ts +22 -0
- package/models/commission-account-mapping-class.ts +55 -0
- package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
- package/models/commission-agreement-partner-class.ts +36 -0
- package/models/commission-agreement-with-account-mapping-class.ts +49 -0
- package/models/commission-type-account-mapping-class.ts +37 -0
- package/models/create-booking-entry-request-dto.ts +24 -0
- package/models/create-financial-account-request-dto.ts +9 -1
- package/models/create-or-correct-opening-balance-dto.ts +31 -0
- package/models/create-or-correct-opening-balance-response-class.ts +31 -0
- package/models/financial-account-class.ts +25 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +7 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +33 -0
- package/models/list-commission-account-mappings-response-class.ts +49 -0
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
- package/models/list-commission-type-account-mappings-response-class.ts +49 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/opening-balance-item-dto.ts +50 -0
- package/models/post-financial-event-request-dto.ts +54 -0
- package/models/post-financial-event-response-class.ts +31 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +62 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/resolved-commission-account-mapping-class.ts +46 -0
- package/models/update-commission-agreement-account-body-dto.ts +30 -0
- package/models/update-commission-type-account-body-dto.ts +30 -0
- package/models/update-financial-account-body-dto.ts +54 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AccountingService
|
|
3
|
+
* The EMIL AccountingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateCommissionTypeAccountBodyDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateCommissionTypeAccountBodyDto {
|
|
18
|
+
/**
|
|
19
|
+
* Code of the financial account to use as the default. Must belong to the REVENUE_FINAL_ACC category.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateCommissionTypeAccountBodyDto
|
|
22
|
+
*/
|
|
23
|
+
'financialAccountCode': string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AccountingService
|
|
6
|
+
* The EMIL AccountingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AccountingService
|
|
3
|
+
* The EMIL AccountingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateFinancialAccountBodyDto
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateFinancialAccountBodyDto {
|
|
18
|
+
/**
|
|
19
|
+
* The new name of the account. Always editable.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateFinancialAccountBodyDto
|
|
22
|
+
*/
|
|
23
|
+
'name'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The new description of the account. Always editable.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateFinancialAccountBodyDto
|
|
28
|
+
*/
|
|
29
|
+
'description'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The new account number. Only editable while the account is not locked (isLocked: false). Resubmitting the current value is always allowed, even while locked.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateFinancialAccountBodyDto
|
|
34
|
+
*/
|
|
35
|
+
'financialAccountNumber'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Set true to make this the default account for its (pool-category) functional category — this demotes the previous default. Setting false is rejected: set a different account as default instead.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof UpdateFinancialAccountBodyDto
|
|
40
|
+
*/
|
|
41
|
+
'isDefault'?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The connected bank account this account books, given as its code. Send an empty string to unlink; omit the field to leave the current link untouched. Permitted only on bank_acc accounts, and rejected if another financial account already links that bank account. Editable at any time, including once the account is locked — changes apply to later postings only and never rewrite existing ones.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateFinancialAccountBodyDto
|
|
46
|
+
*/
|
|
47
|
+
'linkedBankAccountCode'?: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AccountingService
|
|
6
|
+
* The EMIL AccountingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL AccountingService
|
|
3
|
+
* The EMIL AccountingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { FinancialAccountClass } from './financial-account-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateFinancialAccountResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateFinancialAccountResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The financial account response.
|
|
21
|
+
* @type {FinancialAccountClass}
|
|
22
|
+
* @memberof UpdateFinancialAccountResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'financialAccount': FinancialAccountClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL AccountingService
|
|
6
|
+
* The EMIL AccountingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -72,7 +72,9 @@ export const AccountMappingClassFunctionalCategoryEnum = {
|
|
|
72
72
|
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
73
73
|
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
74
74
|
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
75
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
75
|
+
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
76
|
+
ClaimsPayableAcc: 'claims_payable_acc',
|
|
77
|
+
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
76
78
|
} as const;
|
|
77
79
|
|
|
78
80
|
export type AccountMappingClassFunctionalCategoryEnum = typeof AccountMappingClassFunctionalCategoryEnum[keyof typeof AccountMappingClassFunctionalCategoryEnum];
|
|
@@ -39,6 +39,12 @@ export interface AccountingConfigClass {
|
|
|
39
39
|
* @memberof AccountingConfigClass
|
|
40
40
|
*/
|
|
41
41
|
'config'?: AccountingConfigDataClass;
|
|
42
|
+
/**
|
|
43
|
+
* Enablement status of the subledger config: \'pending\' while accounts and opening balances are still being provisioned asynchronously, \'complete\' once that work has finished.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AccountingConfigClass
|
|
46
|
+
*/
|
|
47
|
+
'enablementStatus': AccountingConfigClassEnablementStatusEnum;
|
|
42
48
|
/**
|
|
43
49
|
* Product slug this config is scoped to; absent for the tenant default config.
|
|
44
50
|
* @type {string}
|
|
@@ -71,3 +77,11 @@ export interface AccountingConfigClass {
|
|
|
71
77
|
'updatedAt': string;
|
|
72
78
|
}
|
|
73
79
|
|
|
80
|
+
export const AccountingConfigClassEnablementStatusEnum = {
|
|
81
|
+
Pending: 'pending',
|
|
82
|
+
Complete: 'complete'
|
|
83
|
+
} as const;
|
|
84
|
+
|
|
85
|
+
export type AccountingConfigClassEnablementStatusEnum = typeof AccountingConfigClassEnablementStatusEnum[keyof typeof AccountingConfigClassEnablementStatusEnum];
|
|
86
|
+
|
|
87
|
+
|
|
@@ -50,6 +50,12 @@ export interface AccountingConfigDataDtoDefaultAccountMappings {
|
|
|
50
50
|
* @memberof AccountingConfigDataDtoDefaultAccountMappings
|
|
51
51
|
*/
|
|
52
52
|
'debitOpeningAmountInCents': number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AccountingConfigDataDtoDefaultAccountMappings
|
|
57
|
+
*/
|
|
58
|
+
'bankAccountCode'?: string;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = {
|
|
@@ -72,7 +78,9 @@ export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum
|
|
|
72
78
|
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
73
79
|
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
74
80
|
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
75
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
81
|
+
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
82
|
+
ClaimsPayableAcc: 'claims_payable_acc',
|
|
83
|
+
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
76
84
|
} as const;
|
|
77
85
|
|
|
78
86
|
export type AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum[keyof typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum];
|
|
@@ -81,6 +81,18 @@ export interface BookingEntryClass {
|
|
|
81
81
|
* @memberof BookingEntryClass
|
|
82
82
|
*/
|
|
83
83
|
'externalNumber'?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The code of the source entity this entry was posted for, such as an invoice or payment code. Always set together with sourceEntityType.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof BookingEntryClass
|
|
88
|
+
*/
|
|
89
|
+
'sourceEntityCode'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The kind of source entity this entry was posted for. Always set together with sourceEntityCode.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof BookingEntryClass
|
|
94
|
+
*/
|
|
95
|
+
'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
|
|
84
96
|
/**
|
|
85
97
|
* A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
|
|
86
98
|
* @type {Array<FinancialTransactionClass>}
|
|
@@ -128,5 +140,15 @@ export const BookingEntryClassCurrencyEnum = {
|
|
|
128
140
|
} as const;
|
|
129
141
|
|
|
130
142
|
export type BookingEntryClassCurrencyEnum = typeof BookingEntryClassCurrencyEnum[keyof typeof BookingEntryClassCurrencyEnum];
|
|
143
|
+
export const BookingEntryClassSourceEntityTypeEnum = {
|
|
144
|
+
Invoice: 'invoice',
|
|
145
|
+
Payment: 'payment',
|
|
146
|
+
Credit: 'credit',
|
|
147
|
+
CreditAllocation: 'credit_allocation',
|
|
148
|
+
ClaimRegulation: 'claim_regulation',
|
|
149
|
+
Commission: 'commission'
|
|
150
|
+
} as const;
|
|
151
|
+
|
|
152
|
+
export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
|
|
131
153
|
|
|
132
154
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { FinancialAccountClass } from './financial-account-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionAccountMappingClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionAccountMappingClass {
|
|
24
|
+
/**
|
|
25
|
+
* Empty string when this row is type-level (not agreement-scoped).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CommissionAccountMappingClass
|
|
28
|
+
*/
|
|
29
|
+
'commissionAgreementCode': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CommissionAccountMappingClass
|
|
34
|
+
*/
|
|
35
|
+
'commissionType': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {FinancialAccountClass}
|
|
39
|
+
* @memberof CommissionAccountMappingClass
|
|
40
|
+
*/
|
|
41
|
+
'financialAccount': FinancialAccountClass;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CommissionAccountMappingClass
|
|
46
|
+
*/
|
|
47
|
+
'createdAt'?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CommissionAccountMappingClass
|
|
52
|
+
*/
|
|
53
|
+
'updatedAt'?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CommissionAgreementPartnerClass } from './commission-agreement-partner-class';
|
|
17
|
+
import { CommissionTypeAccountMappingClass } from './commission-type-account-mapping-class';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface CommissionAgreementAccountMappingDetailClass
|
|
23
|
+
*/
|
|
24
|
+
export interface CommissionAgreementAccountMappingDetailClass {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CommissionAgreementAccountMappingDetailClass
|
|
29
|
+
*/
|
|
30
|
+
'commissionAgreementCode': string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CommissionAgreementAccountMappingDetailClass
|
|
35
|
+
*/
|
|
36
|
+
'commissionAgreementNumber': string;
|
|
37
|
+
/**
|
|
38
|
+
* The agreement\'s main partner.
|
|
39
|
+
* @type {CommissionAgreementPartnerClass}
|
|
40
|
+
* @memberof CommissionAgreementAccountMappingDetailClass
|
|
41
|
+
*/
|
|
42
|
+
'mainPartner'?: CommissionAgreementPartnerClass;
|
|
43
|
+
/**
|
|
44
|
+
* One entry per commission type that has some row (type-level or agreement-level) for this tenant.
|
|
45
|
+
* @type {Array<CommissionTypeAccountMappingClass>}
|
|
46
|
+
* @memberof CommissionAgreementAccountMappingDetailClass
|
|
47
|
+
*/
|
|
48
|
+
'accountMappings': Array<CommissionTypeAccountMappingClass>;
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CommissionAgreementPartnerClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CommissionAgreementPartnerClass {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CommissionAgreementPartnerClass
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CommissionAgreementPartnerClass
|
|
33
|
+
*/
|
|
34
|
+
'name': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CommissionAgreementPartnerClass } from './commission-agreement-partner-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionAgreementWithAccountMappingClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionAgreementWithAccountMappingClass {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CommissionAgreementWithAccountMappingClass
|
|
28
|
+
*/
|
|
29
|
+
'commissionAgreementCode': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CommissionAgreementWithAccountMappingClass
|
|
34
|
+
*/
|
|
35
|
+
'commissionAgreementNumber': string;
|
|
36
|
+
/**
|
|
37
|
+
* The agreement\'s main partner, read from commissionservice (CommissionAgreement.metadata.mainPartner). Omitted when the agreement has none.
|
|
38
|
+
* @type {CommissionAgreementPartnerClass}
|
|
39
|
+
* @memberof CommissionAgreementWithAccountMappingClass
|
|
40
|
+
*/
|
|
41
|
+
'mainPartner'?: CommissionAgreementPartnerClass;
|
|
42
|
+
/**
|
|
43
|
+
* True if any commission type has an agreement-level override for this agreement.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof CommissionAgreementWithAccountMappingClass
|
|
46
|
+
*/
|
|
47
|
+
'hasCustomMapping': boolean;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { ResolvedCommissionAccountMappingClass } from './resolved-commission-account-mapping-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionTypeAccountMappingClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionTypeAccountMappingClass {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CommissionTypeAccountMappingClass
|
|
28
|
+
*/
|
|
29
|
+
'commissionType': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {ResolvedCommissionAccountMappingClass}
|
|
33
|
+
* @memberof CommissionTypeAccountMappingClass
|
|
34
|
+
*/
|
|
35
|
+
'accountMapping': ResolvedCommissionAccountMappingClass;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -45,6 +45,18 @@ export interface CreateBookingEntryRequestDto {
|
|
|
45
45
|
* @memberof CreateBookingEntryRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'externalNumber'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The code of the source entity this entry was posted for, such as an invoice or payment code. Must be provided together with sourceEntityType.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateBookingEntryRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'sourceEntityCode'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateBookingEntryRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'sourceEntityType'?: CreateBookingEntryRequestDtoSourceEntityTypeEnum;
|
|
48
60
|
/**
|
|
49
61
|
* A brief description of the booking entry. This provides context or purpose for the entry, such as \"Monthly premium\" or \"Refund issued\".
|
|
50
62
|
* @type {string}
|
|
@@ -65,3 +77,15 @@ export interface CreateBookingEntryRequestDto {
|
|
|
65
77
|
'financialTransactions': Array<FinancialTransactionDataDto>;
|
|
66
78
|
}
|
|
67
79
|
|
|
80
|
+
export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
|
|
81
|
+
Invoice: 'invoice',
|
|
82
|
+
Payment: 'payment',
|
|
83
|
+
Credit: 'credit',
|
|
84
|
+
CreditAllocation: 'credit_allocation',
|
|
85
|
+
ClaimRegulation: 'claim_regulation',
|
|
86
|
+
Commission: 'commission'
|
|
87
|
+
} as const;
|
|
88
|
+
|
|
89
|
+
export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
|
|
90
|
+
|
|
91
|
+
|
|
@@ -86,6 +86,12 @@ export interface CreateFinancialAccountRequestDto {
|
|
|
86
86
|
* @memberof CreateFinancialAccountRequestDto
|
|
87
87
|
*/
|
|
88
88
|
'isDefault'?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* 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.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CreateFinancialAccountRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'linkedBankAccountCode'?: string;
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
export const CreateFinancialAccountRequestDtoTypeEnum = {
|
|
@@ -118,7 +124,9 @@ export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
|
|
|
118
124
|
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
119
125
|
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
120
126
|
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
121
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
127
|
+
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
128
|
+
ClaimsPayableAcc: 'claims_payable_acc',
|
|
129
|
+
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
122
130
|
} as const;
|
|
123
131
|
|
|
124
132
|
export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { OpeningBalanceItemDto } from './opening-balance-item-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateOrCorrectOpeningBalanceDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateOrCorrectOpeningBalanceDto {
|
|
24
|
+
/**
|
|
25
|
+
* The confirmed opening balance for each account — a first-time entry for one with no history yet, a restatement for one that already has some. The service derives the delta itself against whatever balance it reads (implicitly zero for a first-time entry).
|
|
26
|
+
* @type {Array<OpeningBalanceItemDto>}
|
|
27
|
+
* @memberof CreateOrCorrectOpeningBalanceDto
|
|
28
|
+
*/
|
|
29
|
+
'openingBalances': Array<OpeningBalanceItemDto>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { BookingEntryClass } from './booking-entry-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateOrCorrectOpeningBalanceResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateOrCorrectOpeningBalanceResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The booking entries created — one per item whose confirmed balance differed from its current one (implicitly zero for an account with no history yet). Empty when every item\'s confirmed balance already matched: nothing was booked, and that is success, not an error.
|
|
26
|
+
* @type {Array<BookingEntryClass>}
|
|
27
|
+
* @memberof CreateOrCorrectOpeningBalanceResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'bookingEntries': Array<BookingEntryClass>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -85,7 +85,7 @@ export interface FinancialAccountClass {
|
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof FinancialAccountClass
|
|
87
87
|
*/
|
|
88
|
-
'status':
|
|
88
|
+
'status': FinancialAccountClassStatusEnum;
|
|
89
89
|
/**
|
|
90
90
|
* Whether the account is a control account.
|
|
91
91
|
* @type {boolean}
|
|
@@ -104,6 +104,24 @@ export interface FinancialAccountClass {
|
|
|
104
104
|
* @memberof FinancialAccountClass
|
|
105
105
|
*/
|
|
106
106
|
'isDefault': boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Whether the account is locked. Set automatically the first time the account is posted to; once true, financialAccountNumber can no longer be changed.
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof FinancialAccountClass
|
|
111
|
+
*/
|
|
112
|
+
'isLocked': boolean;
|
|
113
|
+
/**
|
|
114
|
+
* The connected bank account this account books, if one is linked. Absent when unlinked, which is every account outside the bank category.
|
|
115
|
+
* @type {string}
|
|
116
|
+
* @memberof FinancialAccountClass
|
|
117
|
+
*/
|
|
118
|
+
'linkedBankAccountCode'?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 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.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof FinancialAccountClass
|
|
123
|
+
*/
|
|
124
|
+
'linkedBankAccountIban'?: string;
|
|
107
125
|
/**
|
|
108
126
|
* Time at which the object was created.
|
|
109
127
|
* @type {string}
|
|
@@ -140,5 +158,11 @@ export const FinancialAccountClassTypeEnum = {
|
|
|
140
158
|
} as const;
|
|
141
159
|
|
|
142
160
|
export type FinancialAccountClassTypeEnum = typeof FinancialAccountClassTypeEnum[keyof typeof FinancialAccountClassTypeEnum];
|
|
161
|
+
export const FinancialAccountClassStatusEnum = {
|
|
162
|
+
Active: 'active',
|
|
163
|
+
Inactive: 'inactive'
|
|
164
|
+
} as const;
|
|
165
|
+
|
|
166
|
+
export type FinancialAccountClassStatusEnum = typeof FinancialAccountClassStatusEnum[keyof typeof FinancialAccountClassStatusEnum];
|
|
143
167
|
|
|
144
168
|
|
|
@@ -50,6 +50,12 @@ export interface FinancialTransactionClass {
|
|
|
50
50
|
* @memberof FinancialTransactionClass
|
|
51
51
|
*/
|
|
52
52
|
'personalAccountNumber'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The partner this line\'s amount belongs to. Set on a claims payable or carrier receivable line; absent elsewhere.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof FinancialTransactionClass
|
|
57
|
+
*/
|
|
58
|
+
'partnerCode'?: string;
|
|
53
59
|
/**
|
|
54
60
|
* Internal identifier for the associated booking entry. This links the transaction to a specific entry in the booking system.
|
|
55
61
|
* @type {number}
|