@emilgroup/commission-sdk-node 2.9.1-beta.13 → 2.9.1-beta.130

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 (102) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +4 -4
  4. package/api/commission-agreement-rules-api.ts +24 -10
  5. package/api/commission-agreement-versions-api.ts +4 -4
  6. package/api/commission-agreements-api.ts +4 -4
  7. package/api/commission-candidates-api.ts +4 -4
  8. package/api/commission-recipients-api.ts +4 -4
  9. package/api/commission-settlements-api.ts +13 -13
  10. package/api/commissions-api.ts +196 -8
  11. package/dist/api/commission-agreement-products-api.d.ts +4 -4
  12. package/dist/api/commission-agreement-products-api.js +3 -3
  13. package/dist/api/commission-agreement-rules-api.d.ts +16 -7
  14. package/dist/api/commission-agreement-rules-api.js +15 -9
  15. package/dist/api/commission-agreement-versions-api.d.ts +4 -4
  16. package/dist/api/commission-agreement-versions-api.js +3 -3
  17. package/dist/api/commission-agreements-api.d.ts +4 -4
  18. package/dist/api/commission-agreements-api.js +3 -3
  19. package/dist/api/commission-candidates-api.d.ts +4 -4
  20. package/dist/api/commission-candidates-api.js +3 -3
  21. package/dist/api/commission-recipients-api.d.ts +4 -4
  22. package/dist/api/commission-recipients-api.js +3 -3
  23. package/dist/api/commission-settlements-api.d.ts +13 -13
  24. package/dist/api/commission-settlements-api.js +6 -6
  25. package/dist/api/commissions-api.d.ts +118 -8
  26. package/dist/api/commissions-api.js +132 -3
  27. package/dist/models/clawback-config-class.d.ts +6 -0
  28. package/dist/models/clawback-config-dto.d.ts +6 -0
  29. package/dist/models/commission-agreement-class.d.ts +2 -2
  30. package/dist/models/commission-agreement-class.js +1 -1
  31. package/dist/models/commission-agreement-rule-config-dto.d.ts +7 -0
  32. package/dist/models/commission-agreement-version-class.d.ts +4 -4
  33. package/dist/models/commission-agreement-version-config-class.d.ts +32 -0
  34. package/dist/models/commission-agreement-version-config-class.js +15 -0
  35. package/dist/models/commission-agreement-version-config-dto.d.ts +32 -0
  36. package/dist/models/commission-agreement-version-config-dto.js +15 -0
  37. package/dist/models/commission-class.d.ts +15 -7
  38. package/dist/models/commission-class.js +3 -1
  39. package/dist/models/commission-creation-config-class.d.ts +43 -0
  40. package/dist/models/commission-creation-config-class.js +20 -0
  41. package/dist/models/commission-creation-config-dto.d.ts +43 -0
  42. package/dist/models/commission-creation-config-dto.js +20 -0
  43. package/dist/models/commission-creation-invoice-config-class.d.ts +24 -0
  44. package/dist/models/commission-creation-invoice-config-class.js +15 -0
  45. package/dist/models/commission-creation-invoice-config-dto.d.ts +24 -0
  46. package/dist/models/commission-creation-invoice-config-dto.js +15 -0
  47. package/dist/models/commission-creation-renewal-config-class.d.ts +29 -0
  48. package/dist/models/commission-creation-renewal-config-class.js +20 -0
  49. package/dist/models/commission-creation-renewal-config-dto.d.ts +29 -0
  50. package/dist/models/commission-creation-renewal-config-dto.js +20 -0
  51. package/dist/models/commission-estimate-class.d.ts +24 -0
  52. package/dist/models/commission-item-class.d.ts +18 -0
  53. package/dist/models/commission-paid-invoice-entry-class.d.ts +115 -0
  54. package/dist/models/commission-paid-invoice-entry-class.js +22 -0
  55. package/dist/models/commission-payout-config-dto.d.ts +29 -0
  56. package/dist/models/commission-payout-config-dto.js +20 -0
  57. package/dist/models/create-commission-agreement-request-dto.d.ts +5 -5
  58. package/dist/models/create-commission-agreement-request-dto.js +1 -1
  59. package/dist/models/create-commission-agreement-version-request-dto.d.ts +4 -4
  60. package/dist/models/create-commission-item-request-dto.d.ts +24 -0
  61. package/dist/models/estimate-commissions-request-dto.d.ts +6 -0
  62. package/dist/models/index.d.ts +11 -0
  63. package/dist/models/index.js +11 -0
  64. package/dist/models/list-commission-agreement-versions-response-class.d.ts +10 -10
  65. package/dist/models/list-commission-agreements-response-class.d.ts +10 -10
  66. package/dist/models/list-commission-paid-invoice-entries-response-class.d.ts +43 -0
  67. package/dist/models/list-commission-paid-invoice-entries-response-class.js +15 -0
  68. package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +1 -0
  69. package/dist/models/scheduled-commission-clawback-trigger-class.js +2 -1
  70. package/dist/models/update-commission-agreement-request-dto.d.ts +2 -2
  71. package/dist/models/update-commission-agreement-request-dto.js +1 -1
  72. package/dist/models/update-commission-request-dto.d.ts +1 -1
  73. package/models/clawback-config-class.ts +6 -0
  74. package/models/clawback-config-dto.ts +6 -0
  75. package/models/commission-agreement-class.ts +2 -2
  76. package/models/commission-agreement-rule-config-dto.ts +7 -0
  77. package/models/commission-agreement-version-class.ts +4 -4
  78. package/models/commission-agreement-version-config-class.ts +38 -0
  79. package/models/commission-agreement-version-config-dto.ts +38 -0
  80. package/models/commission-class.ts +16 -8
  81. package/models/commission-creation-config-class.ts +52 -0
  82. package/models/commission-creation-config-dto.ts +52 -0
  83. package/models/commission-creation-invoice-config-class.ts +30 -0
  84. package/models/commission-creation-invoice-config-dto.ts +30 -0
  85. package/models/commission-creation-renewal-config-class.ts +38 -0
  86. package/models/commission-creation-renewal-config-dto.ts +38 -0
  87. package/models/commission-estimate-class.ts +24 -0
  88. package/models/commission-item-class.ts +18 -0
  89. package/models/commission-paid-invoice-entry-class.ts +124 -0
  90. package/models/commission-payout-config-dto.ts +38 -0
  91. package/models/create-commission-agreement-request-dto.ts +5 -5
  92. package/models/create-commission-agreement-version-request-dto.ts +4 -4
  93. package/models/create-commission-item-request-dto.ts +24 -0
  94. package/models/estimate-commissions-request-dto.ts +6 -0
  95. package/models/index.ts +11 -0
  96. package/models/list-commission-agreement-versions-response-class.ts +10 -10
  97. package/models/list-commission-agreements-response-class.ts +10 -10
  98. package/models/list-commission-paid-invoice-entries-response-class.ts +49 -0
  99. package/models/scheduled-commission-clawback-trigger-class.ts +2 -1
  100. package/models/update-commission-agreement-request-dto.ts +2 -2
  101. package/models/update-commission-request-dto.ts +1 -1
  102. package/package.json +1 -1
@@ -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 });
@@ -59,6 +59,12 @@ export interface CommissionClass {
59
59
  * @memberof CommissionClass
60
60
  */
61
61
  'commissionAgreementNumber': string;
62
+ /**
63
+ * The code of the commission agreement being used for this commission, stable across all of the agreement\'s versions
64
+ * @type {string}
65
+ * @memberof CommissionClass
66
+ */
67
+ 'commissionAgreementCode': string;
62
68
  /**
63
69
  * The unique code or identifier of the partner associated with this commission
64
70
  * @type {string}
@@ -107,12 +113,6 @@ export interface CommissionClass {
107
113
  * @memberof CommissionClass
108
114
  */
109
115
  'settlementCode'?: string;
110
- /**
111
- * The source invoice code for invoice-driven commissions
112
- * @type {string}
113
- * @memberof CommissionClass
114
- */
115
- 'invoiceCode'?: string;
116
116
  /**
117
117
  * Start of the period the commission was originally created for
118
118
  * @type {string}
@@ -138,11 +138,17 @@ export interface CommissionClass {
138
138
  */
139
139
  'originalCommissionCode'?: string;
140
140
  /**
141
- * The trigger type that created this clawback commission
141
+ * What created this commission: the trigger of a clawback, or partner_coverage for the partner-coverage reconciliation (an adjustment of another commission\'s maintenance or sales, or a partner\'s coverage commission). Empty for any other commission
142
142
  * @type {string}
143
143
  * @memberof CommissionClass
144
144
  */
145
145
  'clawbackTriggerType'?: CommissionClassClawbackTriggerTypeEnum;
146
+ /**
147
+ * Whether the commission was created manually through the REST API rather than by the system. Manual commissions are clawed back in full, system commissions are clawed back using pro rata
148
+ * @type {boolean}
149
+ * @memberof CommissionClass
150
+ */
151
+ 'manual': boolean;
146
152
  /**
147
153
  * Time at which the object was created.
148
154
  * @type {string}
@@ -179,5 +185,7 @@ export declare const CommissionClassClawbackTriggerTypeEnum: {
179
185
  readonly PolicyTermination: "policy_termination";
180
186
  readonly PolicyWithdrawal: "policy_withdrawal";
181
187
  readonly IntermediarySwitched: "intermediary_switched";
188
+ readonly InvoiceReopened: "invoice_reopened";
189
+ readonly PartnerCoverage: "partner_coverage";
182
190
  };
183
191
  export type CommissionClassClawbackTriggerTypeEnum = typeof CommissionClassClawbackTriggerTypeEnum[keyof typeof CommissionClassClawbackTriggerTypeEnum];
@@ -18,5 +18,7 @@ exports.CommissionClassClawbackTriggerTypeEnum = {
18
18
  Manual: 'manual',
19
19
  PolicyTermination: 'policy_termination',
20
20
  PolicyWithdrawal: 'policy_withdrawal',
21
- IntermediarySwitched: 'intermediary_switched'
21
+ IntermediarySwitched: 'intermediary_switched',
22
+ InvoiceReopened: 'invoice_reopened',
23
+ PartnerCoverage: 'partner_coverage'
22
24
  };
@@ -0,0 +1,43 @@
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 { CommissionCreationInvoiceConfigClass } from './commission-creation-invoice-config-class';
13
+ import { CommissionCreationRenewalConfigClass } from './commission-creation-renewal-config-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CommissionCreationConfigClass
18
+ */
19
+ export interface CommissionCreationConfigClass {
20
+ /**
21
+ * Determines which event drives recurring commission creation: renewal dates or paid invoices.
22
+ * @type {string}
23
+ * @memberof CommissionCreationConfigClass
24
+ */
25
+ 'mode': CommissionCreationConfigClassModeEnum;
26
+ /**
27
+ * Required when mode is renewal. Defines whether commission work is created only at renewal or yearly inside long policy periods.
28
+ * @type {CommissionCreationRenewalConfigClass}
29
+ * @memberof CommissionCreationConfigClass
30
+ */
31
+ 'renewal'?: CommissionCreationRenewalConfigClass;
32
+ /**
33
+ * Required when mode is invoice. Defines how many paid invoices must be counted before commission work is created.
34
+ * @type {CommissionCreationInvoiceConfigClass}
35
+ * @memberof CommissionCreationConfigClass
36
+ */
37
+ 'invoice'?: CommissionCreationInvoiceConfigClass;
38
+ }
39
+ export declare const CommissionCreationConfigClassModeEnum: {
40
+ readonly Renewal: "renewal";
41
+ readonly Invoice: "invoice";
42
+ };
43
+ export type CommissionCreationConfigClassModeEnum = typeof CommissionCreationConfigClassModeEnum[keyof typeof CommissionCreationConfigClassModeEnum];
@@ -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.CommissionCreationConfigClassModeEnum = void 0;
17
+ exports.CommissionCreationConfigClassModeEnum = {
18
+ Renewal: 'renewal',
19
+ Invoice: 'invoice'
20
+ };
@@ -0,0 +1,43 @@
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 { CommissionCreationInvoiceConfigDto } from './commission-creation-invoice-config-dto';
13
+ import { CommissionCreationRenewalConfigDto } from './commission-creation-renewal-config-dto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CommissionCreationConfigDto
18
+ */
19
+ export interface CommissionCreationConfigDto {
20
+ /**
21
+ * Determines which event drives recurring commission creation: renewal dates or paid invoices.
22
+ * @type {string}
23
+ * @memberof CommissionCreationConfigDto
24
+ */
25
+ 'mode': CommissionCreationConfigDtoModeEnum;
26
+ /**
27
+ * Required when mode is renewal. Defines whether commission work is created only at renewal or yearly inside long policy periods.
28
+ * @type {CommissionCreationRenewalConfigDto}
29
+ * @memberof CommissionCreationConfigDto
30
+ */
31
+ 'renewal'?: CommissionCreationRenewalConfigDto;
32
+ /**
33
+ * Required when mode is invoice. Defines how many paid invoices must be counted before commission work is created.
34
+ * @type {CommissionCreationInvoiceConfigDto}
35
+ * @memberof CommissionCreationConfigDto
36
+ */
37
+ 'invoice'?: CommissionCreationInvoiceConfigDto;
38
+ }
39
+ export declare const CommissionCreationConfigDtoModeEnum: {
40
+ readonly Renewal: "renewal";
41
+ readonly Invoice: "invoice";
42
+ };
43
+ export type CommissionCreationConfigDtoModeEnum = typeof CommissionCreationConfigDtoModeEnum[keyof typeof CommissionCreationConfigDtoModeEnum];
@@ -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.CommissionCreationConfigDtoModeEnum = void 0;
17
+ exports.CommissionCreationConfigDtoModeEnum = {
18
+ Renewal: 'renewal',
19
+ Invoice: 'invoice'
20
+ };
@@ -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 CommissionCreationInvoiceConfigClass
16
+ */
17
+ export interface CommissionCreationInvoiceConfigClass {
18
+ /**
19
+ * Number of paid invoices required before commission work is created. Use 1 for every paid invoice.
20
+ * @type {number}
21
+ * @memberof CommissionCreationInvoiceConfigClass
22
+ */
23
+ 'paidInvoiceInterval': number;
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,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 CommissionCreationInvoiceConfigDto
16
+ */
17
+ export interface CommissionCreationInvoiceConfigDto {
18
+ /**
19
+ * Number of paid invoices required before commission work is created. Use 1 for every paid invoice.
20
+ * @type {number}
21
+ * @memberof CommissionCreationInvoiceConfigDto
22
+ */
23
+ 'paidInvoiceInterval': number;
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,29 @@
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 CommissionCreationRenewalConfigClass
16
+ */
17
+ export interface CommissionCreationRenewalConfigClass {
18
+ /**
19
+ * Renewal mode frequency. Use renewal for the current renewal-date behavior, or yearly to create commission work once per year inside policy periods longer than one year.
20
+ * @type {string}
21
+ * @memberof CommissionCreationRenewalConfigClass
22
+ */
23
+ 'frequency': CommissionCreationRenewalConfigClassFrequencyEnum;
24
+ }
25
+ export declare const CommissionCreationRenewalConfigClassFrequencyEnum: {
26
+ readonly Renewal: "renewal";
27
+ readonly Yearly: "yearly";
28
+ };
29
+ export type CommissionCreationRenewalConfigClassFrequencyEnum = typeof CommissionCreationRenewalConfigClassFrequencyEnum[keyof typeof CommissionCreationRenewalConfigClassFrequencyEnum];
@@ -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.CommissionCreationRenewalConfigClassFrequencyEnum = void 0;
17
+ exports.CommissionCreationRenewalConfigClassFrequencyEnum = {
18
+ Renewal: 'renewal',
19
+ Yearly: 'yearly'
20
+ };
@@ -0,0 +1,29 @@
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 CommissionCreationRenewalConfigDto
16
+ */
17
+ export interface CommissionCreationRenewalConfigDto {
18
+ /**
19
+ * Renewal mode frequency. Use renewal for the current renewal-date behavior, or yearly to create commission work once per year inside policy periods longer than one year.
20
+ * @type {string}
21
+ * @memberof CommissionCreationRenewalConfigDto
22
+ */
23
+ 'frequency': CommissionCreationRenewalConfigDtoFrequencyEnum;
24
+ }
25
+ export declare const CommissionCreationRenewalConfigDtoFrequencyEnum: {
26
+ readonly Renewal: "renewal";
27
+ readonly Yearly: "yearly";
28
+ };
29
+ export type CommissionCreationRenewalConfigDtoFrequencyEnum = typeof CommissionCreationRenewalConfigDtoFrequencyEnum[keyof typeof CommissionCreationRenewalConfigDtoFrequencyEnum];
@@ -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.CommissionCreationRenewalConfigDtoFrequencyEnum = void 0;
17
+ exports.CommissionCreationRenewalConfigDtoFrequencyEnum = {
18
+ Renewal: 'renewal',
19
+ Yearly: 'yearly'
20
+ };
@@ -45,6 +45,30 @@ export interface CommissionEstimateClass {
45
45
  * @memberof CommissionEstimateClass
46
46
  */
47
47
  'group': CommissionEstimateClassGroupEnum;
48
+ /**
49
+ * First day the line pays for (inclusive); absent when the line covers the whole commission period, or is a sale
50
+ * @type {string}
51
+ * @memberof CommissionEstimateClass
52
+ */
53
+ 'periodFrom'?: string;
54
+ /**
55
+ * Day after the last day the line pays for (exclusive); absent when periodFrom is absent
56
+ * @type {string}
57
+ * @memberof CommissionEstimateClass
58
+ */
59
+ 'periodTo'?: string;
60
+ /**
61
+ * Code of the commission agreement version the line is priced with, set when the estimate splits the commission period by version; a line without it is priced with the estimate\'s version. Pass it on with the line when creating the commission
62
+ * @type {string}
63
+ * @memberof CommissionEstimateClass
64
+ */
65
+ 'commissionAgreementVersionCode'?: string;
66
+ /**
67
+ * Code of the partner the line is paid to, set when the estimate splits the commission period by version; a line without it is paid to the estimate\'s partner. Pass it on with the line when creating the commission
68
+ * @type {string}
69
+ * @memberof CommissionEstimateClass
70
+ */
71
+ 'partnerCode'?: string;
48
72
  }
49
73
  export declare const CommissionEstimateClassTypeEnum: {
50
74
  readonly Sales: "sales";
@@ -51,6 +51,24 @@ export interface CommissionItemClass {
51
51
  * @memberof CommissionItemClass
52
52
  */
53
53
  'type': CommissionItemClassTypeEnum;
54
+ /**
55
+ * First day the item pays for (inclusive); absent when the item does not record its days
56
+ * @type {string}
57
+ * @memberof CommissionItemClass
58
+ */
59
+ 'periodFrom'?: string;
60
+ /**
61
+ * Day after the last day the item pays for (exclusive); absent when periodFrom is absent
62
+ * @type {string}
63
+ * @memberof CommissionItemClass
64
+ */
65
+ 'periodTo'?: string;
66
+ /**
67
+ * Code of the invoice the item pays for; absent when the item does not record its invoice
68
+ * @type {string}
69
+ * @memberof CommissionItemClass
70
+ */
71
+ 'invoiceCode'?: string;
54
72
  /**
55
73
  * Time at which the object was created.
56
74
  * @type {string}
@@ -0,0 +1,115 @@
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 CommissionPaidInvoiceEntryClass
16
+ */
17
+ export interface CommissionPaidInvoiceEntryClass {
18
+ /**
19
+ * The unique database identifier of the paid invoice entry
20
+ * @type {number}
21
+ * @memberof CommissionPaidInvoiceEntryClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof CommissionPaidInvoiceEntryClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Policy whose paid invoice was counted
32
+ * @type {string}
33
+ * @memberof CommissionPaidInvoiceEntryClass
34
+ */
35
+ 'policyCode': string;
36
+ /**
37
+ * Paid invoice counted for invoice-mode commission creation
38
+ * @type {string}
39
+ * @memberof CommissionPaidInvoiceEntryClass
40
+ */
41
+ 'invoiceCode': string;
42
+ /**
43
+ * Commission agreement version used when this invoice was counted
44
+ * @type {string}
45
+ * @memberof CommissionPaidInvoiceEntryClass
46
+ */
47
+ 'commissionAgreementVersionCode': string;
48
+ /**
49
+ * Start of the policy version timeslice matched by the invoice billing interval.
50
+ * @type {string}
51
+ * @memberof CommissionPaidInvoiceEntryClass
52
+ */
53
+ 'policyTimesliceFrom': string;
54
+ /**
55
+ * End of the policy version timeslice matched by the invoice billing interval.
56
+ * @type {string}
57
+ * @memberof CommissionPaidInvoiceEntryClass
58
+ */
59
+ 'policyTimesliceTo': string;
60
+ /**
61
+ * The status of the paid invoice entry. Valid values: counted, consumed, settled_no_commission, discarded
62
+ * @type {string}
63
+ * @memberof CommissionPaidInvoiceEntryClass
64
+ */
65
+ 'status': CommissionPaidInvoiceEntryClassStatusEnum;
66
+ /**
67
+ * Whether this entry advances the interval counter. False for a premium correction, which is paid out on its own commission when it is paid.
68
+ * @type {boolean}
69
+ * @memberof CommissionPaidInvoiceEntryClass
70
+ */
71
+ 'countsTowardInterval': boolean;
72
+ /**
73
+ * Candidate created when this entry was reserved for commission creation
74
+ * @type {string}
75
+ * @memberof CommissionPaidInvoiceEntryClass
76
+ */
77
+ 'commissionCandidateCode'?: string;
78
+ /**
79
+ * Commission created from this counted invoice entry
80
+ * @type {string}
81
+ * @memberof CommissionPaidInvoiceEntryClass
82
+ */
83
+ 'commissionCode'?: string;
84
+ /**
85
+ * Time at which the object was created.
86
+ * @type {string}
87
+ * @memberof CommissionPaidInvoiceEntryClass
88
+ */
89
+ 'createdAt': string;
90
+ /**
91
+ * Time at which the object was updated.
92
+ * @type {string}
93
+ * @memberof CommissionPaidInvoiceEntryClass
94
+ */
95
+ 'updatedAt': string;
96
+ /**
97
+ * Identifier of the user who created the record.
98
+ * @type {string}
99
+ * @memberof CommissionPaidInvoiceEntryClass
100
+ */
101
+ 'createdBy': string;
102
+ /**
103
+ * Identifier of the user who last updated the record.
104
+ * @type {string}
105
+ * @memberof CommissionPaidInvoiceEntryClass
106
+ */
107
+ 'updatedBy': string;
108
+ }
109
+ export declare const CommissionPaidInvoiceEntryClassStatusEnum: {
110
+ readonly Counted: "counted";
111
+ readonly Consumed: "consumed";
112
+ readonly SettledNoCommission: "settled_no_commission";
113
+ readonly Discarded: "discarded";
114
+ };
115
+ export type CommissionPaidInvoiceEntryClassStatusEnum = typeof CommissionPaidInvoiceEntryClassStatusEnum[keyof typeof CommissionPaidInvoiceEntryClassStatusEnum];
@@ -0,0 +1,22 @@
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.CommissionPaidInvoiceEntryClassStatusEnum = void 0;
17
+ exports.CommissionPaidInvoiceEntryClassStatusEnum = {
18
+ Counted: 'counted',
19
+ Consumed: 'consumed',
20
+ SettledNoCommission: 'settled_no_commission',
21
+ Discarded: 'discarded'
22
+ };
@@ -0,0 +1,29 @@
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 CommissionPayoutConfigDto
16
+ */
17
+ export interface CommissionPayoutConfigDto {
18
+ /**
19
+ * Who receives the commissions priced by the rule: the agreement\'s main partner or the intermediary linked on the policy
20
+ * @type {string}
21
+ * @memberof CommissionPayoutConfigDto
22
+ */
23
+ 'to': CommissionPayoutConfigDtoToEnum;
24
+ }
25
+ export declare const CommissionPayoutConfigDtoToEnum: {
26
+ readonly MainPartner: "mainPartner";
27
+ readonly Intermediary: "intermediary";
28
+ };
29
+ export type CommissionPayoutConfigDtoToEnum = typeof CommissionPayoutConfigDtoToEnum[keyof typeof CommissionPayoutConfigDtoToEnum];
@@ -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.CommissionPayoutConfigDtoToEnum = void 0;
17
+ exports.CommissionPayoutConfigDtoToEnum = {
18
+ MainPartner: 'mainPartner',
19
+ Intermediary: 'intermediary'
20
+ };
@@ -9,8 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ClawbackConfigDto } from './clawback-config-dto';
13
12
  import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
13
+ import { CommissionAgreementVersionConfigDto } from './commission-agreement-version-config-dto';
14
14
  /**
15
15
  *
16
16
  * @export
@@ -72,14 +72,14 @@ export interface CreateCommissionAgreementRequestDto {
72
72
  */
73
73
  'settlementCreationDate'?: string;
74
74
  /**
75
- * Initial version clawback creation configuration. Missing config defaults to all triggers disabled.
76
- * @type {ClawbackConfigDto}
75
+ * Initial version agreement configuration. Missing values use service defaults.
76
+ * @type {CommissionAgreementVersionConfigDto}
77
77
  * @memberof CreateCommissionAgreementRequestDto
78
78
  */
79
- 'clawbackConfig'?: ClawbackConfigDto;
79
+ 'config'?: CommissionAgreementVersionConfigDto;
80
80
  }
81
81
  export declare const CreateCommissionAgreementRequestDtoBillingFrequencyEnum: {
82
- readonly Immediately: "immediately";
82
+ readonly Manual: "manual";
83
83
  readonly Monthly: "monthly";
84
84
  readonly Quarterly: "quarterly";
85
85
  readonly HalfYearly: "halfYearly";