@emilgroup/commission-sdk 1.0.0-beta.1

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 (106) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/commission-agreement-versions-api.ts +531 -0
  6. package/api/commission-agreements-api.ts +638 -0
  7. package/api/commissions-api.ts +637 -0
  8. package/api/default-api.ts +124 -0
  9. package/api.ts +33 -0
  10. package/base.ts +331 -0
  11. package/common.ts +198 -0
  12. package/configuration.ts +110 -0
  13. package/dist/api/commission-agreement-versions-api.d.ts +300 -0
  14. package/dist/api/commission-agreement-versions-api.js +527 -0
  15. package/dist/api/commission-agreements-api.d.ts +357 -0
  16. package/dist/api/commission-agreements-api.js +620 -0
  17. package/dist/api/commissions-api.d.ts +357 -0
  18. package/dist/api/commissions-api.js +620 -0
  19. package/dist/api/default-api.d.ts +70 -0
  20. package/dist/api/default-api.js +200 -0
  21. package/dist/api.d.ts +15 -0
  22. package/dist/api.js +33 -0
  23. package/dist/base.d.ts +86 -0
  24. package/dist/base.js +367 -0
  25. package/dist/common.d.ts +91 -0
  26. package/dist/common.js +276 -0
  27. package/dist/configuration.d.ts +89 -0
  28. package/dist/configuration.js +52 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +36 -0
  31. package/dist/models/commission-agreement-class.d.ts +89 -0
  32. package/dist/models/commission-agreement-class.js +25 -0
  33. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  34. package/dist/models/commission-agreement-version-class.js +15 -0
  35. package/dist/models/commission-class.d.ts +103 -0
  36. package/dist/models/commission-class.js +15 -0
  37. package/dist/models/commission-item-class.d.ts +84 -0
  38. package/dist/models/commission-item-class.js +21 -0
  39. package/dist/models/create-commission-agreement-request-dto.d.ts +71 -0
  40. package/dist/models/create-commission-agreement-request-dto.js +25 -0
  41. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  42. package/dist/models/create-commission-agreement-response-class.js +15 -0
  43. package/dist/models/create-commission-agreement-version-request-dto.d.ts +42 -0
  44. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  45. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  46. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  47. package/dist/models/create-commission-item-request-dto.d.ts +48 -0
  48. package/dist/models/create-commission-item-request-dto.js +21 -0
  49. package/dist/models/create-commission-request-dto.d.ts +55 -0
  50. package/dist/models/create-commission-request-dto.js +15 -0
  51. package/dist/models/create-commission-response-class.d.ts +25 -0
  52. package/dist/models/create-commission-response-class.js +15 -0
  53. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  54. package/dist/models/get-commission-agreement-response-class.js +15 -0
  55. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  56. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  57. package/dist/models/get-commission-response-class.d.ts +25 -0
  58. package/dist/models/get-commission-response-class.js +15 -0
  59. package/dist/models/index.d.ts +23 -0
  60. package/dist/models/index.js +39 -0
  61. package/dist/models/inline-response200.d.ts +54 -0
  62. package/dist/models/inline-response200.js +15 -0
  63. package/dist/models/inline-response503.d.ts +54 -0
  64. package/dist/models/inline-response503.js +15 -0
  65. package/dist/models/list-commission-agreement-versions-response-class.d.ts +43 -0
  66. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  67. package/dist/models/list-commission-agreements-response-class.d.ts +43 -0
  68. package/dist/models/list-commission-agreements-response-class.js +15 -0
  69. package/dist/models/list-commissions-response-class.d.ts +43 -0
  70. package/dist/models/list-commissions-response-class.js +15 -0
  71. package/dist/models/update-commission-agreement-request-dto.d.ts +48 -0
  72. package/dist/models/update-commission-agreement-request-dto.js +21 -0
  73. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  74. package/dist/models/update-commission-agreement-response-class.js +15 -0
  75. package/dist/models/update-commission-request-dto.d.ts +53 -0
  76. package/dist/models/update-commission-request-dto.js +20 -0
  77. package/dist/models/update-commission-response-class.d.ts +25 -0
  78. package/dist/models/update-commission-response-class.js +15 -0
  79. package/git_push.sh +57 -0
  80. package/index.ts +19 -0
  81. package/models/commission-agreement-class.ts +99 -0
  82. package/models/commission-agreement-version-class.ts +85 -0
  83. package/models/commission-class.ts +109 -0
  84. package/models/commission-item-class.ts +93 -0
  85. package/models/create-commission-agreement-request-dto.ts +81 -0
  86. package/models/create-commission-agreement-response-class.ts +31 -0
  87. package/models/create-commission-agreement-version-request-dto.ts +48 -0
  88. package/models/create-commission-agreement-version-response-class.ts +31 -0
  89. package/models/create-commission-item-request-dto.ts +57 -0
  90. package/models/create-commission-request-dto.ts +61 -0
  91. package/models/create-commission-response-class.ts +31 -0
  92. package/models/get-commission-agreement-response-class.ts +31 -0
  93. package/models/get-commission-agreement-version-response-class.ts +31 -0
  94. package/models/get-commission-response-class.ts +31 -0
  95. package/models/index.ts +23 -0
  96. package/models/inline-response200.ts +48 -0
  97. package/models/inline-response503.ts +48 -0
  98. package/models/list-commission-agreement-versions-response-class.ts +49 -0
  99. package/models/list-commission-agreements-response-class.ts +49 -0
  100. package/models/list-commissions-response-class.ts +49 -0
  101. package/models/update-commission-agreement-request-dto.ts +57 -0
  102. package/models/update-commission-agreement-response-class.ts +31 -0
  103. package/models/update-commission-request-dto.ts +62 -0
  104. package/models/update-commission-response-class.ts +31 -0
  105. package/package.json +26 -0
  106. package/tsconfig.json +23 -0
@@ -0,0 +1,103 @@
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 { CommissionItemClass } from './commission-item-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionClass
17
+ */
18
+ export interface CommissionClass {
19
+ /**
20
+ * The unique database identifier of the commission
21
+ * @type {number}
22
+ * @memberof CommissionClass
23
+ */
24
+ 'id': number;
25
+ /**
26
+ * The unique code or identifier of the commission agreement this commission is based on
27
+ * @type {string}
28
+ * @memberof CommissionClass
29
+ */
30
+ 'commissionAgreementCode': string;
31
+ /**
32
+ * Unique identifier for the object.
33
+ * @type {string}
34
+ * @memberof CommissionClass
35
+ */
36
+ 'code': string;
37
+ /**
38
+ * A detailed description explaining what this commission represents and its purpose
39
+ * @type {string}
40
+ * @memberof CommissionClass
41
+ */
42
+ 'description': string;
43
+ /**
44
+ * The version identifier of the commission agreement being used for this commission
45
+ * @type {number}
46
+ * @memberof CommissionClass
47
+ */
48
+ 'commissionAgreementVersionId': number;
49
+ /**
50
+ * The unique code or identifier of the partner associated with this commission
51
+ * @type {string}
52
+ * @memberof CommissionClass
53
+ */
54
+ 'partnerCode': string;
55
+ /**
56
+ * The updated policy code or identifier of the policy associated with this commission
57
+ * @type {string}
58
+ * @memberof CommissionClass
59
+ */
60
+ 'policyCode': string;
61
+ /**
62
+ * The total monetary amount of the commission in the smallest currency unit (e.g., cents). This is the sum of all commission items
63
+ * @type {number}
64
+ * @memberof CommissionClass
65
+ */
66
+ 'amount': number;
67
+ /**
68
+ * The status of the commission. Valid values: pending, settled
69
+ * @type {string}
70
+ * @memberof CommissionClass
71
+ */
72
+ 'status': string;
73
+ /**
74
+ * Time at which the object was created.
75
+ * @type {string}
76
+ * @memberof CommissionClass
77
+ */
78
+ 'createdAt': string;
79
+ /**
80
+ * Time at which the object was updated.
81
+ * @type {string}
82
+ * @memberof CommissionClass
83
+ */
84
+ 'updatedAt': string;
85
+ /**
86
+ * Identifier of the user who created the record.
87
+ * @type {string}
88
+ * @memberof CommissionClass
89
+ */
90
+ 'createdBy': string;
91
+ /**
92
+ * Identifier of the user who last updated the record.
93
+ * @type {string}
94
+ * @memberof CommissionClass
95
+ */
96
+ 'updatedBy': string;
97
+ /**
98
+ * An array of commission items that make up this commission. Each item represents a specific commission component with its own amount, type
99
+ * @type {Array<CommissionItemClass>}
100
+ * @memberof CommissionClass
101
+ */
102
+ 'items': Array<CommissionItemClass>;
103
+ }
@@ -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,84 @@
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 CommissionItemClass
16
+ */
17
+ export interface CommissionItemClass {
18
+ /**
19
+ * The unique database identifier of the commission item
20
+ * @type {number}
21
+ * @memberof CommissionItemClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * The unique identifier of the parent commission this item belongs to
26
+ * @type {number}
27
+ * @memberof CommissionItemClass
28
+ */
29
+ 'commissionId': number;
30
+ /**
31
+ * The name or title of the commission item
32
+ * @type {string}
33
+ * @memberof CommissionItemClass
34
+ */
35
+ 'name': string;
36
+ /**
37
+ * A detailed description explaining what this commission item represents
38
+ * @type {string}
39
+ * @memberof CommissionItemClass
40
+ */
41
+ 'description': string;
42
+ /**
43
+ * The monetary amount of the commission item in the smallest currency unit (e.g., cents)
44
+ * @type {number}
45
+ * @memberof CommissionItemClass
46
+ */
47
+ 'amount': number;
48
+ /**
49
+ * The type of commission item. Valid values: \'sales\', \'maintenance\', \'other\'
50
+ * @type {string}
51
+ * @memberof CommissionItemClass
52
+ */
53
+ 'type': CommissionItemClassTypeEnum;
54
+ /**
55
+ * Time at which the object was created.
56
+ * @type {string}
57
+ * @memberof CommissionItemClass
58
+ */
59
+ 'createdAt': string;
60
+ /**
61
+ * Time at which the object was updated.
62
+ * @type {string}
63
+ * @memberof CommissionItemClass
64
+ */
65
+ 'updatedAt': string;
66
+ /**
67
+ * Identifier of the user who created the record.
68
+ * @type {string}
69
+ * @memberof CommissionItemClass
70
+ */
71
+ 'createdBy': string;
72
+ /**
73
+ * Identifier of the user who last updated the record.
74
+ * @type {string}
75
+ * @memberof CommissionItemClass
76
+ */
77
+ 'updatedBy': string;
78
+ }
79
+ export declare const CommissionItemClassTypeEnum: {
80
+ readonly Sales: "sales";
81
+ readonly Maintenance: "maintenance";
82
+ readonly Other: "other";
83
+ };
84
+ export type CommissionItemClassTypeEnum = typeof CommissionItemClassTypeEnum[keyof typeof CommissionItemClassTypeEnum];
@@ -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.CommissionItemClassTypeEnum = void 0;
17
+ exports.CommissionItemClassTypeEnum = {
18
+ Sales: 'sales',
19
+ Maintenance: 'maintenance',
20
+ Other: 'other'
21
+ };
@@ -0,0 +1,71 @@
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 CreateCommissionAgreementRequestDto
16
+ */
17
+ export interface CreateCommissionAgreementRequestDto {
18
+ /**
19
+ * Human-readable name of the commission agreement
20
+ * @type {string}
21
+ * @memberof CreateCommissionAgreementRequestDto
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * Frequency at which commissions are billed (e.g., monthly, quarterly, annually)
26
+ * @type {string}
27
+ * @memberof CreateCommissionAgreementRequestDto
28
+ */
29
+ 'billingFrequency': CreateCommissionAgreementRequestDtoBillingFrequencyEnum;
30
+ /**
31
+ * Current status of the commission agreement (e.g., active, inactive)
32
+ * @type {string}
33
+ * @memberof CreateCommissionAgreementRequestDto
34
+ */
35
+ 'status': CreateCommissionAgreementRequestDtoStatusEnum;
36
+ /**
37
+ * Array of product slugs that this commission agreement applies to
38
+ * @type {Array<string>}
39
+ * @memberof CreateCommissionAgreementRequestDto
40
+ */
41
+ 'productSlugs': Array<string>;
42
+ /**
43
+ * Detailed description of the commission agreement terms and conditions
44
+ * @type {string}
45
+ * @memberof CreateCommissionAgreementRequestDto
46
+ */
47
+ 'description'?: string;
48
+ /**
49
+ * Start date when the commission agreement becomes effective
50
+ * @type {string}
51
+ * @memberof CreateCommissionAgreementRequestDto
52
+ */
53
+ 'startDate'?: string;
54
+ /**
55
+ * End date when the commission agreement expires or is terminated
56
+ * @type {string}
57
+ * @memberof CreateCommissionAgreementRequestDto
58
+ */
59
+ 'endDate'?: string;
60
+ }
61
+ export declare const CreateCommissionAgreementRequestDtoBillingFrequencyEnum: {
62
+ readonly Monthly: "monthly";
63
+ readonly Quarterly: "quarterly";
64
+ readonly Yearly: "yearly";
65
+ };
66
+ export type CreateCommissionAgreementRequestDtoBillingFrequencyEnum = typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum[keyof typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum];
67
+ export declare const CreateCommissionAgreementRequestDtoStatusEnum: {
68
+ readonly Active: "active";
69
+ readonly Inactive: "inactive";
70
+ };
71
+ export type CreateCommissionAgreementRequestDtoStatusEnum = typeof CreateCommissionAgreementRequestDtoStatusEnum[keyof typeof CreateCommissionAgreementRequestDtoStatusEnum];
@@ -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.CreateCommissionAgreementRequestDtoStatusEnum = exports.CreateCommissionAgreementRequestDtoBillingFrequencyEnum = void 0;
17
+ exports.CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
18
+ Monthly: 'monthly',
19
+ Quarterly: 'quarterly',
20
+ Yearly: 'yearly'
21
+ };
22
+ exports.CreateCommissionAgreementRequestDtoStatusEnum = {
23
+ Active: 'active',
24
+ Inactive: 'inactive'
25
+ };
@@ -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 { CommissionAgreementClass } from './commission-agreement-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionAgreementResponseClass
17
+ */
18
+ export interface CreateCommissionAgreementResponseClass {
19
+ /**
20
+ * The created commission agreement object
21
+ * @type {CommissionAgreementClass}
22
+ * @memberof CreateCommissionAgreementResponseClass
23
+ */
24
+ 'commissionAgreement'?: CommissionAgreementClass;
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,42 @@
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 CreateCommissionAgreementVersionRequestDto
16
+ */
17
+ export interface CreateCommissionAgreementVersionRequestDto {
18
+ /**
19
+ * Code of the parent commission agreement to create a version for
20
+ * @type {string}
21
+ * @memberof CreateCommissionAgreementVersionRequestDto
22
+ */
23
+ 'commissionAgreementCode': string;
24
+ /**
25
+ * Start date when this version of the commission agreement becomes effective
26
+ * @type {string}
27
+ * @memberof CreateCommissionAgreementVersionRequestDto
28
+ */
29
+ 'startDate'?: string;
30
+ /**
31
+ * End date when this version of the commission agreement expires
32
+ * @type {string}
33
+ * @memberof CreateCommissionAgreementVersionRequestDto
34
+ */
35
+ 'endDate'?: string;
36
+ /**
37
+ * Description explaining what changed in this version or version notes
38
+ * @type {string}
39
+ * @memberof CreateCommissionAgreementVersionRequestDto
40
+ */
41
+ 'versionDescription'?: string;
42
+ }
@@ -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,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 { CommissionAgreementVersionClass } from './commission-agreement-version-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionAgreementVersionResponseClass
17
+ */
18
+ export interface CreateCommissionAgreementVersionResponseClass {
19
+ /**
20
+ * The created commission agreement version object
21
+ * @type {CommissionAgreementVersionClass}
22
+ * @memberof CreateCommissionAgreementVersionResponseClass
23
+ */
24
+ 'version'?: CommissionAgreementVersionClass;
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,48 @@
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 CreateCommissionItemRequestDto
16
+ */
17
+ export interface CreateCommissionItemRequestDto {
18
+ /**
19
+ * The name or title of the commission item
20
+ * @type {string}
21
+ * @memberof CreateCommissionItemRequestDto
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * A detailed description explaining what this commission item represents
26
+ * @type {string}
27
+ * @memberof CreateCommissionItemRequestDto
28
+ */
29
+ 'description': string;
30
+ /**
31
+ * The monetary amount of the commission item in the smallest currency unit (e.g., cents)
32
+ * @type {number}
33
+ * @memberof CreateCommissionItemRequestDto
34
+ */
35
+ 'amount': number;
36
+ /**
37
+ * The type of commission item. Valid values: sales, maintenance, other
38
+ * @type {string}
39
+ * @memberof CreateCommissionItemRequestDto
40
+ */
41
+ 'type': CreateCommissionItemRequestDtoTypeEnum;
42
+ }
43
+ export declare const CreateCommissionItemRequestDtoTypeEnum: {
44
+ readonly Sales: "sales";
45
+ readonly Maintenance: "maintenance";
46
+ readonly Other: "other";
47
+ };
48
+ export type CreateCommissionItemRequestDtoTypeEnum = typeof CreateCommissionItemRequestDtoTypeEnum[keyof typeof CreateCommissionItemRequestDtoTypeEnum];
@@ -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.CreateCommissionItemRequestDtoTypeEnum = void 0;
17
+ exports.CreateCommissionItemRequestDtoTypeEnum = {
18
+ Sales: 'sales',
19
+ Maintenance: 'maintenance',
20
+ Other: 'other'
21
+ };
@@ -0,0 +1,55 @@
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 { CreateCommissionItemRequestDto } from './create-commission-item-request-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionRequestDto
17
+ */
18
+ export interface CreateCommissionRequestDto {
19
+ /**
20
+ * The unique code or identifier of the commission agreement this commission is based on
21
+ * @type {string}
22
+ * @memberof CreateCommissionRequestDto
23
+ */
24
+ 'commissionAgreementCode': string;
25
+ /**
26
+ * A detailed description explaining what this commission represents and its purpose
27
+ * @type {string}
28
+ * @memberof CreateCommissionRequestDto
29
+ */
30
+ 'description': string;
31
+ /**
32
+ * The version identifier of the commission agreement being used for this commission
33
+ * @type {number}
34
+ * @memberof CreateCommissionRequestDto
35
+ */
36
+ 'commissionAgreementVersionId': number;
37
+ /**
38
+ * The unique code or identifier of the partner associated with this commission
39
+ * @type {string}
40
+ * @memberof CreateCommissionRequestDto
41
+ */
42
+ 'partnerCode': string;
43
+ /**
44
+ * The policy code or identifier of the policy associated with this commission
45
+ * @type {string}
46
+ * @memberof CreateCommissionRequestDto
47
+ */
48
+ 'policyCode': string;
49
+ /**
50
+ * An array of commission items that make up this commission. Each item represents a specific commission component with its own amount, type
51
+ * @type {Array<CreateCommissionItemRequestDto>}
52
+ * @memberof CreateCommissionRequestDto
53
+ */
54
+ 'items': Array<CreateCommissionItemRequestDto>;
55
+ }
@@ -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,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 { CommissionClass } from './commission-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionResponseClass
17
+ */
18
+ export interface CreateCommissionResponseClass {
19
+ /**
20
+ * The commission that was created
21
+ * @type {CommissionClass}
22
+ * @memberof CreateCommissionResponseClass
23
+ */
24
+ 'commission'?: CommissionClass;
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,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 { CommissionAgreementClass } from './commission-agreement-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCommissionAgreementResponseClass
17
+ */
18
+ export interface GetCommissionAgreementResponseClass {
19
+ /**
20
+ * The requested commission agreement object
21
+ * @type {CommissionAgreementClass}
22
+ * @memberof GetCommissionAgreementResponseClass
23
+ */
24
+ 'commissionAgreement'?: CommissionAgreementClass;
25
+ }