@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,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.UpdateCommissionRequestDtoStatusEnum = void 0;
17
+ exports.UpdateCommissionRequestDtoStatusEnum = {
18
+ Pending: 'pending',
19
+ Settled: 'settled'
20
+ };
@@ -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 UpdateCommissionResponseClass
17
+ */
18
+ export interface UpdateCommissionResponseClass {
19
+ /**
20
+ * The commission that was updated
21
+ * @type {CommissionClass}
22
+ * @memberof UpdateCommissionResponseClass
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 });
package/git_push.sh ADDED
@@ -0,0 +1,57 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="Emil"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="commission-sdk"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=$(git remote)
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
package/index.ts ADDED
@@ -0,0 +1,19 @@
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
+ export { Environment, BaseAPI } from "./base";
17
+ export * from "./api";
18
+ export * from "./configuration";
19
+ export * from "./models";
@@ -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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface CommissionAgreementClass
21
+ */
22
+ export interface CommissionAgreementClass {
23
+ /**
24
+ * Unique identifier for the commission agreement
25
+ * @type {number}
26
+ * @memberof CommissionAgreementClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * Human-readable name of the commission agreement
31
+ * @type {string}
32
+ * @memberof CommissionAgreementClass
33
+ */
34
+ 'name': string;
35
+ /**
36
+ * Unique code identifier for the commission agreement, auto-generated on creation
37
+ * @type {string}
38
+ * @memberof CommissionAgreementClass
39
+ */
40
+ 'code': string;
41
+ /**
42
+ * Current status of the commission agreement (e.g., active, inactive)
43
+ * @type {string}
44
+ * @memberof CommissionAgreementClass
45
+ */
46
+ 'status': CommissionAgreementClassStatusEnum;
47
+ /**
48
+ * Detailed description of the commission agreement terms and conditions
49
+ * @type {string}
50
+ * @memberof CommissionAgreementClass
51
+ */
52
+ 'description'?: string;
53
+ /**
54
+ * Frequency at which commissions are billed (e.g., monthly, quarterly, yearly)
55
+ * @type {string}
56
+ * @memberof CommissionAgreementClass
57
+ */
58
+ 'billingFrequency'?: CommissionAgreementClassBillingFrequencyEnum;
59
+ /**
60
+ * Timestamp when the commission agreement was created
61
+ * @type {string}
62
+ * @memberof CommissionAgreementClass
63
+ */
64
+ 'createdAt'?: string;
65
+ /**
66
+ * Timestamp when the commission agreement was last updated
67
+ * @type {string}
68
+ * @memberof CommissionAgreementClass
69
+ */
70
+ 'updatedAt'?: string;
71
+ /**
72
+ * User identifier who created the commission agreement
73
+ * @type {string}
74
+ * @memberof CommissionAgreementClass
75
+ */
76
+ 'createdBy'?: string;
77
+ /**
78
+ * User identifier who last updated the commission agreement
79
+ * @type {string}
80
+ * @memberof CommissionAgreementClass
81
+ */
82
+ 'updatedBy'?: string;
83
+ }
84
+
85
+ export const CommissionAgreementClassStatusEnum = {
86
+ Active: 'active',
87
+ Inactive: 'inactive'
88
+ } as const;
89
+
90
+ export type CommissionAgreementClassStatusEnum = typeof CommissionAgreementClassStatusEnum[keyof typeof CommissionAgreementClassStatusEnum];
91
+ export const CommissionAgreementClassBillingFrequencyEnum = {
92
+ Monthly: 'monthly',
93
+ Quarterly: 'quarterly',
94
+ Yearly: 'yearly'
95
+ } as const;
96
+
97
+ export type CommissionAgreementClassBillingFrequencyEnum = typeof CommissionAgreementClassBillingFrequencyEnum[keyof typeof CommissionAgreementClassBillingFrequencyEnum];
98
+
99
+
@@ -0,0 +1,85 @@
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 { CommissionAgreementClass } from './commission-agreement-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionAgreementVersionClass
22
+ */
23
+ export interface CommissionAgreementVersionClass {
24
+ /**
25
+ * Unique identifier for the commission agreement version
26
+ * @type {number}
27
+ * @memberof CommissionAgreementVersionClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * The parent commission agreement
32
+ * @type {CommissionAgreementClass}
33
+ * @memberof CommissionAgreementVersionClass
34
+ */
35
+ 'agreement': CommissionAgreementClass;
36
+ /**
37
+ * Unique code identifier for the commission agreement version, auto-generated on creation
38
+ * @type {string}
39
+ * @memberof CommissionAgreementVersionClass
40
+ */
41
+ 'code': string;
42
+ /**
43
+ * Start date when this version of the commission agreement becomes effective
44
+ * @type {string}
45
+ * @memberof CommissionAgreementVersionClass
46
+ */
47
+ 'startDate'?: string;
48
+ /**
49
+ * End date when this version of the commission agreement expires
50
+ * @type {string}
51
+ * @memberof CommissionAgreementVersionClass
52
+ */
53
+ 'endDate'?: string;
54
+ /**
55
+ * Description explaining what changed in this version or version notes
56
+ * @type {string}
57
+ * @memberof CommissionAgreementVersionClass
58
+ */
59
+ 'versionDescription'?: string;
60
+ /**
61
+ * Timestamp when the commission agreement version was created
62
+ * @type {string}
63
+ * @memberof CommissionAgreementVersionClass
64
+ */
65
+ 'createdAt'?: string;
66
+ /**
67
+ * Timestamp when the commission agreement version was last updated
68
+ * @type {string}
69
+ * @memberof CommissionAgreementVersionClass
70
+ */
71
+ 'updatedAt'?: string;
72
+ /**
73
+ * User identifier who created the commission agreement version
74
+ * @type {string}
75
+ * @memberof CommissionAgreementVersionClass
76
+ */
77
+ 'createdBy'?: string;
78
+ /**
79
+ * User identifier who last updated the commission agreement version
80
+ * @type {string}
81
+ * @memberof CommissionAgreementVersionClass
82
+ */
83
+ 'updatedBy'?: string;
84
+ }
85
+
@@ -0,0 +1,109 @@
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 { CommissionItemClass } from './commission-item-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CommissionClass
22
+ */
23
+ export interface CommissionClass {
24
+ /**
25
+ * The unique database identifier of the commission
26
+ * @type {number}
27
+ * @memberof CommissionClass
28
+ */
29
+ 'id': number;
30
+ /**
31
+ * The unique code or identifier of the commission agreement this commission is based on
32
+ * @type {string}
33
+ * @memberof CommissionClass
34
+ */
35
+ 'commissionAgreementCode': string;
36
+ /**
37
+ * Unique identifier for the object.
38
+ * @type {string}
39
+ * @memberof CommissionClass
40
+ */
41
+ 'code': string;
42
+ /**
43
+ * A detailed description explaining what this commission represents and its purpose
44
+ * @type {string}
45
+ * @memberof CommissionClass
46
+ */
47
+ 'description': string;
48
+ /**
49
+ * The version identifier of the commission agreement being used for this commission
50
+ * @type {number}
51
+ * @memberof CommissionClass
52
+ */
53
+ 'commissionAgreementVersionId': number;
54
+ /**
55
+ * The unique code or identifier of the partner associated with this commission
56
+ * @type {string}
57
+ * @memberof CommissionClass
58
+ */
59
+ 'partnerCode': string;
60
+ /**
61
+ * The updated policy code or identifier of the policy associated with this commission
62
+ * @type {string}
63
+ * @memberof CommissionClass
64
+ */
65
+ 'policyCode': string;
66
+ /**
67
+ * The total monetary amount of the commission in the smallest currency unit (e.g., cents). This is the sum of all commission items
68
+ * @type {number}
69
+ * @memberof CommissionClass
70
+ */
71
+ 'amount': number;
72
+ /**
73
+ * The status of the commission. Valid values: pending, settled
74
+ * @type {string}
75
+ * @memberof CommissionClass
76
+ */
77
+ 'status': string;
78
+ /**
79
+ * Time at which the object was created.
80
+ * @type {string}
81
+ * @memberof CommissionClass
82
+ */
83
+ 'createdAt': string;
84
+ /**
85
+ * Time at which the object was updated.
86
+ * @type {string}
87
+ * @memberof CommissionClass
88
+ */
89
+ 'updatedAt': string;
90
+ /**
91
+ * Identifier of the user who created the record.
92
+ * @type {string}
93
+ * @memberof CommissionClass
94
+ */
95
+ 'createdBy': string;
96
+ /**
97
+ * Identifier of the user who last updated the record.
98
+ * @type {string}
99
+ * @memberof CommissionClass
100
+ */
101
+ 'updatedBy': string;
102
+ /**
103
+ * An array of commission items that make up this commission. Each item represents a specific commission component with its own amount, type
104
+ * @type {Array<CommissionItemClass>}
105
+ * @memberof CommissionClass
106
+ */
107
+ 'items': Array<CommissionItemClass>;
108
+ }
109
+
@@ -0,0 +1,93 @@
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 CommissionItemClass
21
+ */
22
+ export interface CommissionItemClass {
23
+ /**
24
+ * The unique database identifier of the commission item
25
+ * @type {number}
26
+ * @memberof CommissionItemClass
27
+ */
28
+ 'id': number;
29
+ /**
30
+ * The unique identifier of the parent commission this item belongs to
31
+ * @type {number}
32
+ * @memberof CommissionItemClass
33
+ */
34
+ 'commissionId': number;
35
+ /**
36
+ * The name or title of the commission item
37
+ * @type {string}
38
+ * @memberof CommissionItemClass
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * A detailed description explaining what this commission item represents
43
+ * @type {string}
44
+ * @memberof CommissionItemClass
45
+ */
46
+ 'description': string;
47
+ /**
48
+ * The monetary amount of the commission item in the smallest currency unit (e.g., cents)
49
+ * @type {number}
50
+ * @memberof CommissionItemClass
51
+ */
52
+ 'amount': number;
53
+ /**
54
+ * The type of commission item. Valid values: \'sales\', \'maintenance\', \'other\'
55
+ * @type {string}
56
+ * @memberof CommissionItemClass
57
+ */
58
+ 'type': CommissionItemClassTypeEnum;
59
+ /**
60
+ * Time at which the object was created.
61
+ * @type {string}
62
+ * @memberof CommissionItemClass
63
+ */
64
+ 'createdAt': string;
65
+ /**
66
+ * Time at which the object was updated.
67
+ * @type {string}
68
+ * @memberof CommissionItemClass
69
+ */
70
+ 'updatedAt': string;
71
+ /**
72
+ * Identifier of the user who created the record.
73
+ * @type {string}
74
+ * @memberof CommissionItemClass
75
+ */
76
+ 'createdBy': string;
77
+ /**
78
+ * Identifier of the user who last updated the record.
79
+ * @type {string}
80
+ * @memberof CommissionItemClass
81
+ */
82
+ 'updatedBy': string;
83
+ }
84
+
85
+ export const CommissionItemClassTypeEnum = {
86
+ Sales: 'sales',
87
+ Maintenance: 'maintenance',
88
+ Other: 'other'
89
+ } as const;
90
+
91
+ export type CommissionItemClassTypeEnum = typeof CommissionItemClassTypeEnum[keyof typeof CommissionItemClassTypeEnum];
92
+
93
+
@@ -0,0 +1,81 @@
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 CreateCommissionAgreementRequestDto
21
+ */
22
+ export interface CreateCommissionAgreementRequestDto {
23
+ /**
24
+ * Human-readable name of the commission agreement
25
+ * @type {string}
26
+ * @memberof CreateCommissionAgreementRequestDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Frequency at which commissions are billed (e.g., monthly, quarterly, annually)
31
+ * @type {string}
32
+ * @memberof CreateCommissionAgreementRequestDto
33
+ */
34
+ 'billingFrequency': CreateCommissionAgreementRequestDtoBillingFrequencyEnum;
35
+ /**
36
+ * Current status of the commission agreement (e.g., active, inactive)
37
+ * @type {string}
38
+ * @memberof CreateCommissionAgreementRequestDto
39
+ */
40
+ 'status': CreateCommissionAgreementRequestDtoStatusEnum;
41
+ /**
42
+ * Array of product slugs that this commission agreement applies to
43
+ * @type {Array<string>}
44
+ * @memberof CreateCommissionAgreementRequestDto
45
+ */
46
+ 'productSlugs': Array<string>;
47
+ /**
48
+ * Detailed description of the commission agreement terms and conditions
49
+ * @type {string}
50
+ * @memberof CreateCommissionAgreementRequestDto
51
+ */
52
+ 'description'?: string;
53
+ /**
54
+ * Start date when the commission agreement becomes effective
55
+ * @type {string}
56
+ * @memberof CreateCommissionAgreementRequestDto
57
+ */
58
+ 'startDate'?: string;
59
+ /**
60
+ * End date when the commission agreement expires or is terminated
61
+ * @type {string}
62
+ * @memberof CreateCommissionAgreementRequestDto
63
+ */
64
+ 'endDate'?: string;
65
+ }
66
+
67
+ export const CreateCommissionAgreementRequestDtoBillingFrequencyEnum = {
68
+ Monthly: 'monthly',
69
+ Quarterly: 'quarterly',
70
+ Yearly: 'yearly'
71
+ } as const;
72
+
73
+ export type CreateCommissionAgreementRequestDtoBillingFrequencyEnum = typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum[keyof typeof CreateCommissionAgreementRequestDtoBillingFrequencyEnum];
74
+ export const CreateCommissionAgreementRequestDtoStatusEnum = {
75
+ Active: 'active',
76
+ Inactive: 'inactive'
77
+ } as const;
78
+
79
+ export type CreateCommissionAgreementRequestDtoStatusEnum = typeof CreateCommissionAgreementRequestDtoStatusEnum[keyof typeof CreateCommissionAgreementRequestDtoStatusEnum];
80
+
81
+
@@ -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 { CommissionAgreementClass } from './commission-agreement-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateCommissionAgreementResponseClass
22
+ */
23
+ export interface CreateCommissionAgreementResponseClass {
24
+ /**
25
+ * The created commission agreement object
26
+ * @type {CommissionAgreementClass}
27
+ * @memberof CreateCommissionAgreementResponseClass
28
+ */
29
+ 'commissionAgreement'?: CommissionAgreementClass;
30
+ }
31
+
@@ -0,0 +1,48 @@
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 CreateCommissionAgreementVersionRequestDto
21
+ */
22
+ export interface CreateCommissionAgreementVersionRequestDto {
23
+ /**
24
+ * Code of the parent commission agreement to create a version for
25
+ * @type {string}
26
+ * @memberof CreateCommissionAgreementVersionRequestDto
27
+ */
28
+ 'commissionAgreementCode': string;
29
+ /**
30
+ * Start date when this version of the commission agreement becomes effective
31
+ * @type {string}
32
+ * @memberof CreateCommissionAgreementVersionRequestDto
33
+ */
34
+ 'startDate'?: string;
35
+ /**
36
+ * End date when this version of the commission agreement expires
37
+ * @type {string}
38
+ * @memberof CreateCommissionAgreementVersionRequestDto
39
+ */
40
+ 'endDate'?: string;
41
+ /**
42
+ * Description explaining what changed in this version or version notes
43
+ * @type {string}
44
+ * @memberof CreateCommissionAgreementVersionRequestDto
45
+ */
46
+ 'versionDescription'?: string;
47
+ }
48
+