@emilgroup/accounting-sdk-node 1.32.1-beta.76 → 1.32.1-beta.77
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 +2 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +32 -16
- package/api/booking-entries-api.ts +24 -14
- package/api/commission-account-mappings-api.ts +32 -16
- package/api/financial-accounts-api.ts +20 -10
- 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 +265 -20
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +56 -32
- package/dist/api/booking-entries-api.d.ts +9 -9
- package/dist/api/booking-entries-api.js +33 -22
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +47 -29
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +29 -18
- 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 +131 -10
- package/dist/api/product-account-mappings-api.js +261 -38
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -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-data-dto-default-account-mappings.d.ts +2 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +16 -2
- package/dist/models/booking-entry-class.js +3 -1
- package/dist/models/create-booking-entry-request-dto.d.ts +3 -2
- package/dist/models/create-booking-entry-request-dto.js +3 -2
- package/dist/models/create-financial-account-request-dto.d.ts +2 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +6 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/post-financial-event-request-dto.d.ts +3 -2
- package/dist/models/post-financial-event-request-dto.js +1 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +6 -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/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/models/account-mapping-class.ts +3 -1
- package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
- package/models/booking-entry-class.ts +17 -3
- package/models/create-booking-entry-request-dto.ts +4 -3
- package/models/create-financial-account-request-dto.ts +3 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +6 -0
- package/models/index.ts +2 -0
- package/models/post-financial-event-request-dto.ts +3 -2
- package/models/product-account-mapping-detail-class.ts +6 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/package.json +2 -2
|
@@ -47,7 +47,7 @@ export interface CreateBookingEntryRequestDto {
|
|
|
47
47
|
*/
|
|
48
48
|
'sourceEntityCode'?: string;
|
|
49
49
|
/**
|
|
50
|
-
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
|
|
50
|
+
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode. Omitted, the entry is typed manual. An entry posted by hand cannot be typed invoice.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateBookingEntryRequestDto
|
|
53
53
|
*/
|
|
@@ -74,10 +74,11 @@ export interface CreateBookingEntryRequestDto {
|
|
|
74
74
|
'financialTransactions': Array<FinancialTransactionDataDto>;
|
|
75
75
|
}
|
|
76
76
|
export declare const CreateBookingEntryRequestDtoSourceEntityTypeEnum: {
|
|
77
|
-
readonly Invoice: "invoice";
|
|
78
77
|
readonly Payment: "payment";
|
|
79
78
|
readonly Credit: "credit";
|
|
80
79
|
readonly CreditAllocation: "credit_allocation";
|
|
80
|
+
readonly ClaimRegulation: "claim_regulation";
|
|
81
81
|
readonly Commission: "commission";
|
|
82
|
+
readonly Manual: "manual";
|
|
82
83
|
};
|
|
83
84
|
export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
|
|
@@ -15,9 +15,10 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = void 0;
|
|
17
17
|
exports.CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
|
|
18
|
-
Invoice: 'invoice',
|
|
19
18
|
Payment: 'payment',
|
|
20
19
|
Credit: 'credit',
|
|
21
20
|
CreditAllocation: 'credit_allocation',
|
|
22
|
-
|
|
21
|
+
ClaimRegulation: 'claim_regulation',
|
|
22
|
+
Commission: 'commission',
|
|
23
|
+
Manual: 'manual'
|
|
23
24
|
};
|
|
@@ -120,5 +120,7 @@ export declare const CreateFinancialAccountRequestDtoFunctionalCategoryEnum: {
|
|
|
120
120
|
readonly BrokerCtrlAcc: "broker_ctrl_acc";
|
|
121
121
|
readonly CarrierCtrlAcc: "carrier_ctrl_acc";
|
|
122
122
|
readonly MainLedgerBridgeAcc: "main_ledger_bridge_acc";
|
|
123
|
+
readonly ClaimsPayableAcc: "claims_payable_acc";
|
|
124
|
+
readonly CarrierReceivableAcc: "carrier_receivable_acc";
|
|
123
125
|
};
|
|
124
126
|
export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
|
|
@@ -42,5 +42,7 @@ exports.CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
|
|
|
42
42
|
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
43
43
|
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
44
44
|
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
45
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
45
|
+
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
46
|
+
ClaimsPayableAcc: 'claims_payable_acc',
|
|
47
|
+
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
46
48
|
};
|
|
@@ -45,6 +45,12 @@ export interface FinancialTransactionClass {
|
|
|
45
45
|
* @memberof FinancialTransactionClass
|
|
46
46
|
*/
|
|
47
47
|
'personalAccountNumber'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The partner this line\'s amount belongs to. Set on a claims payable or carrier receivable line; absent elsewhere.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof FinancialTransactionClass
|
|
52
|
+
*/
|
|
53
|
+
'partnerCode'?: string;
|
|
48
54
|
/**
|
|
49
55
|
* Internal identifier for the associated booking entry. This links the transaction to a specific entry in the booking system.
|
|
50
56
|
* @type {number}
|
|
@@ -27,6 +27,12 @@ export interface FinancialTransactionDataDto {
|
|
|
27
27
|
* @memberof FinancialTransactionDataDto
|
|
28
28
|
*/
|
|
29
29
|
'personalAccountNumber'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The partner this line\'s amount belongs to. Required on a claims payable or carrier receivable line; never required elsewhere.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FinancialTransactionDataDto
|
|
34
|
+
*/
|
|
35
|
+
'partnerCode'?: string;
|
|
30
36
|
/**
|
|
31
37
|
* A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
|
|
32
38
|
* @type {string}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -55,11 +55,13 @@ export * from './post-financial-event-response-class';
|
|
|
55
55
|
export * from './premium-item-account-mapping-class';
|
|
56
56
|
export * from './product-account-mapping-class';
|
|
57
57
|
export * from './product-account-mapping-detail-class';
|
|
58
|
+
export * from './product-risk-carrier-class';
|
|
58
59
|
export * from './product-version-account-mapping-detail-class';
|
|
59
60
|
export * from './product-version-with-account-mappings-class';
|
|
60
61
|
export * from './product-with-account-mappings-class';
|
|
61
62
|
export * from './put-premium-item-account-body-dto';
|
|
62
63
|
export * from './put-product-category-account-body-dto';
|
|
64
|
+
export * from './put-product-risk-carrier-body-dto';
|
|
63
65
|
export * from './put-product-version-category-account-body-dto';
|
|
64
66
|
export * from './resolved-account-mapping-class';
|
|
65
67
|
export * from './resolved-commission-account-mapping-class';
|
package/dist/models/index.js
CHANGED
|
@@ -71,11 +71,13 @@ __exportStar(require("./post-financial-event-response-class"), exports);
|
|
|
71
71
|
__exportStar(require("./premium-item-account-mapping-class"), exports);
|
|
72
72
|
__exportStar(require("./product-account-mapping-class"), exports);
|
|
73
73
|
__exportStar(require("./product-account-mapping-detail-class"), exports);
|
|
74
|
+
__exportStar(require("./product-risk-carrier-class"), exports);
|
|
74
75
|
__exportStar(require("./product-version-account-mapping-detail-class"), exports);
|
|
75
76
|
__exportStar(require("./product-version-with-account-mappings-class"), exports);
|
|
76
77
|
__exportStar(require("./product-with-account-mappings-class"), exports);
|
|
77
78
|
__exportStar(require("./put-premium-item-account-body-dto"), exports);
|
|
78
79
|
__exportStar(require("./put-product-category-account-body-dto"), exports);
|
|
80
|
+
__exportStar(require("./put-product-risk-carrier-body-dto"), exports);
|
|
79
81
|
__exportStar(require("./put-product-version-category-account-body-dto"), exports);
|
|
80
82
|
__exportStar(require("./resolved-account-mapping-class"), exports);
|
|
81
83
|
__exportStar(require("./resolved-commission-account-mapping-class"), exports);
|
|
@@ -22,13 +22,13 @@ export interface PostFinancialEventRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'sourceEntityType': PostFinancialEventRequestDtoSourceEntityTypeEnum;
|
|
24
24
|
/**
|
|
25
|
-
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation or
|
|
25
|
+
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission or claim regulation code.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PostFinancialEventRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'sourceEntityCode': string;
|
|
30
30
|
/**
|
|
31
|
-
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment
|
|
31
|
+
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy, and not accepted for a commission, which names its own recipient.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof PostFinancialEventRequestDto
|
|
34
34
|
*/
|
|
@@ -39,6 +39,7 @@ export declare const PostFinancialEventRequestDtoSourceEntityTypeEnum: {
|
|
|
39
39
|
readonly Payment: "payment";
|
|
40
40
|
readonly Credit: "credit";
|
|
41
41
|
readonly CreditAllocation: "credit_allocation";
|
|
42
|
+
readonly ClaimRegulation: "claim_regulation";
|
|
42
43
|
readonly Commission: "commission";
|
|
43
44
|
};
|
|
44
45
|
export type PostFinancialEventRequestDtoSourceEntityTypeEnum = typeof PostFinancialEventRequestDtoSourceEntityTypeEnum[keyof typeof PostFinancialEventRequestDtoSourceEntityTypeEnum];
|
|
@@ -47,4 +47,10 @@ export interface ProductAccountMappingDetailClass {
|
|
|
47
47
|
* @memberof ProductAccountMappingDetailClass
|
|
48
48
|
*/
|
|
49
49
|
'versions': Array<ProductVersionWithAccountMappingsClass>;
|
|
50
|
+
/**
|
|
51
|
+
* The product\'s risk carrier, or absent when it has none. Present means this product\'s claim cost books as a receivable from that carrier; absent means it books the tenant\'s own claim expense. Independent of accountMappings: a claim_expense_acc override may exist either way, and a carrier uses no mapping row at all.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProductAccountMappingDetailClass
|
|
54
|
+
*/
|
|
55
|
+
'riskCarrierPartnerCode'?: string;
|
|
50
56
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 ProductRiskCarrierClass
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductRiskCarrierClass {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProductRiskCarrierClass
|
|
22
|
+
*/
|
|
23
|
+
'productCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* The risk carrier that reimburses this product’s claim payouts. The code only — this service never resolves or returns a partner name. While this mapping exists, the product’s claim cost books against the carrier receivable account instead of a claim expense account.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductRiskCarrierClass
|
|
28
|
+
*/
|
|
29
|
+
'partnerCode': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductRiskCarrierClass
|
|
34
|
+
*/
|
|
35
|
+
'createdAt'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductRiskCarrierClass
|
|
40
|
+
*/
|
|
41
|
+
'updatedAt'?: string;
|
|
42
|
+
}
|
|
@@ -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,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 PutProductRiskCarrierBodyDto
|
|
16
|
+
*/
|
|
17
|
+
export interface PutProductRiskCarrierBodyDto {
|
|
18
|
+
/**
|
|
19
|
+
* The risk carrier that reimburses this product’s claim payouts. Setting it books the product’s claim cost against the carrier receivable account; delete the mapping to book claim expense instead.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutProductRiskCarrierBodyDto
|
|
22
|
+
*/
|
|
23
|
+
'partnerCode': 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 });
|
|
@@ -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];
|
|
@@ -78,7 +78,9 @@ export const AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum
|
|
|
78
78
|
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
79
79
|
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
80
80
|
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
81
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
81
|
+
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
82
|
+
ClaimsPayableAcc: 'claims_payable_acc',
|
|
83
|
+
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
82
84
|
} as const;
|
|
83
85
|
|
|
84
86
|
export type AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum = typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum[keyof typeof AccountingConfigDataDtoDefaultAccountMappingsFunctionalCategoryEnum];
|
|
@@ -82,17 +82,29 @@ export interface BookingEntryClass {
|
|
|
82
82
|
*/
|
|
83
83
|
'externalNumber'?: string;
|
|
84
84
|
/**
|
|
85
|
-
* The code of the source entity this entry was posted for, such as an invoice or payment code.
|
|
85
|
+
* The code of the source entity this entry was posted for, such as an invoice or payment code. Absent on an entry posted by hand (sourceEntityType manual) and on a legacy entry.
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof BookingEntryClass
|
|
88
88
|
*/
|
|
89
89
|
'sourceEntityCode'?: string;
|
|
90
90
|
/**
|
|
91
|
-
* The kind of source entity this entry was posted for
|
|
91
|
+
* The kind of source entity this entry was posted for: manual for an entry posted by hand, which carries no sourceEntityCode. Absent only on a legacy entry.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof BookingEntryClass
|
|
94
94
|
*/
|
|
95
95
|
'sourceEntityType'?: BookingEntryClassSourceEntityTypeEnum;
|
|
96
|
+
/**
|
|
97
|
+
* The code of the entry this entry reverses. Absent on an entry that is not a reversal.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BookingEntryClass
|
|
100
|
+
*/
|
|
101
|
+
'reversalOfCode'?: string;
|
|
102
|
+
/**
|
|
103
|
+
* True once the entry has been reversed in full. Its reversal names it in reversalOfCode.
|
|
104
|
+
* @type {boolean}
|
|
105
|
+
* @memberof BookingEntryClass
|
|
106
|
+
*/
|
|
107
|
+
'isReversed'?: boolean;
|
|
96
108
|
/**
|
|
97
109
|
* A list of financial transactions associated with this booking entry. Each entry represents a transaction linked to the current booking.
|
|
98
110
|
* @type {Array<FinancialTransactionClass>}
|
|
@@ -145,7 +157,9 @@ export const BookingEntryClassSourceEntityTypeEnum = {
|
|
|
145
157
|
Payment: 'payment',
|
|
146
158
|
Credit: 'credit',
|
|
147
159
|
CreditAllocation: 'credit_allocation',
|
|
148
|
-
|
|
160
|
+
ClaimRegulation: 'claim_regulation',
|
|
161
|
+
Commission: 'commission',
|
|
162
|
+
Manual: 'manual'
|
|
149
163
|
} as const;
|
|
150
164
|
|
|
151
165
|
export type BookingEntryClassSourceEntityTypeEnum = typeof BookingEntryClassSourceEntityTypeEnum[keyof typeof BookingEntryClassSourceEntityTypeEnum];
|
|
@@ -52,7 +52,7 @@ export interface CreateBookingEntryRequestDto {
|
|
|
52
52
|
*/
|
|
53
53
|
'sourceEntityCode'?: string;
|
|
54
54
|
/**
|
|
55
|
-
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode.
|
|
55
|
+
* The kind of source entity this entry was posted for. Must be provided together with sourceEntityCode. Omitted, the entry is typed manual. An entry posted by hand cannot be typed invoice.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CreateBookingEntryRequestDto
|
|
58
58
|
*/
|
|
@@ -78,11 +78,12 @@ export interface CreateBookingEntryRequestDto {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
export const CreateBookingEntryRequestDtoSourceEntityTypeEnum = {
|
|
81
|
-
Invoice: 'invoice',
|
|
82
81
|
Payment: 'payment',
|
|
83
82
|
Credit: 'credit',
|
|
84
83
|
CreditAllocation: 'credit_allocation',
|
|
85
|
-
|
|
84
|
+
ClaimRegulation: 'claim_regulation',
|
|
85
|
+
Commission: 'commission',
|
|
86
|
+
Manual: 'manual'
|
|
86
87
|
} as const;
|
|
87
88
|
|
|
88
89
|
export type CreateBookingEntryRequestDtoSourceEntityTypeEnum = typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum[keyof typeof CreateBookingEntryRequestDtoSourceEntityTypeEnum];
|
|
@@ -124,7 +124,9 @@ export const CreateFinancialAccountRequestDtoFunctionalCategoryEnum = {
|
|
|
124
124
|
ReceivablesCtrlAcc: 'receivables_ctrl_acc',
|
|
125
125
|
BrokerCtrlAcc: 'broker_ctrl_acc',
|
|
126
126
|
CarrierCtrlAcc: 'carrier_ctrl_acc',
|
|
127
|
-
MainLedgerBridgeAcc: 'main_ledger_bridge_acc'
|
|
127
|
+
MainLedgerBridgeAcc: 'main_ledger_bridge_acc',
|
|
128
|
+
ClaimsPayableAcc: 'claims_payable_acc',
|
|
129
|
+
CarrierReceivableAcc: 'carrier_receivable_acc'
|
|
128
130
|
} as const;
|
|
129
131
|
|
|
130
132
|
export type CreateFinancialAccountRequestDtoFunctionalCategoryEnum = typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum[keyof typeof CreateFinancialAccountRequestDtoFunctionalCategoryEnum];
|
|
@@ -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}
|
|
@@ -32,6 +32,12 @@ export interface FinancialTransactionDataDto {
|
|
|
32
32
|
* @memberof FinancialTransactionDataDto
|
|
33
33
|
*/
|
|
34
34
|
'personalAccountNumber'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The partner this line\'s amount belongs to. Required on a claims payable or carrier receivable line; never required elsewhere.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof FinancialTransactionDataDto
|
|
39
|
+
*/
|
|
40
|
+
'partnerCode'?: string;
|
|
35
41
|
/**
|
|
36
42
|
* A brief summary of the transaction, providing context or purpose, such as \"Payment of invoice #1234\" or \"Monthly premium for policy #5678\".
|
|
37
43
|
* @type {string}
|
package/models/index.ts
CHANGED
|
@@ -55,11 +55,13 @@ export * from './post-financial-event-response-class';
|
|
|
55
55
|
export * from './premium-item-account-mapping-class';
|
|
56
56
|
export * from './product-account-mapping-class';
|
|
57
57
|
export * from './product-account-mapping-detail-class';
|
|
58
|
+
export * from './product-risk-carrier-class';
|
|
58
59
|
export * from './product-version-account-mapping-detail-class';
|
|
59
60
|
export * from './product-version-with-account-mappings-class';
|
|
60
61
|
export * from './product-with-account-mappings-class';
|
|
61
62
|
export * from './put-premium-item-account-body-dto';
|
|
62
63
|
export * from './put-product-category-account-body-dto';
|
|
64
|
+
export * from './put-product-risk-carrier-body-dto';
|
|
63
65
|
export * from './put-product-version-category-account-body-dto';
|
|
64
66
|
export * from './resolved-account-mapping-class';
|
|
65
67
|
export * from './resolved-commission-account-mapping-class';
|
|
@@ -27,13 +27,13 @@ export interface PostFinancialEventRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'sourceEntityType': PostFinancialEventRequestDtoSourceEntityTypeEnum;
|
|
29
29
|
/**
|
|
30
|
-
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation or
|
|
30
|
+
* The code of the source entity in the service that owns it, such as an invoice, payment, exceeding credit, credit allocation, commission or claim regulation code.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof PostFinancialEventRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'sourceEntityCode': string;
|
|
35
35
|
/**
|
|
36
|
-
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment
|
|
36
|
+
* The partner whose personal account the entry posts to. Required for an exceeding credit, which does not name its partner itself. Optional for a payment, credit allocation or claim regulation, where it must match the entity\'s own partner. Not accepted for an invoice, whose partner is derived from the policy, and not accepted for a commission, which names its own recipient.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof PostFinancialEventRequestDto
|
|
39
39
|
*/
|
|
@@ -45,6 +45,7 @@ export const PostFinancialEventRequestDtoSourceEntityTypeEnum = {
|
|
|
45
45
|
Payment: 'payment',
|
|
46
46
|
Credit: 'credit',
|
|
47
47
|
CreditAllocation: 'credit_allocation',
|
|
48
|
+
ClaimRegulation: 'claim_regulation',
|
|
48
49
|
Commission: 'commission'
|
|
49
50
|
} as const;
|
|
50
51
|
|
|
@@ -52,5 +52,11 @@ export interface ProductAccountMappingDetailClass {
|
|
|
52
52
|
* @memberof ProductAccountMappingDetailClass
|
|
53
53
|
*/
|
|
54
54
|
'versions': Array<ProductVersionWithAccountMappingsClass>;
|
|
55
|
+
/**
|
|
56
|
+
* The product\'s risk carrier, or absent when it has none. Present means this product\'s claim cost books as a receivable from that carrier; absent means it books the tenant\'s own claim expense. Independent of accountMappings: a claim_expense_acc override may exist either way, and a carrier uses no mapping row at all.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ProductAccountMappingDetailClass
|
|
59
|
+
*/
|
|
60
|
+
'riskCarrierPartnerCode'?: string;
|
|
55
61
|
}
|
|
56
62
|
|
|
@@ -0,0 +1,48 @@
|
|
|
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 ProductRiskCarrierClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ProductRiskCarrierClass {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ProductRiskCarrierClass
|
|
27
|
+
*/
|
|
28
|
+
'productCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* The risk carrier that reimburses this product’s claim payouts. The code only — this service never resolves or returns a partner name. While this mapping exists, the product’s claim cost books against the carrier receivable account instead of a claim expense account.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ProductRiskCarrierClass
|
|
33
|
+
*/
|
|
34
|
+
'partnerCode': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ProductRiskCarrierClass
|
|
39
|
+
*/
|
|
40
|
+
'createdAt'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ProductRiskCarrierClass
|
|
45
|
+
*/
|
|
46
|
+
'updatedAt'?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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 PutProductRiskCarrierBodyDto
|
|
21
|
+
*/
|
|
22
|
+
export interface PutProductRiskCarrierBodyDto {
|
|
23
|
+
/**
|
|
24
|
+
* The risk carrier that reimburses this product’s claim payouts. Setting it books the product’s claim cost against the carrier receivable account; delete the mapping to book claim expense instead.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PutProductRiskCarrierBodyDto
|
|
27
|
+
*/
|
|
28
|
+
'partnerCode': string;
|
|
29
|
+
}
|
|
30
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/accounting-sdk-node",
|
|
3
|
-
"version": "1.32.1-beta.
|
|
3
|
+
"version": "1.32.1-beta.77",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/accounting-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "1.
|
|
21
|
+
"axios": "1.20.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|