@emilgroup/commission-sdk-node 1.0.0-beta.3 → 1.0.0-beta.30

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 (157) hide show
  1. package/.openapi-generator/FILES +43 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +655 -0
  4. package/api/commission-agreement-rules-api.ts +762 -0
  5. package/api/commission-agreements-api.ts +40 -27
  6. package/api/commission-recipients-api.ts +697 -0
  7. package/api/commission-settlements-api.ts +804 -0
  8. package/api/commissions-api.ts +18 -18
  9. package/api.ts +8 -0
  10. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  11. package/dist/api/commission-agreement-products-api.js +630 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +723 -0
  14. package/dist/api/commission-agreements-api.d.ts +32 -23
  15. package/dist/api/commission-agreements-api.js +28 -22
  16. package/dist/api/commission-recipients-api.d.ts +393 -0
  17. package/dist/api/commission-recipients-api.js +648 -0
  18. package/dist/api/commission-settlements-api.d.ts +450 -0
  19. package/dist/api/commission-settlements-api.js +741 -0
  20. package/dist/api/commissions-api.d.ts +18 -18
  21. package/dist/api/commissions-api.js +9 -9
  22. package/dist/api.d.ts +4 -0
  23. package/dist/api.js +4 -0
  24. package/dist/models/commission-agreement-class.d.ts +20 -0
  25. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  26. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  27. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  28. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  29. package/dist/models/commission-agreement-product-class.d.ts +77 -0
  30. package/dist/models/commission-agreement-product-class.js +20 -0
  31. package/dist/models/commission-agreement-rule-class.d.ts +80 -0
  32. package/dist/models/commission-agreement-rule-class.js +21 -0
  33. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  34. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  35. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  36. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  37. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  38. package/dist/models/commission-class.d.ts +29 -4
  39. package/dist/models/commission-conditions-dto.d.ts +24 -0
  40. package/dist/models/commission-conditions-dto.js +15 -0
  41. package/dist/models/commission-config-dto.d.ts +63 -0
  42. package/dist/models/commission-config-dto.js +34 -0
  43. package/dist/models/commission-recipient-class.d.ts +90 -0
  44. package/dist/models/commission-recipient-class.js +20 -0
  45. package/dist/models/commission-settlement-class.d.ts +124 -0
  46. package/dist/models/commission-settlement-class.js +35 -0
  47. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  48. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  49. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  50. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  51. package/dist/models/create-commission-agreement-request-dto.d.ts +8 -1
  52. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
  53. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  54. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  55. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  56. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  57. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  58. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  59. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  60. package/dist/models/create-commission-recipient-response-class.js +15 -0
  61. package/dist/models/create-commission-settlement-request-dto.d.ts +37 -0
  62. package/dist/models/create-commission-settlement-request-dto.js +22 -0
  63. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  64. package/dist/models/create-commission-settlement-response-class.js +15 -0
  65. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  66. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  67. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  68. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  69. package/dist/models/evaluated-commission-class.d.ts +54 -0
  70. package/dist/models/evaluated-commission-class.js +21 -0
  71. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  72. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  73. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  74. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  75. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  76. package/dist/models/get-commission-recipient-response-class.js +15 -0
  77. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  78. package/dist/models/get-commission-settlement-response-class.js +15 -0
  79. package/dist/models/index.d.ts +39 -0
  80. package/dist/models/index.js +39 -0
  81. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  82. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  83. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  84. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  85. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  86. package/dist/models/list-commission-recipients-response-class.js +15 -0
  87. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  88. package/dist/models/list-commission-settlements-response-class.js +15 -0
  89. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  90. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  91. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  92. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  93. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  94. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  95. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  96. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  97. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
  98. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  99. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  100. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  101. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  102. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  103. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  104. package/dist/models/update-commission-recipient-response-class.js +15 -0
  105. package/dist/models/update-commission-request-dto.d.ts +5 -3
  106. package/dist/models/update-commission-request-dto.js +4 -2
  107. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  108. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  109. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  110. package/dist/models/update-commission-settlement-response-class.js +15 -0
  111. package/models/commission-agreement-class.ts +20 -0
  112. package/models/commission-agreement-metadata-dto.ts +31 -0
  113. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  114. package/models/commission-agreement-product-class.ts +86 -0
  115. package/models/commission-agreement-rule-class.ts +89 -0
  116. package/models/commission-agreement-rule-config-dto.ts +31 -0
  117. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  118. package/models/commission-agreement-version-class.ts +7 -0
  119. package/models/commission-class.ts +29 -4
  120. package/models/commission-conditions-dto.ts +30 -0
  121. package/models/commission-config-dto.ts +73 -0
  122. package/models/commission-recipient-class.ts +99 -0
  123. package/models/commission-settlement-class.ts +134 -0
  124. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  125. package/models/create-commission-agreement-product-response-class.ts +31 -0
  126. package/models/create-commission-agreement-request-dto.ts +8 -1
  127. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  128. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  129. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  130. package/models/create-commission-recipient-request-dto.ts +42 -0
  131. package/models/create-commission-recipient-response-class.ts +31 -0
  132. package/models/create-commission-settlement-request-dto.ts +46 -0
  133. package/models/create-commission-settlement-response-class.ts +31 -0
  134. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  135. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  136. package/models/evaluated-commission-class.ts +63 -0
  137. package/models/get-commission-agreement-product-response-class.ts +31 -0
  138. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  139. package/models/get-commission-recipient-response-class.ts +31 -0
  140. package/models/get-commission-settlement-response-class.ts +31 -0
  141. package/models/index.ts +39 -0
  142. package/models/list-commission-agreement-products-response-class.ts +49 -0
  143. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  144. package/models/list-commission-recipients-response-class.ts +49 -0
  145. package/models/list-commission-settlements-response-class.ts +49 -0
  146. package/models/publish-commission-settlements-request-dto.ts +30 -0
  147. package/models/publish-commission-settlements-response-class.ts +31 -0
  148. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  149. package/models/update-commission-agreement-product-response-class.ts +31 -0
  150. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  151. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/update-commission-recipient-request-dto.ts +48 -0
  153. package/models/update-commission-recipient-response-class.ts +31 -0
  154. package/models/update-commission-request-dto.ts +5 -3
  155. package/models/update-commission-settlement-request-dto.ts +52 -0
  156. package/models/update-commission-settlement-response-class.ts +31 -0
  157. package/package.json +1 -1
@@ -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 { CommissionRecipientClass } from './commission-recipient-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateCommissionRecipientResponseClass
17
+ */
18
+ export interface UpdateCommissionRecipientResponseClass {
19
+ /**
20
+ * The commission recipient that was updated
21
+ * @type {CommissionRecipientClass}
22
+ * @memberof UpdateCommissionRecipientResponseClass
23
+ */
24
+ 'recipient'?: CommissionRecipientClass;
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 });
@@ -40,14 +40,16 @@ export interface UpdateCommissionRequestDto {
40
40
  */
41
41
  'policyCode': string;
42
42
  /**
43
- * The updated status of the commission. Valid values: pending, settled
43
+ * The updated status of the commission. Valid values: draft, open, published, closed
44
44
  * @type {string}
45
45
  * @memberof UpdateCommissionRequestDto
46
46
  */
47
47
  'status': UpdateCommissionRequestDtoStatusEnum;
48
48
  }
49
49
  export declare const UpdateCommissionRequestDtoStatusEnum: {
50
- readonly Pending: "pending";
51
- readonly Settled: "settled";
50
+ readonly Draft: "draft";
51
+ readonly Open: "open";
52
+ readonly Published: "published";
53
+ readonly Closed: "closed";
52
54
  };
53
55
  export type UpdateCommissionRequestDtoStatusEnum = typeof UpdateCommissionRequestDtoStatusEnum[keyof typeof UpdateCommissionRequestDtoStatusEnum];
@@ -15,6 +15,8 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.UpdateCommissionRequestDtoStatusEnum = void 0;
17
17
  exports.UpdateCommissionRequestDtoStatusEnum = {
18
- Pending: 'pending',
19
- Settled: 'settled'
18
+ Draft: 'draft',
19
+ Open: 'open',
20
+ Published: 'published',
21
+ Closed: 'closed'
20
22
  };
@@ -0,0 +1,43 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateCommissionSettlementRequestDto
16
+ */
17
+ export interface UpdateCommissionSettlementRequestDto {
18
+ /**
19
+ * The unique code of the commission settlement to update
20
+ * @type {string}
21
+ * @memberof UpdateCommissionSettlementRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * The updated status of the commission settlement. Valid values: draft, processing, published, closed
26
+ * @type {string}
27
+ * @memberof UpdateCommissionSettlementRequestDto
28
+ */
29
+ 'status': UpdateCommissionSettlementRequestDtoStatusEnum;
30
+ /**
31
+ * Updated array of commission codes to include in this settlement
32
+ * @type {Array<string>}
33
+ * @memberof UpdateCommissionSettlementRequestDto
34
+ */
35
+ 'commissionCodes': Array<string>;
36
+ }
37
+ export declare const UpdateCommissionSettlementRequestDtoStatusEnum: {
38
+ readonly Draft: "draft";
39
+ readonly Processing: "processing";
40
+ readonly Published: "published";
41
+ readonly Closed: "closed";
42
+ };
43
+ export type UpdateCommissionSettlementRequestDtoStatusEnum = typeof UpdateCommissionSettlementRequestDtoStatusEnum[keyof typeof UpdateCommissionSettlementRequestDtoStatusEnum];
@@ -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
  *
@@ -38,12 +40,24 @@ export interface CommissionAgreementClass {
38
40
  * @memberof CommissionAgreementClass
39
41
  */
40
42
  'code': string;
43
+ /**
44
+ * Unique number identifier for the commission agreement
45
+ * @type {string}
46
+ * @memberof CommissionAgreementClass
47
+ */
48
+ 'commissionAgreementNumber': string;
41
49
  /**
42
50
  * Current status of the commission agreement (e.g., active, inactive)
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}
@@ -56,6 +70,12 @@ export interface CommissionAgreementClass {
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}
@@ -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
+
@@ -0,0 +1,86 @@
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 CommissionAgreementProductClass
21
+ */
22
+ export interface CommissionAgreementProductClass {
23
+ /**
24
+ * Unique identifier for the commission agreement product
25
+ * @type {number}
26
+ * @memberof CommissionAgreementProductClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Product slug identifier
31
+ * @type {string}
32
+ * @memberof CommissionAgreementProductClass
33
+ */
34
+ 'productSlug': string;
35
+ /**
36
+ * Unique code identifier for the commission agreement product, auto-generated on creation
37
+ * @type {string}
38
+ * @memberof CommissionAgreementProductClass
39
+ */
40
+ 'code': string;
41
+ /**
42
+ * The parent commission agreement version code
43
+ * @type {string}
44
+ * @memberof CommissionAgreementProductClass
45
+ */
46
+ 'commissionAgreementVersionCode': string;
47
+ /**
48
+ * Status of the commission agreement product
49
+ * @type {string}
50
+ * @memberof CommissionAgreementProductClass
51
+ */
52
+ 'status': CommissionAgreementProductClassStatusEnum;
53
+ /**
54
+ * Timestamp when the commission agreement product was created
55
+ * @type {string}
56
+ * @memberof CommissionAgreementProductClass
57
+ */
58
+ 'createdAt'?: string;
59
+ /**
60
+ * Timestamp when the commission agreement product was last updated
61
+ * @type {string}
62
+ * @memberof CommissionAgreementProductClass
63
+ */
64
+ 'updatedAt'?: string;
65
+ /**
66
+ * User identifier who created the commission agreement product
67
+ * @type {string}
68
+ * @memberof CommissionAgreementProductClass
69
+ */
70
+ 'createdBy'?: string;
71
+ /**
72
+ * User identifier who last updated the commission agreement product
73
+ * @type {string}
74
+ * @memberof CommissionAgreementProductClass
75
+ */
76
+ 'updatedBy'?: string;
77
+ }
78
+
79
+ export const CommissionAgreementProductClassStatusEnum = {
80
+ Active: 'active',
81
+ Inactive: 'inactive'
82
+ } as const;
83
+
84
+ export type CommissionAgreementProductClassStatusEnum = typeof CommissionAgreementProductClassStatusEnum[keyof typeof CommissionAgreementProductClassStatusEnum];
85
+
86
+
@@ -0,0 +1,89 @@
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
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionAgreementRuleClass
23
+ */
24
+ export interface CommissionAgreementRuleClass {
25
+ /**
26
+ * Unique identifier for the commission agreement rule
27
+ * @type {number}
28
+ * @memberof CommissionAgreementRuleClass
29
+ */
30
+ 'id': number;
31
+ /**
32
+ * The parent commission agreement version
33
+ * @type {CommissionAgreementVersionClass}
34
+ * @memberof CommissionAgreementRuleClass
35
+ */
36
+ 'version': CommissionAgreementVersionClass;
37
+ /**
38
+ * Unique code identifier for the commission agreement rule, auto-generated on creation
39
+ * @type {string}
40
+ * @memberof CommissionAgreementRuleClass
41
+ */
42
+ 'code': string;
43
+ /**
44
+ * Configuration object for the commission agreement rule
45
+ * @type {CommissionAgreementRuleConfigDto}
46
+ * @memberof CommissionAgreementRuleClass
47
+ */
48
+ 'config': CommissionAgreementRuleConfigDto;
49
+ /**
50
+ * Status of the commission agreement rule (e.g., active, inactive, draft)
51
+ * @type {string}
52
+ * @memberof CommissionAgreementRuleClass
53
+ */
54
+ 'status': CommissionAgreementRuleClassStatusEnum;
55
+ /**
56
+ * Timestamp when the commission agreement rule was created
57
+ * @type {string}
58
+ * @memberof CommissionAgreementRuleClass
59
+ */
60
+ 'createdAt'?: string;
61
+ /**
62
+ * Timestamp when the commission agreement rule was last updated
63
+ * @type {string}
64
+ * @memberof CommissionAgreementRuleClass
65
+ */
66
+ 'updatedAt'?: string;
67
+ /**
68
+ * User identifier who created the commission agreement rule
69
+ * @type {string}
70
+ * @memberof CommissionAgreementRuleClass
71
+ */
72
+ 'createdBy'?: string;
73
+ /**
74
+ * User identifier who last updated the commission agreement rule
75
+ * @type {string}
76
+ * @memberof CommissionAgreementRuleClass
77
+ */
78
+ 'updatedBy'?: string;
79
+ }
80
+
81
+ export const CommissionAgreementRuleClassStatusEnum = {
82
+ Active: 'active',
83
+ Inactive: 'inactive',
84
+ Draft: 'draft'
85
+ } as const;
86
+
87
+ export type CommissionAgreementRuleClassStatusEnum = typeof CommissionAgreementRuleClassStatusEnum[keyof typeof CommissionAgreementRuleClassStatusEnum];
88
+
89
+
@@ -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}
@@ -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 unique code or identifier of the commission agreement this commission is based on
32
- * @type {string}
32
+ * The commission agreement this commission is based on
33
+ * @type {CommissionAgreementClass}
33
34
  * @memberof CommissionClass
34
35
  */
35
- 'commissionAgreementCode': string;
36
+ 'agreement': CommissionAgreementClass;
36
37
  /**
37
38
  * Unique identifier for the object.
38
39
  * @type {string}
@@ -45,6 +46,12 @@ 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
57
  * @type {number}
@@ -63,6 +70,18 @@ export interface CommissionClass {
63
70
  * @memberof CommissionClass
64
71
  */
65
72
  'policyCode': string;
73
+ /**
74
+ * The unique number of the partner associated with this commission
75
+ * @type {string}
76
+ * @memberof CommissionClass
77
+ */
78
+ 'partnerNumber': string;
79
+ /**
80
+ * The unique number of the policy associated with this commission
81
+ * @type {string}
82
+ * @memberof CommissionClass
83
+ */
84
+ 'policyNumber': string;
66
85
  /**
67
86
  * The total monetary amount of the commission in the smallest currency unit (e.g., cents). This is the sum of all commission items
68
87
  * @type {number}
@@ -70,11 +89,17 @@ export interface CommissionClass {
70
89
  */
71
90
  'amount': number;
72
91
  /**
73
- * The status of the commission. Valid values: pending, settled
92
+ * The status of the commission. Valid values: draft, open, published, closed
74
93
  * @type {string}
75
94
  * @memberof CommissionClass
76
95
  */
77
96
  'status': string;
97
+ /**
98
+ * The code of the settlement this commission is associated with
99
+ * @type {string}
100
+ * @memberof CommissionClass
101
+ */
102
+ 'settlementCode'?: string;
78
103
  /**
79
104
  * Time at which the object was created.
80
105
  * @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
+