@emilgroup/commission-sdk-node 2.9.1-beta.1 → 2.9.1-beta.11

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 (64) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/commissions-api.ts +415 -0
  4. package/dist/api/commissions-api.d.ts +233 -0
  5. package/dist/api/commissions-api.js +321 -0
  6. package/dist/models/clawback-config-class.d.ts +36 -0
  7. package/dist/models/clawback-config-class.js +15 -0
  8. package/dist/models/clawback-config-dto.d.ts +36 -0
  9. package/dist/models/clawback-config-dto.js +15 -0
  10. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  11. package/dist/models/commission-candidate-class.d.ts +12 -0
  12. package/dist/models/commission-class.d.ts +43 -0
  13. package/dist/models/commission-class.js +7 -0
  14. package/dist/models/commission-config-dto.d.ts +2 -1
  15. package/dist/models/commission-config-dto.js +2 -1
  16. package/dist/models/commission-estimate-class.d.ts +2 -1
  17. package/dist/models/commission-estimate-class.js +2 -1
  18. package/dist/models/create-commission-agreement-request-dto.d.ts +7 -0
  19. package/dist/models/create-commission-agreement-version-request-dto.d.ts +7 -0
  20. package/dist/models/create-commission-candidate-request-dto.d.ts +15 -2
  21. package/dist/models/create-commission-candidate-request-dto.js +2 -1
  22. package/dist/models/create-commission-clawback-request-dto.d.ts +24 -0
  23. package/dist/models/create-commission-clawback-request-dto.js +15 -0
  24. package/dist/models/create-commission-clawback-response-class.d.ts +43 -0
  25. package/dist/models/create-commission-clawback-response-class.js +21 -0
  26. package/dist/models/create-commission-item-request-dto.d.ts +2 -1
  27. package/dist/models/create-commission-item-request-dto.js +2 -1
  28. package/dist/models/create-commission-request-dto.d.ts +6 -0
  29. package/dist/models/evaluated-commission-class.d.ts +2 -1
  30. package/dist/models/evaluated-commission-class.js +2 -1
  31. package/dist/models/index.d.ts +8 -0
  32. package/dist/models/index.js +8 -0
  33. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.d.ts +43 -0
  34. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.js +15 -0
  35. package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +109 -0
  36. package/dist/models/scheduled-commission-clawback-trigger-class.js +27 -0
  37. package/dist/models/trigger-due-commission-clawbacks-request-dto.d.ts +30 -0
  38. package/dist/models/trigger-due-commission-clawbacks-request-dto.js +15 -0
  39. package/dist/models/trigger-due-commission-clawbacks-response-class.d.ts +24 -0
  40. package/dist/models/trigger-due-commission-clawbacks-response-class.js +15 -0
  41. package/dist/models/update-commission-candidate-request-dto.d.ts +2 -1
  42. package/dist/models/update-commission-candidate-request-dto.js +2 -1
  43. package/models/clawback-config-class.ts +42 -0
  44. package/models/clawback-config-dto.ts +42 -0
  45. package/models/commission-agreement-version-class.ts +7 -0
  46. package/models/commission-candidate-class.ts +12 -0
  47. package/models/commission-class.ts +46 -0
  48. package/models/commission-config-dto.ts +3 -2
  49. package/models/commission-estimate-class.ts +3 -2
  50. package/models/create-commission-agreement-request-dto.ts +7 -0
  51. package/models/create-commission-agreement-version-request-dto.ts +7 -0
  52. package/models/create-commission-candidate-request-dto.ts +16 -3
  53. package/models/create-commission-clawback-request-dto.ts +30 -0
  54. package/models/create-commission-clawback-response-class.ts +52 -0
  55. package/models/create-commission-item-request-dto.ts +3 -2
  56. package/models/create-commission-request-dto.ts +6 -0
  57. package/models/evaluated-commission-class.ts +3 -2
  58. package/models/index.ts +8 -0
  59. package/models/list-scheduled-commission-clawback-triggers-response-class.ts +49 -0
  60. package/models/scheduled-commission-clawback-trigger-class.ts +119 -0
  61. package/models/trigger-due-commission-clawbacks-request-dto.ts +36 -0
  62. package/models/trigger-due-commission-clawbacks-response-class.ts +30 -0
  63. package/models/update-commission-candidate-request-dto.ts +3 -2
  64. package/package.json +1 -1
@@ -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 ClawbackConfigClass
21
+ */
22
+ export interface ClawbackConfigClass {
23
+ /**
24
+ * Allow manual commission clawback creation.
25
+ * @type {boolean}
26
+ * @memberof ClawbackConfigClass
27
+ */
28
+ 'manual': boolean;
29
+ /**
30
+ * Allow automatic commission clawback creation for policy termination and withdrawal.
31
+ * @type {boolean}
32
+ * @memberof ClawbackConfigClass
33
+ */
34
+ 'policyCancellation': boolean;
35
+ /**
36
+ * Allow automatic commission clawback creation for intermediary switches.
37
+ * @type {boolean}
38
+ * @memberof ClawbackConfigClass
39
+ */
40
+ 'intermediarySwitched': boolean;
41
+ }
42
+
@@ -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 ClawbackConfigDto
21
+ */
22
+ export interface ClawbackConfigDto {
23
+ /**
24
+ * Allow manual commission clawback creation.
25
+ * @type {boolean}
26
+ * @memberof ClawbackConfigDto
27
+ */
28
+ 'manual': boolean;
29
+ /**
30
+ * Allow automatic commission clawback creation for policy termination and withdrawal.
31
+ * @type {boolean}
32
+ * @memberof ClawbackConfigDto
33
+ */
34
+ 'policyCancellation': boolean;
35
+ /**
36
+ * Allow automatic commission clawback creation for intermediary switches.
37
+ * @type {boolean}
38
+ * @memberof ClawbackConfigDto
39
+ */
40
+ 'intermediarySwitched': boolean;
41
+ }
42
+
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ClawbackConfigClass } from './clawback-config-class';
16
17
  import { CommissionAgreementClass } from './commission-agreement-class';
17
18
  import { CommissionAgreementProductClass } from './commission-agreement-product-class';
18
19
 
@@ -64,6 +65,12 @@ export interface CommissionAgreementVersionClass {
64
65
  * @memberof CommissionAgreementVersionClass
65
66
  */
66
67
  'settlementCreationDate'?: string;
68
+ /**
69
+ * Version-scoped clawback creation configuration.
70
+ * @type {ClawbackConfigClass}
71
+ * @memberof CommissionAgreementVersionClass
72
+ */
73
+ 'clawbackConfig': ClawbackConfigClass;
67
74
  /**
68
75
  * Description explaining what changed in this version or version notes
69
76
  * @type {string}
@@ -68,6 +68,18 @@ export interface CommissionCandidateClass {
68
68
  * @memberof CommissionCandidateClass
69
69
  */
70
70
  'policyRenewalDate'?: string;
71
+ /**
72
+ * Exclusive end of the period the commission will be created for
73
+ * @type {string}
74
+ * @memberof CommissionCandidateClass
75
+ */
76
+ 'commissionPeriodTo'?: string;
77
+ /**
78
+ * Expected invoice entry count in the commission period, used as the pro rata denominator
79
+ * @type {number}
80
+ * @memberof CommissionCandidateClass
81
+ */
82
+ 'expectedInvoiceEntryCount'?: number;
71
83
  /**
72
84
  * Time at which the object was created.
73
85
  * @type {string}
@@ -112,6 +112,42 @@ export interface CommissionClass {
112
112
  * @memberof CommissionClass
113
113
  */
114
114
  'settlementCode'?: string;
115
+ /**
116
+ * The source invoice code for invoice-driven commissions
117
+ * @type {string}
118
+ * @memberof CommissionClass
119
+ */
120
+ 'invoiceCode'?: string;
121
+ /**
122
+ * Start of the period the commission was originally created for
123
+ * @type {string}
124
+ * @memberof CommissionClass
125
+ */
126
+ 'commissionPeriodFrom'?: string;
127
+ /**
128
+ * Exclusive end of the period the commission was originally created for
129
+ * @type {string}
130
+ * @memberof CommissionClass
131
+ */
132
+ 'commissionPeriodTo'?: string;
133
+ /**
134
+ * Expected invoice entry count in the commission period, used as the pro rata denominator
135
+ * @type {number}
136
+ * @memberof CommissionClass
137
+ */
138
+ 'expectedInvoiceEntryCount'?: number;
139
+ /**
140
+ * For clawback commissions, the original commission being clawed back
141
+ * @type {string}
142
+ * @memberof CommissionClass
143
+ */
144
+ 'originalCommissionCode'?: string;
145
+ /**
146
+ * The trigger type that created this clawback commission
147
+ * @type {string}
148
+ * @memberof CommissionClass
149
+ */
150
+ 'clawbackTriggerType'?: CommissionClassClawbackTriggerTypeEnum;
115
151
  /**
116
152
  * Time at which the object was created.
117
153
  * @type {string}
@@ -144,3 +180,13 @@ export interface CommissionClass {
144
180
  'items': Array<CommissionItemClass>;
145
181
  }
146
182
 
183
+ export const CommissionClassClawbackTriggerTypeEnum = {
184
+ Manual: 'manual',
185
+ PolicyTermination: 'policy_termination',
186
+ PolicyWithdrawal: 'policy_withdrawal',
187
+ IntermediarySwitched: 'intermediary_switched'
188
+ } as const;
189
+
190
+ export type CommissionClassClawbackTriggerTypeEnum = typeof CommissionClassClawbackTriggerTypeEnum[keyof typeof CommissionClassClawbackTriggerTypeEnum];
191
+
192
+
@@ -22,7 +22,7 @@ import { CommissionConditionsDto } from './commission-conditions-dto';
22
22
  */
23
23
  export interface CommissionConfigDto {
24
24
  /**
25
- * Type of commission (e.g., sales, maintenance, other)
25
+ * Type of commission (e.g., sales, maintenance, other, clawback)
26
26
  * @type {string}
27
27
  * @memberof CommissionConfigDto
28
28
  */
@@ -50,7 +50,8 @@ export interface CommissionConfigDto {
50
50
  export const CommissionConfigDtoTypeEnum = {
51
51
  Sales: 'sales',
52
52
  Maintenance: 'maintenance',
53
- Other: 'other'
53
+ Other: 'other',
54
+ Clawback: 'clawback'
54
55
  } as const;
55
56
 
56
57
  export type CommissionConfigDtoTypeEnum = typeof CommissionConfigDtoTypeEnum[keyof typeof CommissionConfigDtoTypeEnum];
@@ -39,7 +39,7 @@ export interface CommissionEstimateClass {
39
39
  */
40
40
  'amount': number;
41
41
  /**
42
- * Type of commission. Valid values: sales, maintenance, other
42
+ * Type of commission. Valid values: sales, maintenance, other, clawback
43
43
  * @type {string}
44
44
  * @memberof CommissionEstimateClass
45
45
  */
@@ -55,7 +55,8 @@ export interface CommissionEstimateClass {
55
55
  export const CommissionEstimateClassTypeEnum = {
56
56
  Sales: 'sales',
57
57
  Maintenance: 'maintenance',
58
- Other: 'other'
58
+ Other: 'other',
59
+ Clawback: 'clawback'
59
60
  } as const;
60
61
 
61
62
  export type CommissionEstimateClassTypeEnum = typeof CommissionEstimateClassTypeEnum[keyof typeof CommissionEstimateClassTypeEnum];
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ClawbackConfigDto } from './clawback-config-dto';
16
17
  import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
17
18
 
18
19
  /**
@@ -75,6 +76,12 @@ export interface CreateCommissionAgreementRequestDto {
75
76
  * @memberof CreateCommissionAgreementRequestDto
76
77
  */
77
78
  'settlementCreationDate'?: string;
79
+ /**
80
+ * Initial version clawback creation configuration. Missing config defaults to all triggers disabled.
81
+ * @type {ClawbackConfigDto}
82
+ * @memberof CreateCommissionAgreementRequestDto
83
+ */
84
+ 'clawbackConfig'?: ClawbackConfigDto;
78
85
  }
79
86
 
80
87
  export const CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { ClawbackConfigDto } from './clawback-config-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -50,5 +51,11 @@ export interface CreateCommissionAgreementVersionRequestDto {
50
51
  * @memberof CreateCommissionAgreementVersionRequestDto
51
52
  */
52
53
  'versionDescription'?: string;
54
+ /**
55
+ * Version-scoped clawback creation configuration. Missing config defaults to all triggers disabled.
56
+ * @type {ClawbackConfigDto}
57
+ * @memberof CreateCommissionAgreementVersionRequestDto
58
+ */
59
+ 'clawbackConfig'?: ClawbackConfigDto;
53
60
  }
54
61
 
@@ -39,7 +39,7 @@ export interface CreateCommissionCandidateRequestDto {
39
39
  */
40
40
  'candidateType': CreateCommissionCandidateRequestDtoCandidateTypeEnum;
41
41
  /**
42
- * The type of commission. Valid values: sales, maintenance, other
42
+ * The type of commission. Valid values: sales, maintenance, other, clawback
43
43
  * @type {string}
44
44
  * @memberof CreateCommissionCandidateRequestDto
45
45
  */
@@ -51,11 +51,23 @@ export interface CreateCommissionCandidateRequestDto {
51
51
  */
52
52
  'commissionCode'?: string;
53
53
  /**
54
- * The date of the next policy renewal for this commission candidate
54
+ * The date of the next policy renewal for this commission candidate. Required when renewal clawback metadata is provided.
55
55
  * @type {string}
56
56
  * @memberof CreateCommissionCandidateRequestDto
57
57
  */
58
58
  'policyRenewalDate'?: string;
59
+ /**
60
+ * Exclusive end of the commission period. If provided, policyRenewalDate and expectedInvoiceEntryCount must also be provided.
61
+ * @type {string}
62
+ * @memberof CreateCommissionCandidateRequestDto
63
+ */
64
+ 'commissionPeriodTo'?: string;
65
+ /**
66
+ * Expected invoice entry count in the commission period. If provided, policyRenewalDate and commissionPeriodTo must also be provided.
67
+ * @type {number}
68
+ * @memberof CreateCommissionCandidateRequestDto
69
+ */
70
+ 'expectedInvoiceEntryCount'?: number;
59
71
  }
60
72
 
61
73
  export const CreateCommissionCandidateRequestDtoCandidateTypeEnum = {
@@ -67,7 +79,8 @@ export type CreateCommissionCandidateRequestDtoCandidateTypeEnum = typeof Create
67
79
  export const CreateCommissionCandidateRequestDtoCommissionTypeEnum = {
68
80
  Sales: 'sales',
69
81
  Maintenance: 'maintenance',
70
- Other: 'other'
82
+ Other: 'other',
83
+ Clawback: 'clawback'
71
84
  } as const;
72
85
 
73
86
  export type CreateCommissionCandidateRequestDtoCommissionTypeEnum = typeof CreateCommissionCandidateRequestDtoCommissionTypeEnum[keyof typeof CreateCommissionCandidateRequestDtoCommissionTypeEnum];
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CreateCommissionClawbackRequestDto
21
+ */
22
+ export interface CreateCommissionClawbackRequestDto {
23
+ /**
24
+ * Optional business effective date for the clawback calculation. If omitted, server processing time is used.
25
+ * @type {string}
26
+ * @memberof CreateCommissionClawbackRequestDto
27
+ */
28
+ 'effectiveDate'?: string;
29
+ }
30
+
@@ -0,0 +1,52 @@
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 CreateCommissionClawbackResponseClass
22
+ */
23
+ export interface CreateCommissionClawbackResponseClass {
24
+ /**
25
+ * Whether a new clawback commission was created.
26
+ * @type {boolean}
27
+ * @memberof CreateCommissionClawbackResponseClass
28
+ */
29
+ 'created': boolean;
30
+ /**
31
+ * Reason why no clawback commission was created. Possible reasons: the original commission was not paid out, the calculated clawback amount was zero or positive, or the commission was already fully clawed back.
32
+ * @type {string}
33
+ * @memberof CreateCommissionClawbackResponseClass
34
+ */
35
+ 'notCreatedReason'?: CreateCommissionClawbackResponseClassNotCreatedReasonEnum;
36
+ /**
37
+ * Created clawback commission. Set only when created is true.
38
+ * @type {CommissionClass}
39
+ * @memberof CreateCommissionClawbackResponseClass
40
+ */
41
+ 'commission'?: CommissionClass;
42
+ }
43
+
44
+ export const CreateCommissionClawbackResponseClassNotCreatedReasonEnum = {
45
+ CommissionNotPaidOut: 'commission_not_paid_out',
46
+ ClawbackAmountNotNegative: 'clawback_amount_not_negative',
47
+ CommissionAlreadyFullyClawedBack: 'commission_already_fully_clawed_back'
48
+ } as const;
49
+
50
+ export type CreateCommissionClawbackResponseClassNotCreatedReasonEnum = typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum[keyof typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum];
51
+
52
+
@@ -39,7 +39,7 @@ export interface CreateCommissionItemRequestDto {
39
39
  */
40
40
  'amount': number;
41
41
  /**
42
- * The type of commission item. Valid values: sales, maintenance, other
42
+ * The type of commission item. Valid values: sales, maintenance, other, clawback
43
43
  * @type {string}
44
44
  * @memberof CreateCommissionItemRequestDto
45
45
  */
@@ -49,7 +49,8 @@ export interface CreateCommissionItemRequestDto {
49
49
  export const CreateCommissionItemRequestDtoTypeEnum = {
50
50
  Sales: 'sales',
51
51
  Maintenance: 'maintenance',
52
- Other: 'other'
52
+ Other: 'other',
53
+ Clawback: 'clawback'
53
54
  } as const;
54
55
 
55
56
  export type CreateCommissionItemRequestDtoTypeEnum = typeof CreateCommissionItemRequestDtoTypeEnum[keyof typeof CreateCommissionItemRequestDtoTypeEnum];
@@ -51,5 +51,11 @@ export interface CreateCommissionRequestDto {
51
51
  * @memberof CreateCommissionRequestDto
52
52
  */
53
53
  'items': Array<CreateCommissionItemRequestDto>;
54
+ /**
55
+ * Commission candidate code linked to this commission.
56
+ * @type {string}
57
+ * @memberof CreateCommissionRequestDto
58
+ */
59
+ 'commissionCandidateCode'?: string;
54
60
  }
55
61
 
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface EvaluatedCommissionClass {
23
23
  /**
24
- * Type of commission (e.g., sales, maintenance, other)
24
+ * Type of commission (e.g., sales, maintenance, other, clawback)
25
25
  * @type {string}
26
26
  * @memberof EvaluatedCommissionClass
27
27
  */
@@ -55,7 +55,8 @@ export interface EvaluatedCommissionClass {
55
55
  export const EvaluatedCommissionClassTypeEnum = {
56
56
  Sales: 'sales',
57
57
  Maintenance: 'maintenance',
58
- Other: 'other'
58
+ Other: 'other',
59
+ Clawback: 'clawback'
59
60
  } as const;
60
61
 
61
62
  export type EvaluatedCommissionClassTypeEnum = typeof EvaluatedCommissionClassTypeEnum[keyof typeof EvaluatedCommissionClassTypeEnum];
package/models/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './clawback-config-class';
2
+ export * from './clawback-config-dto';
1
3
  export * from './commission-agreement-class';
2
4
  export * from './commission-agreement-metadata-dto';
3
5
  export * from './commission-agreement-metadata-partner-dto';
@@ -24,6 +26,8 @@ export * from './create-commission-agreement-version-request-dto';
24
26
  export * from './create-commission-agreement-version-response-class';
25
27
  export * from './create-commission-candidate-request-dto';
26
28
  export * from './create-commission-candidate-response-class';
29
+ export * from './create-commission-clawback-request-dto';
30
+ export * from './create-commission-clawback-response-class';
27
31
  export * from './create-commission-item-request-dto';
28
32
  export * from './create-commission-recipient-for-products-request-dto';
29
33
  export * from './create-commission-recipient-for-products-response-class';
@@ -57,12 +61,16 @@ export * from './list-commission-candidates-response-class';
57
61
  export * from './list-commission-recipients-response-class';
58
62
  export * from './list-commission-settlements-response-class';
59
63
  export * from './list-commissions-response-class';
64
+ export * from './list-scheduled-commission-clawback-triggers-response-class';
60
65
  export * from './patch-commission-agreement-status-request-dto';
61
66
  export * from './patch-commission-agreement-status-response-class';
62
67
  export * from './publish-commission-settlements-request-dto';
63
68
  export * from './publish-commission-settlements-response-class';
69
+ export * from './scheduled-commission-clawback-trigger-class';
64
70
  export * from './trigger-commission-settlement-creation-request-dto';
65
71
  export * from './trigger-commission-settlement-creation-response-class';
72
+ export * from './trigger-due-commission-clawbacks-request-dto';
73
+ export * from './trigger-due-commission-clawbacks-response-class';
66
74
  export * from './update-commission-agreement-product-request-dto';
67
75
  export * from './update-commission-agreement-product-response-class';
68
76
  export * from './update-commission-agreement-request-dto';
@@ -0,0 +1,49 @@
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 { ScheduledCommissionClawbackTriggerClass } from './scheduled-commission-clawback-trigger-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListScheduledCommissionClawbackTriggersResponseClass
22
+ */
23
+ export interface ListScheduledCommissionClawbackTriggersResponseClass {
24
+ /**
25
+ * The list of scheduled commission clawback triggerss.
26
+ * @type {Array<ScheduledCommissionClawbackTriggerClass>}
27
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
28
+ */
29
+ 'items': Array<ScheduledCommissionClawbackTriggerClass>;
30
+ /**
31
+ * Next page token.
32
+ * @type {string}
33
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
@@ -0,0 +1,119 @@
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 ScheduledCommissionClawbackTriggerClass
21
+ */
22
+ export interface ScheduledCommissionClawbackTriggerClass {
23
+ /**
24
+ * The unique database identifier of the scheduled trigger
25
+ * @type {number}
26
+ * @memberof ScheduledCommissionClawbackTriggerClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof ScheduledCommissionClawbackTriggerClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * The policy this scheduled clawback trigger belongs to
37
+ * @type {string}
38
+ * @memberof ScheduledCommissionClawbackTriggerClass
39
+ */
40
+ 'policyCode': string;
41
+ /**
42
+ * The automatic clawback trigger type
43
+ * @type {string}
44
+ * @memberof ScheduledCommissionClawbackTriggerClass
45
+ */
46
+ 'triggerType': ScheduledCommissionClawbackTriggerClassTriggerTypeEnum;
47
+ /**
48
+ * The effective date when the scheduled clawback trigger becomes due
49
+ * @type {string}
50
+ * @memberof ScheduledCommissionClawbackTriggerClass
51
+ */
52
+ 'effectiveDate': string;
53
+ /**
54
+ * The current scheduled trigger status
55
+ * @type {string}
56
+ * @memberof ScheduledCommissionClawbackTriggerClass
57
+ */
58
+ 'status': ScheduledCommissionClawbackTriggerClassStatusEnum;
59
+ /**
60
+ * The time when the due job queued this trigger for processing
61
+ * @type {string}
62
+ * @memberof ScheduledCommissionClawbackTriggerClass
63
+ */
64
+ 'queuedAt'?: string;
65
+ /**
66
+ * Failure reason when processing this scheduled trigger failed
67
+ * @type {string}
68
+ * @memberof ScheduledCommissionClawbackTriggerClass
69
+ */
70
+ 'errorMessage'?: string;
71
+ /**
72
+ * The time when this scheduled trigger was canceled
73
+ * @type {string}
74
+ * @memberof ScheduledCommissionClawbackTriggerClass
75
+ */
76
+ 'canceledAt'?: string;
77
+ /**
78
+ * Time at which the object was created.
79
+ * @type {string}
80
+ * @memberof ScheduledCommissionClawbackTriggerClass
81
+ */
82
+ 'createdAt': string;
83
+ /**
84
+ * Time at which the object was updated.
85
+ * @type {string}
86
+ * @memberof ScheduledCommissionClawbackTriggerClass
87
+ */
88
+ 'updatedAt': string;
89
+ /**
90
+ * Identifier of the user who created the record.
91
+ * @type {string}
92
+ * @memberof ScheduledCommissionClawbackTriggerClass
93
+ */
94
+ 'createdBy': string;
95
+ /**
96
+ * Identifier of the user who last updated the record.
97
+ * @type {string}
98
+ * @memberof ScheduledCommissionClawbackTriggerClass
99
+ */
100
+ 'updatedBy': string;
101
+ }
102
+
103
+ export const ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = {
104
+ PolicyTermination: 'policy_termination',
105
+ PolicyWithdrawal: 'policy_withdrawal',
106
+ IntermediarySwitched: 'intermediary_switched'
107
+ } as const;
108
+
109
+ export type ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = typeof ScheduledCommissionClawbackTriggerClassTriggerTypeEnum[keyof typeof ScheduledCommissionClawbackTriggerClassTriggerTypeEnum];
110
+ export const ScheduledCommissionClawbackTriggerClassStatusEnum = {
111
+ Scheduled: 'scheduled',
112
+ Queued: 'queued',
113
+ Canceled: 'canceled',
114
+ Failed: 'failed'
115
+ } as const;
116
+
117
+ export type ScheduledCommissionClawbackTriggerClassStatusEnum = typeof ScheduledCommissionClawbackTriggerClassStatusEnum[keyof typeof ScheduledCommissionClawbackTriggerClassStatusEnum];
118
+
119
+
@@ -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 TriggerDueCommissionClawbacksRequestDto
21
+ */
22
+ export interface TriggerDueCommissionClawbacksRequestDto {
23
+ /**
24
+ * Processing cutoff for due scheduled clawback triggers. If omitted, server processing time is used.
25
+ * @type {string}
26
+ * @memberof TriggerDueCommissionClawbacksRequestDto
27
+ */
28
+ 'processingDate'?: string;
29
+ /**
30
+ * When true, due triggers are counted but not enqueued or marked queued.
31
+ * @type {boolean}
32
+ * @memberof TriggerDueCommissionClawbacksRequestDto
33
+ */
34
+ 'dryRun'?: boolean;
35
+ }
36
+