@emilgroup/commission-sdk-node 1.0.0-beta.4 → 1.0.0-beta.40

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 (155) hide show
  1. package/.openapi-generator/FILES +39 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +655 -0
  4. package/api/commission-agreement-rules-api.ts +762 -0
  5. package/api/commission-agreements-api.ts +160 -27
  6. package/api/commission-recipients-api.ts +92 -37
  7. package/api/commission-settlements-api.ts +804 -0
  8. package/api/commissions-api.ts +121 -18
  9. package/api.ts +6 -0
  10. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  11. package/dist/api/commission-agreement-products-api.js +630 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +723 -0
  14. package/dist/api/commission-agreements-api.d.ts +98 -23
  15. package/dist/api/commission-agreements-api.js +127 -22
  16. package/dist/api/commission-recipients-api.d.ts +63 -27
  17. package/dist/api/commission-recipients-api.js +53 -29
  18. package/dist/api/commission-settlements-api.d.ts +450 -0
  19. package/dist/api/commission-settlements-api.js +741 -0
  20. package/dist/api/commissions-api.d.ts +74 -18
  21. package/dist/api/commissions-api.js +101 -9
  22. package/dist/api.d.ts +3 -0
  23. package/dist/api.js +3 -0
  24. package/dist/models/commission-agreement-class.d.ts +27 -3
  25. package/dist/models/commission-agreement-class.js +5 -1
  26. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  27. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  28. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  29. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +77 -0
  31. package/dist/models/commission-agreement-product-class.js +20 -0
  32. package/dist/models/commission-agreement-rule-class.d.ts +93 -0
  33. package/dist/models/commission-agreement-rule-class.js +21 -0
  34. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  35. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  36. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  37. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  38. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  39. package/dist/models/commission-class.d.ts +37 -6
  40. package/dist/models/commission-conditions-dto.d.ts +24 -0
  41. package/dist/models/commission-conditions-dto.js +15 -0
  42. package/dist/models/commission-config-dto.d.ts +63 -0
  43. package/dist/models/commission-config-dto.js +34 -0
  44. package/dist/models/commission-estimate-class.d.ts +59 -0
  45. package/dist/models/commission-estimate-class.js +25 -0
  46. package/dist/models/commission-settlement-class.d.ts +124 -0
  47. package/dist/models/commission-settlement-class.js +35 -0
  48. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  49. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  50. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  51. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  52. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  53. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  54. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  55. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  56. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  57. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  58. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  59. package/dist/models/create-commission-request-dto.d.ts +3 -9
  60. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  61. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  62. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  63. package/dist/models/create-commission-settlement-response-class.js +15 -0
  64. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  65. package/dist/models/estimate-commissions-response-class.js +15 -0
  66. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  67. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  68. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  69. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  70. package/dist/models/evaluated-commission-class.d.ts +54 -0
  71. package/dist/models/evaluated-commission-class.js +21 -0
  72. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  73. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  74. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  75. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  76. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  77. package/dist/models/get-commission-settlement-response-class.js +15 -0
  78. package/dist/models/index.d.ts +36 -0
  79. package/dist/models/index.js +36 -0
  80. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  81. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  82. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  83. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  84. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  85. package/dist/models/list-commission-settlements-response-class.js +15 -0
  86. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  87. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  88. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  89. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  90. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  91. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  92. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  93. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  94. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  95. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  96. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  97. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  98. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  99. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  100. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  101. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  102. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  103. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  104. package/dist/models/update-commission-request-dto.d.ts +5 -3
  105. package/dist/models/update-commission-request-dto.js +4 -2
  106. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  107. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  108. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  109. package/dist/models/update-commission-settlement-response-class.js +15 -0
  110. package/models/commission-agreement-class.ts +27 -3
  111. package/models/commission-agreement-metadata-dto.ts +31 -0
  112. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  113. package/models/commission-agreement-product-class.ts +86 -0
  114. package/models/commission-agreement-rule-class.ts +102 -0
  115. package/models/commission-agreement-rule-config-dto.ts +31 -0
  116. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  117. package/models/commission-agreement-version-class.ts +7 -0
  118. package/models/commission-class.ts +37 -6
  119. package/models/commission-conditions-dto.ts +30 -0
  120. package/models/commission-config-dto.ts +73 -0
  121. package/models/commission-estimate-class.ts +69 -0
  122. package/models/commission-settlement-class.ts +134 -0
  123. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  124. package/models/create-commission-agreement-product-response-class.ts +31 -0
  125. package/models/create-commission-agreement-request-dto.ts +14 -3
  126. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  127. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  128. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  129. package/models/create-commission-request-dto.ts +3 -9
  130. package/models/create-commission-settlement-request-dto.ts +67 -0
  131. package/models/create-commission-settlement-response-class.ts +31 -0
  132. package/models/estimate-commissions-response-class.ts +79 -0
  133. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  134. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  135. package/models/evaluated-commission-class.ts +63 -0
  136. package/models/get-commission-agreement-product-response-class.ts +31 -0
  137. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  138. package/models/get-commission-settlement-response-class.ts +31 -0
  139. package/models/index.ts +36 -0
  140. package/models/list-commission-agreement-products-response-class.ts +49 -0
  141. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  142. package/models/list-commission-settlements-response-class.ts +49 -0
  143. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  144. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  145. package/models/publish-commission-settlements-request-dto.ts +30 -0
  146. package/models/publish-commission-settlements-response-class.ts +31 -0
  147. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  148. package/models/update-commission-agreement-product-response-class.ts +31 -0
  149. package/models/update-commission-agreement-request-dto.ts +3 -1
  150. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  151. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/update-commission-request-dto.ts +5 -3
  153. package/models/update-commission-settlement-request-dto.ts +52 -0
  154. package/models/update-commission-settlement-response-class.ts +31 -0
  155. package/package.json +1 -1
@@ -0,0 +1,77 @@
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 CommissionAgreementProductClass
16
+ */
17
+ export interface CommissionAgreementProductClass {
18
+ /**
19
+ * Unique identifier for the commission agreement product
20
+ * @type {number}
21
+ * @memberof CommissionAgreementProductClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Product slug identifier
26
+ * @type {string}
27
+ * @memberof CommissionAgreementProductClass
28
+ */
29
+ 'productSlug': string;
30
+ /**
31
+ * Unique code identifier for the commission agreement product, auto-generated on creation
32
+ * @type {string}
33
+ * @memberof CommissionAgreementProductClass
34
+ */
35
+ 'code': string;
36
+ /**
37
+ * The parent commission agreement version code
38
+ * @type {string}
39
+ * @memberof CommissionAgreementProductClass
40
+ */
41
+ 'commissionAgreementVersionCode': string;
42
+ /**
43
+ * Status of the commission agreement product
44
+ * @type {string}
45
+ * @memberof CommissionAgreementProductClass
46
+ */
47
+ 'status': CommissionAgreementProductClassStatusEnum;
48
+ /**
49
+ * Timestamp when the commission agreement product was created
50
+ * @type {string}
51
+ * @memberof CommissionAgreementProductClass
52
+ */
53
+ 'createdAt'?: string;
54
+ /**
55
+ * Timestamp when the commission agreement product was last updated
56
+ * @type {string}
57
+ * @memberof CommissionAgreementProductClass
58
+ */
59
+ 'updatedAt'?: string;
60
+ /**
61
+ * User identifier who created the commission agreement product
62
+ * @type {string}
63
+ * @memberof CommissionAgreementProductClass
64
+ */
65
+ 'createdBy'?: string;
66
+ /**
67
+ * User identifier who last updated the commission agreement product
68
+ * @type {string}
69
+ * @memberof CommissionAgreementProductClass
70
+ */
71
+ 'updatedBy'?: string;
72
+ }
73
+ export declare const CommissionAgreementProductClassStatusEnum: {
74
+ readonly Active: "active";
75
+ readonly Inactive: "inactive";
76
+ };
77
+ export type CommissionAgreementProductClassStatusEnum = typeof CommissionAgreementProductClassStatusEnum[keyof typeof CommissionAgreementProductClassStatusEnum];
@@ -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.CommissionAgreementProductClassStatusEnum = void 0;
17
+ exports.CommissionAgreementProductClassStatusEnum = {
18
+ Active: 'active',
19
+ Inactive: 'inactive'
20
+ };
@@ -0,0 +1,93 @@
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 { CommissionAgreementProductClass } from './commission-agreement-product-class';
13
+ import { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
14
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CommissionAgreementRuleClass
19
+ */
20
+ export interface CommissionAgreementRuleClass {
21
+ /**
22
+ * Unique identifier for the commission agreement rule
23
+ * @type {number}
24
+ * @memberof CommissionAgreementRuleClass
25
+ */
26
+ 'id': number;
27
+ /**
28
+ * The parent commission agreement version
29
+ * @type {CommissionAgreementVersionClass}
30
+ * @memberof CommissionAgreementRuleClass
31
+ */
32
+ 'version': CommissionAgreementVersionClass;
33
+ /**
34
+ * Unique code identifier for the commission agreement rule, auto-generated on creation
35
+ * @type {string}
36
+ * @memberof CommissionAgreementRuleClass
37
+ */
38
+ 'code': string;
39
+ /**
40
+ * Configuration object for the commission agreement rule
41
+ * @type {CommissionAgreementRuleConfigDto}
42
+ * @memberof CommissionAgreementRuleClass
43
+ */
44
+ 'config': CommissionAgreementRuleConfigDto;
45
+ /**
46
+ * Status of the commission agreement rule (e.g., active, inactive, draft)
47
+ * @type {string}
48
+ * @memberof CommissionAgreementRuleClass
49
+ */
50
+ 'status': CommissionAgreementRuleClassStatusEnum;
51
+ /**
52
+ * Code of the commission agreement product to create a rule for
53
+ * @type {string}
54
+ * @memberof CommissionAgreementRuleClass
55
+ */
56
+ 'commissionAgreementProductCode': string;
57
+ /**
58
+ * The commission agreement product
59
+ * @type {CommissionAgreementProductClass}
60
+ * @memberof CommissionAgreementRuleClass
61
+ */
62
+ 'commissionAgreementProduct': CommissionAgreementProductClass;
63
+ /**
64
+ * Timestamp when the commission agreement rule was created
65
+ * @type {string}
66
+ * @memberof CommissionAgreementRuleClass
67
+ */
68
+ 'createdAt'?: string;
69
+ /**
70
+ * Timestamp when the commission agreement rule was last updated
71
+ * @type {string}
72
+ * @memberof CommissionAgreementRuleClass
73
+ */
74
+ 'updatedAt'?: string;
75
+ /**
76
+ * User identifier who created the commission agreement rule
77
+ * @type {string}
78
+ * @memberof CommissionAgreementRuleClass
79
+ */
80
+ 'createdBy'?: string;
81
+ /**
82
+ * User identifier who last updated the commission agreement rule
83
+ * @type {string}
84
+ * @memberof CommissionAgreementRuleClass
85
+ */
86
+ 'updatedBy'?: string;
87
+ }
88
+ export declare const CommissionAgreementRuleClassStatusEnum: {
89
+ readonly Active: "active";
90
+ readonly Inactive: "inactive";
91
+ readonly Draft: "draft";
92
+ };
93
+ export type CommissionAgreementRuleClassStatusEnum = typeof CommissionAgreementRuleClassStatusEnum[keyof typeof CommissionAgreementRuleClassStatusEnum];
@@ -0,0 +1,21 @@
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.CommissionAgreementRuleClassStatusEnum = void 0;
17
+ exports.CommissionAgreementRuleClassStatusEnum = {
18
+ Active: 'active',
19
+ Inactive: 'inactive',
20
+ Draft: 'draft'
21
+ };
@@ -0,0 +1,25 @@
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 { CommissionConfigDto } from './commission-config-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementRuleConfigDto
17
+ */
18
+ export interface CommissionAgreementRuleConfigDto {
19
+ /**
20
+ * Array of commission calculation rules
21
+ * @type {Array<CommissionConfigDto>}
22
+ * @memberof CommissionAgreementRuleConfigDto
23
+ */
24
+ 'commissions': Array<CommissionConfigDto>;
25
+ }
@@ -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,31 @@
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 { EvaluatedCommissionClass } from './evaluated-commission-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementRuleEvaluationClass
17
+ */
18
+ export interface CommissionAgreementRuleEvaluationClass {
19
+ /**
20
+ * Premium amount in cents used for evaluation
21
+ * @type {number}
22
+ * @memberof CommissionAgreementRuleEvaluationClass
23
+ */
24
+ 'premiumAmount': number;
25
+ /**
26
+ * Array of evaluated commission results
27
+ * @type {Array<EvaluatedCommissionClass>}
28
+ * @memberof CommissionAgreementRuleEvaluationClass
29
+ */
30
+ 'commissions': Array<EvaluatedCommissionClass>;
31
+ }
@@ -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 });
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { CommissionAgreementClass } from './commission-agreement-class';
13
+ import { CommissionAgreementProductClass } from './commission-agreement-product-class';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -28,6 +29,12 @@ export interface CommissionAgreementVersionClass {
28
29
  * @memberof CommissionAgreementVersionClass
29
30
  */
30
31
  'agreement': CommissionAgreementClass;
32
+ /**
33
+ * Array of commission agreement products
34
+ * @type {Array<CommissionAgreementProductClass>}
35
+ * @memberof CommissionAgreementVersionClass
36
+ */
37
+ 'products'?: Array<CommissionAgreementProductClass>;
31
38
  /**
32
39
  * Unique code identifier for the commission agreement version, auto-generated on creation
33
40
  * @type {string}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CommissionAgreementClass } from './commission-agreement-class';
12
13
  import { CommissionItemClass } from './commission-item-class';
13
14
  /**
14
15
  *
@@ -23,11 +24,11 @@ export interface CommissionClass {
23
24
  */
24
25
  'id': number;
25
26
  /**
26
- * The unique code or identifier of the commission agreement this commission is based on
27
- * @type {string}
27
+ * The commission agreement this commission is based on
28
+ * @type {CommissionAgreementClass}
28
29
  * @memberof CommissionClass
29
30
  */
30
- 'commissionAgreementCode': string;
31
+ 'agreement': CommissionAgreementClass;
31
32
  /**
32
33
  * Unique identifier for the object.
33
34
  * @type {string}
@@ -40,12 +41,24 @@ export interface CommissionClass {
40
41
  * @memberof CommissionClass
41
42
  */
42
43
  'description': string;
44
+ /**
45
+ * The commission number for this commission
46
+ * @type {string}
47
+ * @memberof CommissionClass
48
+ */
49
+ 'commissionNumber': string;
43
50
  /**
44
51
  * The version identifier of the commission agreement being used for this commission
45
- * @type {number}
52
+ * @type {string}
53
+ * @memberof CommissionClass
54
+ */
55
+ 'commissionAgreementVersionCode': string;
56
+ /**
57
+ * The number of the commission agreement being used for this commission
58
+ * @type {string}
46
59
  * @memberof CommissionClass
47
60
  */
48
- 'commissionAgreementVersionId': number;
61
+ 'commissionAgreementNumber': string;
49
62
  /**
50
63
  * The unique code or identifier of the partner associated with this commission
51
64
  * @type {string}
@@ -58,6 +71,18 @@ export interface CommissionClass {
58
71
  * @memberof CommissionClass
59
72
  */
60
73
  'policyCode': string;
74
+ /**
75
+ * The unique number of the partner associated with this commission
76
+ * @type {string}
77
+ * @memberof CommissionClass
78
+ */
79
+ 'partnerNumber': string;
80
+ /**
81
+ * The unique number of the policy associated with this commission
82
+ * @type {string}
83
+ * @memberof CommissionClass
84
+ */
85
+ 'policyNumber': string;
61
86
  /**
62
87
  * The total monetary amount of the commission in the smallest currency unit (e.g., cents). This is the sum of all commission items
63
88
  * @type {number}
@@ -65,11 +90,17 @@ export interface CommissionClass {
65
90
  */
66
91
  'amount': number;
67
92
  /**
68
- * The status of the commission. Valid values: pending, settled
93
+ * The status of the commission. Valid values: draft, open, published, closed
69
94
  * @type {string}
70
95
  * @memberof CommissionClass
71
96
  */
72
97
  'status': string;
98
+ /**
99
+ * The code of the settlement this commission is associated with
100
+ * @type {string}
101
+ * @memberof CommissionClass
102
+ */
103
+ 'settlementCode'?: string;
73
104
  /**
74
105
  * Time at which the object was created.
75
106
  * @type {string}
@@ -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 CommissionConditionsDto
16
+ */
17
+ export interface CommissionConditionsDto {
18
+ /**
19
+ * If the commission is paid on the first year
20
+ * @type {boolean}
21
+ * @memberof CommissionConditionsDto
22
+ */
23
+ 'paidOnFirstYear'?: boolean;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CommissionService
6
+ * The EMIL CommissionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,63 @@
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 { CommissionConditionsDto } from './commission-conditions-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionConfigDto
17
+ */
18
+ export interface CommissionConfigDto {
19
+ /**
20
+ * Type of commission (e.g., sales, maintenance, other)
21
+ * @type {string}
22
+ * @memberof CommissionConfigDto
23
+ */
24
+ 'type': CommissionConfigDtoTypeEnum;
25
+ /**
26
+ * Mathematical expression to calculate commission (e.g., \'invoice.netAmount * 0.10\'). Always return value in cents.
27
+ * @type {string}
28
+ * @memberof CommissionConfigDto
29
+ */
30
+ 'expression': string;
31
+ /**
32
+ * Currency code (e.g., EUR, USD, GBP, CHF, PLN, AUD, CAD, DDK, HUF, NOK, SEK)
33
+ * @type {string}
34
+ * @memberof CommissionConfigDto
35
+ */
36
+ 'currency': CommissionConfigDtoCurrencyEnum;
37
+ /**
38
+ * Business rule conditions that determine commission calculation logic beyond the expression (e.g., payment timing, eligibility criteria, special conditions)
39
+ * @type {CommissionConditionsDto}
40
+ * @memberof CommissionConfigDto
41
+ */
42
+ 'conditions'?: CommissionConditionsDto;
43
+ }
44
+ export declare const CommissionConfigDtoTypeEnum: {
45
+ readonly Sales: "sales";
46
+ readonly Maintenance: "maintenance";
47
+ readonly Other: "other";
48
+ };
49
+ export type CommissionConfigDtoTypeEnum = typeof CommissionConfigDtoTypeEnum[keyof typeof CommissionConfigDtoTypeEnum];
50
+ export declare const CommissionConfigDtoCurrencyEnum: {
51
+ readonly Eur: "EUR";
52
+ readonly Usd: "USD";
53
+ readonly Gbp: "GBP";
54
+ readonly Chf: "CHF";
55
+ readonly Pln: "PLN";
56
+ readonly Aud: "AUD";
57
+ readonly Cad: "CAD";
58
+ readonly Ddk: "DDK";
59
+ readonly Huf: "HUF";
60
+ readonly Nok: "NOK";
61
+ readonly Sek: "SEK";
62
+ };
63
+ export type CommissionConfigDtoCurrencyEnum = typeof CommissionConfigDtoCurrencyEnum[keyof typeof CommissionConfigDtoCurrencyEnum];
@@ -0,0 +1,34 @@
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.CommissionConfigDtoCurrencyEnum = exports.CommissionConfigDtoTypeEnum = void 0;
17
+ exports.CommissionConfigDtoTypeEnum = {
18
+ Sales: 'sales',
19
+ Maintenance: 'maintenance',
20
+ Other: 'other'
21
+ };
22
+ exports.CommissionConfigDtoCurrencyEnum = {
23
+ Eur: 'EUR',
24
+ Usd: 'USD',
25
+ Gbp: 'GBP',
26
+ Chf: 'CHF',
27
+ Pln: 'PLN',
28
+ Aud: 'AUD',
29
+ Cad: 'CAD',
30
+ Ddk: 'DDK',
31
+ Huf: 'HUF',
32
+ Nok: 'NOK',
33
+ Sek: 'SEK'
34
+ };
@@ -0,0 +1,59 @@
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 CommissionEstimateClass
16
+ */
17
+ export interface CommissionEstimateClass {
18
+ /**
19
+ * The name of the commission estimate
20
+ * @type {string}
21
+ * @memberof CommissionEstimateClass
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * A detailed description of the commission estimate
26
+ * @type {string}
27
+ * @memberof CommissionEstimateClass
28
+ */
29
+ 'description': string;
30
+ /**
31
+ * The estimated commission amount in the smallest currency unit (e.g., cents)
32
+ * @type {number}
33
+ * @memberof CommissionEstimateClass
34
+ */
35
+ 'amount': number;
36
+ /**
37
+ * Type of commission. Valid values: sales, maintenance, other
38
+ * @type {string}
39
+ * @memberof CommissionEstimateClass
40
+ */
41
+ 'type': CommissionEstimateClassTypeEnum;
42
+ /**
43
+ * Commission group indicating whether this is for the first year or following years
44
+ * @type {string}
45
+ * @memberof CommissionEstimateClass
46
+ */
47
+ 'group': CommissionEstimateClassGroupEnum;
48
+ }
49
+ export declare const CommissionEstimateClassTypeEnum: {
50
+ readonly Sales: "sales";
51
+ readonly Maintenance: "maintenance";
52
+ readonly Other: "other";
53
+ };
54
+ export type CommissionEstimateClassTypeEnum = typeof CommissionEstimateClassTypeEnum[keyof typeof CommissionEstimateClassTypeEnum];
55
+ export declare const CommissionEstimateClassGroupEnum: {
56
+ readonly FirstYear: "firstYear";
57
+ readonly FollowingYears: "followingYears";
58
+ };
59
+ export type CommissionEstimateClassGroupEnum = typeof CommissionEstimateClassGroupEnum[keyof typeof CommissionEstimateClassGroupEnum];
@@ -0,0 +1,25 @@
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.CommissionEstimateClassGroupEnum = exports.CommissionEstimateClassTypeEnum = void 0;
17
+ exports.CommissionEstimateClassTypeEnum = {
18
+ Sales: 'sales',
19
+ Maintenance: 'maintenance',
20
+ Other: 'other'
21
+ };
22
+ exports.CommissionEstimateClassGroupEnum = {
23
+ FirstYear: 'firstYear',
24
+ FollowingYears: 'followingYears'
25
+ };