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

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 (159) 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 +31 -6
  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-request-dto.d.ts +3 -9
  62. package/dist/models/create-commission-settlement-request-dto.d.ts +37 -0
  63. package/dist/models/create-commission-settlement-request-dto.js +22 -0
  64. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  65. package/dist/models/create-commission-settlement-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-recipient-response-class.d.ts +25 -0
  77. package/dist/models/get-commission-recipient-response-class.js +15 -0
  78. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  79. package/dist/models/get-commission-settlement-response-class.js +15 -0
  80. package/dist/models/index.d.ts +39 -0
  81. package/dist/models/index.js +39 -0
  82. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  83. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  84. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  85. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  86. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  87. package/dist/models/list-commission-recipients-response-class.js +15 -0
  88. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  89. package/dist/models/list-commission-settlements-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-rule-request-dto.d.ts +43 -0
  99. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  100. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  101. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  102. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  103. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  104. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  105. package/dist/models/update-commission-recipient-response-class.js +15 -0
  106. package/dist/models/update-commission-request-dto.d.ts +5 -3
  107. package/dist/models/update-commission-request-dto.js +4 -2
  108. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  109. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  110. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  111. package/dist/models/update-commission-settlement-response-class.js +15 -0
  112. package/models/commission-agreement-class.ts +20 -0
  113. package/models/commission-agreement-metadata-dto.ts +31 -0
  114. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  115. package/models/commission-agreement-product-class.ts +86 -0
  116. package/models/commission-agreement-rule-class.ts +89 -0
  117. package/models/commission-agreement-rule-config-dto.ts +31 -0
  118. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  119. package/models/commission-agreement-version-class.ts +7 -0
  120. package/models/commission-class.ts +31 -6
  121. package/models/commission-conditions-dto.ts +30 -0
  122. package/models/commission-config-dto.ts +73 -0
  123. package/models/commission-recipient-class.ts +99 -0
  124. package/models/commission-settlement-class.ts +134 -0
  125. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  126. package/models/create-commission-agreement-product-response-class.ts +31 -0
  127. package/models/create-commission-agreement-request-dto.ts +8 -1
  128. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  129. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  130. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  131. package/models/create-commission-recipient-request-dto.ts +42 -0
  132. package/models/create-commission-recipient-response-class.ts +31 -0
  133. package/models/create-commission-request-dto.ts +3 -9
  134. package/models/create-commission-settlement-request-dto.ts +46 -0
  135. package/models/create-commission-settlement-response-class.ts +31 -0
  136. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  137. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  138. package/models/evaluated-commission-class.ts +63 -0
  139. package/models/get-commission-agreement-product-response-class.ts +31 -0
  140. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  141. package/models/get-commission-recipient-response-class.ts +31 -0
  142. package/models/get-commission-settlement-response-class.ts +31 -0
  143. package/models/index.ts +39 -0
  144. package/models/list-commission-agreement-products-response-class.ts +49 -0
  145. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  146. package/models/list-commission-recipients-response-class.ts +49 -0
  147. package/models/list-commission-settlements-response-class.ts +49 -0
  148. package/models/publish-commission-settlements-request-dto.ts +30 -0
  149. package/models/publish-commission-settlements-response-class.ts +31 -0
  150. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  151. package/models/update-commission-agreement-product-response-class.ts +31 -0
  152. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  153. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  154. package/models/update-commission-recipient-request-dto.ts +48 -0
  155. package/models/update-commission-recipient-response-class.ts +31 -0
  156. package/models/update-commission-request-dto.ts +5 -3
  157. package/models/update-commission-settlement-request-dto.ts +52 -0
  158. package/models/update-commission-settlement-response-class.ts +31 -0
  159. package/package.json +1 -1
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CommissionAgreementClass } from './commission-agreement-class';
13
+ import { CommissionAgreementProductClass } from './commission-agreement-product-class';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,12 @@ export interface CommissionAgreementVersionClass {
28
29
  * @memberof CommissionAgreementVersionClass
29
30
  */
30
31
  'agreement': CommissionAgreementClass;
32
+ /**
33
+ * Array of commission agreement products
34
+ * @type {Array<CommissionAgreementProductClass>}
35
+ * @memberof CommissionAgreementVersionClass
36
+ */
37
+ 'products'?: Array<CommissionAgreementProductClass>;
31
38
  /**
32
39
  * Unique code identifier for the commission agreement version, auto-generated on creation
33
40
  * @type {string}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CommissionAgreementClass } from './commission-agreement-class';
12
13
  import { CommissionItemClass } from './commission-item-class';
13
14
  /**
14
15
  *
@@ -23,11 +24,11 @@ export interface CommissionClass {
23
24
  */
24
25
  'id': number;
25
26
  /**
26
- * The unique code or identifier of the commission agreement this commission is based on
27
- * @type {string}
27
+ * The commission agreement this commission is based on
28
+ * @type {CommissionAgreementClass}
28
29
  * @memberof CommissionClass
29
30
  */
30
- 'commissionAgreementCode': string;
31
+ 'agreement': CommissionAgreementClass;
31
32
  /**
32
33
  * Unique identifier for the object.
33
34
  * @type {string}
@@ -40,12 +41,18 @@ export interface CommissionClass {
40
41
  * @memberof CommissionClass
41
42
  */
42
43
  'description': string;
44
+ /**
45
+ * The commission number for this commission
46
+ * @type {string}
47
+ * @memberof CommissionClass
48
+ */
49
+ 'commissionNumber': string;
43
50
  /**
44
51
  * The version identifier of the commission agreement being used for this commission
45
- * @type {number}
52
+ * @type {string}
46
53
  * @memberof CommissionClass
47
54
  */
48
- 'commissionAgreementVersionId': number;
55
+ 'commissionAgreementVersionCode': string;
49
56
  /**
50
57
  * The unique code or identifier of the partner associated with this commission
51
58
  * @type {string}
@@ -58,6 +65,18 @@ export interface CommissionClass {
58
65
  * @memberof CommissionClass
59
66
  */
60
67
  'policyCode': string;
68
+ /**
69
+ * The unique number of the partner associated with this commission
70
+ * @type {string}
71
+ * @memberof CommissionClass
72
+ */
73
+ 'partnerNumber': string;
74
+ /**
75
+ * The unique number of the policy associated with this commission
76
+ * @type {string}
77
+ * @memberof CommissionClass
78
+ */
79
+ 'policyNumber': string;
61
80
  /**
62
81
  * The total monetary amount of the commission in the smallest currency unit (e.g., cents). This is the sum of all commission items
63
82
  * @type {number}
@@ -65,11 +84,17 @@ export interface CommissionClass {
65
84
  */
66
85
  'amount': number;
67
86
  /**
68
- * The status of the commission. Valid values: pending, settled
87
+ * The status of the commission. Valid values: draft, open, published, closed
69
88
  * @type {string}
70
89
  * @memberof CommissionClass
71
90
  */
72
91
  'status': string;
92
+ /**
93
+ * The code of the settlement this commission is associated with
94
+ * @type {string}
95
+ * @memberof CommissionClass
96
+ */
97
+ 'settlementCode'?: string;
73
98
  /**
74
99
  * Time at which the object was created.
75
100
  * @type {string}
@@ -0,0 +1,24 @@
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 CommissionConditionsDto
16
+ */
17
+ export interface CommissionConditionsDto {
18
+ /**
19
+ * If the commission is paid on the first year
20
+ * @type {boolean}
21
+ * @memberof CommissionConditionsDto
22
+ */
23
+ 'paidOnFirstYear'?: boolean;
24
+ }
@@ -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,63 @@
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 { CommissionConditionsDto } from './commission-conditions-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionConfigDto
17
+ */
18
+ export interface CommissionConfigDto {
19
+ /**
20
+ * Type of commission (e.g., sales, maintenance, other)
21
+ * @type {string}
22
+ * @memberof CommissionConfigDto
23
+ */
24
+ 'type': CommissionConfigDtoTypeEnum;
25
+ /**
26
+ * Mathematical expression to calculate commission (e.g., \'invoice.netAmount * 0.10\'). Always return value in cents.
27
+ * @type {string}
28
+ * @memberof CommissionConfigDto
29
+ */
30
+ 'expression': string;
31
+ /**
32
+ * Currency code (e.g., EUR, USD, GBP, CHF, PLN, AUD, CAD, DDK, HUF, NOK, SEK)
33
+ * @type {string}
34
+ * @memberof CommissionConfigDto
35
+ */
36
+ 'currency': CommissionConfigDtoCurrencyEnum;
37
+ /**
38
+ * Business rule conditions that determine commission calculation logic beyond the expression (e.g., payment timing, eligibility criteria, special conditions)
39
+ * @type {CommissionConditionsDto}
40
+ * @memberof CommissionConfigDto
41
+ */
42
+ 'conditions'?: CommissionConditionsDto;
43
+ }
44
+ export declare const CommissionConfigDtoTypeEnum: {
45
+ readonly Sales: "sales";
46
+ readonly Maintenance: "maintenance";
47
+ readonly Other: "other";
48
+ };
49
+ export type CommissionConfigDtoTypeEnum = typeof CommissionConfigDtoTypeEnum[keyof typeof CommissionConfigDtoTypeEnum];
50
+ export declare const CommissionConfigDtoCurrencyEnum: {
51
+ readonly Eur: "EUR";
52
+ readonly Usd: "USD";
53
+ readonly Gbp: "GBP";
54
+ readonly Chf: "CHF";
55
+ readonly Pln: "PLN";
56
+ readonly Aud: "AUD";
57
+ readonly Cad: "CAD";
58
+ readonly Ddk: "DDK";
59
+ readonly Huf: "HUF";
60
+ readonly Nok: "NOK";
61
+ readonly Sek: "SEK";
62
+ };
63
+ export type CommissionConfigDtoCurrencyEnum = typeof CommissionConfigDtoCurrencyEnum[keyof typeof CommissionConfigDtoCurrencyEnum];
@@ -0,0 +1,34 @@
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.CommissionConfigDtoCurrencyEnum = exports.CommissionConfigDtoTypeEnum = void 0;
17
+ exports.CommissionConfigDtoTypeEnum = {
18
+ Sales: 'sales',
19
+ Maintenance: 'maintenance',
20
+ Other: 'other'
21
+ };
22
+ exports.CommissionConfigDtoCurrencyEnum = {
23
+ Eur: 'EUR',
24
+ Usd: 'USD',
25
+ Gbp: 'GBP',
26
+ Chf: 'CHF',
27
+ Pln: 'PLN',
28
+ Aud: 'AUD',
29
+ Cad: 'CAD',
30
+ Ddk: 'DDK',
31
+ Huf: 'HUF',
32
+ Nok: 'NOK',
33
+ Sek: 'SEK'
34
+ };
@@ -0,0 +1,90 @@
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 { CommissionAgreementVersionClass } from './commission-agreement-version-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionRecipientClass
17
+ */
18
+ export interface CommissionRecipientClass {
19
+ /**
20
+ * Unique identifier for the commission recipient
21
+ * @type {number}
22
+ * @memberof CommissionRecipientClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * The commission agreement version associated with this commission recipient
27
+ * @type {CommissionAgreementVersionClass}
28
+ * @memberof CommissionRecipientClass
29
+ */
30
+ 'version'?: CommissionAgreementVersionClass;
31
+ /**
32
+ * The commission agreement version code associated with this commission recipient
33
+ * @type {string}
34
+ * @memberof CommissionRecipientClass
35
+ */
36
+ 'commissionAgreementVersionCode'?: string;
37
+ /**
38
+ * Unique code identifier for the commission recipient, auto-generated on creation
39
+ * @type {string}
40
+ * @memberof CommissionRecipientClass
41
+ */
42
+ 'code': string;
43
+ /**
44
+ * Human-readable display name for the commission recipient
45
+ * @type {string}
46
+ * @memberof CommissionRecipientClass
47
+ */
48
+ 'displayName': string;
49
+ /**
50
+ * The unique code or identifier of the partner associated with this commission recipient
51
+ * @type {string}
52
+ * @memberof CommissionRecipientClass
53
+ */
54
+ 'partnerCode': string;
55
+ /**
56
+ * Status of the commission recipient
57
+ * @type {string}
58
+ * @memberof CommissionRecipientClass
59
+ */
60
+ 'status': CommissionRecipientClassStatusEnum;
61
+ /**
62
+ * Timestamp when the commission recipient was created
63
+ * @type {string}
64
+ * @memberof CommissionRecipientClass
65
+ */
66
+ 'createdAt'?: string;
67
+ /**
68
+ * Timestamp when the commission recipient was last updated
69
+ * @type {string}
70
+ * @memberof CommissionRecipientClass
71
+ */
72
+ 'updatedAt'?: string;
73
+ /**
74
+ * User identifier who created the commission recipient
75
+ * @type {string}
76
+ * @memberof CommissionRecipientClass
77
+ */
78
+ 'createdBy'?: string;
79
+ /**
80
+ * User identifier who last updated the commission recipient
81
+ * @type {string}
82
+ * @memberof CommissionRecipientClass
83
+ */
84
+ 'updatedBy'?: string;
85
+ }
86
+ export declare const CommissionRecipientClassStatusEnum: {
87
+ readonly Active: "active";
88
+ readonly Inactive: "inactive";
89
+ };
90
+ export type CommissionRecipientClassStatusEnum = typeof CommissionRecipientClassStatusEnum[keyof typeof CommissionRecipientClassStatusEnum];
@@ -0,0 +1,20 @@
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.CommissionRecipientClassStatusEnum = void 0;
17
+ exports.CommissionRecipientClassStatusEnum = {
18
+ Active: 'active',
19
+ Inactive: 'inactive'
20
+ };
@@ -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
@@ -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}
@@ -0,0 +1,31 @@
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
+ }
@@ -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 });