@emilgroup/commission-sdk-node 1.0.0-beta.1 → 1.0.0-beta.10

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 (111) hide show
  1. package/.openapi-generator/FILES +31 -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-agreement-versions-api.ts +67 -25
  6. package/api/commission-agreements-api.ts +55 -13
  7. package/api/commission-recipients-api.ts +697 -0
  8. package/api/commissions-api.ts +78 -22
  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-agreement-versions-api.d.ts +47 -20
  15. package/dist/api/commission-agreement-versions-api.js +38 -20
  16. package/dist/api/commission-agreements-api.d.ts +35 -8
  17. package/dist/api/commission-agreements-api.js +29 -11
  18. package/dist/api/commission-recipients-api.d.ts +393 -0
  19. package/dist/api/commission-recipients-api.js +648 -0
  20. package/dist/api/commissions-api.d.ts +53 -17
  21. package/dist/api/commissions-api.js +41 -17
  22. package/dist/api.d.ts +3 -0
  23. package/dist/api.js +3 -0
  24. package/dist/models/commission-agreement-product-class.d.ts +78 -0
  25. package/dist/models/commission-agreement-product-class.js +20 -0
  26. package/dist/models/commission-agreement-rule-class.d.ts +80 -0
  27. package/dist/models/commission-agreement-rule-class.js +21 -0
  28. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  29. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  30. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  31. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  32. package/dist/models/commission-conditions-dto.d.ts +24 -0
  33. package/dist/models/commission-conditions-dto.js +15 -0
  34. package/dist/models/commission-config-dto.d.ts +63 -0
  35. package/dist/models/commission-config-dto.js +34 -0
  36. package/dist/models/commission-recipient-class.d.ts +90 -0
  37. package/dist/models/commission-recipient-class.js +20 -0
  38. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  39. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  40. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  41. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  42. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
  43. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  44. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  45. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  46. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  47. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  48. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  49. package/dist/models/create-commission-recipient-response-class.js +15 -0
  50. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  51. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  52. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  53. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  54. package/dist/models/evaluated-commission-class.d.ts +54 -0
  55. package/dist/models/evaluated-commission-class.js +21 -0
  56. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  57. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  58. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  59. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  60. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  61. package/dist/models/get-commission-recipient-response-class.js +15 -0
  62. package/dist/models/index.d.ts +28 -0
  63. package/dist/models/index.js +28 -0
  64. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  65. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  66. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  67. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  68. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  69. package/dist/models/list-commission-recipients-response-class.js +15 -0
  70. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  71. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  72. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  73. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  74. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
  75. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  76. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  77. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  78. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  79. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  80. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  81. package/dist/models/update-commission-recipient-response-class.js +15 -0
  82. package/models/commission-agreement-product-class.ts +87 -0
  83. package/models/commission-agreement-rule-class.ts +89 -0
  84. package/models/commission-agreement-rule-config-dto.ts +31 -0
  85. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  86. package/models/commission-conditions-dto.ts +30 -0
  87. package/models/commission-config-dto.ts +73 -0
  88. package/models/commission-recipient-class.ts +99 -0
  89. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  90. package/models/create-commission-agreement-product-response-class.ts +31 -0
  91. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  92. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  93. package/models/create-commission-recipient-request-dto.ts +42 -0
  94. package/models/create-commission-recipient-response-class.ts +31 -0
  95. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  96. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  97. package/models/evaluated-commission-class.ts +63 -0
  98. package/models/get-commission-agreement-product-response-class.ts +31 -0
  99. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  100. package/models/get-commission-recipient-response-class.ts +31 -0
  101. package/models/index.ts +28 -0
  102. package/models/list-commission-agreement-products-response-class.ts +49 -0
  103. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  104. package/models/list-commission-recipients-response-class.ts +49 -0
  105. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  106. package/models/update-commission-agreement-product-response-class.ts +31 -0
  107. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  108. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  109. package/models/update-commission-recipient-request-dto.ts +48 -0
  110. package/models/update-commission-recipient-response-class.ts +31 -0
  111. package/package.json +1 -1
@@ -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 UpdateCommissionRecipientRequestDto
16
+ */
17
+ export interface UpdateCommissionRecipientRequestDto {
18
+ /**
19
+ * Unique code identifier for the commission recipient to update
20
+ * @type {string}
21
+ * @memberof UpdateCommissionRecipientRequestDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Updated human-readable display name for the commission recipient
26
+ * @type {string}
27
+ * @memberof UpdateCommissionRecipientRequestDto
28
+ */
29
+ 'displayName': string;
30
+ /**
31
+ * Updated unique code or identifier of the partner associated with this commission recipient
32
+ * @type {string}
33
+ * @memberof UpdateCommissionRecipientRequestDto
34
+ */
35
+ 'partnerCode': string;
36
+ /**
37
+ * Updated status of the commission recipient (e.g., pending, settled, active, inactive)
38
+ * @type {string}
39
+ * @memberof UpdateCommissionRecipientRequestDto
40
+ */
41
+ 'status': 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 { CommissionRecipientClass } from './commission-recipient-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateCommissionRecipientResponseClass
17
+ */
18
+ export interface UpdateCommissionRecipientResponseClass {
19
+ /**
20
+ * The commission recipient that was updated
21
+ * @type {CommissionRecipientClass}
22
+ * @memberof UpdateCommissionRecipientResponseClass
23
+ */
24
+ 'recipient'?: CommissionRecipientClass;
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,87 @@
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 { CommissionAgreementVersionClass } from './commission-agreement-version-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionAgreementProductClass
22
+ */
23
+ export interface CommissionAgreementProductClass {
24
+ /**
25
+ * Unique identifier for the commission agreement product
26
+ * @type {number}
27
+ * @memberof CommissionAgreementProductClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * The parent commission agreement version
32
+ * @type {CommissionAgreementVersionClass}
33
+ * @memberof CommissionAgreementProductClass
34
+ */
35
+ 'version': CommissionAgreementVersionClass;
36
+ /**
37
+ * Product slug identifier
38
+ * @type {string}
39
+ * @memberof CommissionAgreementProductClass
40
+ */
41
+ 'productSlug': string;
42
+ /**
43
+ * Unique code identifier for the commission agreement product, auto-generated on creation
44
+ * @type {string}
45
+ * @memberof CommissionAgreementProductClass
46
+ */
47
+ 'code': string;
48
+ /**
49
+ * Status of the commission agreement product
50
+ * @type {string}
51
+ * @memberof CommissionAgreementProductClass
52
+ */
53
+ 'status': CommissionAgreementProductClassStatusEnum;
54
+ /**
55
+ * Timestamp when the commission agreement product was created
56
+ * @type {string}
57
+ * @memberof CommissionAgreementProductClass
58
+ */
59
+ 'createdAt'?: string;
60
+ /**
61
+ * Timestamp when the commission agreement product was last updated
62
+ * @type {string}
63
+ * @memberof CommissionAgreementProductClass
64
+ */
65
+ 'updatedAt'?: string;
66
+ /**
67
+ * User identifier who created the commission agreement product
68
+ * @type {string}
69
+ * @memberof CommissionAgreementProductClass
70
+ */
71
+ 'createdBy'?: string;
72
+ /**
73
+ * User identifier who last updated the commission agreement product
74
+ * @type {string}
75
+ * @memberof CommissionAgreementProductClass
76
+ */
77
+ 'updatedBy'?: string;
78
+ }
79
+
80
+ export const CommissionAgreementProductClassStatusEnum = {
81
+ Active: 'active',
82
+ Inactive: 'inactive'
83
+ } as const;
84
+
85
+ export type CommissionAgreementProductClassStatusEnum = typeof CommissionAgreementProductClassStatusEnum[keyof typeof CommissionAgreementProductClassStatusEnum];
86
+
87
+
@@ -0,0 +1,89 @@
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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
17
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
18
+
19
+ /**
20
+ *
21
+ * @export
22
+ * @interface CommissionAgreementRuleClass
23
+ */
24
+ export interface CommissionAgreementRuleClass {
25
+ /**
26
+ * Unique identifier for the commission agreement rule
27
+ * @type {number}
28
+ * @memberof CommissionAgreementRuleClass
29
+ */
30
+ 'id': number;
31
+ /**
32
+ * The parent commission agreement version
33
+ * @type {CommissionAgreementVersionClass}
34
+ * @memberof CommissionAgreementRuleClass
35
+ */
36
+ 'version': CommissionAgreementVersionClass;
37
+ /**
38
+ * Unique code identifier for the commission agreement rule, auto-generated on creation
39
+ * @type {string}
40
+ * @memberof CommissionAgreementRuleClass
41
+ */
42
+ 'code': string;
43
+ /**
44
+ * Configuration object for the commission agreement rule
45
+ * @type {CommissionAgreementRuleConfigDto}
46
+ * @memberof CommissionAgreementRuleClass
47
+ */
48
+ 'config': CommissionAgreementRuleConfigDto;
49
+ /**
50
+ * Status of the commission agreement rule (e.g., active, inactive, draft)
51
+ * @type {string}
52
+ * @memberof CommissionAgreementRuleClass
53
+ */
54
+ 'status': CommissionAgreementRuleClassStatusEnum;
55
+ /**
56
+ * Timestamp when the commission agreement rule was created
57
+ * @type {string}
58
+ * @memberof CommissionAgreementRuleClass
59
+ */
60
+ 'createdAt'?: string;
61
+ /**
62
+ * Timestamp when the commission agreement rule was last updated
63
+ * @type {string}
64
+ * @memberof CommissionAgreementRuleClass
65
+ */
66
+ 'updatedAt'?: string;
67
+ /**
68
+ * User identifier who created the commission agreement rule
69
+ * @type {string}
70
+ * @memberof CommissionAgreementRuleClass
71
+ */
72
+ 'createdBy'?: string;
73
+ /**
74
+ * User identifier who last updated the commission agreement rule
75
+ * @type {string}
76
+ * @memberof CommissionAgreementRuleClass
77
+ */
78
+ 'updatedBy'?: string;
79
+ }
80
+
81
+ export const CommissionAgreementRuleClassStatusEnum = {
82
+ Active: 'active',
83
+ Inactive: 'inactive',
84
+ Draft: 'draft'
85
+ } as const;
86
+
87
+ export type CommissionAgreementRuleClassStatusEnum = typeof CommissionAgreementRuleClassStatusEnum[keyof typeof CommissionAgreementRuleClassStatusEnum];
88
+
89
+
@@ -0,0 +1,31 @@
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 { CommissionConfigDto } from './commission-config-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionAgreementRuleConfigDto
22
+ */
23
+ export interface CommissionAgreementRuleConfigDto {
24
+ /**
25
+ * Array of commission calculation rules
26
+ * @type {Array<CommissionConfigDto>}
27
+ * @memberof CommissionAgreementRuleConfigDto
28
+ */
29
+ 'commissions': Array<CommissionConfigDto>;
30
+ }
31
+
@@ -0,0 +1,37 @@
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 { EvaluatedCommissionClass } from './evaluated-commission-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionAgreementRuleEvaluationClass
22
+ */
23
+ export interface CommissionAgreementRuleEvaluationClass {
24
+ /**
25
+ * Premium amount in cents used for evaluation
26
+ * @type {number}
27
+ * @memberof CommissionAgreementRuleEvaluationClass
28
+ */
29
+ 'premiumAmount': number;
30
+ /**
31
+ * Array of evaluated commission results
32
+ * @type {Array<EvaluatedCommissionClass>}
33
+ * @memberof CommissionAgreementRuleEvaluationClass
34
+ */
35
+ 'commissions': Array<EvaluatedCommissionClass>;
36
+ }
37
+
@@ -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 CommissionConditionsDto
21
+ */
22
+ export interface CommissionConditionsDto {
23
+ /**
24
+ * If the commission is paid on the first year
25
+ * @type {boolean}
26
+ * @memberof CommissionConditionsDto
27
+ */
28
+ 'paidOnFirstYear'?: boolean;
29
+ }
30
+
@@ -0,0 +1,73 @@
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 { CommissionConditionsDto } from './commission-conditions-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionConfigDto
22
+ */
23
+ export interface CommissionConfigDto {
24
+ /**
25
+ * Type of commission (e.g., sales, maintenance, other)
26
+ * @type {string}
27
+ * @memberof CommissionConfigDto
28
+ */
29
+ 'type': CommissionConfigDtoTypeEnum;
30
+ /**
31
+ * Mathematical expression to calculate commission (e.g., \'invoice.totalNetto * 0.10\'). Always return value in cents.
32
+ * @type {string}
33
+ * @memberof CommissionConfigDto
34
+ */
35
+ 'expression': string;
36
+ /**
37
+ * Currency code (e.g., EUR, USD, GBP, CHF, PLN, AUD, CAD, DDK, HUF, NOK, SEK)
38
+ * @type {string}
39
+ * @memberof CommissionConfigDto
40
+ */
41
+ 'currency': CommissionConfigDtoCurrencyEnum;
42
+ /**
43
+ * Business rule conditions that determine commission calculation logic beyond the expression (e.g., payment timing, eligibility criteria, special conditions)
44
+ * @type {CommissionConditionsDto}
45
+ * @memberof CommissionConfigDto
46
+ */
47
+ 'conditions'?: CommissionConditionsDto;
48
+ }
49
+
50
+ export const CommissionConfigDtoTypeEnum = {
51
+ Sales: 'sales',
52
+ Maintenance: 'maintenance',
53
+ Other: 'other'
54
+ } as const;
55
+
56
+ export type CommissionConfigDtoTypeEnum = typeof CommissionConfigDtoTypeEnum[keyof typeof CommissionConfigDtoTypeEnum];
57
+ export const CommissionConfigDtoCurrencyEnum = {
58
+ Eur: 'EUR',
59
+ Usd: 'USD',
60
+ Gbp: 'GBP',
61
+ Chf: 'CHF',
62
+ Pln: 'PLN',
63
+ Aud: 'AUD',
64
+ Cad: 'CAD',
65
+ Ddk: 'DDK',
66
+ Huf: 'HUF',
67
+ Nok: 'NOK',
68
+ Sek: 'SEK'
69
+ } as const;
70
+
71
+ export type CommissionConfigDtoCurrencyEnum = typeof CommissionConfigDtoCurrencyEnum[keyof typeof CommissionConfigDtoCurrencyEnum];
72
+
73
+
@@ -0,0 +1,99 @@
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 { CommissionAgreementVersionClass } from './commission-agreement-version-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionRecipientClass
22
+ */
23
+ export interface CommissionRecipientClass {
24
+ /**
25
+ * Unique identifier for the commission recipient
26
+ * @type {number}
27
+ * @memberof CommissionRecipientClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * The commission agreement version associated with this commission recipient
32
+ * @type {CommissionAgreementVersionClass}
33
+ * @memberof CommissionRecipientClass
34
+ */
35
+ 'version'?: CommissionAgreementVersionClass;
36
+ /**
37
+ * The commission agreement version code associated with this commission recipient
38
+ * @type {string}
39
+ * @memberof CommissionRecipientClass
40
+ */
41
+ 'commissionAgreementVersionCode'?: string;
42
+ /**
43
+ * Unique code identifier for the commission recipient, auto-generated on creation
44
+ * @type {string}
45
+ * @memberof CommissionRecipientClass
46
+ */
47
+ 'code': string;
48
+ /**
49
+ * Human-readable display name for the commission recipient
50
+ * @type {string}
51
+ * @memberof CommissionRecipientClass
52
+ */
53
+ 'displayName': string;
54
+ /**
55
+ * The unique code or identifier of the partner associated with this commission recipient
56
+ * @type {string}
57
+ * @memberof CommissionRecipientClass
58
+ */
59
+ 'partnerCode': string;
60
+ /**
61
+ * Status of the commission recipient
62
+ * @type {string}
63
+ * @memberof CommissionRecipientClass
64
+ */
65
+ 'status': CommissionRecipientClassStatusEnum;
66
+ /**
67
+ * Timestamp when the commission recipient was created
68
+ * @type {string}
69
+ * @memberof CommissionRecipientClass
70
+ */
71
+ 'createdAt'?: string;
72
+ /**
73
+ * Timestamp when the commission recipient was last updated
74
+ * @type {string}
75
+ * @memberof CommissionRecipientClass
76
+ */
77
+ 'updatedAt'?: string;
78
+ /**
79
+ * User identifier who created the commission recipient
80
+ * @type {string}
81
+ * @memberof CommissionRecipientClass
82
+ */
83
+ 'createdBy'?: string;
84
+ /**
85
+ * User identifier who last updated the commission recipient
86
+ * @type {string}
87
+ * @memberof CommissionRecipientClass
88
+ */
89
+ 'updatedBy'?: string;
90
+ }
91
+
92
+ export const CommissionRecipientClassStatusEnum = {
93
+ Active: 'active',
94
+ Inactive: 'inactive'
95
+ } as const;
96
+
97
+ export type CommissionRecipientClassStatusEnum = typeof CommissionRecipientClassStatusEnum[keyof typeof CommissionRecipientClassStatusEnum];
98
+
99
+
@@ -0,0 +1,36 @@
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 CreateCommissionAgreementProductRequestDto
21
+ */
22
+ export interface CreateCommissionAgreementProductRequestDto {
23
+ /**
24
+ * Code of the parent commission agreement version to create a product for
25
+ * @type {string}
26
+ * @memberof CreateCommissionAgreementProductRequestDto
27
+ */
28
+ 'commissionAgreementVersionCode': string;
29
+ /**
30
+ * Product slug identifier
31
+ * @type {string}
32
+ * @memberof CreateCommissionAgreementProductRequestDto
33
+ */
34
+ 'productSlug': string;
35
+ }
36
+
@@ -0,0 +1,31 @@
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 { CommissionAgreementProductClass } from './commission-agreement-product-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementProductResponseClass
22
+ */
23
+ export interface CreateCommissionAgreementProductResponseClass {
24
+ /**
25
+ * The created commission agreement product object
26
+ * @type {CommissionAgreementProductClass}
27
+ * @memberof CreateCommissionAgreementProductResponseClass
28
+ */
29
+ 'product'?: CommissionAgreementProductClass;
30
+ }
31
+
@@ -0,0 +1,37 @@
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 { CommissionAgreementRuleConfigDto } from './commission-agreement-rule-config-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementRuleRequestDto
22
+ */
23
+ export interface CreateCommissionAgreementRuleRequestDto {
24
+ /**
25
+ * Code of the parent commission agreement version to create a rule for
26
+ * @type {string}
27
+ * @memberof CreateCommissionAgreementRuleRequestDto
28
+ */
29
+ 'commissionAgreementVersionCode': string;
30
+ /**
31
+ * Configuration object for the commission agreement rule
32
+ * @type {CommissionAgreementRuleConfigDto}
33
+ * @memberof CreateCommissionAgreementRuleRequestDto
34
+ */
35
+ 'config': CommissionAgreementRuleConfigDto;
36
+ }
37
+
@@ -0,0 +1,31 @@
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 { CommissionAgreementRuleClass } from './commission-agreement-rule-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementRuleResponseClass
22
+ */
23
+ export interface CreateCommissionAgreementRuleResponseClass {
24
+ /**
25
+ * The created commission agreement rule object
26
+ * @type {CommissionAgreementRuleClass}
27
+ * @memberof CreateCommissionAgreementRuleResponseClass
28
+ */
29
+ 'rule'?: CommissionAgreementRuleClass;
30
+ }
31
+