@emilgroup/commission-sdk 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 +651 -0
  4. package/api/commission-agreement-rules-api.ts +758 -0
  5. package/api/commission-agreements-api.ts +40 -27
  6. package/api/commission-recipients-api.ts +693 -0
  7. package/api/commission-settlements-api.ts +800 -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 +626 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +719 -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 +644 -0
  18. package/dist/api/commission-settlements-api.d.ts +450 -0
  19. package/dist/api/commission-settlements-api.js +737 -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,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CommissionConditionsDto } from './commission-conditions-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionConfigDto
22
+ */
23
+ export interface CommissionConfigDto {
24
+ /**
25
+ * Type of commission (e.g., sales, maintenance, other)
26
+ * @type {string}
27
+ * @memberof CommissionConfigDto
28
+ */
29
+ 'type': CommissionConfigDtoTypeEnum;
30
+ /**
31
+ * Mathematical expression to calculate commission (e.g., \'invoice.netAmount * 0.10\'). Always return value in cents.
32
+ * @type {string}
33
+ * @memberof CommissionConfigDto
34
+ */
35
+ 'expression': string;
36
+ /**
37
+ * Currency code (e.g., EUR, USD, GBP, CHF, PLN, AUD, CAD, DDK, HUF, NOK, SEK)
38
+ * @type {string}
39
+ * @memberof CommissionConfigDto
40
+ */
41
+ 'currency': CommissionConfigDtoCurrencyEnum;
42
+ /**
43
+ * Business rule conditions that determine commission calculation logic beyond the expression (e.g., payment timing, eligibility criteria, special conditions)
44
+ * @type {CommissionConditionsDto}
45
+ * @memberof CommissionConfigDto
46
+ */
47
+ 'conditions'?: CommissionConditionsDto;
48
+ }
49
+
50
+ export const CommissionConfigDtoTypeEnum = {
51
+ Sales: 'sales',
52
+ Maintenance: 'maintenance',
53
+ Other: 'other'
54
+ } as const;
55
+
56
+ export type CommissionConfigDtoTypeEnum = typeof CommissionConfigDtoTypeEnum[keyof typeof CommissionConfigDtoTypeEnum];
57
+ export const CommissionConfigDtoCurrencyEnum = {
58
+ Eur: 'EUR',
59
+ Usd: 'USD',
60
+ Gbp: 'GBP',
61
+ Chf: 'CHF',
62
+ Pln: 'PLN',
63
+ Aud: 'AUD',
64
+ Cad: 'CAD',
65
+ Ddk: 'DDK',
66
+ Huf: 'HUF',
67
+ Nok: 'NOK',
68
+ Sek: 'SEK'
69
+ } as const;
70
+
71
+ export type CommissionConfigDtoCurrencyEnum = typeof CommissionConfigDtoCurrencyEnum[keyof typeof CommissionConfigDtoCurrencyEnum];
72
+
73
+
@@ -0,0 +1,99 @@
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 { CommissionAgreementVersionClass } from './commission-agreement-version-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionRecipientClass
22
+ */
23
+ export interface CommissionRecipientClass {
24
+ /**
25
+ * Unique identifier for the commission recipient
26
+ * @type {number}
27
+ * @memberof CommissionRecipientClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * The commission agreement version associated with this commission recipient
32
+ * @type {CommissionAgreementVersionClass}
33
+ * @memberof CommissionRecipientClass
34
+ */
35
+ 'version'?: CommissionAgreementVersionClass;
36
+ /**
37
+ * The commission agreement version code associated with this commission recipient
38
+ * @type {string}
39
+ * @memberof CommissionRecipientClass
40
+ */
41
+ 'commissionAgreementVersionCode'?: string;
42
+ /**
43
+ * Unique code identifier for the commission recipient, auto-generated on creation
44
+ * @type {string}
45
+ * @memberof CommissionRecipientClass
46
+ */
47
+ 'code': string;
48
+ /**
49
+ * Human-readable display name for the commission recipient
50
+ * @type {string}
51
+ * @memberof CommissionRecipientClass
52
+ */
53
+ 'displayName': string;
54
+ /**
55
+ * The unique code or identifier of the partner associated with this commission recipient
56
+ * @type {string}
57
+ * @memberof CommissionRecipientClass
58
+ */
59
+ 'partnerCode': string;
60
+ /**
61
+ * Status of the commission recipient
62
+ * @type {string}
63
+ * @memberof CommissionRecipientClass
64
+ */
65
+ 'status': CommissionRecipientClassStatusEnum;
66
+ /**
67
+ * Timestamp when the commission recipient was created
68
+ * @type {string}
69
+ * @memberof CommissionRecipientClass
70
+ */
71
+ 'createdAt'?: string;
72
+ /**
73
+ * Timestamp when the commission recipient was last updated
74
+ * @type {string}
75
+ * @memberof CommissionRecipientClass
76
+ */
77
+ 'updatedAt'?: string;
78
+ /**
79
+ * User identifier who created the commission recipient
80
+ * @type {string}
81
+ * @memberof CommissionRecipientClass
82
+ */
83
+ 'createdBy'?: string;
84
+ /**
85
+ * User identifier who last updated the commission recipient
86
+ * @type {string}
87
+ * @memberof CommissionRecipientClass
88
+ */
89
+ 'updatedBy'?: string;
90
+ }
91
+
92
+ export const CommissionRecipientClassStatusEnum = {
93
+ Active: 'active',
94
+ Inactive: 'inactive'
95
+ } as const;
96
+
97
+ export type CommissionRecipientClassStatusEnum = typeof CommissionRecipientClassStatusEnum[keyof typeof CommissionRecipientClassStatusEnum];
98
+
99
+
@@ -0,0 +1,134 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CommissionClass } from './commission-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionSettlementClass
22
+ */
23
+ export interface CommissionSettlementClass {
24
+ /**
25
+ * The unique database identifier of the commission settlement
26
+ * @type {number}
27
+ * @memberof CommissionSettlementClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * Unique identifier for the object.
32
+ * @type {string}
33
+ * @memberof CommissionSettlementClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * The settlement number for this commission settlement
38
+ * @type {string}
39
+ * @memberof CommissionSettlementClass
40
+ */
41
+ 'settlementNumber': string;
42
+ /**
43
+ * The unique code of the partner associated with this settlement
44
+ * @type {string}
45
+ * @memberof CommissionSettlementClass
46
+ */
47
+ 'partnerCode': string;
48
+ /**
49
+ * The partner number associated with this settlement
50
+ * @type {string}
51
+ * @memberof CommissionSettlementClass
52
+ */
53
+ 'partnerNumber': string;
54
+ /**
55
+ * The currency code for this settlement
56
+ * @type {string}
57
+ * @memberof CommissionSettlementClass
58
+ */
59
+ 'currency': CommissionSettlementClassCurrencyEnum;
60
+ /**
61
+ * The total amount of the settlement in the smallest currency unit (e.g., cents)
62
+ * @type {number}
63
+ * @memberof CommissionSettlementClass
64
+ */
65
+ 'amount': number;
66
+ /**
67
+ * The status of the commission settlement. Valid values: draft, processing, published, closed
68
+ * @type {string}
69
+ * @memberof CommissionSettlementClass
70
+ */
71
+ 'status': CommissionSettlementClassStatusEnum;
72
+ /**
73
+ * Array of commissions included in this settlement
74
+ * @type {Array<CommissionClass>}
75
+ * @memberof CommissionSettlementClass
76
+ */
77
+ 'commissions': Array<CommissionClass>;
78
+ /**
79
+ * The number of policies included in this settlement
80
+ * @type {number}
81
+ * @memberof CommissionSettlementClass
82
+ */
83
+ 'policyCount': number;
84
+ /**
85
+ * Time at which the object was created.
86
+ * @type {string}
87
+ * @memberof CommissionSettlementClass
88
+ */
89
+ 'createdAt': string;
90
+ /**
91
+ * Time at which the object was updated.
92
+ * @type {string}
93
+ * @memberof CommissionSettlementClass
94
+ */
95
+ 'updatedAt': string;
96
+ /**
97
+ * Identifier of the user who created the record.
98
+ * @type {string}
99
+ * @memberof CommissionSettlementClass
100
+ */
101
+ 'createdBy': string;
102
+ /**
103
+ * Identifier of the user who last updated the record.
104
+ * @type {string}
105
+ * @memberof CommissionSettlementClass
106
+ */
107
+ 'updatedBy': string;
108
+ }
109
+
110
+ export const CommissionSettlementClassCurrencyEnum = {
111
+ Eur: 'EUR',
112
+ Usd: 'USD',
113
+ Gbp: 'GBP',
114
+ Chf: 'CHF',
115
+ Pln: 'PLN',
116
+ Aud: 'AUD',
117
+ Cad: 'CAD',
118
+ Ddk: 'DDK',
119
+ Huf: 'HUF',
120
+ Nok: 'NOK',
121
+ Sek: 'SEK'
122
+ } as const;
123
+
124
+ export type CommissionSettlementClassCurrencyEnum = typeof CommissionSettlementClassCurrencyEnum[keyof typeof CommissionSettlementClassCurrencyEnum];
125
+ export const CommissionSettlementClassStatusEnum = {
126
+ Draft: 'draft',
127
+ Processing: 'processing',
128
+ Published: 'published',
129
+ Closed: 'closed'
130
+ } as const;
131
+
132
+ export type CommissionSettlementClassStatusEnum = typeof CommissionSettlementClassStatusEnum[keyof typeof CommissionSettlementClassStatusEnum];
133
+
134
+
@@ -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 CreateCommissionAgreementProductRequestDto
21
+ */
22
+ export interface CreateCommissionAgreementProductRequestDto {
23
+ /**
24
+ * Code of the parent commission agreement version to create a product for
25
+ * @type {string}
26
+ * @memberof CreateCommissionAgreementProductRequestDto
27
+ */
28
+ 'commissionAgreementVersionCode': string;
29
+ /**
30
+ * Product slug identifier
31
+ * @type {string}
32
+ * @memberof CreateCommissionAgreementProductRequestDto
33
+ */
34
+ 'productSlug': string;
35
+ }
36
+
@@ -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 { CommissionAgreementProductClass } from './commission-agreement-product-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementProductResponseClass
22
+ */
23
+ export interface CreateCommissionAgreementProductResponseClass {
24
+ /**
25
+ * The created commission agreement product object
26
+ * @type {CommissionAgreementProductClass}
27
+ * @memberof CreateCommissionAgreementProductResponseClass
28
+ */
29
+ 'product'?: CommissionAgreementProductClass;
30
+ }
31
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -44,6 +45,12 @@ export interface CreateCommissionAgreementRequestDto {
44
45
  * @memberof CreateCommissionAgreementRequestDto
45
46
  */
46
47
  'productSlugs': Array<string>;
48
+ /**
49
+ * Metadata associated with the commission agreement
50
+ * @type {CommissionAgreementMetadataDto}
51
+ * @memberof CreateCommissionAgreementRequestDto
52
+ */
53
+ 'metadata': CommissionAgreementMetadataDto;
47
54
  /**
48
55
  * Detailed description of the commission agreement terms and conditions
49
56
  * @type {string}
@@ -55,7 +62,7 @@ export interface CreateCommissionAgreementRequestDto {
55
62
  * @type {string}
56
63
  * @memberof CreateCommissionAgreementRequestDto
57
64
  */
58
- 'startDate'?: string;
65
+ 'startDate': string;
59
66
  /**
60
67
  * End date when the commission agreement expires or is terminated
61
68
  * @type {string}
@@ -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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementRuleRequestDto
22
+ */
23
+ export interface CreateCommissionAgreementRuleRequestDto {
24
+ /**
25
+ * Code of the parent commission agreement version to create a rule for
26
+ * @type {string}
27
+ * @memberof CreateCommissionAgreementRuleRequestDto
28
+ */
29
+ 'commissionAgreementVersionCode': string;
30
+ /**
31
+ * Configuration object for the commission agreement rule
32
+ * @type {CommissionAgreementRuleConfigDto}
33
+ * @memberof CreateCommissionAgreementRuleRequestDto
34
+ */
35
+ 'config': CommissionAgreementRuleConfigDto;
36
+ }
37
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { CommissionAgreementRuleClass } from './commission-agreement-rule-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementRuleResponseClass
22
+ */
23
+ export interface CreateCommissionAgreementRuleResponseClass {
24
+ /**
25
+ * The created commission agreement rule object
26
+ * @type {CommissionAgreementRuleClass}
27
+ * @memberof CreateCommissionAgreementRuleResponseClass
28
+ */
29
+ 'rule'?: CommissionAgreementRuleClass;
30
+ }
31
+
@@ -31,7 +31,7 @@ export interface CreateCommissionAgreementVersionRequestDto {
31
31
  * @type {string}
32
32
  * @memberof CreateCommissionAgreementVersionRequestDto
33
33
  */
34
- 'startDate'?: string;
34
+ 'startDate': string;
35
35
  /**
36
36
  * End date when this version of the commission agreement expires
37
37
  * @type {string}
@@ -0,0 +1,42 @@
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 CreateCommissionRecipientRequestDto
21
+ */
22
+ export interface CreateCommissionRecipientRequestDto {
23
+ /**
24
+ * The unique code or identifier of the commission agreement version this recipient is associated with
25
+ * @type {string}
26
+ * @memberof CreateCommissionRecipientRequestDto
27
+ */
28
+ 'commissionAgreementVersionCode': string;
29
+ /**
30
+ * Human-readable display name for the commission recipient
31
+ * @type {string}
32
+ * @memberof CreateCommissionRecipientRequestDto
33
+ */
34
+ 'displayName': string;
35
+ /**
36
+ * The unique code or identifier of the partner associated with this commission recipient
37
+ * @type {string}
38
+ * @memberof CreateCommissionRecipientRequestDto
39
+ */
40
+ 'partnerCode': string;
41
+ }
42
+
@@ -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 { CommissionRecipientClass } from './commission-recipient-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionRecipientResponseClass
22
+ */
23
+ export interface CreateCommissionRecipientResponseClass {
24
+ /**
25
+ * The commission recipient that was created
26
+ * @type {CommissionRecipientClass}
27
+ * @memberof CreateCommissionRecipientResponseClass
28
+ */
29
+ 'recipient'?: CommissionRecipientClass;
30
+ }
31
+
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreateCommissionSettlementRequestDto
21
+ */
22
+ export interface CreateCommissionSettlementRequestDto {
23
+ /**
24
+ * Array of commission codes to include in this settlement
25
+ * @type {Array<string>}
26
+ * @memberof CreateCommissionSettlementRequestDto
27
+ */
28
+ 'commissionCodes': Array<string>;
29
+ /**
30
+ * The status of the commission settlement. Valid values: draft, processing, published, closed
31
+ * @type {string}
32
+ * @memberof CreateCommissionSettlementRequestDto
33
+ */
34
+ 'status'?: CreateCommissionSettlementRequestDtoStatusEnum;
35
+ }
36
+
37
+ export const CreateCommissionSettlementRequestDtoStatusEnum = {
38
+ Draft: 'draft',
39
+ Processing: 'processing',
40
+ Published: 'published',
41
+ Closed: 'closed'
42
+ } as const;
43
+
44
+ export type CreateCommissionSettlementRequestDtoStatusEnum = typeof CreateCommissionSettlementRequestDtoStatusEnum[keyof typeof CreateCommissionSettlementRequestDtoStatusEnum];
45
+
46
+
@@ -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 { CommissionSettlementClass } from './commission-settlement-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionSettlementResponseClass
22
+ */
23
+ export interface CreateCommissionSettlementResponseClass {
24
+ /**
25
+ * The commission settlement that was created
26
+ * @type {CommissionSettlementClass}
27
+ * @memberof CreateCommissionSettlementResponseClass
28
+ */
29
+ 'commissionSettlement'?: CommissionSettlementClass;
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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface EvaluateCommissionAgreementRuleRequestDto
22
+ */
23
+ export interface EvaluateCommissionAgreementRuleRequestDto {
24
+ /**
25
+ * Mock data object containing invoice, policy, and other data needed for expression evaluation (e.g., { invoice: { netAmount: 1000 }, policy: { ... } })
26
+ * @type {object}
27
+ * @memberof EvaluateCommissionAgreementRuleRequestDto
28
+ */
29
+ 'data': object;
30
+ /**
31
+ * Configuration object for the commission agreement rule
32
+ * @type {CommissionAgreementRuleConfigDto}
33
+ * @memberof EvaluateCommissionAgreementRuleRequestDto
34
+ */
35
+ 'config': CommissionAgreementRuleConfigDto;
36
+ }
37
+