@emilgroup/commission-sdk-node 1.0.0-beta.4 → 1.0.0-beta.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/.openapi-generator/FILES +39 -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 +160 -27
  6. package/api/commission-recipients-api.ts +92 -37
  7. package/api/commission-settlements-api.ts +804 -0
  8. package/api/commissions-api.ts +121 -18
  9. package/api.ts +6 -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 +98 -23
  15. package/dist/api/commission-agreements-api.js +127 -22
  16. package/dist/api/commission-recipients-api.d.ts +63 -27
  17. package/dist/api/commission-recipients-api.js +53 -29
  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 +74 -18
  21. package/dist/api/commissions-api.js +101 -9
  22. package/dist/api.d.ts +3 -0
  23. package/dist/api.js +3 -0
  24. package/dist/models/commission-agreement-class.d.ts +27 -3
  25. package/dist/models/commission-agreement-class.js +5 -1
  26. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  27. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  28. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  29. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +77 -0
  31. package/dist/models/commission-agreement-product-class.js +20 -0
  32. package/dist/models/commission-agreement-rule-class.d.ts +93 -0
  33. package/dist/models/commission-agreement-rule-class.js +21 -0
  34. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  35. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  36. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  37. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  38. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  39. package/dist/models/commission-class.d.ts +37 -6
  40. package/dist/models/commission-conditions-dto.d.ts +24 -0
  41. package/dist/models/commission-conditions-dto.js +15 -0
  42. package/dist/models/commission-config-dto.d.ts +63 -0
  43. package/dist/models/commission-config-dto.js +34 -0
  44. package/dist/models/commission-estimate-class.d.ts +59 -0
  45. package/dist/models/commission-estimate-class.js +25 -0
  46. package/dist/models/commission-settlement-class.d.ts +124 -0
  47. package/dist/models/commission-settlement-class.js +35 -0
  48. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  49. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  50. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  51. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  52. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  53. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  54. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  55. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  56. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  57. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  58. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  59. package/dist/models/create-commission-request-dto.d.ts +3 -9
  60. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  61. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  62. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  63. package/dist/models/create-commission-settlement-response-class.js +15 -0
  64. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  65. package/dist/models/estimate-commissions-response-class.js +15 -0
  66. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  67. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  68. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  69. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  70. package/dist/models/evaluated-commission-class.d.ts +54 -0
  71. package/dist/models/evaluated-commission-class.js +21 -0
  72. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  73. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  74. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  75. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  76. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  77. package/dist/models/get-commission-settlement-response-class.js +15 -0
  78. package/dist/models/index.d.ts +36 -0
  79. package/dist/models/index.js +36 -0
  80. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  81. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  82. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  83. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  84. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  85. package/dist/models/list-commission-settlements-response-class.js +15 -0
  86. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  87. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  88. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  89. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  90. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  91. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  92. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  93. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  94. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  95. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  96. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  97. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  98. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  99. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  100. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  101. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  102. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  103. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  104. package/dist/models/update-commission-request-dto.d.ts +5 -3
  105. package/dist/models/update-commission-request-dto.js +4 -2
  106. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  107. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  108. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  109. package/dist/models/update-commission-settlement-response-class.js +15 -0
  110. package/models/commission-agreement-class.ts +27 -3
  111. package/models/commission-agreement-metadata-dto.ts +31 -0
  112. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  113. package/models/commission-agreement-product-class.ts +86 -0
  114. package/models/commission-agreement-rule-class.ts +102 -0
  115. package/models/commission-agreement-rule-config-dto.ts +31 -0
  116. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  117. package/models/commission-agreement-version-class.ts +7 -0
  118. package/models/commission-class.ts +37 -6
  119. package/models/commission-conditions-dto.ts +30 -0
  120. package/models/commission-config-dto.ts +73 -0
  121. package/models/commission-estimate-class.ts +69 -0
  122. package/models/commission-settlement-class.ts +134 -0
  123. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  124. package/models/create-commission-agreement-product-response-class.ts +31 -0
  125. package/models/create-commission-agreement-request-dto.ts +14 -3
  126. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  127. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  128. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  129. package/models/create-commission-request-dto.ts +3 -9
  130. package/models/create-commission-settlement-request-dto.ts +67 -0
  131. package/models/create-commission-settlement-response-class.ts +31 -0
  132. package/models/estimate-commissions-response-class.ts +79 -0
  133. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  134. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  135. package/models/evaluated-commission-class.ts +63 -0
  136. package/models/get-commission-agreement-product-response-class.ts +31 -0
  137. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  138. package/models/get-commission-settlement-response-class.ts +31 -0
  139. package/models/index.ts +36 -0
  140. package/models/list-commission-agreement-products-response-class.ts +49 -0
  141. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  142. package/models/list-commission-settlements-response-class.ts +49 -0
  143. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  144. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  145. package/models/publish-commission-settlements-request-dto.ts +30 -0
  146. package/models/publish-commission-settlements-response-class.ts +31 -0
  147. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  148. package/models/update-commission-agreement-product-response-class.ts +31 -0
  149. package/models/update-commission-agreement-request-dto.ts +3 -1
  150. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  151. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/update-commission-request-dto.ts +5 -3
  153. package/models/update-commission-settlement-request-dto.ts +52 -0
  154. package/models/update-commission-settlement-response-class.ts +31 -0
  155. package/package.json +1 -1
@@ -0,0 +1,124 @@
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 { CommissionClass } from './commission-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionSettlementClass
17
+ */
18
+ export interface CommissionSettlementClass {
19
+ /**
20
+ * The unique database identifier of the commission settlement
21
+ * @type {number}
22
+ * @memberof CommissionSettlementClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * Unique identifier for the object.
27
+ * @type {string}
28
+ * @memberof CommissionSettlementClass
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * The settlement number for this commission settlement
33
+ * @type {string}
34
+ * @memberof CommissionSettlementClass
35
+ */
36
+ 'settlementNumber': string;
37
+ /**
38
+ * The unique code of the partner associated with this settlement
39
+ * @type {string}
40
+ * @memberof CommissionSettlementClass
41
+ */
42
+ 'partnerCode': string;
43
+ /**
44
+ * The partner number associated with this settlement
45
+ * @type {string}
46
+ * @memberof CommissionSettlementClass
47
+ */
48
+ 'partnerNumber': string;
49
+ /**
50
+ * The currency code for this settlement
51
+ * @type {string}
52
+ * @memberof CommissionSettlementClass
53
+ */
54
+ 'currency': CommissionSettlementClassCurrencyEnum;
55
+ /**
56
+ * The total amount of the settlement in the smallest currency unit (e.g., cents)
57
+ * @type {number}
58
+ * @memberof CommissionSettlementClass
59
+ */
60
+ 'amount': number;
61
+ /**
62
+ * The status of the commission settlement. Valid values: draft, processing, published, closed
63
+ * @type {string}
64
+ * @memberof CommissionSettlementClass
65
+ */
66
+ 'status': CommissionSettlementClassStatusEnum;
67
+ /**
68
+ * Array of commissions included in this settlement
69
+ * @type {Array<CommissionClass>}
70
+ * @memberof CommissionSettlementClass
71
+ */
72
+ 'commissions': Array<CommissionClass>;
73
+ /**
74
+ * The number of policies included in this settlement
75
+ * @type {number}
76
+ * @memberof CommissionSettlementClass
77
+ */
78
+ 'policyCount': number;
79
+ /**
80
+ * Time at which the object was created.
81
+ * @type {string}
82
+ * @memberof CommissionSettlementClass
83
+ */
84
+ 'createdAt': string;
85
+ /**
86
+ * Time at which the object was updated.
87
+ * @type {string}
88
+ * @memberof CommissionSettlementClass
89
+ */
90
+ 'updatedAt': string;
91
+ /**
92
+ * Identifier of the user who created the record.
93
+ * @type {string}
94
+ * @memberof CommissionSettlementClass
95
+ */
96
+ 'createdBy': string;
97
+ /**
98
+ * Identifier of the user who last updated the record.
99
+ * @type {string}
100
+ * @memberof CommissionSettlementClass
101
+ */
102
+ 'updatedBy': string;
103
+ }
104
+ export declare const CommissionSettlementClassCurrencyEnum: {
105
+ readonly Eur: "EUR";
106
+ readonly Usd: "USD";
107
+ readonly Gbp: "GBP";
108
+ readonly Chf: "CHF";
109
+ readonly Pln: "PLN";
110
+ readonly Aud: "AUD";
111
+ readonly Cad: "CAD";
112
+ readonly Ddk: "DDK";
113
+ readonly Huf: "HUF";
114
+ readonly Nok: "NOK";
115
+ readonly Sek: "SEK";
116
+ };
117
+ export type CommissionSettlementClassCurrencyEnum = typeof CommissionSettlementClassCurrencyEnum[keyof typeof CommissionSettlementClassCurrencyEnum];
118
+ export declare const CommissionSettlementClassStatusEnum: {
119
+ readonly Draft: "draft";
120
+ readonly Processing: "processing";
121
+ readonly Published: "published";
122
+ readonly Closed: "closed";
123
+ };
124
+ export type CommissionSettlementClassStatusEnum = typeof CommissionSettlementClassStatusEnum[keyof typeof CommissionSettlementClassStatusEnum];
@@ -0,0 +1,35 @@
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.CommissionSettlementClassStatusEnum = exports.CommissionSettlementClassCurrencyEnum = void 0;
17
+ exports.CommissionSettlementClassCurrencyEnum = {
18
+ Eur: 'EUR',
19
+ Usd: 'USD',
20
+ Gbp: 'GBP',
21
+ Chf: 'CHF',
22
+ Pln: 'PLN',
23
+ Aud: 'AUD',
24
+ Cad: 'CAD',
25
+ Ddk: 'DDK',
26
+ Huf: 'HUF',
27
+ Nok: 'NOK',
28
+ Sek: 'SEK'
29
+ };
30
+ exports.CommissionSettlementClassStatusEnum = {
31
+ Draft: 'draft',
32
+ Processing: 'processing',
33
+ Published: 'published',
34
+ Closed: 'closed'
35
+ };
@@ -0,0 +1,30 @@
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 CreateCommissionAgreementProductRequestDto
16
+ */
17
+ export interface CreateCommissionAgreementProductRequestDto {
18
+ /**
19
+ * Code of the parent commission agreement version to create a product for
20
+ * @type {string}
21
+ * @memberof CreateCommissionAgreementProductRequestDto
22
+ */
23
+ 'commissionAgreementVersionCode': string;
24
+ /**
25
+ * Product slug identifier
26
+ * @type {string}
27
+ * @memberof CreateCommissionAgreementProductRequestDto
28
+ */
29
+ 'productSlug': string;
30
+ }
@@ -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 });
@@ -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 { CommissionAgreementProductClass } from './commission-agreement-product-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionAgreementProductResponseClass
17
+ */
18
+ export interface CreateCommissionAgreementProductResponseClass {
19
+ /**
20
+ * The created commission agreement product object
21
+ * @type {CommissionAgreementProductClass}
22
+ * @memberof CreateCommissionAgreementProductResponseClass
23
+ */
24
+ 'product'?: CommissionAgreementProductClass;
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 });
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -28,7 +29,7 @@ export interface CreateCommissionAgreementRequestDto {
28
29
  */
29
30
  'billingFrequency': CreateCommissionAgreementRequestDtoBillingFrequencyEnum;
30
31
  /**
31
- * Current status of the commission agreement (e.g., active, inactive)
32
+ * Current status of the commission agreement (e.g., draft, active, processing, archived)
32
33
  * @type {string}
33
34
  * @memberof CreateCommissionAgreementRequestDto
34
35
  */
@@ -39,6 +40,12 @@ export interface CreateCommissionAgreementRequestDto {
39
40
  * @memberof CreateCommissionAgreementRequestDto
40
41
  */
41
42
  'productSlugs': Array<string>;
43
+ /**
44
+ * Metadata associated with the commission agreement
45
+ * @type {CommissionAgreementMetadataDto}
46
+ * @memberof CreateCommissionAgreementRequestDto
47
+ */
48
+ 'metadata': CommissionAgreementMetadataDto;
42
49
  /**
43
50
  * Detailed description of the commission agreement terms and conditions
44
51
  * @type {string}
@@ -50,7 +57,7 @@ export interface CreateCommissionAgreementRequestDto {
50
57
  * @type {string}
51
58
  * @memberof CreateCommissionAgreementRequestDto
52
59
  */
53
- 'startDate'?: string;
60
+ 'startDate': string;
54
61
  /**
55
62
  * End date when the commission agreement expires or is terminated
56
63
  * @type {string}
@@ -59,13 +66,17 @@ export interface CreateCommissionAgreementRequestDto {
59
66
  'endDate'?: string;
60
67
  }
61
68
  export declare const CreateCommissionAgreementRequestDtoBillingFrequencyEnum: {
69
+ readonly Immediately: "immediately";
62
70
  readonly Monthly: "monthly";
63
71
  readonly Quarterly: "quarterly";
72
+ readonly HalfYearly: "halfYearly";
64
73
  readonly Yearly: "yearly";
65
74
  };
66
75
  export type CreateCommissionAgreementRequestDtoBillingFrequencyEnum = typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum[keyof typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum];
67
76
  export declare const CreateCommissionAgreementRequestDtoStatusEnum: {
77
+ readonly Draft: "draft";
68
78
  readonly Active: "active";
69
- readonly Inactive: "inactive";
79
+ readonly Processing: "processing";
80
+ readonly Archived: "archived";
70
81
  };
71
82
  export type CreateCommissionAgreementRequestDtoStatusEnum = typeof CreateCommissionAgreementRequestDtoStatusEnum[keyof typeof CreateCommissionAgreementRequestDtoStatusEnum];
@@ -15,11 +15,15 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CreateCommissionAgreementRequestDtoStatusEnum = exports.CreateCommissionAgreementRequestDtoBillingFrequencyEnum = void 0;
17
17
  exports.CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
18
+ Immediately: 'immediately',
18
19
  Monthly: 'monthly',
19
20
  Quarterly: 'quarterly',
21
+ HalfYearly: 'halfYearly',
20
22
  Yearly: 'yearly'
21
23
  };
22
24
  exports.CreateCommissionAgreementRequestDtoStatusEnum = {
25
+ Draft: 'draft',
23
26
  Active: 'active',
24
- Inactive: 'inactive'
27
+ Processing: 'processing',
28
+ Archived: 'archived'
25
29
  };
@@ -0,0 +1,37 @@
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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionAgreementRuleRequestDto
17
+ */
18
+ export interface CreateCommissionAgreementRuleRequestDto {
19
+ /**
20
+ * Code of the parent commission agreement version to create a rule for
21
+ * @type {string}
22
+ * @memberof CreateCommissionAgreementRuleRequestDto
23
+ */
24
+ 'commissionAgreementVersionCode': string;
25
+ /**
26
+ * Configuration object for the commission agreement rule
27
+ * @type {CommissionAgreementRuleConfigDto}
28
+ * @memberof CreateCommissionAgreementRuleRequestDto
29
+ */
30
+ 'config': CommissionAgreementRuleConfigDto;
31
+ /**
32
+ * Code of the commission agreement product to create a rule for
33
+ * @type {string}
34
+ * @memberof CreateCommissionAgreementRuleRequestDto
35
+ */
36
+ 'commissionAgreementProductCode': string;
37
+ }
@@ -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 });
@@ -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 { CommissionAgreementRuleClass } from './commission-agreement-rule-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionAgreementRuleResponseClass
17
+ */
18
+ export interface CreateCommissionAgreementRuleResponseClass {
19
+ /**
20
+ * The created commission agreement rule object
21
+ * @type {CommissionAgreementRuleClass}
22
+ * @memberof CreateCommissionAgreementRuleResponseClass
23
+ */
24
+ 'rule'?: CommissionAgreementRuleClass;
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 });
@@ -26,7 +26,7 @@ export interface CreateCommissionAgreementVersionRequestDto {
26
26
  * @type {string}
27
27
  * @memberof CreateCommissionAgreementVersionRequestDto
28
28
  */
29
- 'startDate'?: string;
29
+ 'startDate': string;
30
30
  /**
31
31
  * End date when this version of the commission agreement expires
32
32
  * @type {string}
@@ -16,12 +16,6 @@ import { CreateCommissionItemRequestDto } from './create-commission-item-request
16
16
  * @interface CreateCommissionRequestDto
17
17
  */
18
18
  export interface CreateCommissionRequestDto {
19
- /**
20
- * The unique code or identifier of the commission agreement this commission is based on
21
- * @type {string}
22
- * @memberof CreateCommissionRequestDto
23
- */
24
- 'commissionAgreementCode': string;
25
19
  /**
26
20
  * A detailed description explaining what this commission represents and its purpose
27
21
  * @type {string}
@@ -29,11 +23,11 @@ export interface CreateCommissionRequestDto {
29
23
  */
30
24
  'description': string;
31
25
  /**
32
- * The version identifier of the commission agreement being used for this commission
33
- * @type {number}
26
+ * The code of the commission agreement version being used for this commission
27
+ * @type {string}
34
28
  * @memberof CreateCommissionRequestDto
35
29
  */
36
- 'commissionAgreementVersionId': number;
30
+ 'commissionAgreementVersionCode': string;
37
31
  /**
38
32
  * The unique code or identifier of the partner associated with this commission
39
33
  * @type {string}
@@ -0,0 +1,57 @@
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 CreateCommissionSettlementRequestDto
16
+ */
17
+ export interface CreateCommissionSettlementRequestDto {
18
+ /**
19
+ * Array of commission codes to include in this settlement
20
+ * @type {Array<string>}
21
+ * @memberof CreateCommissionSettlementRequestDto
22
+ */
23
+ 'commissionCodes': Array<string>;
24
+ /**
25
+ * The status of the commission settlement. Valid values: draft, processing, published, closed
26
+ * @type {string}
27
+ * @memberof CreateCommissionSettlementRequestDto
28
+ */
29
+ 'status'?: CreateCommissionSettlementRequestDtoStatusEnum;
30
+ /**
31
+ * The currency of the commission settlement
32
+ * @type {string}
33
+ * @memberof CreateCommissionSettlementRequestDto
34
+ */
35
+ 'currency'?: CreateCommissionSettlementRequestDtoCurrencyEnum;
36
+ }
37
+ export declare const CreateCommissionSettlementRequestDtoStatusEnum: {
38
+ readonly Draft: "draft";
39
+ readonly Processing: "processing";
40
+ readonly Published: "published";
41
+ readonly Closed: "closed";
42
+ };
43
+ export type CreateCommissionSettlementRequestDtoStatusEnum = typeof CreateCommissionSettlementRequestDtoStatusEnum[keyof typeof CreateCommissionSettlementRequestDtoStatusEnum];
44
+ export declare const CreateCommissionSettlementRequestDtoCurrencyEnum: {
45
+ readonly Eur: "EUR";
46
+ readonly Usd: "USD";
47
+ readonly Gbp: "GBP";
48
+ readonly Chf: "CHF";
49
+ readonly Pln: "PLN";
50
+ readonly Aud: "AUD";
51
+ readonly Cad: "CAD";
52
+ readonly Ddk: "DDK";
53
+ readonly Huf: "HUF";
54
+ readonly Nok: "NOK";
55
+ readonly Sek: "SEK";
56
+ };
57
+ export type CreateCommissionSettlementRequestDtoCurrencyEnum = typeof CreateCommissionSettlementRequestDtoCurrencyEnum[keyof typeof CreateCommissionSettlementRequestDtoCurrencyEnum];
@@ -0,0 +1,35 @@
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.CreateCommissionSettlementRequestDtoCurrencyEnum = exports.CreateCommissionSettlementRequestDtoStatusEnum = void 0;
17
+ exports.CreateCommissionSettlementRequestDtoStatusEnum = {
18
+ Draft: 'draft',
19
+ Processing: 'processing',
20
+ Published: 'published',
21
+ Closed: 'closed'
22
+ };
23
+ exports.CreateCommissionSettlementRequestDtoCurrencyEnum = {
24
+ Eur: 'EUR',
25
+ Usd: 'USD',
26
+ Gbp: 'GBP',
27
+ Chf: 'CHF',
28
+ Pln: 'PLN',
29
+ Aud: 'AUD',
30
+ Cad: 'CAD',
31
+ Ddk: 'DDK',
32
+ Huf: 'HUF',
33
+ Nok: 'NOK',
34
+ Sek: 'SEK'
35
+ };
@@ -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 CreateCommissionSettlementResponseClass
17
+ */
18
+ export interface CreateCommissionSettlementResponseClass {
19
+ /**
20
+ * The commission settlement that was created
21
+ * @type {CommissionSettlementClass}
22
+ * @memberof CreateCommissionSettlementResponseClass
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 });
@@ -0,0 +1,73 @@
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 { CommissionEstimateClass } from './commission-estimate-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface EstimateCommissionsResponseClass
17
+ */
18
+ export interface EstimateCommissionsResponseClass {
19
+ /**
20
+ * The unique code of the policy for which commissions are being estimated
21
+ * @type {string}
22
+ * @memberof EstimateCommissionsResponseClass
23
+ */
24
+ 'policyCode': string;
25
+ /**
26
+ * The unique number of the policy
27
+ * @type {string}
28
+ * @memberof EstimateCommissionsResponseClass
29
+ */
30
+ 'policyNumber': string;
31
+ /**
32
+ * The unique code of the partner associated with the policy
33
+ * @type {string}
34
+ * @memberof EstimateCommissionsResponseClass
35
+ */
36
+ 'partnerCode': string;
37
+ /**
38
+ * The unique number of the partner
39
+ * @type {string}
40
+ * @memberof EstimateCommissionsResponseClass
41
+ */
42
+ 'partnerNumber': string;
43
+ /**
44
+ * The total estimated commission amount in the smallest currency unit (e.g., cents). This is the sum of all commission estimates
45
+ * @type {number}
46
+ * @memberof EstimateCommissionsResponseClass
47
+ */
48
+ 'totalAmount': number;
49
+ /**
50
+ * A detailed description explaining the commission estimation
51
+ * @type {string}
52
+ * @memberof EstimateCommissionsResponseClass
53
+ */
54
+ 'description': string;
55
+ /**
56
+ * The version identifier of the commission agreement being used for this estimation
57
+ * @type {string}
58
+ * @memberof EstimateCommissionsResponseClass
59
+ */
60
+ 'commissionAgreementVersionCode': string;
61
+ /**
62
+ * The code of the commission agreement rule that was used for this estimation
63
+ * @type {string}
64
+ * @memberof EstimateCommissionsResponseClass
65
+ */
66
+ 'commissionAgreementRuleCode': string;
67
+ /**
68
+ * An array of individual commission estimates that make up the total commission. Each estimate represents a specific commission component with its own amount, type, and group
69
+ * @type {Array<CommissionEstimateClass>}
70
+ * @memberof EstimateCommissionsResponseClass
71
+ */
72
+ 'commissions': Array<CommissionEstimateClass>;
73
+ }