@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.
Files changed (170) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +59 -17
  4. package/api/commission-agreement-rules-api.ts +804 -0
  5. package/api/commission-agreement-versions-api.ts +8 -8
  6. package/api/commission-agreements-api.ts +160 -27
  7. package/api/commission-candidates-api.ts +697 -0
  8. package/api/commission-recipients-api.ts +12 -12
  9. package/api/commission-settlements-api.ts +804 -0
  10. package/api/commissions-api.ts +125 -18
  11. package/api.ts +6 -0
  12. package/dist/api/commission-agreement-products-api.d.ts +39 -12
  13. package/dist/api/commission-agreement-products-api.js +32 -14
  14. package/dist/api/commission-agreement-rules-api.d.ts +450 -0
  15. package/dist/api/commission-agreement-rules-api.js +741 -0
  16. package/dist/api/commission-agreement-versions-api.d.ts +8 -8
  17. package/dist/api/commission-agreement-versions-api.js +6 -6
  18. package/dist/api/commission-agreements-api.d.ts +98 -23
  19. package/dist/api/commission-agreements-api.js +127 -22
  20. package/dist/api/commission-candidates-api.d.ts +393 -0
  21. package/dist/api/commission-candidates-api.js +648 -0
  22. package/dist/api/commission-recipients-api.d.ts +12 -12
  23. package/dist/api/commission-recipients-api.js +9 -9
  24. package/dist/api/commission-settlements-api.d.ts +450 -0
  25. package/dist/api/commission-settlements-api.js +741 -0
  26. package/dist/api/commissions-api.d.ts +75 -18
  27. package/dist/api/commissions-api.js +102 -9
  28. package/dist/api.d.ts +3 -0
  29. package/dist/api.js +3 -0
  30. package/dist/models/commission-agreement-class.d.ts +27 -3
  31. package/dist/models/commission-agreement-class.js +5 -1
  32. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  33. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  34. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  35. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  36. package/dist/models/commission-agreement-product-class.d.ts +6 -7
  37. package/dist/models/commission-agreement-rule-class.d.ts +99 -0
  38. package/dist/models/commission-agreement-rule-class.js +21 -0
  39. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  40. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  41. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  42. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  43. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  44. package/dist/models/commission-candidate-class.d.ts +95 -0
  45. package/dist/models/commission-candidate-class.js +20 -0
  46. package/dist/models/commission-class.d.ts +37 -6
  47. package/dist/models/commission-conditions-dto.d.ts +24 -0
  48. package/dist/models/commission-conditions-dto.js +15 -0
  49. package/dist/models/commission-config-dto.d.ts +63 -0
  50. package/dist/models/commission-config-dto.js +34 -0
  51. package/dist/models/commission-estimate-class.d.ts +59 -0
  52. package/dist/models/commission-estimate-class.js +25 -0
  53. package/dist/models/commission-recipient-class.d.ts +6 -6
  54. package/dist/models/commission-settlement-class.d.ts +124 -0
  55. package/dist/models/commission-settlement-class.js +35 -0
  56. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  57. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  58. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  59. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  60. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  61. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  62. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  63. package/dist/models/create-commission-candidate-request-dto.d.ts +65 -0
  64. package/dist/models/create-commission-candidate-request-dto.js +25 -0
  65. package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
  66. package/dist/models/create-commission-candidate-response-class.js +15 -0
  67. package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
  68. package/dist/models/create-commission-request-dto.d.ts +3 -9
  69. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  70. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  71. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  72. package/dist/models/create-commission-settlement-response-class.js +15 -0
  73. package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
  74. package/dist/models/estimate-commissions-request-dto.js +15 -0
  75. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  76. package/dist/models/estimate-commissions-response-class.js +15 -0
  77. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  78. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  79. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  80. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  81. package/dist/models/evaluated-commission-class.d.ts +54 -0
  82. package/dist/models/evaluated-commission-class.js +21 -0
  83. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  84. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  85. package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
  86. package/dist/models/get-commission-candidate-response-class.js +15 -0
  87. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  88. package/dist/models/get-commission-settlement-response-class.js +15 -0
  89. package/dist/models/index.d.ts +37 -0
  90. package/dist/models/index.js +37 -0
  91. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  92. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  93. package/dist/models/list-commission-candidates-response-class.d.ts +43 -0
  94. package/dist/models/list-commission-candidates-response-class.js +15 -0
  95. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  96. package/dist/models/list-commission-settlements-response-class.js +15 -0
  97. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  98. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  99. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  100. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  101. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  102. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  103. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  104. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  105. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  106. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  107. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  108. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  109. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  110. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  111. package/dist/models/update-commission-candidate-request-dto.d.ts +71 -0
  112. package/dist/models/update-commission-candidate-request-dto.js +25 -0
  113. package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
  114. package/dist/models/update-commission-candidate-response-class.js +15 -0
  115. package/dist/models/update-commission-request-dto.d.ts +5 -3
  116. package/dist/models/update-commission-request-dto.js +4 -2
  117. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  118. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  119. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  120. package/dist/models/update-commission-settlement-response-class.js +15 -0
  121. package/models/commission-agreement-class.ts +27 -3
  122. package/models/commission-agreement-metadata-dto.ts +31 -0
  123. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  124. package/models/commission-agreement-product-class.ts +6 -7
  125. package/models/commission-agreement-rule-class.ts +108 -0
  126. package/models/commission-agreement-rule-config-dto.ts +31 -0
  127. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  128. package/models/commission-agreement-version-class.ts +7 -0
  129. package/models/commission-candidate-class.ts +104 -0
  130. package/models/commission-class.ts +37 -6
  131. package/models/commission-conditions-dto.ts +30 -0
  132. package/models/commission-config-dto.ts +73 -0
  133. package/models/commission-estimate-class.ts +69 -0
  134. package/models/commission-recipient-class.ts +6 -6
  135. package/models/commission-settlement-class.ts +134 -0
  136. package/models/create-commission-agreement-request-dto.ts +14 -3
  137. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  138. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  139. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  140. package/models/create-commission-candidate-request-dto.ts +75 -0
  141. package/models/create-commission-candidate-response-class.ts +31 -0
  142. package/models/create-commission-recipient-request-dto.ts +2 -2
  143. package/models/create-commission-request-dto.ts +3 -9
  144. package/models/create-commission-settlement-request-dto.ts +67 -0
  145. package/models/create-commission-settlement-response-class.ts +31 -0
  146. package/models/estimate-commissions-request-dto.ts +36 -0
  147. package/models/estimate-commissions-response-class.ts +79 -0
  148. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  149. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  150. package/models/evaluated-commission-class.ts +63 -0
  151. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/get-commission-candidate-response-class.ts +31 -0
  153. package/models/get-commission-settlement-response-class.ts +31 -0
  154. package/models/index.ts +37 -0
  155. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  156. package/models/list-commission-candidates-response-class.ts +49 -0
  157. package/models/list-commission-settlements-response-class.ts +49 -0
  158. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  159. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  160. package/models/publish-commission-settlements-request-dto.ts +30 -0
  161. package/models/publish-commission-settlements-response-class.ts +31 -0
  162. package/models/update-commission-agreement-request-dto.ts +3 -1
  163. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  164. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  165. package/models/update-commission-candidate-request-dto.ts +81 -0
  166. package/models/update-commission-candidate-response-class.ts +31 -0
  167. package/models/update-commission-request-dto.ts +5 -3
  168. package/models/update-commission-settlement-request-dto.ts +52 -0
  169. package/models/update-commission-settlement-response-class.ts +31 -0
  170. 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 { CommissionAgreementVersionClass } from './commission-agreement-version-class';
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 version associated with this commission recipient
32
- * @type {CommissionAgreementVersionClass}
31
+ * The commission agreement product associated with this commission recipient
32
+ * @type {CommissionAgreementProductClass}
33
33
  * @memberof CommissionRecipientClass
34
34
  */
35
- 'version'?: CommissionAgreementVersionClass;
35
+ 'commissionAgreementProduct'?: CommissionAgreementProductClass;
36
36
  /**
37
- * The commission agreement version code associated with this commission recipient
37
+ * The commission agreement product code associated with this commission recipient
38
38
  * @type {string}
39
39
  * @memberof CommissionRecipientClass
40
40
  */
41
- 'commissionAgreementVersionCode'?: string;
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, inactive)
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'?: string;
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
- Inactive: 'inactive'
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'?: string;
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 version this recipient is associated with
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
- 'commissionAgreementVersionCode': string;
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 version identifier of the commission agreement being used for this commission
38
- * @type {number}
31
+ * The code of the commission agreement version being used for this commission
32
+ * @type {string}
39
33
  * @memberof CreateCommissionRequestDto
40
34
  */
41
- 'commissionAgreementVersionId': number;
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
+