@emilgroup/commission-sdk-node 2.9.1-beta.16 → 2.9.1-beta.18

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 (38) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/dist/models/commission-agreement-version-class.d.ts +4 -4
  4. package/dist/models/commission-agreement-version-config-class.d.ts +32 -0
  5. package/dist/models/commission-agreement-version-config-class.js +15 -0
  6. package/dist/models/commission-agreement-version-config-dto.d.ts +32 -0
  7. package/dist/models/commission-agreement-version-config-dto.js +15 -0
  8. package/dist/models/commission-class.d.ts +0 -6
  9. package/dist/models/commission-creation-config-class.d.ts +43 -0
  10. package/dist/models/commission-creation-config-class.js +20 -0
  11. package/dist/models/commission-creation-config-dto.d.ts +43 -0
  12. package/dist/models/commission-creation-config-dto.js +20 -0
  13. package/dist/models/commission-creation-invoice-config-class.d.ts +24 -0
  14. package/dist/models/commission-creation-invoice-config-class.js +15 -0
  15. package/dist/models/commission-creation-invoice-config-dto.d.ts +24 -0
  16. package/dist/models/commission-creation-invoice-config-dto.js +15 -0
  17. package/dist/models/commission-creation-renewal-config-class.d.ts +29 -0
  18. package/dist/models/commission-creation-renewal-config-class.js +20 -0
  19. package/dist/models/commission-creation-renewal-config-dto.d.ts +29 -0
  20. package/dist/models/commission-creation-renewal-config-dto.js +20 -0
  21. package/dist/models/create-commission-agreement-request-dto.d.ts +4 -4
  22. package/dist/models/create-commission-agreement-version-request-dto.d.ts +4 -4
  23. package/dist/models/index.d.ts +8 -0
  24. package/dist/models/index.js +8 -0
  25. package/models/commission-agreement-version-class.ts +4 -4
  26. package/models/commission-agreement-version-config-class.ts +38 -0
  27. package/models/commission-agreement-version-config-dto.ts +38 -0
  28. package/models/commission-class.ts +0 -6
  29. package/models/commission-creation-config-class.ts +52 -0
  30. package/models/commission-creation-config-dto.ts +52 -0
  31. package/models/commission-creation-invoice-config-class.ts +30 -0
  32. package/models/commission-creation-invoice-config-dto.ts +30 -0
  33. package/models/commission-creation-renewal-config-class.ts +38 -0
  34. package/models/commission-creation-renewal-config-dto.ts +38 -0
  35. package/models/create-commission-agreement-request-dto.ts +4 -4
  36. package/models/create-commission-agreement-version-request-dto.ts +4 -4
  37. package/models/index.ts +8 -0
  38. package/package.json +1 -1
@@ -27,10 +27,18 @@ models/commission-agreement-rule-class.ts
27
27
  models/commission-agreement-rule-config-dto.ts
28
28
  models/commission-agreement-rule-evaluation-class.ts
29
29
  models/commission-agreement-version-class.ts
30
+ models/commission-agreement-version-config-class.ts
31
+ models/commission-agreement-version-config-dto.ts
30
32
  models/commission-candidate-class.ts
31
33
  models/commission-class.ts
32
34
  models/commission-conditions-dto.ts
33
35
  models/commission-config-dto.ts
36
+ models/commission-creation-config-class.ts
37
+ models/commission-creation-config-dto.ts
38
+ models/commission-creation-invoice-config-class.ts
39
+ models/commission-creation-invoice-config-dto.ts
40
+ models/commission-creation-renewal-config-class.ts
41
+ models/commission-creation-renewal-config-dto.ts
34
42
  models/commission-estimate-class.ts
35
43
  models/commission-item-class.ts
36
44
  models/commission-recipient-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/commission-sdk-node@2.9.1-beta.16 --save
20
+ npm install @emilgroup/commission-sdk-node@2.9.1-beta.18 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@2.9.1-beta.16
24
+ yarn add @emilgroup/commission-sdk-node@2.9.1-beta.18
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ClawbackConfigClass } from './clawback-config-class';
13
12
  import { CommissionAgreementClass } from './commission-agreement-class';
14
13
  import { CommissionAgreementProductClass } from './commission-agreement-product-class';
14
+ import { CommissionAgreementVersionConfigClass } from './commission-agreement-version-config-class';
15
15
  /**
16
16
  *
17
17
  * @export
@@ -61,11 +61,11 @@ export interface CommissionAgreementVersionClass {
61
61
  */
62
62
  'settlementCreationDate'?: string;
63
63
  /**
64
- * Version-scoped clawback creation configuration.
65
- * @type {ClawbackConfigClass}
64
+ * Version-scoped agreement configuration.
65
+ * @type {CommissionAgreementVersionConfigClass}
66
66
  * @memberof CommissionAgreementVersionClass
67
67
  */
68
- 'clawbackConfig': ClawbackConfigClass;
68
+ 'config': CommissionAgreementVersionConfigClass;
69
69
  /**
70
70
  * Description explaining what changed in this version or version notes
71
71
  * @type {string}
@@ -0,0 +1,32 @@
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 { ClawbackConfigClass } from './clawback-config-class';
13
+ import { CommissionCreationConfigClass } from './commission-creation-config-class';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CommissionAgreementVersionConfigClass
18
+ */
19
+ export interface CommissionAgreementVersionConfigClass {
20
+ /**
21
+ * Controls which clawback triggers are enabled for this commission agreement version. Missing values are treated as disabled by default.
22
+ * @type {ClawbackConfigClass}
23
+ * @memberof CommissionAgreementVersionConfigClass
24
+ */
25
+ 'clawback'?: ClawbackConfigClass;
26
+ /**
27
+ * Controls when recurring commission work is created for this commission agreement version. Missing values are treated as renewal mode by default.
28
+ * @type {CommissionCreationConfigClass}
29
+ * @memberof CommissionAgreementVersionConfigClass
30
+ */
31
+ 'commissionCreation'?: CommissionCreationConfigClass;
32
+ }
@@ -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,32 @@
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 { ClawbackConfigDto } from './clawback-config-dto';
13
+ import { CommissionCreationConfigDto } from './commission-creation-config-dto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CommissionAgreementVersionConfigDto
18
+ */
19
+ export interface CommissionAgreementVersionConfigDto {
20
+ /**
21
+ * Controls which clawback triggers are enabled for this commission agreement version. Missing values are treated as disabled by default.
22
+ * @type {ClawbackConfigDto}
23
+ * @memberof CommissionAgreementVersionConfigDto
24
+ */
25
+ 'clawback'?: ClawbackConfigDto;
26
+ /**
27
+ * Controls when recurring commission work is created for this commission agreement version. Missing values are treated as renewal mode by default.
28
+ * @type {CommissionCreationConfigDto}
29
+ * @memberof CommissionAgreementVersionConfigDto
30
+ */
31
+ 'commissionCreation'?: CommissionCreationConfigDto;
32
+ }
@@ -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 });
@@ -107,12 +107,6 @@ export interface CommissionClass {
107
107
  * @memberof CommissionClass
108
108
  */
109
109
  'settlementCode'?: string;
110
- /**
111
- * The source invoice code for invoice-driven commissions
112
- * @type {string}
113
- * @memberof CommissionClass
114
- */
115
- 'invoiceCode'?: string;
116
110
  /**
117
111
  * Start of the period the commission was originally created for
118
112
  * @type {string}
@@ -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
+ };
@@ -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,11 +72,11 @@ 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
82
  readonly Immediately: "immediately";
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { ClawbackConfigDto } from './clawback-config-dto';
12
+ import { CommissionAgreementVersionConfigDto } from './commission-agreement-version-config-dto';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -47,9 +47,9 @@ export interface CreateCommissionAgreementVersionRequestDto {
47
47
  */
48
48
  'versionDescription'?: string;
49
49
  /**
50
- * Version-scoped clawback creation configuration. Missing config defaults to all triggers disabled.
51
- * @type {ClawbackConfigDto}
50
+ * Version-scoped agreement configuration. Missing values use service defaults.
51
+ * @type {CommissionAgreementVersionConfigDto}
52
52
  * @memberof CreateCommissionAgreementVersionRequestDto
53
53
  */
54
- 'clawbackConfig'?: ClawbackConfigDto;
54
+ 'config'?: CommissionAgreementVersionConfigDto;
55
55
  }
@@ -8,10 +8,18 @@ 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';
17
25
  export * from './commission-recipient-class';
@@ -24,10 +24,18 @@ __exportStar(require("./commission-agreement-rule-class"), exports);
24
24
  __exportStar(require("./commission-agreement-rule-config-dto"), exports);
25
25
  __exportStar(require("./commission-agreement-rule-evaluation-class"), exports);
26
26
  __exportStar(require("./commission-agreement-version-class"), exports);
27
+ __exportStar(require("./commission-agreement-version-config-class"), exports);
28
+ __exportStar(require("./commission-agreement-version-config-dto"), exports);
27
29
  __exportStar(require("./commission-candidate-class"), exports);
28
30
  __exportStar(require("./commission-class"), exports);
29
31
  __exportStar(require("./commission-conditions-dto"), exports);
30
32
  __exportStar(require("./commission-config-dto"), exports);
33
+ __exportStar(require("./commission-creation-config-class"), exports);
34
+ __exportStar(require("./commission-creation-config-dto"), exports);
35
+ __exportStar(require("./commission-creation-invoice-config-class"), exports);
36
+ __exportStar(require("./commission-creation-invoice-config-dto"), exports);
37
+ __exportStar(require("./commission-creation-renewal-config-class"), exports);
38
+ __exportStar(require("./commission-creation-renewal-config-dto"), exports);
31
39
  __exportStar(require("./commission-estimate-class"), exports);
32
40
  __exportStar(require("./commission-item-class"), exports);
33
41
  __exportStar(require("./commission-recipient-class"), exports);
@@ -13,9 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
- import { ClawbackConfigClass } from './clawback-config-class';
17
16
  import { CommissionAgreementClass } from './commission-agreement-class';
18
17
  import { CommissionAgreementProductClass } from './commission-agreement-product-class';
18
+ import { CommissionAgreementVersionConfigClass } from './commission-agreement-version-config-class';
19
19
 
20
20
  /**
21
21
  *
@@ -66,11 +66,11 @@ export interface CommissionAgreementVersionClass {
66
66
  */
67
67
  'settlementCreationDate'?: string;
68
68
  /**
69
- * Version-scoped clawback creation configuration.
70
- * @type {ClawbackConfigClass}
69
+ * Version-scoped agreement configuration.
70
+ * @type {CommissionAgreementVersionConfigClass}
71
71
  * @memberof CommissionAgreementVersionClass
72
72
  */
73
- 'clawbackConfig': ClawbackConfigClass;
73
+ 'config': CommissionAgreementVersionConfigClass;
74
74
  /**
75
75
  * Description explaining what changed in this version or version notes
76
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
+
@@ -112,12 +112,6 @@ 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
115
  /**
122
116
  * Start of the period the commission was originally created for
123
117
  * @type {string}
@@ -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
+
@@ -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
+
@@ -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,11 +77,11 @@ 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 = {
@@ -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
 
package/models/index.ts CHANGED
@@ -8,10 +8,18 @@ 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';
17
25
  export * from './commission-recipient-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk-node",
3
- "version": "2.9.1-beta.16",
3
+ "version": "2.9.1-beta.18",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [