@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,73 @@
|
|
|
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 { CommissionConditionsDto } from './commission-conditions-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CommissionConfigDto
|
|
22
|
+
*/
|
|
23
|
+
export interface CommissionConfigDto {
|
|
24
|
+
/**
|
|
25
|
+
* Type of commission (e.g., sales, maintenance, other)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CommissionConfigDto
|
|
28
|
+
*/
|
|
29
|
+
'type': CommissionConfigDtoTypeEnum;
|
|
30
|
+
/**
|
|
31
|
+
* Mathematical expression to calculate commission (e.g., \'invoice.netAmount * 0.10\'). Always return value in cents.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CommissionConfigDto
|
|
34
|
+
*/
|
|
35
|
+
'expression': string;
|
|
36
|
+
/**
|
|
37
|
+
* Currency code (e.g., EUR, USD, GBP, CHF, PLN, AUD, CAD, DDK, HUF, NOK, SEK)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CommissionConfigDto
|
|
40
|
+
*/
|
|
41
|
+
'currency': CommissionConfigDtoCurrencyEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Business rule conditions that determine commission calculation logic beyond the expression (e.g., payment timing, eligibility criteria, special conditions)
|
|
44
|
+
* @type {CommissionConditionsDto}
|
|
45
|
+
* @memberof CommissionConfigDto
|
|
46
|
+
*/
|
|
47
|
+
'conditions'?: CommissionConditionsDto;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const CommissionConfigDtoTypeEnum = {
|
|
51
|
+
Sales: 'sales',
|
|
52
|
+
Maintenance: 'maintenance',
|
|
53
|
+
Other: 'other'
|
|
54
|
+
} as const;
|
|
55
|
+
|
|
56
|
+
export type CommissionConfigDtoTypeEnum = typeof CommissionConfigDtoTypeEnum[keyof typeof CommissionConfigDtoTypeEnum];
|
|
57
|
+
export const CommissionConfigDtoCurrencyEnum = {
|
|
58
|
+
Eur: 'EUR',
|
|
59
|
+
Usd: 'USD',
|
|
60
|
+
Gbp: 'GBP',
|
|
61
|
+
Chf: 'CHF',
|
|
62
|
+
Pln: 'PLN',
|
|
63
|
+
Aud: 'AUD',
|
|
64
|
+
Cad: 'CAD',
|
|
65
|
+
Ddk: 'DDK',
|
|
66
|
+
Huf: 'HUF',
|
|
67
|
+
Nok: 'NOK',
|
|
68
|
+
Sek: 'SEK'
|
|
69
|
+
} as const;
|
|
70
|
+
|
|
71
|
+
export type CommissionConfigDtoCurrencyEnum = typeof CommissionConfigDtoCurrencyEnum[keyof typeof CommissionConfigDtoCurrencyEnum];
|
|
72
|
+
|
|
73
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
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 CommissionEstimateClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CommissionEstimateClass {
|
|
23
|
+
/**
|
|
24
|
+
* The name of the commission estimate
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CommissionEstimateClass
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
* A detailed description of the commission estimate
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CommissionEstimateClass
|
|
33
|
+
*/
|
|
34
|
+
'description': string;
|
|
35
|
+
/**
|
|
36
|
+
* The estimated commission amount in the smallest currency unit (e.g., cents)
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof CommissionEstimateClass
|
|
39
|
+
*/
|
|
40
|
+
'amount': number;
|
|
41
|
+
/**
|
|
42
|
+
* Type of commission. Valid values: sales, maintenance, other
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CommissionEstimateClass
|
|
45
|
+
*/
|
|
46
|
+
'type': CommissionEstimateClassTypeEnum;
|
|
47
|
+
/**
|
|
48
|
+
* Commission group indicating whether this is for the first year or following years
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CommissionEstimateClass
|
|
51
|
+
*/
|
|
52
|
+
'group': CommissionEstimateClassGroupEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const CommissionEstimateClassTypeEnum = {
|
|
56
|
+
Sales: 'sales',
|
|
57
|
+
Maintenance: 'maintenance',
|
|
58
|
+
Other: 'other'
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
export type CommissionEstimateClassTypeEnum = typeof CommissionEstimateClassTypeEnum[keyof typeof CommissionEstimateClassTypeEnum];
|
|
62
|
+
export const CommissionEstimateClassGroupEnum = {
|
|
63
|
+
FirstYear: 'firstYear',
|
|
64
|
+
FollowingYears: 'followingYears'
|
|
65
|
+
} as const;
|
|
66
|
+
|
|
67
|
+
export type CommissionEstimateClassGroupEnum = typeof CommissionEstimateClassGroupEnum[keyof typeof CommissionEstimateClassGroupEnum];
|
|
68
|
+
|
|
69
|
+
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { CommissionAgreementProductClass } from './commission-agreement-product-class';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
@@ -28,17 +28,17 @@ export interface CommissionRecipientClass {
|
|
|
28
28
|
*/
|
|
29
29
|
'id': number;
|
|
30
30
|
/**
|
|
31
|
-
* The commission agreement
|
|
32
|
-
* @type {
|
|
31
|
+
* The commission agreement product associated with this commission recipient
|
|
32
|
+
* @type {CommissionAgreementProductClass}
|
|
33
33
|
* @memberof CommissionRecipientClass
|
|
34
34
|
*/
|
|
35
|
-
'
|
|
35
|
+
'commissionAgreementProduct'?: CommissionAgreementProductClass;
|
|
36
36
|
/**
|
|
37
|
-
* The commission agreement
|
|
37
|
+
* The commission agreement product code associated with this commission recipient
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CommissionRecipientClass
|
|
40
40
|
*/
|
|
41
|
-
'
|
|
41
|
+
'commissionAgreementProductCode'?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Unique code identifier for the commission recipient, auto-generated on creation
|
|
44
44
|
* @type {string}
|
|
@@ -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
|
+
|
|
@@ -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}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 CreateCommissionCandidateRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCommissionCandidateRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The code of the policy associated with this commission candidate
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'policyCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* The code of the invoice associated with this commission candidate
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'invoiceCode': string;
|
|
35
|
+
/**
|
|
36
|
+
* The type of commission candidate. Valid values: initial, recurring
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'candidateType': CreateCommissionCandidateRequestDtoCandidateTypeEnum;
|
|
41
|
+
/**
|
|
42
|
+
* The type of commission. Valid values: sales, maintenance, other
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'commissionType'?: CreateCommissionCandidateRequestDtoCommissionTypeEnum;
|
|
47
|
+
/**
|
|
48
|
+
* The code of the commission associated with this commission candidate
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'commissionCode'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The date of the next policy renewal for this commission candidate
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'policyRenewalDate'?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const CreateCommissionCandidateRequestDtoCandidateTypeEnum = {
|
|
62
|
+
Initial: 'initial',
|
|
63
|
+
Recurring: 'recurring'
|
|
64
|
+
} as const;
|
|
65
|
+
|
|
66
|
+
export type CreateCommissionCandidateRequestDtoCandidateTypeEnum = typeof CreateCommissionCandidateRequestDtoCandidateTypeEnum[keyof typeof CreateCommissionCandidateRequestDtoCandidateTypeEnum];
|
|
67
|
+
export const CreateCommissionCandidateRequestDtoCommissionTypeEnum = {
|
|
68
|
+
Sales: 'sales',
|
|
69
|
+
Maintenance: 'maintenance',
|
|
70
|
+
Other: 'other'
|
|
71
|
+
} as const;
|
|
72
|
+
|
|
73
|
+
export type CreateCommissionCandidateRequestDtoCommissionTypeEnum = typeof CreateCommissionCandidateRequestDtoCommissionTypeEnum[keyof typeof CreateCommissionCandidateRequestDtoCommissionTypeEnum];
|
|
74
|
+
|
|
75
|
+
|
|
@@ -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 { CommissionCandidateClass } from './commission-candidate-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCommissionCandidateResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCommissionCandidateResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* candidate
|
|
26
|
+
* @type {CommissionCandidateClass}
|
|
27
|
+
* @memberof CreateCommissionCandidateResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'candidate'?: CommissionCandidateClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface CreateCommissionRecipientRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
* The unique code or identifier of the commission agreement
|
|
24
|
+
* The unique code or identifier of the commission agreement product this recipient is associated with
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CreateCommissionRecipientRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'
|
|
28
|
+
'commissionAgreementProductCode': string;
|
|
29
29
|
/**
|
|
30
30
|
* Human-readable display name for the commission recipient
|
|
31
31
|
* @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
|
+
|