@emilgroup/commission-sdk-node 1.0.0-beta.4 → 1.0.0-beta.40
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 +39 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +655 -0
- package/api/commission-agreement-rules-api.ts +762 -0
- package/api/commission-agreements-api.ts +160 -27
- package/api/commission-recipients-api.ts +92 -37
- package/api/commission-settlements-api.ts +804 -0
- package/api/commissions-api.ts +121 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +366 -0
- package/dist/api/commission-agreement-products-api.js +630 -0
- package/dist/api/commission-agreement-rules-api.d.ts +423 -0
- package/dist/api/commission-agreement-rules-api.js +723 -0
- package/dist/api/commission-agreements-api.d.ts +98 -23
- package/dist/api/commission-agreements-api.js +127 -22
- package/dist/api/commission-recipients-api.d.ts +63 -27
- package/dist/api/commission-recipients-api.js +53 -29
- package/dist/api/commission-settlements-api.d.ts +450 -0
- package/dist/api/commission-settlements-api.js +741 -0
- package/dist/api/commissions-api.d.ts +74 -18
- package/dist/api/commissions-api.js +101 -9
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/models/commission-agreement-class.d.ts +27 -3
- package/dist/models/commission-agreement-class.js +5 -1
- package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
- package/dist/models/commission-agreement-metadata-dto.js +15 -0
- package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
- package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
- package/dist/models/commission-agreement-product-class.d.ts +77 -0
- package/dist/models/commission-agreement-product-class.js +20 -0
- package/dist/models/commission-agreement-rule-class.d.ts +93 -0
- package/dist/models/commission-agreement-rule-class.js +21 -0
- package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
- package/dist/models/commission-agreement-rule-config-dto.js +15 -0
- package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
- package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
- package/dist/models/commission-agreement-version-class.d.ts +7 -0
- package/dist/models/commission-class.d.ts +37 -6
- package/dist/models/commission-conditions-dto.d.ts +24 -0
- package/dist/models/commission-conditions-dto.js +15 -0
- package/dist/models/commission-config-dto.d.ts +63 -0
- package/dist/models/commission-config-dto.js +34 -0
- package/dist/models/commission-estimate-class.d.ts +59 -0
- package/dist/models/commission-estimate-class.js +25 -0
- package/dist/models/commission-settlement-class.d.ts +124 -0
- package/dist/models/commission-settlement-class.js +35 -0
- package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
- package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-product-response-class.js +15 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
- package/dist/models/create-commission-agreement-request-dto.js +5 -1
- package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
- package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
- package/dist/models/create-commission-request-dto.d.ts +3 -9
- package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
- package/dist/models/create-commission-settlement-request-dto.js +35 -0
- package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/create-commission-settlement-response-class.js +15 -0
- package/dist/models/estimate-commissions-response-class.d.ts +73 -0
- package/dist/models/estimate-commissions-response-class.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/evaluated-commission-class.d.ts +54 -0
- package/dist/models/evaluated-commission-class.js +21 -0
- package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-product-response-class.js +15 -0
- package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/get-commission-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.js +36 -0
- package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-products-response-class.js +15 -0
- package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
- package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
- package/dist/models/list-commission-settlements-response-class.js +15 -0
- package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
- package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
- package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
- package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
- package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
- package/dist/models/publish-commission-settlements-request-dto.js +15 -0
- package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
- package/dist/models/publish-commission-settlements-response-class.js +15 -0
- package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
- package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
- package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-product-response-class.js +15 -0
- package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
- package/dist/models/update-commission-agreement-request-dto.js +2 -0
- package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
- package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
- package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/update-commission-request-dto.d.ts +5 -3
- package/dist/models/update-commission-request-dto.js +4 -2
- package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
- package/dist/models/update-commission-settlement-request-dto.js +22 -0
- package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/update-commission-settlement-response-class.js +15 -0
- package/models/commission-agreement-class.ts +27 -3
- package/models/commission-agreement-metadata-dto.ts +31 -0
- package/models/commission-agreement-metadata-partner-dto.ts +36 -0
- package/models/commission-agreement-product-class.ts +86 -0
- package/models/commission-agreement-rule-class.ts +102 -0
- package/models/commission-agreement-rule-config-dto.ts +31 -0
- package/models/commission-agreement-rule-evaluation-class.ts +37 -0
- package/models/commission-agreement-version-class.ts +7 -0
- package/models/commission-class.ts +37 -6
- package/models/commission-conditions-dto.ts +30 -0
- package/models/commission-config-dto.ts +73 -0
- package/models/commission-estimate-class.ts +69 -0
- package/models/commission-settlement-class.ts +134 -0
- package/models/create-commission-agreement-product-request-dto.ts +36 -0
- package/models/create-commission-agreement-product-response-class.ts +31 -0
- package/models/create-commission-agreement-request-dto.ts +14 -3
- package/models/create-commission-agreement-rule-request-dto.ts +43 -0
- package/models/create-commission-agreement-rule-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +1 -1
- package/models/create-commission-request-dto.ts +3 -9
- package/models/create-commission-settlement-request-dto.ts +67 -0
- package/models/create-commission-settlement-response-class.ts +31 -0
- package/models/estimate-commissions-response-class.ts +79 -0
- package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
- package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
- package/models/evaluated-commission-class.ts +63 -0
- package/models/get-commission-agreement-product-response-class.ts +31 -0
- package/models/get-commission-agreement-rule-response-class.ts +31 -0
- package/models/get-commission-settlement-response-class.ts +31 -0
- package/models/index.ts +36 -0
- package/models/list-commission-agreement-products-response-class.ts +49 -0
- package/models/list-commission-agreement-rules-response-class.ts +49 -0
- package/models/list-commission-settlements-response-class.ts +49 -0
- package/models/patch-commission-agreement-status-request-dto.ts +46 -0
- package/models/patch-commission-agreement-status-response-class.ts +31 -0
- package/models/publish-commission-settlements-request-dto.ts +30 -0
- package/models/publish-commission-settlements-response-class.ts +31 -0
- package/models/update-commission-agreement-product-request-dto.ts +50 -0
- package/models/update-commission-agreement-product-response-class.ts +31 -0
- package/models/update-commission-agreement-request-dto.ts +3 -1
- package/models/update-commission-agreement-rule-request-dto.ts +58 -0
- package/models/update-commission-agreement-rule-response-class.ts +31 -0
- package/models/update-commission-request-dto.ts +5 -3
- package/models/update-commission-settlement-request-dto.ts +52 -0
- package/models/update-commission-settlement-response-class.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionClass } from './commission-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionSettlementClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionSettlementClass {
|
|
24
|
+
/**
|
|
25
|
+
* The unique database identifier of the commission settlement
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CommissionSettlementClass
|
|
28
|
+
*/
|
|
29
|
+
'id': number;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the object.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CommissionSettlementClass
|
|
34
|
+
*/
|
|
35
|
+
'code': string;
|
|
36
|
+
/**
|
|
37
|
+
* The settlement number for this commission settlement
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CommissionSettlementClass
|
|
40
|
+
*/
|
|
41
|
+
'settlementNumber': string;
|
|
42
|
+
/**
|
|
43
|
+
* The unique code of the partner associated with this settlement
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CommissionSettlementClass
|
|
46
|
+
*/
|
|
47
|
+
'partnerCode': string;
|
|
48
|
+
/**
|
|
49
|
+
* The partner number associated with this settlement
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CommissionSettlementClass
|
|
52
|
+
*/
|
|
53
|
+
'partnerNumber': string;
|
|
54
|
+
/**
|
|
55
|
+
* The currency code for this settlement
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CommissionSettlementClass
|
|
58
|
+
*/
|
|
59
|
+
'currency': CommissionSettlementClassCurrencyEnum;
|
|
60
|
+
/**
|
|
61
|
+
* The total amount of the settlement in the smallest currency unit (e.g., cents)
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CommissionSettlementClass
|
|
64
|
+
*/
|
|
65
|
+
'amount': number;
|
|
66
|
+
/**
|
|
67
|
+
* The status of the commission settlement. Valid values: draft, processing, published, closed
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CommissionSettlementClass
|
|
70
|
+
*/
|
|
71
|
+
'status': CommissionSettlementClassStatusEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Array of commissions included in this settlement
|
|
74
|
+
* @type {Array<CommissionClass>}
|
|
75
|
+
* @memberof CommissionSettlementClass
|
|
76
|
+
*/
|
|
77
|
+
'commissions': Array<CommissionClass>;
|
|
78
|
+
/**
|
|
79
|
+
* The number of policies included in this settlement
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof CommissionSettlementClass
|
|
82
|
+
*/
|
|
83
|
+
'policyCount': number;
|
|
84
|
+
/**
|
|
85
|
+
* Time at which the object was created.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CommissionSettlementClass
|
|
88
|
+
*/
|
|
89
|
+
'createdAt': string;
|
|
90
|
+
/**
|
|
91
|
+
* Time at which the object was updated.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof CommissionSettlementClass
|
|
94
|
+
*/
|
|
95
|
+
'updatedAt': string;
|
|
96
|
+
/**
|
|
97
|
+
* Identifier of the user who created the record.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof CommissionSettlementClass
|
|
100
|
+
*/
|
|
101
|
+
'createdBy': string;
|
|
102
|
+
/**
|
|
103
|
+
* Identifier of the user who last updated the record.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof CommissionSettlementClass
|
|
106
|
+
*/
|
|
107
|
+
'updatedBy': string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export const CommissionSettlementClassCurrencyEnum = {
|
|
111
|
+
Eur: 'EUR',
|
|
112
|
+
Usd: 'USD',
|
|
113
|
+
Gbp: 'GBP',
|
|
114
|
+
Chf: 'CHF',
|
|
115
|
+
Pln: 'PLN',
|
|
116
|
+
Aud: 'AUD',
|
|
117
|
+
Cad: 'CAD',
|
|
118
|
+
Ddk: 'DDK',
|
|
119
|
+
Huf: 'HUF',
|
|
120
|
+
Nok: 'NOK',
|
|
121
|
+
Sek: 'SEK'
|
|
122
|
+
} as const;
|
|
123
|
+
|
|
124
|
+
export type CommissionSettlementClassCurrencyEnum = typeof CommissionSettlementClassCurrencyEnum[keyof typeof CommissionSettlementClassCurrencyEnum];
|
|
125
|
+
export const CommissionSettlementClassStatusEnum = {
|
|
126
|
+
Draft: 'draft',
|
|
127
|
+
Processing: 'processing',
|
|
128
|
+
Published: 'published',
|
|
129
|
+
Closed: 'closed'
|
|
130
|
+
} as const;
|
|
131
|
+
|
|
132
|
+
export type CommissionSettlementClassStatusEnum = typeof CommissionSettlementClassStatusEnum[keyof typeof CommissionSettlementClassStatusEnum];
|
|
133
|
+
|
|
134
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 CreateCommissionAgreementProductRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCommissionAgreementProductRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Code of the parent commission agreement version to create a product for
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateCommissionAgreementProductRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'commissionAgreementVersionCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* Product slug identifier
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateCommissionAgreementProductRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'productSlug': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionAgreementProductClass } from './commission-agreement-product-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCommissionAgreementProductResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCommissionAgreementProductResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The created commission agreement product object
|
|
26
|
+
* @type {CommissionAgreementProductClass}
|
|
27
|
+
* @memberof CreateCommissionAgreementProductResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'product'?: CommissionAgreementProductClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
@@ -33,7 +34,7 @@ export interface CreateCommissionAgreementRequestDto {
|
|
|
33
34
|
*/
|
|
34
35
|
'billingFrequency': CreateCommissionAgreementRequestDtoBillingFrequencyEnum;
|
|
35
36
|
/**
|
|
36
|
-
* Current status of the commission agreement (e.g., active,
|
|
37
|
+
* Current status of the commission agreement (e.g., draft, active, processing, archived)
|
|
37
38
|
* @type {string}
|
|
38
39
|
* @memberof CreateCommissionAgreementRequestDto
|
|
39
40
|
*/
|
|
@@ -44,6 +45,12 @@ export interface CreateCommissionAgreementRequestDto {
|
|
|
44
45
|
* @memberof CreateCommissionAgreementRequestDto
|
|
45
46
|
*/
|
|
46
47
|
'productSlugs': Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Metadata associated with the commission agreement
|
|
50
|
+
* @type {CommissionAgreementMetadataDto}
|
|
51
|
+
* @memberof CreateCommissionAgreementRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'metadata': CommissionAgreementMetadataDto;
|
|
47
54
|
/**
|
|
48
55
|
* Detailed description of the commission agreement terms and conditions
|
|
49
56
|
* @type {string}
|
|
@@ -55,7 +62,7 @@ export interface CreateCommissionAgreementRequestDto {
|
|
|
55
62
|
* @type {string}
|
|
56
63
|
* @memberof CreateCommissionAgreementRequestDto
|
|
57
64
|
*/
|
|
58
|
-
'startDate'
|
|
65
|
+
'startDate': string;
|
|
59
66
|
/**
|
|
60
67
|
* End date when the commission agreement expires or is terminated
|
|
61
68
|
* @type {string}
|
|
@@ -65,15 +72,19 @@ export interface CreateCommissionAgreementRequestDto {
|
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
export const CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
|
|
75
|
+
Immediately: 'immediately',
|
|
68
76
|
Monthly: 'monthly',
|
|
69
77
|
Quarterly: 'quarterly',
|
|
78
|
+
HalfYearly: 'halfYearly',
|
|
70
79
|
Yearly: 'yearly'
|
|
71
80
|
} as const;
|
|
72
81
|
|
|
73
82
|
export type CreateCommissionAgreementRequestDtoBillingFrequencyEnum = typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum[keyof typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum];
|
|
74
83
|
export const CreateCommissionAgreementRequestDtoStatusEnum = {
|
|
84
|
+
Draft: 'draft',
|
|
75
85
|
Active: 'active',
|
|
76
|
-
|
|
86
|
+
Processing: 'processing',
|
|
87
|
+
Archived: 'archived'
|
|
77
88
|
} as const;
|
|
78
89
|
|
|
79
90
|
export type CreateCommissionAgreementRequestDtoStatusEnum = typeof CreateCommissionAgreementRequestDtoStatusEnum[keyof typeof CreateCommissionAgreementRequestDtoStatusEnum];
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCommissionAgreementRuleRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCommissionAgreementRuleRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
* Code of the parent commission agreement version to create a rule for
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateCommissionAgreementRuleRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'commissionAgreementVersionCode': string;
|
|
30
|
+
/**
|
|
31
|
+
* Configuration object for the commission agreement rule
|
|
32
|
+
* @type {CommissionAgreementRuleConfigDto}
|
|
33
|
+
* @memberof CreateCommissionAgreementRuleRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'config': CommissionAgreementRuleConfigDto;
|
|
36
|
+
/**
|
|
37
|
+
* Code of the commission agreement product to create a rule for
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateCommissionAgreementRuleRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'commissionAgreementProductCode': string;
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionAgreementRuleClass } from './commission-agreement-rule-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCommissionAgreementRuleResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCommissionAgreementRuleResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The created commission agreement rule object
|
|
26
|
+
* @type {CommissionAgreementRuleClass}
|
|
27
|
+
* @memberof CreateCommissionAgreementRuleResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'rule'?: CommissionAgreementRuleClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -31,7 +31,7 @@ export interface CreateCommissionAgreementVersionRequestDto {
|
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof CreateCommissionAgreementVersionRequestDto
|
|
33
33
|
*/
|
|
34
|
-
'startDate'
|
|
34
|
+
'startDate': string;
|
|
35
35
|
/**
|
|
36
36
|
* End date when this version of the commission agreement expires
|
|
37
37
|
* @type {string}
|
|
@@ -21,12 +21,6 @@ import { CreateCommissionItemRequestDto } from './create-commission-item-request
|
|
|
21
21
|
* @interface CreateCommissionRequestDto
|
|
22
22
|
*/
|
|
23
23
|
export interface CreateCommissionRequestDto {
|
|
24
|
-
/**
|
|
25
|
-
* The unique code or identifier of the commission agreement this commission is based on
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof CreateCommissionRequestDto
|
|
28
|
-
*/
|
|
29
|
-
'commissionAgreementCode': string;
|
|
30
24
|
/**
|
|
31
25
|
* A detailed description explaining what this commission represents and its purpose
|
|
32
26
|
* @type {string}
|
|
@@ -34,11 +28,11 @@ export interface CreateCommissionRequestDto {
|
|
|
34
28
|
*/
|
|
35
29
|
'description': string;
|
|
36
30
|
/**
|
|
37
|
-
* The
|
|
38
|
-
* @type {
|
|
31
|
+
* The code of the commission agreement version being used for this commission
|
|
32
|
+
* @type {string}
|
|
39
33
|
* @memberof CreateCommissionRequestDto
|
|
40
34
|
*/
|
|
41
|
-
'
|
|
35
|
+
'commissionAgreementVersionCode': string;
|
|
42
36
|
/**
|
|
43
37
|
* The unique code or identifier of the partner associated with this commission
|
|
44
38
|
* @type {string}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 CreateCommissionSettlementRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCommissionSettlementRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Array of commission codes to include in this settlement
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof CreateCommissionSettlementRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'commissionCodes': Array<string>;
|
|
29
|
+
/**
|
|
30
|
+
* The status of the commission settlement. Valid values: draft, processing, published, closed
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateCommissionSettlementRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'status'?: CreateCommissionSettlementRequestDtoStatusEnum;
|
|
35
|
+
/**
|
|
36
|
+
* The currency of the commission settlement
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateCommissionSettlementRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'currency'?: CreateCommissionSettlementRequestDtoCurrencyEnum;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const CreateCommissionSettlementRequestDtoStatusEnum = {
|
|
44
|
+
Draft: 'draft',
|
|
45
|
+
Processing: 'processing',
|
|
46
|
+
Published: 'published',
|
|
47
|
+
Closed: 'closed'
|
|
48
|
+
} as const;
|
|
49
|
+
|
|
50
|
+
export type CreateCommissionSettlementRequestDtoStatusEnum = typeof CreateCommissionSettlementRequestDtoStatusEnum[keyof typeof CreateCommissionSettlementRequestDtoStatusEnum];
|
|
51
|
+
export const CreateCommissionSettlementRequestDtoCurrencyEnum = {
|
|
52
|
+
Eur: 'EUR',
|
|
53
|
+
Usd: 'USD',
|
|
54
|
+
Gbp: 'GBP',
|
|
55
|
+
Chf: 'CHF',
|
|
56
|
+
Pln: 'PLN',
|
|
57
|
+
Aud: 'AUD',
|
|
58
|
+
Cad: 'CAD',
|
|
59
|
+
Ddk: 'DDK',
|
|
60
|
+
Huf: 'HUF',
|
|
61
|
+
Nok: 'NOK',
|
|
62
|
+
Sek: 'SEK'
|
|
63
|
+
} as const;
|
|
64
|
+
|
|
65
|
+
export type CreateCommissionSettlementRequestDtoCurrencyEnum = typeof CreateCommissionSettlementRequestDtoCurrencyEnum[keyof typeof CreateCommissionSettlementRequestDtoCurrencyEnum];
|
|
66
|
+
|
|
67
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionSettlementClass } from './commission-settlement-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCommissionSettlementResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCommissionSettlementResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The commission settlement that was created
|
|
26
|
+
* @type {CommissionSettlementClass}
|
|
27
|
+
* @memberof CreateCommissionSettlementResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'commissionSettlement'?: CommissionSettlementClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionEstimateClass } from './commission-estimate-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface EstimateCommissionsResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface EstimateCommissionsResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The unique code of the policy for which commissions are being estimated
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EstimateCommissionsResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'policyCode': string;
|
|
30
|
+
/**
|
|
31
|
+
* The unique number of the policy
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EstimateCommissionsResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'policyNumber': string;
|
|
36
|
+
/**
|
|
37
|
+
* The unique code of the partner associated with the policy
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof EstimateCommissionsResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'partnerCode': string;
|
|
42
|
+
/**
|
|
43
|
+
* The unique number of the partner
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EstimateCommissionsResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'partnerNumber': string;
|
|
48
|
+
/**
|
|
49
|
+
* The total estimated commission amount in the smallest currency unit (e.g., cents). This is the sum of all commission estimates
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof EstimateCommissionsResponseClass
|
|
52
|
+
*/
|
|
53
|
+
'totalAmount': number;
|
|
54
|
+
/**
|
|
55
|
+
* A detailed description explaining the commission estimation
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof EstimateCommissionsResponseClass
|
|
58
|
+
*/
|
|
59
|
+
'description': string;
|
|
60
|
+
/**
|
|
61
|
+
* The version identifier of the commission agreement being used for this estimation
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof EstimateCommissionsResponseClass
|
|
64
|
+
*/
|
|
65
|
+
'commissionAgreementVersionCode': string;
|
|
66
|
+
/**
|
|
67
|
+
* The code of the commission agreement rule that was used for this estimation
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof EstimateCommissionsResponseClass
|
|
70
|
+
*/
|
|
71
|
+
'commissionAgreementRuleCode': string;
|
|
72
|
+
/**
|
|
73
|
+
* An array of individual commission estimates that make up the total commission. Each estimate represents a specific commission component with its own amount, type, and group
|
|
74
|
+
* @type {Array<CommissionEstimateClass>}
|
|
75
|
+
* @memberof EstimateCommissionsResponseClass
|
|
76
|
+
*/
|
|
77
|
+
'commissions': Array<CommissionEstimateClass>;
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface EvaluateCommissionAgreementRuleRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface EvaluateCommissionAgreementRuleRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
* Mock data object containing invoice, policy, and other data needed for expression evaluation (e.g., { invoice: { netAmount: 1000 }, policy: { ... } })
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof EvaluateCommissionAgreementRuleRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'data': object;
|
|
30
|
+
/**
|
|
31
|
+
* Configuration object for the commission agreement rule
|
|
32
|
+
* @type {CommissionAgreementRuleConfigDto}
|
|
33
|
+
* @memberof EvaluateCommissionAgreementRuleRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'config': CommissionAgreementRuleConfigDto;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CommissionAgreementRuleEvaluationClass } from './commission-agreement-rule-evaluation-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface EvaluateCommissionAgreementRuleResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface EvaluateCommissionAgreementRuleResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* The evaluation result containing premium amount and evaluated commissions
|
|
26
|
+
* @type {CommissionAgreementRuleEvaluationClass}
|
|
27
|
+
* @memberof EvaluateCommissionAgreementRuleResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'evaluation'?: CommissionAgreementRuleEvaluationClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 EvaluatedCommissionClass
|
|
21
|
+
*/
|
|
22
|
+
export interface EvaluatedCommissionClass {
|
|
23
|
+
/**
|
|
24
|
+
* Type of commission (e.g., sales, maintenance, other)
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EvaluatedCommissionClass
|
|
27
|
+
*/
|
|
28
|
+
'type': EvaluatedCommissionClassTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Commission amount in cents
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof EvaluatedCommissionClass
|
|
33
|
+
*/
|
|
34
|
+
'amount': number;
|
|
35
|
+
/**
|
|
36
|
+
* The expression that was evaluated
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof EvaluatedCommissionClass
|
|
39
|
+
*/
|
|
40
|
+
'expression': string;
|
|
41
|
+
/**
|
|
42
|
+
* Commission group (first year or following years)
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof EvaluatedCommissionClass
|
|
45
|
+
*/
|
|
46
|
+
'group': string;
|
|
47
|
+
/**
|
|
48
|
+
* Currency code
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof EvaluatedCommissionClass
|
|
51
|
+
*/
|
|
52
|
+
'currency': string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const EvaluatedCommissionClassTypeEnum = {
|
|
56
|
+
Sales: 'sales',
|
|
57
|
+
Maintenance: 'maintenance',
|
|
58
|
+
Other: 'other'
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
export type EvaluatedCommissionClassTypeEnum = typeof EvaluatedCommissionClassTypeEnum[keyof typeof EvaluatedCommissionClassTypeEnum];
|
|
62
|
+
|
|
63
|
+
|