@emilgroup/commission-sdk-node 1.0.0-beta.9 → 2.1.0
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 +40 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +59 -17
- package/api/commission-agreement-rules-api.ts +804 -0
- package/api/commission-agreement-versions-api.ts +8 -8
- package/api/commission-agreements-api.ts +160 -27
- package/api/commission-candidates-api.ts +697 -0
- package/api/commission-recipients-api.ts +12 -12
- package/api/commission-settlements-api.ts +804 -0
- package/api/commissions-api.ts +125 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +39 -12
- package/dist/api/commission-agreement-products-api.js +32 -14
- package/dist/api/commission-agreement-rules-api.d.ts +450 -0
- package/dist/api/commission-agreement-rules-api.js +741 -0
- package/dist/api/commission-agreement-versions-api.d.ts +8 -8
- package/dist/api/commission-agreement-versions-api.js +6 -6
- package/dist/api/commission-agreements-api.d.ts +98 -23
- package/dist/api/commission-agreements-api.js +127 -22
- package/dist/api/commission-candidates-api.d.ts +393 -0
- package/dist/api/commission-candidates-api.js +648 -0
- package/dist/api/commission-recipients-api.d.ts +12 -12
- package/dist/api/commission-recipients-api.js +9 -9
- 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 +75 -18
- package/dist/api/commissions-api.js +102 -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 +6 -7
- package/dist/models/commission-agreement-rule-class.d.ts +99 -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-candidate-class.d.ts +95 -0
- package/dist/models/commission-candidate-class.js +20 -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-recipient-class.d.ts +6 -6
- 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-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-candidate-request-dto.d.ts +65 -0
- package/dist/models/create-commission-candidate-request-dto.js +25 -0
- package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/create-commission-candidate-response-class.js +15 -0
- package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
- 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-request-dto.d.ts +30 -0
- package/dist/models/estimate-commissions-request-dto.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-rule-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/get-commission-candidate-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 +37 -0
- package/dist/models/index.js +37 -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-candidates-response-class.d.ts +43 -0
- package/dist/models/list-commission-candidates-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-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-candidate-request-dto.d.ts +71 -0
- package/dist/models/update-commission-candidate-request-dto.js +25 -0
- package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/update-commission-candidate-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 +6 -7
- package/models/commission-agreement-rule-class.ts +108 -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-candidate-class.ts +104 -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-recipient-class.ts +6 -6
- package/models/commission-settlement-class.ts +134 -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-candidate-request-dto.ts +75 -0
- package/models/create-commission-candidate-response-class.ts +31 -0
- package/models/create-commission-recipient-request-dto.ts +2 -2
- 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-request-dto.ts +36 -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-rule-response-class.ts +31 -0
- package/models/get-commission-candidate-response-class.ts +31 -0
- package/models/get-commission-settlement-response-class.ts +31 -0
- package/models/index.ts +37 -0
- package/models/list-commission-agreement-rules-response-class.ts +49 -0
- package/models/list-commission-candidates-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-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-candidate-request-dto.ts +81 -0
- package/models/update-commission-candidate-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 +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CommissionService
|
|
6
|
+
* The EMIL CommissionService 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 });
|
|
16
|
+
exports.UpdateCommissionSettlementRequestDtoStatusEnum = void 0;
|
|
17
|
+
exports.UpdateCommissionSettlementRequestDtoStatusEnum = {
|
|
18
|
+
Draft: 'draft',
|
|
19
|
+
Processing: 'processing',
|
|
20
|
+
Published: 'published',
|
|
21
|
+
Closed: 'closed'
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CommissionService
|
|
3
|
+
* The EMIL CommissionService 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 { CommissionSettlementClass } from './commission-settlement-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateCommissionSettlementResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateCommissionSettlementResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* The commission settlement that was updated
|
|
21
|
+
* @type {CommissionSettlementClass}
|
|
22
|
+
* @memberof UpdateCommissionSettlementResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'commissionSettlement'?: CommissionSettlementClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CommissionService
|
|
6
|
+
* The EMIL CommissionService 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 });
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
|
|
17
|
+
import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
*
|
|
@@ -39,11 +41,23 @@ export interface CommissionAgreementClass {
|
|
|
39
41
|
*/
|
|
40
42
|
'code': string;
|
|
41
43
|
/**
|
|
42
|
-
*
|
|
44
|
+
* Unique number identifier for the commission agreement
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CommissionAgreementClass
|
|
47
|
+
*/
|
|
48
|
+
'commissionAgreementNumber': string;
|
|
49
|
+
/**
|
|
50
|
+
* Current status of the commission agreement (e.g., draft, active, processing, archived)
|
|
43
51
|
* @type {string}
|
|
44
52
|
* @memberof CommissionAgreementClass
|
|
45
53
|
*/
|
|
46
54
|
'status': CommissionAgreementClassStatusEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Array of commission agreement versions
|
|
57
|
+
* @type {Array<CommissionAgreementVersionClass>}
|
|
58
|
+
* @memberof CommissionAgreementClass
|
|
59
|
+
*/
|
|
60
|
+
'versions'?: Array<CommissionAgreementVersionClass>;
|
|
47
61
|
/**
|
|
48
62
|
* Detailed description of the commission agreement terms and conditions
|
|
49
63
|
* @type {string}
|
|
@@ -51,11 +65,17 @@ export interface CommissionAgreementClass {
|
|
|
51
65
|
*/
|
|
52
66
|
'description'?: string;
|
|
53
67
|
/**
|
|
54
|
-
* Frequency at which commissions are billed (e.g., monthly, quarterly, yearly)
|
|
68
|
+
* Frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
|
|
55
69
|
* @type {string}
|
|
56
70
|
* @memberof CommissionAgreementClass
|
|
57
71
|
*/
|
|
58
72
|
'billingFrequency'?: CommissionAgreementClassBillingFrequencyEnum;
|
|
73
|
+
/**
|
|
74
|
+
* Metadata associated with the commission agreement
|
|
75
|
+
* @type {CommissionAgreementMetadataDto}
|
|
76
|
+
* @memberof CommissionAgreementClass
|
|
77
|
+
*/
|
|
78
|
+
'metadata'?: CommissionAgreementMetadataDto;
|
|
59
79
|
/**
|
|
60
80
|
* Timestamp when the commission agreement was created
|
|
61
81
|
* @type {string}
|
|
@@ -83,14 +103,18 @@ export interface CommissionAgreementClass {
|
|
|
83
103
|
}
|
|
84
104
|
|
|
85
105
|
export const CommissionAgreementClassStatusEnum = {
|
|
106
|
+
Draft: 'draft',
|
|
86
107
|
Active: 'active',
|
|
87
|
-
|
|
108
|
+
Processing: 'processing',
|
|
109
|
+
Archived: 'archived'
|
|
88
110
|
} as const;
|
|
89
111
|
|
|
90
112
|
export type CommissionAgreementClassStatusEnum = typeof CommissionAgreementClassStatusEnum[keyof typeof CommissionAgreementClassStatusEnum];
|
|
91
113
|
export const CommissionAgreementClassBillingFrequencyEnum = {
|
|
114
|
+
Immediately: 'immediately',
|
|
92
115
|
Monthly: 'monthly',
|
|
93
116
|
Quarterly: 'quarterly',
|
|
117
|
+
HalfYearly: 'halfYearly',
|
|
94
118
|
Yearly: 'yearly'
|
|
95
119
|
} as const;
|
|
96
120
|
|
|
@@ -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 { CommissionAgreementMetadataPartnerDto } from './commission-agreement-metadata-partner-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionAgreementMetadataDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionAgreementMetadataDto {
|
|
24
|
+
/**
|
|
25
|
+
* Main partner of the commission agreement
|
|
26
|
+
* @type {CommissionAgreementMetadataPartnerDto}
|
|
27
|
+
* @memberof CommissionAgreementMetadataDto
|
|
28
|
+
*/
|
|
29
|
+
'mainPartner'?: CommissionAgreementMetadataPartnerDto;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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 CommissionAgreementMetadataPartnerDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CommissionAgreementMetadataPartnerDto {
|
|
23
|
+
/**
|
|
24
|
+
* Code of the partner
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CommissionAgreementMetadataPartnerDto
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Name of the partner
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CommissionAgreementMetadataPartnerDto
|
|
33
|
+
*/
|
|
34
|
+
'name': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
*
|
|
@@ -27,12 +26,6 @@ export interface CommissionAgreementProductClass {
|
|
|
27
26
|
* @memberof CommissionAgreementProductClass
|
|
28
27
|
*/
|
|
29
28
|
'id': number;
|
|
30
|
-
/**
|
|
31
|
-
* The parent commission agreement version
|
|
32
|
-
* @type {CommissionAgreementVersionClass}
|
|
33
|
-
* @memberof CommissionAgreementProductClass
|
|
34
|
-
*/
|
|
35
|
-
'version': CommissionAgreementVersionClass;
|
|
36
29
|
/**
|
|
37
30
|
* Product slug identifier
|
|
38
31
|
* @type {string}
|
|
@@ -45,6 +38,12 @@ export interface CommissionAgreementProductClass {
|
|
|
45
38
|
* @memberof CommissionAgreementProductClass
|
|
46
39
|
*/
|
|
47
40
|
'code': string;
|
|
41
|
+
/**
|
|
42
|
+
* The parent commission agreement version code
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CommissionAgreementProductClass
|
|
45
|
+
*/
|
|
46
|
+
'commissionAgreementVersionCode': string;
|
|
48
47
|
/**
|
|
49
48
|
* Status of the commission agreement product
|
|
50
49
|
* @type {string}
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
import { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
|
|
18
|
+
import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface CommissionAgreementRuleClass
|
|
24
|
+
*/
|
|
25
|
+
export interface CommissionAgreementRuleClass {
|
|
26
|
+
/**
|
|
27
|
+
* Unique identifier for the commission agreement rule
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof CommissionAgreementRuleClass
|
|
30
|
+
*/
|
|
31
|
+
'id': number;
|
|
32
|
+
/**
|
|
33
|
+
* The parent commission agreement version
|
|
34
|
+
* @type {CommissionAgreementVersionClass}
|
|
35
|
+
* @memberof CommissionAgreementRuleClass
|
|
36
|
+
*/
|
|
37
|
+
'version': CommissionAgreementVersionClass;
|
|
38
|
+
/**
|
|
39
|
+
* Unique code identifier for the commission agreement rule, auto-generated on creation
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CommissionAgreementRuleClass
|
|
42
|
+
*/
|
|
43
|
+
'code': string;
|
|
44
|
+
/**
|
|
45
|
+
* Configuration object for the commission agreement rule
|
|
46
|
+
* @type {CommissionAgreementRuleConfigDto}
|
|
47
|
+
* @memberof CommissionAgreementRuleClass
|
|
48
|
+
*/
|
|
49
|
+
'config': CommissionAgreementRuleConfigDto;
|
|
50
|
+
/**
|
|
51
|
+
* Status of the commission agreement rule (e.g., active, inactive, draft)
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CommissionAgreementRuleClass
|
|
54
|
+
*/
|
|
55
|
+
'status': CommissionAgreementRuleClassStatusEnum;
|
|
56
|
+
/**
|
|
57
|
+
* Code of the commission agreement product to create a rule for
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof CommissionAgreementRuleClass
|
|
60
|
+
*/
|
|
61
|
+
'commissionAgreementProductCode': string;
|
|
62
|
+
/**
|
|
63
|
+
* The commission agreement product
|
|
64
|
+
* @type {CommissionAgreementProductClass}
|
|
65
|
+
* @memberof CommissionAgreementRuleClass
|
|
66
|
+
*/
|
|
67
|
+
'commissionAgreementProduct': CommissionAgreementProductClass;
|
|
68
|
+
/**
|
|
69
|
+
* Timestamp when the commission agreement rule was created
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CommissionAgreementRuleClass
|
|
72
|
+
*/
|
|
73
|
+
'createdAt'?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Timestamp when the commission agreement rule was last updated
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof CommissionAgreementRuleClass
|
|
78
|
+
*/
|
|
79
|
+
'updatedAt'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* User identifier who created the commission agreement rule
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof CommissionAgreementRuleClass
|
|
84
|
+
*/
|
|
85
|
+
'createdBy'?: string;
|
|
86
|
+
/**
|
|
87
|
+
* User identifier who last updated the commission agreement rule
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof CommissionAgreementRuleClass
|
|
90
|
+
*/
|
|
91
|
+
'updatedBy'?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Evaluated commission results stored as object. Contains premium amount and evaluated commissions for preview purposes (evaluated with 100 EUR premium).
|
|
94
|
+
* @type {object}
|
|
95
|
+
* @memberof CommissionAgreementRuleClass
|
|
96
|
+
*/
|
|
97
|
+
'evaluatedCommissions'?: object;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const CommissionAgreementRuleClassStatusEnum = {
|
|
101
|
+
Active: 'active',
|
|
102
|
+
Inactive: 'inactive',
|
|
103
|
+
Draft: 'draft'
|
|
104
|
+
} as const;
|
|
105
|
+
|
|
106
|
+
export type CommissionAgreementRuleClassStatusEnum = typeof CommissionAgreementRuleClassStatusEnum[keyof typeof CommissionAgreementRuleClassStatusEnum];
|
|
107
|
+
|
|
108
|
+
|
|
@@ -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 { CommissionConfigDto } from './commission-config-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionAgreementRuleConfigDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionAgreementRuleConfigDto {
|
|
24
|
+
/**
|
|
25
|
+
* Array of commission calculation rules
|
|
26
|
+
* @type {Array<CommissionConfigDto>}
|
|
27
|
+
* @memberof CommissionAgreementRuleConfigDto
|
|
28
|
+
*/
|
|
29
|
+
'commissions': Array<CommissionConfigDto>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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 { EvaluatedCommissionClass } from './evaluated-commission-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionAgreementRuleEvaluationClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionAgreementRuleEvaluationClass {
|
|
24
|
+
/**
|
|
25
|
+
* Premium amount in cents used for evaluation
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CommissionAgreementRuleEvaluationClass
|
|
28
|
+
*/
|
|
29
|
+
'premiumAmount': number;
|
|
30
|
+
/**
|
|
31
|
+
* Array of evaluated commission results
|
|
32
|
+
* @type {Array<EvaluatedCommissionClass>}
|
|
33
|
+
* @memberof CommissionAgreementRuleEvaluationClass
|
|
34
|
+
*/
|
|
35
|
+
'commissions': Array<EvaluatedCommissionClass>;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { CommissionAgreementClass } from './commission-agreement-class';
|
|
17
|
+
import { CommissionAgreementProductClass } from './commission-agreement-product-class';
|
|
17
18
|
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
@@ -33,6 +34,12 @@ export interface CommissionAgreementVersionClass {
|
|
|
33
34
|
* @memberof CommissionAgreementVersionClass
|
|
34
35
|
*/
|
|
35
36
|
'agreement': CommissionAgreementClass;
|
|
37
|
+
/**
|
|
38
|
+
* Array of commission agreement products
|
|
39
|
+
* @type {Array<CommissionAgreementProductClass>}
|
|
40
|
+
* @memberof CommissionAgreementVersionClass
|
|
41
|
+
*/
|
|
42
|
+
'products'?: Array<CommissionAgreementProductClass>;
|
|
36
43
|
/**
|
|
37
44
|
* Unique code identifier for the commission agreement version, auto-generated on creation
|
|
38
45
|
* @type {string}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 CommissionCandidateClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CommissionCandidateClass {
|
|
23
|
+
/**
|
|
24
|
+
* The unique database identifier of the commission candidate
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CommissionCandidateClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* The unique code identifier of the commission candidate, auto-generated on creation
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CommissionCandidateClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* The code of the policy associated with this commission candidate
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CommissionCandidateClass
|
|
39
|
+
*/
|
|
40
|
+
'policyCode': string;
|
|
41
|
+
/**
|
|
42
|
+
* The code of the invoice associated with this commission candidate
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CommissionCandidateClass
|
|
45
|
+
*/
|
|
46
|
+
'invoiceCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* The type of commission candidate. Valid values: initial, recurring
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CommissionCandidateClass
|
|
51
|
+
*/
|
|
52
|
+
'candidateType': string;
|
|
53
|
+
/**
|
|
54
|
+
* The status of the commission candidate. Valid values: pending, processed
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CommissionCandidateClass
|
|
57
|
+
*/
|
|
58
|
+
'status': CommissionCandidateClassStatusEnum;
|
|
59
|
+
/**
|
|
60
|
+
* The code of the commission associated with this commission candidate
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CommissionCandidateClass
|
|
63
|
+
*/
|
|
64
|
+
'commissionCode'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The policy renewal date, primarily for recurring candidates
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CommissionCandidateClass
|
|
69
|
+
*/
|
|
70
|
+
'policyRenewalDate'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Time at which the object was created.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CommissionCandidateClass
|
|
75
|
+
*/
|
|
76
|
+
'createdAt': string;
|
|
77
|
+
/**
|
|
78
|
+
* Time at which the object was updated.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CommissionCandidateClass
|
|
81
|
+
*/
|
|
82
|
+
'updatedAt': string;
|
|
83
|
+
/**
|
|
84
|
+
* Identifier of the user who created the record.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CommissionCandidateClass
|
|
87
|
+
*/
|
|
88
|
+
'createdBy': string;
|
|
89
|
+
/**
|
|
90
|
+
* Identifier of the user who last updated the record.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof CommissionCandidateClass
|
|
93
|
+
*/
|
|
94
|
+
'updatedBy': string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export const CommissionCandidateClassStatusEnum = {
|
|
98
|
+
Pending: 'pending',
|
|
99
|
+
Processed: 'processed'
|
|
100
|
+
} as const;
|
|
101
|
+
|
|
102
|
+
export type CommissionCandidateClassStatusEnum = typeof CommissionCandidateClassStatusEnum[keyof typeof CommissionCandidateClassStatusEnum];
|
|
103
|
+
|
|
104
|
+
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
import { CommissionAgreementClass } from './commission-agreement-class';
|
|
16
17
|
import { CommissionItemClass } from './commission-item-class';
|
|
17
18
|
|
|
18
19
|
/**
|
|
@@ -28,11 +29,11 @@ export interface CommissionClass {
|
|
|
28
29
|
*/
|
|
29
30
|
'id': number;
|
|
30
31
|
/**
|
|
31
|
-
* The
|
|
32
|
-
* @type {
|
|
32
|
+
* The commission agreement this commission is based on
|
|
33
|
+
* @type {CommissionAgreementClass}
|
|
33
34
|
* @memberof CommissionClass
|
|
34
35
|
*/
|
|
35
|
-
'
|
|
36
|
+
'agreement': CommissionAgreementClass;
|
|
36
37
|
/**
|
|
37
38
|
* Unique identifier for the object.
|
|
38
39
|
* @type {string}
|
|
@@ -45,12 +46,24 @@ export interface CommissionClass {
|
|
|
45
46
|
* @memberof CommissionClass
|
|
46
47
|
*/
|
|
47
48
|
'description': string;
|
|
49
|
+
/**
|
|
50
|
+
* The commission number for this commission
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CommissionClass
|
|
53
|
+
*/
|
|
54
|
+
'commissionNumber': string;
|
|
48
55
|
/**
|
|
49
56
|
* The version identifier of the commission agreement being used for this commission
|
|
50
|
-
* @type {
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CommissionClass
|
|
59
|
+
*/
|
|
60
|
+
'commissionAgreementVersionCode': string;
|
|
61
|
+
/**
|
|
62
|
+
* The number of the commission agreement being used for this commission
|
|
63
|
+
* @type {string}
|
|
51
64
|
* @memberof CommissionClass
|
|
52
65
|
*/
|
|
53
|
-
'
|
|
66
|
+
'commissionAgreementNumber': string;
|
|
54
67
|
/**
|
|
55
68
|
* The unique code or identifier of the partner associated with this commission
|
|
56
69
|
* @type {string}
|
|
@@ -63,6 +76,18 @@ export interface CommissionClass {
|
|
|
63
76
|
* @memberof CommissionClass
|
|
64
77
|
*/
|
|
65
78
|
'policyCode': string;
|
|
79
|
+
/**
|
|
80
|
+
* The unique number of the partner associated with this commission
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CommissionClass
|
|
83
|
+
*/
|
|
84
|
+
'partnerNumber': string;
|
|
85
|
+
/**
|
|
86
|
+
* The unique number of the policy associated with this commission
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CommissionClass
|
|
89
|
+
*/
|
|
90
|
+
'policyNumber': string;
|
|
66
91
|
/**
|
|
67
92
|
* The total monetary amount of the commission in the smallest currency unit (e.g., cents). This is the sum of all commission items
|
|
68
93
|
* @type {number}
|
|
@@ -70,11 +95,17 @@ export interface CommissionClass {
|
|
|
70
95
|
*/
|
|
71
96
|
'amount': number;
|
|
72
97
|
/**
|
|
73
|
-
* The status of the commission. Valid values:
|
|
98
|
+
* The status of the commission. Valid values: draft, open, published, closed
|
|
74
99
|
* @type {string}
|
|
75
100
|
* @memberof CommissionClass
|
|
76
101
|
*/
|
|
77
102
|
'status': string;
|
|
103
|
+
/**
|
|
104
|
+
* The code of the settlement this commission is associated with
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof CommissionClass
|
|
107
|
+
*/
|
|
108
|
+
'settlementCode'?: string;
|
|
78
109
|
/**
|
|
79
110
|
* Time at which the object was created.
|
|
80
111
|
* @type {string}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CommissionConditionsDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CommissionConditionsDto {
|
|
23
|
+
/**
|
|
24
|
+
* If the commission is paid on the first year
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof CommissionConditionsDto
|
|
27
|
+
*/
|
|
28
|
+
'paidOnFirstYear'?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|