@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,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
+
@@ -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 CommissionCreationInvoiceConfigDto
21
+ */
22
+ export interface CommissionCreationInvoiceConfigDto {
23
+ /**
24
+ * Number of paid invoices required before commission work is created. Use 1 for every paid invoice.
25
+ * @type {number}
26
+ * @memberof CommissionCreationInvoiceConfigDto
27
+ */
28
+ 'paidInvoiceInterval': number;
29
+ }
30
+
@@ -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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CommissionCreationRenewalConfigClass
21
+ */
22
+ export interface CommissionCreationRenewalConfigClass {
23
+ /**
24
+ * 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.
25
+ * @type {string}
26
+ * @memberof CommissionCreationRenewalConfigClass
27
+ */
28
+ 'frequency': CommissionCreationRenewalConfigClassFrequencyEnum;
29
+ }
30
+
31
+ export const CommissionCreationRenewalConfigClassFrequencyEnum = {
32
+ Renewal: 'renewal',
33
+ Yearly: 'yearly'
34
+ } as const;
35
+
36
+ export type CommissionCreationRenewalConfigClassFrequencyEnum = typeof CommissionCreationRenewalConfigClassFrequencyEnum[keyof typeof CommissionCreationRenewalConfigClassFrequencyEnum];
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CommissionCreationRenewalConfigDto
21
+ */
22
+ export interface CommissionCreationRenewalConfigDto {
23
+ /**
24
+ * 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.
25
+ * @type {string}
26
+ * @memberof CommissionCreationRenewalConfigDto
27
+ */
28
+ 'frequency': CommissionCreationRenewalConfigDtoFrequencyEnum;
29
+ }
30
+
31
+ export const CommissionCreationRenewalConfigDtoFrequencyEnum = {
32
+ Renewal: 'renewal',
33
+ Yearly: 'yearly'
34
+ } as const;
35
+
36
+ export type CommissionCreationRenewalConfigDtoFrequencyEnum = typeof CommissionCreationRenewalConfigDtoFrequencyEnum[keyof typeof CommissionCreationRenewalConfigDtoFrequencyEnum];
37
+
38
+
@@ -50,6 +50,30 @@ export interface CommissionEstimateClass {
50
50
  * @memberof CommissionEstimateClass
51
51
  */
52
52
  'group': CommissionEstimateClassGroupEnum;
53
+ /**
54
+ * First day the line pays for (inclusive); absent when the line covers the whole commission period, or is a sale
55
+ * @type {string}
56
+ * @memberof CommissionEstimateClass
57
+ */
58
+ 'periodFrom'?: string;
59
+ /**
60
+ * Day after the last day the line pays for (exclusive); absent when periodFrom is absent
61
+ * @type {string}
62
+ * @memberof CommissionEstimateClass
63
+ */
64
+ 'periodTo'?: string;
65
+ /**
66
+ * 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
67
+ * @type {string}
68
+ * @memberof CommissionEstimateClass
69
+ */
70
+ 'commissionAgreementVersionCode'?: string;
71
+ /**
72
+ * 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
73
+ * @type {string}
74
+ * @memberof CommissionEstimateClass
75
+ */
76
+ 'partnerCode'?: string;
53
77
  }
54
78
 
55
79
  export const CommissionEstimateClassTypeEnum = {
@@ -56,6 +56,24 @@ export interface CommissionItemClass {
56
56
  * @memberof CommissionItemClass
57
57
  */
58
58
  'type': CommissionItemClassTypeEnum;
59
+ /**
60
+ * First day the item pays for (inclusive); absent when the item does not record its days
61
+ * @type {string}
62
+ * @memberof CommissionItemClass
63
+ */
64
+ 'periodFrom'?: string;
65
+ /**
66
+ * Day after the last day the item pays for (exclusive); absent when periodFrom is absent
67
+ * @type {string}
68
+ * @memberof CommissionItemClass
69
+ */
70
+ 'periodTo'?: string;
71
+ /**
72
+ * Code of the invoice the item pays for; absent when the item does not record its invoice
73
+ * @type {string}
74
+ * @memberof CommissionItemClass
75
+ */
76
+ 'invoiceCode'?: string;
59
77
  /**
60
78
  * Time at which the object was created.
61
79
  * @type {string}
@@ -0,0 +1,124 @@
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 CommissionPaidInvoiceEntryClass
21
+ */
22
+ export interface CommissionPaidInvoiceEntryClass {
23
+ /**
24
+ * The unique database identifier of the paid invoice entry
25
+ * @type {number}
26
+ * @memberof CommissionPaidInvoiceEntryClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Unique identifier for the object.
31
+ * @type {string}
32
+ * @memberof CommissionPaidInvoiceEntryClass
33
+ */
34
+ 'code': string;
35
+ /**
36
+ * Policy whose paid invoice was counted
37
+ * @type {string}
38
+ * @memberof CommissionPaidInvoiceEntryClass
39
+ */
40
+ 'policyCode': string;
41
+ /**
42
+ * Paid invoice counted for invoice-mode commission creation
43
+ * @type {string}
44
+ * @memberof CommissionPaidInvoiceEntryClass
45
+ */
46
+ 'invoiceCode': string;
47
+ /**
48
+ * Commission agreement version used when this invoice was counted
49
+ * @type {string}
50
+ * @memberof CommissionPaidInvoiceEntryClass
51
+ */
52
+ 'commissionAgreementVersionCode': string;
53
+ /**
54
+ * Start of the policy version timeslice matched by the invoice billing interval.
55
+ * @type {string}
56
+ * @memberof CommissionPaidInvoiceEntryClass
57
+ */
58
+ 'policyTimesliceFrom': string;
59
+ /**
60
+ * End of the policy version timeslice matched by the invoice billing interval.
61
+ * @type {string}
62
+ * @memberof CommissionPaidInvoiceEntryClass
63
+ */
64
+ 'policyTimesliceTo': string;
65
+ /**
66
+ * The status of the paid invoice entry. Valid values: counted, consumed, settled_no_commission, discarded
67
+ * @type {string}
68
+ * @memberof CommissionPaidInvoiceEntryClass
69
+ */
70
+ 'status': CommissionPaidInvoiceEntryClassStatusEnum;
71
+ /**
72
+ * Whether this entry advances the interval counter. False for a premium correction, which is paid out on its own commission when it is paid.
73
+ * @type {boolean}
74
+ * @memberof CommissionPaidInvoiceEntryClass
75
+ */
76
+ 'countsTowardInterval': boolean;
77
+ /**
78
+ * Candidate created when this entry was reserved for commission creation
79
+ * @type {string}
80
+ * @memberof CommissionPaidInvoiceEntryClass
81
+ */
82
+ 'commissionCandidateCode'?: string;
83
+ /**
84
+ * Commission created from this counted invoice entry
85
+ * @type {string}
86
+ * @memberof CommissionPaidInvoiceEntryClass
87
+ */
88
+ 'commissionCode'?: string;
89
+ /**
90
+ * Time at which the object was created.
91
+ * @type {string}
92
+ * @memberof CommissionPaidInvoiceEntryClass
93
+ */
94
+ 'createdAt': string;
95
+ /**
96
+ * Time at which the object was updated.
97
+ * @type {string}
98
+ * @memberof CommissionPaidInvoiceEntryClass
99
+ */
100
+ 'updatedAt': string;
101
+ /**
102
+ * Identifier of the user who created the record.
103
+ * @type {string}
104
+ * @memberof CommissionPaidInvoiceEntryClass
105
+ */
106
+ 'createdBy': string;
107
+ /**
108
+ * Identifier of the user who last updated the record.
109
+ * @type {string}
110
+ * @memberof CommissionPaidInvoiceEntryClass
111
+ */
112
+ 'updatedBy': string;
113
+ }
114
+
115
+ export const CommissionPaidInvoiceEntryClassStatusEnum = {
116
+ Counted: 'counted',
117
+ Consumed: 'consumed',
118
+ SettledNoCommission: 'settled_no_commission',
119
+ Discarded: 'discarded'
120
+ } as const;
121
+
122
+ export type CommissionPaidInvoiceEntryClassStatusEnum = typeof CommissionPaidInvoiceEntryClassStatusEnum[keyof typeof CommissionPaidInvoiceEntryClassStatusEnum];
123
+
124
+
@@ -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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CommissionPayoutConfigDto
21
+ */
22
+ export interface CommissionPayoutConfigDto {
23
+ /**
24
+ * Who receives the commissions priced by the rule: the agreement\'s main partner or the intermediary linked on the policy
25
+ * @type {string}
26
+ * @memberof CommissionPayoutConfigDto
27
+ */
28
+ 'to': CommissionPayoutConfigDtoToEnum;
29
+ }
30
+
31
+ export const CommissionPayoutConfigDtoToEnum = {
32
+ MainPartner: 'mainPartner',
33
+ Intermediary: 'intermediary'
34
+ } as const;
35
+
36
+ export type CommissionPayoutConfigDtoToEnum = typeof CommissionPayoutConfigDtoToEnum[keyof typeof CommissionPayoutConfigDtoToEnum];
37
+
38
+
@@ -13,8 +13,8 @@
13
13
  */
14
14
 
15
15
 
16
- import { ClawbackConfigDto } from './clawback-config-dto';
17
16
  import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
17
+ import { CommissionAgreementVersionConfigDto } from './commission-agreement-version-config-dto';
18
18
 
19
19
  /**
20
20
  *
@@ -77,15 +77,15 @@ export interface CreateCommissionAgreementRequestDto {
77
77
  */
78
78
  'settlementCreationDate'?: string;
79
79
  /**
80
- * Initial version clawback creation configuration. Missing config defaults to all triggers disabled.
81
- * @type {ClawbackConfigDto}
80
+ * Initial version agreement configuration. Missing values use service defaults.
81
+ * @type {CommissionAgreementVersionConfigDto}
82
82
  * @memberof CreateCommissionAgreementRequestDto
83
83
  */
84
- 'clawbackConfig'?: ClawbackConfigDto;
84
+ 'config'?: CommissionAgreementVersionConfigDto;
85
85
  }
86
86
 
87
87
  export const CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
88
- Immediately: 'immediately',
88
+ Manual: 'manual',
89
89
  Monthly: 'monthly',
90
90
  Quarterly: 'quarterly',
91
91
  HalfYearly: 'halfYearly',
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { ClawbackConfigDto } from './clawback-config-dto';
16
+ import { CommissionAgreementVersionConfigDto } from './commission-agreement-version-config-dto';
17
17
 
18
18
  /**
19
19
  *
@@ -52,10 +52,10 @@ export interface CreateCommissionAgreementVersionRequestDto {
52
52
  */
53
53
  'versionDescription'?: string;
54
54
  /**
55
- * Version-scoped clawback creation configuration. Missing config defaults to all triggers disabled.
56
- * @type {ClawbackConfigDto}
55
+ * Version-scoped agreement configuration. Missing values use service defaults.
56
+ * @type {CommissionAgreementVersionConfigDto}
57
57
  * @memberof CreateCommissionAgreementVersionRequestDto
58
58
  */
59
- 'clawbackConfig'?: ClawbackConfigDto;
59
+ 'config'?: CommissionAgreementVersionConfigDto;
60
60
  }
61
61
 
@@ -44,6 +44,30 @@ export interface CreateCommissionItemRequestDto {
44
44
  * @memberof CreateCommissionItemRequestDto
45
45
  */
46
46
  'type': CreateCommissionItemRequestDtoTypeEnum;
47
+ /**
48
+ * First day the item pays for (inclusive), as the estimate returns it; give it together with periodTo, or neither. Inside the commission period when the commission has a candidate
49
+ * @type {string}
50
+ * @memberof CreateCommissionItemRequestDto
51
+ */
52
+ 'periodFrom'?: string;
53
+ /**
54
+ * Day after the last day the item pays for (exclusive), as the estimate returns it; after periodFrom
55
+ * @type {string}
56
+ * @memberof CreateCommissionItemRequestDto
57
+ */
58
+ 'periodTo'?: string;
59
+ /**
60
+ * Code of the commission agreement version the item is priced with, as the estimate returns it; empty for the request\'s version. It must belong to the request\'s version\'s agreement and cover the item\'s days, or the commission period\'s start for an item without days. Without a candidate, only the request\'s version is accepted
61
+ * @type {string}
62
+ * @memberof CreateCommissionItemRequestDto
63
+ */
64
+ 'commissionAgreementVersionCode'?: string;
65
+ /**
66
+ * Code of the partner the item is paid to, as the estimate returns it; empty for the request\'s partner. All items of one agreement version are paid to one partner
67
+ * @type {string}
68
+ * @memberof CreateCommissionItemRequestDto
69
+ */
70
+ 'partnerCode'?: string;
47
71
  }
48
72
 
49
73
  export const CreateCommissionItemRequestDtoTypeEnum = {
@@ -32,5 +32,11 @@ export interface EstimateCommissionsRequestDto {
32
32
  * @memberof EstimateCommissionsRequestDto
33
33
  */
34
34
  'policyObjects': Array<object>;
35
+ /**
36
+ * The commission candidate whose period is estimated: the partner link and the agreement version are taken on its period start instead of the policy start.
37
+ * @type {string}
38
+ * @memberof EstimateCommissionsRequestDto
39
+ */
40
+ 'commissionCandidateCode'?: string;
35
41
  }
36
42
 
package/models/index.ts CHANGED
@@ -8,12 +8,22 @@ export * from './commission-agreement-rule-class';
8
8
  export * from './commission-agreement-rule-config-dto';
9
9
  export * from './commission-agreement-rule-evaluation-class';
10
10
  export * from './commission-agreement-version-class';
11
+ export * from './commission-agreement-version-config-class';
12
+ export * from './commission-agreement-version-config-dto';
11
13
  export * from './commission-candidate-class';
12
14
  export * from './commission-class';
13
15
  export * from './commission-conditions-dto';
14
16
  export * from './commission-config-dto';
17
+ export * from './commission-creation-config-class';
18
+ export * from './commission-creation-config-dto';
19
+ export * from './commission-creation-invoice-config-class';
20
+ export * from './commission-creation-invoice-config-dto';
21
+ export * from './commission-creation-renewal-config-class';
22
+ export * from './commission-creation-renewal-config-dto';
15
23
  export * from './commission-estimate-class';
16
24
  export * from './commission-item-class';
25
+ export * from './commission-paid-invoice-entry-class';
26
+ export * from './commission-payout-config-dto';
17
27
  export * from './commission-recipient-class';
18
28
  export * from './commission-settlement-class';
19
29
  export * from './create-commission-agreement-product-request-dto';
@@ -58,6 +68,7 @@ export * from './list-commission-agreement-rules-response-class';
58
68
  export * from './list-commission-agreement-versions-response-class';
59
69
  export * from './list-commission-agreements-response-class';
60
70
  export * from './list-commission-candidates-response-class';
71
+ export * from './list-commission-paid-invoice-entries-response-class';
61
72
  export * from './list-commission-recipients-response-class';
62
73
  export * from './list-commission-settlements-response-class';
63
74
  export * from './list-commissions-response-class';
@@ -22,28 +22,28 @@ import { CommissionAgreementVersionClass } from './commission-agreement-version-
22
22
  */
23
23
  export interface ListCommissionAgreementVersionsResponseClass {
24
24
  /**
25
- * Array of commission agreement version objects
26
- * @type {Array<CommissionAgreementVersionClass>}
25
+ * Next page token.
26
+ * @type {string}
27
27
  * @memberof ListCommissionAgreementVersionsResponseClass
28
28
  */
29
- 'items': Array<CommissionAgreementVersionClass>;
29
+ 'nextPageToken': string;
30
30
  /**
31
- * Token for retrieving the next page of results
32
- * @type {string}
31
+ * Total amount of items.
32
+ * @type {number}
33
33
  * @memberof ListCommissionAgreementVersionsResponseClass
34
34
  */
35
- 'nextPageToken': string;
35
+ 'totalItems': number;
36
36
  /**
37
- * Number of items per page
37
+ * Items per page.
38
38
  * @type {number}
39
39
  * @memberof ListCommissionAgreementVersionsResponseClass
40
40
  */
41
41
  'itemsPerPage': number;
42
42
  /**
43
- * Total number of items
44
- * @type {number}
43
+ * Array of commission agreement version objects
44
+ * @type {Array<CommissionAgreementVersionClass>}
45
45
  * @memberof ListCommissionAgreementVersionsResponseClass
46
46
  */
47
- 'totalItems': number;
47
+ 'items': Array<CommissionAgreementVersionClass>;
48
48
  }
49
49
 
@@ -22,28 +22,28 @@ import { CommissionAgreementClass } from './commission-agreement-class';
22
22
  */
23
23
  export interface ListCommissionAgreementsResponseClass {
24
24
  /**
25
- * Array of commission agreement objects
26
- * @type {Array<CommissionAgreementClass>}
25
+ * Next page token.
26
+ * @type {string}
27
27
  * @memberof ListCommissionAgreementsResponseClass
28
28
  */
29
- 'items': Array<CommissionAgreementClass>;
29
+ 'nextPageToken': string;
30
30
  /**
31
- * Token for pagination to retrieve the next page of results. Empty string indicates no more pages available
32
- * @type {string}
31
+ * Total amount of items.
32
+ * @type {number}
33
33
  * @memberof ListCommissionAgreementsResponseClass
34
34
  */
35
- 'nextPageToken': string;
35
+ 'totalItems': number;
36
36
  /**
37
- * Number of items per page
37
+ * Items per page.
38
38
  * @type {number}
39
39
  * @memberof ListCommissionAgreementsResponseClass
40
40
  */
41
41
  'itemsPerPage': number;
42
42
  /**
43
- * Total number of items
44
- * @type {number}
43
+ * Array of commission agreement objects
44
+ * @type {Array<CommissionAgreementClass>}
45
45
  * @memberof ListCommissionAgreementsResponseClass
46
46
  */
47
- 'totalItems': number;
47
+ 'items': Array<CommissionAgreementClass>;
48
48
  }
49
49
 
@@ -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 { CommissionPaidInvoiceEntryClass } from './commission-paid-invoice-entry-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListCommissionPaidInvoiceEntriesResponseClass
22
+ */
23
+ export interface ListCommissionPaidInvoiceEntriesResponseClass {
24
+ /**
25
+ * Next page token.
26
+ * @type {string}
27
+ * @memberof ListCommissionPaidInvoiceEntriesResponseClass
28
+ */
29
+ 'nextPageToken': string;
30
+ /**
31
+ * Total amount of items.
32
+ * @type {number}
33
+ * @memberof ListCommissionPaidInvoiceEntriesResponseClass
34
+ */
35
+ 'totalItems': number;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListCommissionPaidInvoiceEntriesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * The list of commission paid invoice entriess.
44
+ * @type {Array<CommissionPaidInvoiceEntryClass>}
45
+ * @memberof ListCommissionPaidInvoiceEntriesResponseClass
46
+ */
47
+ 'items': Array<CommissionPaidInvoiceEntryClass>;
48
+ }
49
+