@emilgroup/commission-sdk-node 2.9.1-beta.2 → 2.9.1-beta.21

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 (94) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +2 -2
  3. package/api/commissions-api.ts +603 -0
  4. package/dist/api/commissions-api.d.ts +343 -0
  5. package/dist/api/commissions-api.js +450 -0
  6. package/dist/models/clawback-config-class.d.ts +42 -0
  7. package/dist/models/clawback-config-class.js +15 -0
  8. package/dist/models/clawback-config-dto.d.ts +42 -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-agreement-version-config-class.d.ts +32 -0
  12. package/dist/models/commission-agreement-version-config-class.js +15 -0
  13. package/dist/models/commission-agreement-version-config-dto.d.ts +32 -0
  14. package/dist/models/commission-agreement-version-config-dto.js +15 -0
  15. package/dist/models/commission-candidate-class.d.ts +12 -0
  16. package/dist/models/commission-class.d.ts +38 -0
  17. package/dist/models/commission-class.js +8 -0
  18. package/dist/models/commission-config-dto.d.ts +2 -1
  19. package/dist/models/commission-config-dto.js +2 -1
  20. package/dist/models/commission-creation-config-class.d.ts +43 -0
  21. package/dist/models/commission-creation-config-class.js +20 -0
  22. package/dist/models/commission-creation-config-dto.d.ts +43 -0
  23. package/dist/models/commission-creation-config-dto.js +20 -0
  24. package/dist/models/commission-creation-invoice-config-class.d.ts +24 -0
  25. package/dist/models/commission-creation-invoice-config-class.js +15 -0
  26. package/dist/models/commission-creation-invoice-config-dto.d.ts +24 -0
  27. package/dist/models/commission-creation-invoice-config-dto.js +15 -0
  28. package/dist/models/commission-creation-renewal-config-class.d.ts +29 -0
  29. package/dist/models/commission-creation-renewal-config-class.js +20 -0
  30. package/dist/models/commission-creation-renewal-config-dto.d.ts +29 -0
  31. package/dist/models/commission-creation-renewal-config-dto.js +20 -0
  32. package/dist/models/commission-estimate-class.d.ts +2 -1
  33. package/dist/models/commission-estimate-class.js +2 -1
  34. package/dist/models/commission-paid-invoice-entry-class.d.ts +108 -0
  35. package/dist/models/commission-paid-invoice-entry-class.js +21 -0
  36. package/dist/models/create-commission-agreement-request-dto.d.ts +7 -0
  37. package/dist/models/create-commission-agreement-version-request-dto.d.ts +7 -0
  38. package/dist/models/create-commission-candidate-request-dto.d.ts +15 -2
  39. package/dist/models/create-commission-candidate-request-dto.js +2 -1
  40. package/dist/models/create-commission-clawback-request-dto.d.ts +24 -0
  41. package/dist/models/create-commission-clawback-request-dto.js +15 -0
  42. package/dist/models/create-commission-clawback-response-class.d.ts +43 -0
  43. package/dist/models/create-commission-clawback-response-class.js +21 -0
  44. package/dist/models/create-commission-item-request-dto.d.ts +2 -1
  45. package/dist/models/create-commission-item-request-dto.js +2 -1
  46. package/dist/models/create-commission-request-dto.d.ts +6 -0
  47. package/dist/models/evaluated-commission-class.d.ts +2 -1
  48. package/dist/models/evaluated-commission-class.js +2 -1
  49. package/dist/models/index.d.ts +18 -0
  50. package/dist/models/index.js +18 -0
  51. package/dist/models/list-commission-paid-invoice-entries-response-class.d.ts +43 -0
  52. package/dist/models/list-commission-paid-invoice-entries-response-class.js +15 -0
  53. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.d.ts +43 -0
  54. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.js +15 -0
  55. package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +110 -0
  56. package/dist/models/scheduled-commission-clawback-trigger-class.js +28 -0
  57. package/dist/models/trigger-due-commission-clawbacks-request-dto.d.ts +30 -0
  58. package/dist/models/trigger-due-commission-clawbacks-request-dto.js +15 -0
  59. package/dist/models/trigger-due-commission-clawbacks-response-class.d.ts +24 -0
  60. package/dist/models/trigger-due-commission-clawbacks-response-class.js +15 -0
  61. package/dist/models/update-commission-candidate-request-dto.d.ts +2 -1
  62. package/dist/models/update-commission-candidate-request-dto.js +2 -1
  63. package/models/clawback-config-class.ts +48 -0
  64. package/models/clawback-config-dto.ts +48 -0
  65. package/models/commission-agreement-version-class.ts +7 -0
  66. package/models/commission-agreement-version-config-class.ts +38 -0
  67. package/models/commission-agreement-version-config-dto.ts +38 -0
  68. package/models/commission-candidate-class.ts +12 -0
  69. package/models/commission-class.ts +41 -0
  70. package/models/commission-config-dto.ts +3 -2
  71. package/models/commission-creation-config-class.ts +52 -0
  72. package/models/commission-creation-config-dto.ts +52 -0
  73. package/models/commission-creation-invoice-config-class.ts +30 -0
  74. package/models/commission-creation-invoice-config-dto.ts +30 -0
  75. package/models/commission-creation-renewal-config-class.ts +38 -0
  76. package/models/commission-creation-renewal-config-dto.ts +38 -0
  77. package/models/commission-estimate-class.ts +3 -2
  78. package/models/commission-paid-invoice-entry-class.ts +117 -0
  79. package/models/create-commission-agreement-request-dto.ts +7 -0
  80. package/models/create-commission-agreement-version-request-dto.ts +7 -0
  81. package/models/create-commission-candidate-request-dto.ts +16 -3
  82. package/models/create-commission-clawback-request-dto.ts +30 -0
  83. package/models/create-commission-clawback-response-class.ts +52 -0
  84. package/models/create-commission-item-request-dto.ts +3 -2
  85. package/models/create-commission-request-dto.ts +6 -0
  86. package/models/evaluated-commission-class.ts +3 -2
  87. package/models/index.ts +18 -0
  88. package/models/list-commission-paid-invoice-entries-response-class.ts +49 -0
  89. package/models/list-scheduled-commission-clawback-triggers-response-class.ts +49 -0
  90. package/models/scheduled-commission-clawback-trigger-class.ts +120 -0
  91. package/models/trigger-due-commission-clawbacks-request-dto.ts +36 -0
  92. package/models/trigger-due-commission-clawbacks-response-class.ts +30 -0
  93. package/models/update-commission-candidate-request-dto.ts +3 -2
  94. package/package.json +1 -1
@@ -0,0 +1,110 @@
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 ScheduledCommissionClawbackTriggerClass
16
+ */
17
+ export interface ScheduledCommissionClawbackTriggerClass {
18
+ /**
19
+ * The unique database identifier of the scheduled trigger
20
+ * @type {number}
21
+ * @memberof ScheduledCommissionClawbackTriggerClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof ScheduledCommissionClawbackTriggerClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * The policy this scheduled clawback trigger belongs to
32
+ * @type {string}
33
+ * @memberof ScheduledCommissionClawbackTriggerClass
34
+ */
35
+ 'policyCode': string;
36
+ /**
37
+ * The automatic clawback trigger type
38
+ * @type {string}
39
+ * @memberof ScheduledCommissionClawbackTriggerClass
40
+ */
41
+ 'triggerType': ScheduledCommissionClawbackTriggerClassTriggerTypeEnum;
42
+ /**
43
+ * The effective date when the scheduled clawback trigger becomes due
44
+ * @type {string}
45
+ * @memberof ScheduledCommissionClawbackTriggerClass
46
+ */
47
+ 'effectiveDate': string;
48
+ /**
49
+ * The current scheduled trigger status
50
+ * @type {string}
51
+ * @memberof ScheduledCommissionClawbackTriggerClass
52
+ */
53
+ 'status': ScheduledCommissionClawbackTriggerClassStatusEnum;
54
+ /**
55
+ * The time when the due job queued this trigger for processing
56
+ * @type {string}
57
+ * @memberof ScheduledCommissionClawbackTriggerClass
58
+ */
59
+ 'queuedAt'?: string;
60
+ /**
61
+ * Failure reason when processing this scheduled trigger failed
62
+ * @type {string}
63
+ * @memberof ScheduledCommissionClawbackTriggerClass
64
+ */
65
+ 'errorMessage'?: string;
66
+ /**
67
+ * The time when this scheduled trigger was canceled
68
+ * @type {string}
69
+ * @memberof ScheduledCommissionClawbackTriggerClass
70
+ */
71
+ 'canceledAt'?: string;
72
+ /**
73
+ * Time at which the object was created.
74
+ * @type {string}
75
+ * @memberof ScheduledCommissionClawbackTriggerClass
76
+ */
77
+ 'createdAt': string;
78
+ /**
79
+ * Time at which the object was updated.
80
+ * @type {string}
81
+ * @memberof ScheduledCommissionClawbackTriggerClass
82
+ */
83
+ 'updatedAt': string;
84
+ /**
85
+ * Identifier of the user who created the record.
86
+ * @type {string}
87
+ * @memberof ScheduledCommissionClawbackTriggerClass
88
+ */
89
+ 'createdBy': string;
90
+ /**
91
+ * Identifier of the user who last updated the record.
92
+ * @type {string}
93
+ * @memberof ScheduledCommissionClawbackTriggerClass
94
+ */
95
+ 'updatedBy': string;
96
+ }
97
+ export declare const ScheduledCommissionClawbackTriggerClassTriggerTypeEnum: {
98
+ readonly PolicyTermination: "policy_termination";
99
+ readonly PolicyWithdrawal: "policy_withdrawal";
100
+ readonly IntermediarySwitched: "intermediary_switched";
101
+ readonly InvoiceReopened: "invoice_reopened";
102
+ };
103
+ export type ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = typeof ScheduledCommissionClawbackTriggerClassTriggerTypeEnum[keyof typeof ScheduledCommissionClawbackTriggerClassTriggerTypeEnum];
104
+ export declare const ScheduledCommissionClawbackTriggerClassStatusEnum: {
105
+ readonly Scheduled: "scheduled";
106
+ readonly Queued: "queued";
107
+ readonly Canceled: "canceled";
108
+ readonly Failed: "failed";
109
+ };
110
+ export type ScheduledCommissionClawbackTriggerClassStatusEnum = typeof ScheduledCommissionClawbackTriggerClassStatusEnum[keyof typeof ScheduledCommissionClawbackTriggerClassStatusEnum];
@@ -0,0 +1,28 @@
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.ScheduledCommissionClawbackTriggerClassStatusEnum = exports.ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = void 0;
17
+ exports.ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = {
18
+ PolicyTermination: 'policy_termination',
19
+ PolicyWithdrawal: 'policy_withdrawal',
20
+ IntermediarySwitched: 'intermediary_switched',
21
+ InvoiceReopened: 'invoice_reopened'
22
+ };
23
+ exports.ScheduledCommissionClawbackTriggerClassStatusEnum = {
24
+ Scheduled: 'scheduled',
25
+ Queued: 'queued',
26
+ Canceled: 'canceled',
27
+ Failed: 'failed'
28
+ };
@@ -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 TriggerDueCommissionClawbacksRequestDto
16
+ */
17
+ export interface TriggerDueCommissionClawbacksRequestDto {
18
+ /**
19
+ * Processing cutoff for due scheduled clawback triggers. If omitted, server processing time is used. Future dates are only allowed when dryRun is true.
20
+ * @type {string}
21
+ * @memberof TriggerDueCommissionClawbacksRequestDto
22
+ */
23
+ 'processingDate'?: string;
24
+ /**
25
+ * When true, due triggers are counted but not enqueued or marked queued.
26
+ * @type {boolean}
27
+ * @memberof TriggerDueCommissionClawbacksRequestDto
28
+ */
29
+ 'dryRun'?: boolean;
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,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 TriggerDueCommissionClawbacksResponseClass
16
+ */
17
+ export interface TriggerDueCommissionClawbacksResponseClass {
18
+ /**
19
+ * Whether due scheduled clawback trigger processing completed.
20
+ * @type {boolean}
21
+ * @memberof TriggerDueCommissionClawbacksResponseClass
22
+ */
23
+ 'success': 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 });
@@ -40,7 +40,7 @@ export interface UpdateCommissionCandidateRequestDto {
40
40
  */
41
41
  'status'?: UpdateCommissionCandidateRequestDtoStatusEnum;
42
42
  /**
43
- * The type of commission. Valid values: sales, maintenance, other
43
+ * The type of commission. Valid values: sales, maintenance, other, clawback
44
44
  * @type {string}
45
45
  * @memberof UpdateCommissionCandidateRequestDto
46
46
  */
@@ -67,5 +67,6 @@ export declare const UpdateCommissionCandidateRequestDtoCommissionTypeEnum: {
67
67
  readonly Sales: "sales";
68
68
  readonly Maintenance: "maintenance";
69
69
  readonly Other: "other";
70
+ readonly Clawback: "clawback";
70
71
  };
71
72
  export type UpdateCommissionCandidateRequestDtoCommissionTypeEnum = typeof UpdateCommissionCandidateRequestDtoCommissionTypeEnum[keyof typeof UpdateCommissionCandidateRequestDtoCommissionTypeEnum];
@@ -21,5 +21,6 @@ exports.UpdateCommissionCandidateRequestDtoStatusEnum = {
21
21
  exports.UpdateCommissionCandidateRequestDtoCommissionTypeEnum = {
22
22
  Sales: 'sales',
23
23
  Maintenance: 'maintenance',
24
- Other: 'other'
24
+ Other: 'other',
25
+ Clawback: 'clawback'
25
26
  };
@@ -0,0 +1,48 @@
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
+ * Allow automatic commission clawback creation for reopened invoices.
43
+ * @type {boolean}
44
+ * @memberof ClawbackConfigClass
45
+ */
46
+ 'invoiceReopened': boolean;
47
+ }
48
+
@@ -0,0 +1,48 @@
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
+ * Allow automatic commission clawback creation for reopened invoices.
43
+ * @type {boolean}
44
+ * @memberof ClawbackConfigDto
45
+ */
46
+ 'invoiceReopened': boolean;
47
+ }
48
+
@@ -15,6 +15,7 @@
15
15
 
16
16
  import { CommissionAgreementClass } from './commission-agreement-class';
17
17
  import { CommissionAgreementProductClass } from './commission-agreement-product-class';
18
+ import { CommissionAgreementVersionConfigClass } from './commission-agreement-version-config-class';
18
19
 
19
20
  /**
20
21
  *
@@ -64,6 +65,12 @@ export interface CommissionAgreementVersionClass {
64
65
  * @memberof CommissionAgreementVersionClass
65
66
  */
66
67
  'settlementCreationDate'?: string;
68
+ /**
69
+ * Version-scoped agreement configuration.
70
+ * @type {CommissionAgreementVersionConfigClass}
71
+ * @memberof CommissionAgreementVersionClass
72
+ */
73
+ 'config': CommissionAgreementVersionConfigClass;
67
74
  /**
68
75
  * Description explaining what changed in this version or version notes
69
76
  * @type {string}
@@ -0,0 +1,38 @@
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 { ClawbackConfigClass } from './clawback-config-class';
17
+ import { CommissionCreationConfigClass } from './commission-creation-config-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionAgreementVersionConfigClass
23
+ */
24
+ export interface CommissionAgreementVersionConfigClass {
25
+ /**
26
+ * Controls which clawback triggers are enabled for this commission agreement version. Missing values are treated as disabled by default.
27
+ * @type {ClawbackConfigClass}
28
+ * @memberof CommissionAgreementVersionConfigClass
29
+ */
30
+ 'clawback'?: ClawbackConfigClass;
31
+ /**
32
+ * Controls when recurring commission work is created for this commission agreement version. Missing values are treated as renewal mode by default.
33
+ * @type {CommissionCreationConfigClass}
34
+ * @memberof CommissionAgreementVersionConfigClass
35
+ */
36
+ 'commissionCreation'?: CommissionCreationConfigClass;
37
+ }
38
+
@@ -0,0 +1,38 @@
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 { ClawbackConfigDto } from './clawback-config-dto';
17
+ import { CommissionCreationConfigDto } from './commission-creation-config-dto';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionAgreementVersionConfigDto
23
+ */
24
+ export interface CommissionAgreementVersionConfigDto {
25
+ /**
26
+ * Controls which clawback triggers are enabled for this commission agreement version. Missing values are treated as disabled by default.
27
+ * @type {ClawbackConfigDto}
28
+ * @memberof CommissionAgreementVersionConfigDto
29
+ */
30
+ 'clawback'?: ClawbackConfigDto;
31
+ /**
32
+ * Controls when recurring commission work is created for this commission agreement version. Missing values are treated as renewal mode by default.
33
+ * @type {CommissionCreationConfigDto}
34
+ * @memberof CommissionAgreementVersionConfigDto
35
+ */
36
+ 'commissionCreation'?: CommissionCreationConfigDto;
37
+ }
38
+
@@ -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,36 @@ export interface CommissionClass {
112
112
  * @memberof CommissionClass
113
113
  */
114
114
  'settlementCode'?: string;
115
+ /**
116
+ * Start of the period the commission was originally created for
117
+ * @type {string}
118
+ * @memberof CommissionClass
119
+ */
120
+ 'commissionPeriodFrom'?: string;
121
+ /**
122
+ * Exclusive end of the period the commission was originally created for
123
+ * @type {string}
124
+ * @memberof CommissionClass
125
+ */
126
+ 'commissionPeriodTo'?: string;
127
+ /**
128
+ * Expected invoice entry count in the commission period, used as the pro rata denominator
129
+ * @type {number}
130
+ * @memberof CommissionClass
131
+ */
132
+ 'expectedInvoiceEntryCount'?: number;
133
+ /**
134
+ * For clawback commissions, the original commission being clawed back
135
+ * @type {string}
136
+ * @memberof CommissionClass
137
+ */
138
+ 'originalCommissionCode'?: string;
139
+ /**
140
+ * The trigger type that created this clawback commission
141
+ * @type {string}
142
+ * @memberof CommissionClass
143
+ */
144
+ 'clawbackTriggerType'?: CommissionClassClawbackTriggerTypeEnum;
115
145
  /**
116
146
  * Time at which the object was created.
117
147
  * @type {string}
@@ -144,3 +174,14 @@ export interface CommissionClass {
144
174
  'items': Array<CommissionItemClass>;
145
175
  }
146
176
 
177
+ export const CommissionClassClawbackTriggerTypeEnum = {
178
+ Manual: 'manual',
179
+ PolicyTermination: 'policy_termination',
180
+ PolicyWithdrawal: 'policy_withdrawal',
181
+ IntermediarySwitched: 'intermediary_switched',
182
+ InvoiceReopened: 'invoice_reopened'
183
+ } as const;
184
+
185
+ export type CommissionClassClawbackTriggerTypeEnum = typeof CommissionClassClawbackTriggerTypeEnum[keyof typeof CommissionClassClawbackTriggerTypeEnum];
186
+
187
+
@@ -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];
@@ -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 { CommissionCreationInvoiceConfigClass } from './commission-creation-invoice-config-class';
17
+ import { CommissionCreationRenewalConfigClass } from './commission-creation-renewal-config-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionCreationConfigClass
23
+ */
24
+ export interface CommissionCreationConfigClass {
25
+ /**
26
+ * Determines which event drives recurring commission creation: renewal dates or paid invoices.
27
+ * @type {string}
28
+ * @memberof CommissionCreationConfigClass
29
+ */
30
+ 'mode': CommissionCreationConfigClassModeEnum;
31
+ /**
32
+ * Required when mode is renewal. Defines whether commission work is created only at renewal or yearly inside long policy periods.
33
+ * @type {CommissionCreationRenewalConfigClass}
34
+ * @memberof CommissionCreationConfigClass
35
+ */
36
+ 'renewal'?: CommissionCreationRenewalConfigClass;
37
+ /**
38
+ * Required when mode is invoice. Defines how many paid invoices must be counted before commission work is created.
39
+ * @type {CommissionCreationInvoiceConfigClass}
40
+ * @memberof CommissionCreationConfigClass
41
+ */
42
+ 'invoice'?: CommissionCreationInvoiceConfigClass;
43
+ }
44
+
45
+ export const CommissionCreationConfigClassModeEnum = {
46
+ Renewal: 'renewal',
47
+ Invoice: 'invoice'
48
+ } as const;
49
+
50
+ export type CommissionCreationConfigClassModeEnum = typeof CommissionCreationConfigClassModeEnum[keyof typeof CommissionCreationConfigClassModeEnum];
51
+
52
+
@@ -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 { CommissionCreationInvoiceConfigDto } from './commission-creation-invoice-config-dto';
17
+ import { CommissionCreationRenewalConfigDto } from './commission-creation-renewal-config-dto';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionCreationConfigDto
23
+ */
24
+ export interface CommissionCreationConfigDto {
25
+ /**
26
+ * Determines which event drives recurring commission creation: renewal dates or paid invoices.
27
+ * @type {string}
28
+ * @memberof CommissionCreationConfigDto
29
+ */
30
+ 'mode': CommissionCreationConfigDtoModeEnum;
31
+ /**
32
+ * Required when mode is renewal. Defines whether commission work is created only at renewal or yearly inside long policy periods.
33
+ * @type {CommissionCreationRenewalConfigDto}
34
+ * @memberof CommissionCreationConfigDto
35
+ */
36
+ 'renewal'?: CommissionCreationRenewalConfigDto;
37
+ /**
38
+ * Required when mode is invoice. Defines how many paid invoices must be counted before commission work is created.
39
+ * @type {CommissionCreationInvoiceConfigDto}
40
+ * @memberof CommissionCreationConfigDto
41
+ */
42
+ 'invoice'?: CommissionCreationInvoiceConfigDto;
43
+ }
44
+
45
+ export const CommissionCreationConfigDtoModeEnum = {
46
+ Renewal: 'renewal',
47
+ Invoice: 'invoice'
48
+ } as const;
49
+
50
+ export type CommissionCreationConfigDtoModeEnum = typeof CommissionCreationConfigDtoModeEnum[keyof typeof CommissionCreationConfigDtoModeEnum];
51
+
52
+
@@ -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 CommissionCreationInvoiceConfigClass
21
+ */
22
+ export interface CommissionCreationInvoiceConfigClass {
23
+ /**
24
+ * Number of paid invoices required before commission work is created. Use 1 for every paid invoice.
25
+ * @type {number}
26
+ * @memberof CommissionCreationInvoiceConfigClass
27
+ */
28
+ 'paidInvoiceInterval': number;
29
+ }
30
+