@emilgroup/commission-sdk 1.0.0-beta.37 → 1.0.0-beta.38

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.
@@ -27,6 +27,7 @@ models/commission-agreement-version-class.ts
27
27
  models/commission-class.ts
28
28
  models/commission-conditions-dto.ts
29
29
  models/commission-config-dto.ts
30
+ models/commission-estimate-class.ts
30
31
  models/commission-item-class.ts
31
32
  models/commission-recipient-class.ts
32
33
  models/commission-settlement-class.ts
@@ -45,6 +46,7 @@ models/create-commission-request-dto.ts
45
46
  models/create-commission-response-class.ts
46
47
  models/create-commission-settlement-request-dto.ts
47
48
  models/create-commission-settlement-response-class.ts
49
+ models/estimate-commissions-response-class.ts
48
50
  models/evaluate-commission-agreement-rule-request-dto.ts
49
51
  models/evaluate-commission-agreement-rule-response-class.ts
50
52
  models/evaluated-commission-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/commission-sdk@1.0.0-beta.37 --save
20
+ npm install @emilgroup/commission-sdk@1.0.0-beta.38 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk@1.0.0-beta.37
24
+ yarn add @emilgroup/commission-sdk@1.0.0-beta.38
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -25,6 +25,8 @@ import { CreateCommissionRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateCommissionResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { EstimateCommissionsResponseClass } from '../models';
29
+ // @ts-ignore
28
30
  import { GetCommissionResponseClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { ListCommissionsResponseClass } from '../models';
@@ -121,6 +123,51 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
121
123
 
122
124
 
123
125
 
126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
129
+
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ * This will estimate commissions for a given policy.
137
+ * @summary Retrieve the estimate commissions
138
+ * @param {string} policyCode Unique identifier for the object.
139
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ estimateCommission: async (policyCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'policyCode' is not null or undefined
145
+ assertParamExists('estimateCommission', 'policyCode', policyCode)
146
+ const localVarPath = `/commissionservice/v1/commissions/estimate/{policyCode}`
147
+ .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
150
+ let baseOptions;
151
+ let baseAccessToken;
152
+ if (configuration) {
153
+ baseOptions = configuration.baseOptions;
154
+ baseAccessToken = configuration.accessToken;
155
+ }
156
+
157
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
158
+ const localVarHeaderParameter = {} as any;
159
+ const localVarQueryParameter = {} as any;
160
+
161
+ // authentication bearer required
162
+ // http bearer authentication required
163
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
164
+
165
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
166
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
167
+ }
168
+
169
+
170
+
124
171
  setSearchParams(localVarUrlObj, localVarQueryParameter);
125
172
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
173
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -343,6 +390,18 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
343
390
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommission(code, authorization, options);
344
391
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
392
  },
393
+ /**
394
+ * This will estimate commissions for a given policy.
395
+ * @summary Retrieve the estimate commissions
396
+ * @param {string} policyCode Unique identifier for the object.
397
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ async estimateCommission(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>> {
402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(policyCode, authorization, options);
403
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
404
+ },
346
405
  /**
347
406
  * This will get commission.
348
407
  * @summary Retrieve the commission
@@ -419,6 +478,17 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
419
478
  deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void> {
420
479
  return localVarFp.deleteCommission(code, authorization, options).then((request) => request(axios, basePath));
421
480
  },
481
+ /**
482
+ * This will estimate commissions for a given policy.
483
+ * @summary Retrieve the estimate commissions
484
+ * @param {string} policyCode Unique identifier for the object.
485
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
486
+ * @param {*} [options] Override http request option.
487
+ * @throws {RequiredError}
488
+ */
489
+ estimateCommission(policyCode: string, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
490
+ return localVarFp.estimateCommission(policyCode, authorization, options).then((request) => request(axios, basePath));
491
+ },
422
492
  /**
423
493
  * This will get commission.
424
494
  * @summary Retrieve the commission
@@ -505,6 +575,27 @@ export interface CommissionsApiDeleteCommissionRequest {
505
575
  readonly authorization?: string
506
576
  }
507
577
 
578
+ /**
579
+ * Request parameters for estimateCommission operation in CommissionsApi.
580
+ * @export
581
+ * @interface CommissionsApiEstimateCommissionRequest
582
+ */
583
+ export interface CommissionsApiEstimateCommissionRequest {
584
+ /**
585
+ * Unique identifier for the object.
586
+ * @type {string}
587
+ * @memberof CommissionsApiEstimateCommission
588
+ */
589
+ readonly policyCode: string
590
+
591
+ /**
592
+ * Bearer Token: provided by the login endpoint under the name accessToken.
593
+ * @type {string}
594
+ * @memberof CommissionsApiEstimateCommission
595
+ */
596
+ readonly authorization?: string
597
+ }
598
+
508
599
  /**
509
600
  * Request parameters for getCommission operation in CommissionsApi.
510
601
  * @export
@@ -655,6 +746,18 @@ export class CommissionsApi extends BaseAPI {
655
746
  return CommissionsApiFp(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
656
747
  }
657
748
 
749
+ /**
750
+ * This will estimate commissions for a given policy.
751
+ * @summary Retrieve the estimate commissions
752
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
753
+ * @param {*} [options] Override http request option.
754
+ * @throws {RequiredError}
755
+ * @memberof CommissionsApi
756
+ */
757
+ public estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig) {
758
+ return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.policyCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
759
+ }
760
+
658
761
  /**
659
762
  * This will get commission.
660
763
  * @summary Retrieve the commission
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateCommissionRequestDto } from '../models';
16
16
  import { CreateCommissionResponseClass } from '../models';
17
+ import { EstimateCommissionsResponseClass } from '../models';
17
18
  import { GetCommissionResponseClass } from '../models';
18
19
  import { ListCommissionsResponseClass } from '../models';
19
20
  import { UpdateCommissionRequestDto } from '../models';
@@ -41,6 +42,15 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
41
42
  * @throws {RequiredError}
42
43
  */
43
44
  deleteCommission: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * This will estimate commissions for a given policy.
47
+ * @summary Retrieve the estimate commissions
48
+ * @param {string} policyCode Unique identifier for the object.
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ estimateCommission: (policyCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
54
  /**
45
55
  * This will get commission.
46
56
  * @summary Retrieve the commission
@@ -100,6 +110,15 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
100
110
  * @throws {RequiredError}
101
111
  */
102
112
  deleteCommission(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
113
+ /**
114
+ * This will estimate commissions for a given policy.
115
+ * @summary Retrieve the estimate commissions
116
+ * @param {string} policyCode Unique identifier for the object.
117
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ estimateCommission(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>>;
103
122
  /**
104
123
  * This will get commission.
105
124
  * @summary Retrieve the commission
@@ -159,6 +178,15 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
159
178
  * @throws {RequiredError}
160
179
  */
161
180
  deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void>;
181
+ /**
182
+ * This will estimate commissions for a given policy.
183
+ * @summary Retrieve the estimate commissions
184
+ * @param {string} policyCode Unique identifier for the object.
185
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ estimateCommission(policyCode: string, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass>;
162
190
  /**
163
191
  * This will get commission.
164
192
  * @summary Retrieve the commission
@@ -233,6 +261,25 @@ export interface CommissionsApiDeleteCommissionRequest {
233
261
  */
234
262
  readonly authorization?: string;
235
263
  }
264
+ /**
265
+ * Request parameters for estimateCommission operation in CommissionsApi.
266
+ * @export
267
+ * @interface CommissionsApiEstimateCommissionRequest
268
+ */
269
+ export interface CommissionsApiEstimateCommissionRequest {
270
+ /**
271
+ * Unique identifier for the object.
272
+ * @type {string}
273
+ * @memberof CommissionsApiEstimateCommission
274
+ */
275
+ readonly policyCode: string;
276
+ /**
277
+ * Bearer Token: provided by the login endpoint under the name accessToken.
278
+ * @type {string}
279
+ * @memberof CommissionsApiEstimateCommission
280
+ */
281
+ readonly authorization?: string;
282
+ }
236
283
  /**
237
284
  * Request parameters for getCommission operation in CommissionsApi.
238
285
  * @export
@@ -363,6 +410,15 @@ export declare class CommissionsApi extends BaseAPI {
363
410
  * @memberof CommissionsApi
364
411
  */
365
412
  deleteCommission(requestParameters: CommissionsApiDeleteCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
413
+ /**
414
+ * This will estimate commissions for a given policy.
415
+ * @summary Retrieve the estimate commissions
416
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ * @memberof CommissionsApi
420
+ */
421
+ estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateCommissionsResponseClass, any, {}>>;
366
422
  /**
367
423
  * This will get commission.
368
424
  * @summary Retrieve the commission
@@ -189,6 +189,54 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
189
189
  });
190
190
  });
191
191
  },
192
+ /**
193
+ * This will estimate commissions for a given policy.
194
+ * @summary Retrieve the estimate commissions
195
+ * @param {string} policyCode Unique identifier for the object.
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ estimateCommission: function (policyCode, authorization, options) {
201
+ if (options === void 0) { options = {}; }
202
+ return __awaiter(_this, void 0, void 0, function () {
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ // verify required parameter 'policyCode' is not null or undefined
208
+ (0, common_1.assertParamExists)('estimateCommission', 'policyCode', policyCode);
209
+ localVarPath = "/commissionservice/v1/commissions/estimate/{policyCode}"
210
+ .replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
192
240
  /**
193
241
  * This will get commission.
194
242
  * @summary Retrieve the commission
@@ -420,6 +468,27 @@ var CommissionsApiFp = function (configuration) {
420
468
  });
421
469
  });
422
470
  },
471
+ /**
472
+ * This will estimate commissions for a given policy.
473
+ * @summary Retrieve the estimate commissions
474
+ * @param {string} policyCode Unique identifier for the object.
475
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ estimateCommission: function (policyCode, authorization, options) {
480
+ return __awaiter(this, void 0, void 0, function () {
481
+ var localVarAxiosArgs;
482
+ return __generator(this, function (_a) {
483
+ switch (_a.label) {
484
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(policyCode, authorization, options)];
485
+ case 1:
486
+ localVarAxiosArgs = _a.sent();
487
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
488
+ }
489
+ });
490
+ });
491
+ },
423
492
  /**
424
493
  * This will get commission.
425
494
  * @summary Retrieve the commission
@@ -523,6 +592,17 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
523
592
  deleteCommission: function (code, authorization, options) {
524
593
  return localVarFp.deleteCommission(code, authorization, options).then(function (request) { return request(axios, basePath); });
525
594
  },
595
+ /**
596
+ * This will estimate commissions for a given policy.
597
+ * @summary Retrieve the estimate commissions
598
+ * @param {string} policyCode Unique identifier for the object.
599
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ estimateCommission: function (policyCode, authorization, options) {
604
+ return localVarFp.estimateCommission(policyCode, authorization, options).then(function (request) { return request(axios, basePath); });
605
+ },
526
606
  /**
527
607
  * This will get commission.
528
608
  * @summary Retrieve the commission
@@ -602,6 +682,18 @@ var CommissionsApi = /** @class */ (function (_super) {
602
682
  var _this = this;
603
683
  return (0, exports.CommissionsApiFp)(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
604
684
  };
685
+ /**
686
+ * This will estimate commissions for a given policy.
687
+ * @summary Retrieve the estimate commissions
688
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ * @memberof CommissionsApi
692
+ */
693
+ CommissionsApi.prototype.estimateCommission = function (requestParameters, options) {
694
+ var _this = this;
695
+ return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.policyCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
696
+ };
605
697
  /**
606
698
  * This will get commission.
607
699
  * @summary Retrieve the commission
@@ -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
+ };
@@ -0,0 +1,73 @@
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 { CommissionEstimateClass } from './commission-estimate-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface EstimateCommissionsResponseClass
17
+ */
18
+ export interface EstimateCommissionsResponseClass {
19
+ /**
20
+ * The unique code of the policy for which commissions are being estimated
21
+ * @type {string}
22
+ * @memberof EstimateCommissionsResponseClass
23
+ */
24
+ 'policyCode': string;
25
+ /**
26
+ * The unique number of the policy
27
+ * @type {string}
28
+ * @memberof EstimateCommissionsResponseClass
29
+ */
30
+ 'policyNumber': string;
31
+ /**
32
+ * The unique code of the partner associated with the policy
33
+ * @type {string}
34
+ * @memberof EstimateCommissionsResponseClass
35
+ */
36
+ 'partnerCode': string;
37
+ /**
38
+ * The unique number of the partner
39
+ * @type {string}
40
+ * @memberof EstimateCommissionsResponseClass
41
+ */
42
+ 'partnerNumber': string;
43
+ /**
44
+ * The total estimated commission amount in the smallest currency unit (e.g., cents). This is the sum of all commission estimates
45
+ * @type {number}
46
+ * @memberof EstimateCommissionsResponseClass
47
+ */
48
+ 'totalAmount': number;
49
+ /**
50
+ * A detailed description explaining the commission estimation
51
+ * @type {string}
52
+ * @memberof EstimateCommissionsResponseClass
53
+ */
54
+ 'description': string;
55
+ /**
56
+ * The version identifier of the commission agreement being used for this estimation
57
+ * @type {string}
58
+ * @memberof EstimateCommissionsResponseClass
59
+ */
60
+ 'commissionAgreementVersionCode': string;
61
+ /**
62
+ * The code of the commission agreement rule that was used for this estimation
63
+ * @type {string}
64
+ * @memberof EstimateCommissionsResponseClass
65
+ */
66
+ 'commissionAgreementRuleCode': string;
67
+ /**
68
+ * An array of individual commission estimates that make up the total commission. Each estimate represents a specific commission component with its own amount, type, and group
69
+ * @type {Array<CommissionEstimateClass>}
70
+ * @memberof EstimateCommissionsResponseClass
71
+ */
72
+ 'commissions': Array<CommissionEstimateClass>;
73
+ }
@@ -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 });
@@ -9,6 +9,7 @@ export * from './commission-agreement-version-class';
9
9
  export * from './commission-class';
10
10
  export * from './commission-conditions-dto';
11
11
  export * from './commission-config-dto';
12
+ export * from './commission-estimate-class';
12
13
  export * from './commission-item-class';
13
14
  export * from './commission-recipient-class';
14
15
  export * from './commission-settlement-class';
@@ -27,6 +28,7 @@ export * from './create-commission-request-dto';
27
28
  export * from './create-commission-response-class';
28
29
  export * from './create-commission-settlement-request-dto';
29
30
  export * from './create-commission-settlement-response-class';
31
+ export * from './estimate-commissions-response-class';
30
32
  export * from './evaluate-commission-agreement-rule-request-dto';
31
33
  export * from './evaluate-commission-agreement-rule-response-class';
32
34
  export * from './evaluated-commission-class';
@@ -25,6 +25,7 @@ __exportStar(require("./commission-agreement-version-class"), exports);
25
25
  __exportStar(require("./commission-class"), exports);
26
26
  __exportStar(require("./commission-conditions-dto"), exports);
27
27
  __exportStar(require("./commission-config-dto"), exports);
28
+ __exportStar(require("./commission-estimate-class"), exports);
28
29
  __exportStar(require("./commission-item-class"), exports);
29
30
  __exportStar(require("./commission-recipient-class"), exports);
30
31
  __exportStar(require("./commission-settlement-class"), exports);
@@ -43,6 +44,7 @@ __exportStar(require("./create-commission-request-dto"), exports);
43
44
  __exportStar(require("./create-commission-response-class"), exports);
44
45
  __exportStar(require("./create-commission-settlement-request-dto"), exports);
45
46
  __exportStar(require("./create-commission-settlement-response-class"), exports);
47
+ __exportStar(require("./estimate-commissions-response-class"), exports);
46
48
  __exportStar(require("./evaluate-commission-agreement-rule-request-dto"), exports);
47
49
  __exportStar(require("./evaluate-commission-agreement-rule-response-class"), exports);
48
50
  __exportStar(require("./evaluated-commission-class"), exports);
@@ -0,0 +1,69 @@
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 CommissionEstimateClass
21
+ */
22
+ export interface CommissionEstimateClass {
23
+ /**
24
+ * The name of the commission estimate
25
+ * @type {string}
26
+ * @memberof CommissionEstimateClass
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * A detailed description of the commission estimate
31
+ * @type {string}
32
+ * @memberof CommissionEstimateClass
33
+ */
34
+ 'description': string;
35
+ /**
36
+ * The estimated commission amount in the smallest currency unit (e.g., cents)
37
+ * @type {number}
38
+ * @memberof CommissionEstimateClass
39
+ */
40
+ 'amount': number;
41
+ /**
42
+ * Type of commission. Valid values: sales, maintenance, other
43
+ * @type {string}
44
+ * @memberof CommissionEstimateClass
45
+ */
46
+ 'type': CommissionEstimateClassTypeEnum;
47
+ /**
48
+ * Commission group indicating whether this is for the first year or following years
49
+ * @type {string}
50
+ * @memberof CommissionEstimateClass
51
+ */
52
+ 'group': CommissionEstimateClassGroupEnum;
53
+ }
54
+
55
+ export const CommissionEstimateClassTypeEnum = {
56
+ Sales: 'sales',
57
+ Maintenance: 'maintenance',
58
+ Other: 'other'
59
+ } as const;
60
+
61
+ export type CommissionEstimateClassTypeEnum = typeof CommissionEstimateClassTypeEnum[keyof typeof CommissionEstimateClassTypeEnum];
62
+ export const CommissionEstimateClassGroupEnum = {
63
+ FirstYear: 'firstYear',
64
+ FollowingYears: 'followingYears'
65
+ } as const;
66
+
67
+ export type CommissionEstimateClassGroupEnum = typeof CommissionEstimateClassGroupEnum[keyof typeof CommissionEstimateClassGroupEnum];
68
+
69
+
@@ -0,0 +1,79 @@
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 { CommissionEstimateClass } from './commission-estimate-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface EstimateCommissionsResponseClass
22
+ */
23
+ export interface EstimateCommissionsResponseClass {
24
+ /**
25
+ * The unique code of the policy for which commissions are being estimated
26
+ * @type {string}
27
+ * @memberof EstimateCommissionsResponseClass
28
+ */
29
+ 'policyCode': string;
30
+ /**
31
+ * The unique number of the policy
32
+ * @type {string}
33
+ * @memberof EstimateCommissionsResponseClass
34
+ */
35
+ 'policyNumber': string;
36
+ /**
37
+ * The unique code of the partner associated with the policy
38
+ * @type {string}
39
+ * @memberof EstimateCommissionsResponseClass
40
+ */
41
+ 'partnerCode': string;
42
+ /**
43
+ * The unique number of the partner
44
+ * @type {string}
45
+ * @memberof EstimateCommissionsResponseClass
46
+ */
47
+ 'partnerNumber': string;
48
+ /**
49
+ * The total estimated commission amount in the smallest currency unit (e.g., cents). This is the sum of all commission estimates
50
+ * @type {number}
51
+ * @memberof EstimateCommissionsResponseClass
52
+ */
53
+ 'totalAmount': number;
54
+ /**
55
+ * A detailed description explaining the commission estimation
56
+ * @type {string}
57
+ * @memberof EstimateCommissionsResponseClass
58
+ */
59
+ 'description': string;
60
+ /**
61
+ * The version identifier of the commission agreement being used for this estimation
62
+ * @type {string}
63
+ * @memberof EstimateCommissionsResponseClass
64
+ */
65
+ 'commissionAgreementVersionCode': string;
66
+ /**
67
+ * The code of the commission agreement rule that was used for this estimation
68
+ * @type {string}
69
+ * @memberof EstimateCommissionsResponseClass
70
+ */
71
+ 'commissionAgreementRuleCode': string;
72
+ /**
73
+ * An array of individual commission estimates that make up the total commission. Each estimate represents a specific commission component with its own amount, type, and group
74
+ * @type {Array<CommissionEstimateClass>}
75
+ * @memberof EstimateCommissionsResponseClass
76
+ */
77
+ 'commissions': Array<CommissionEstimateClass>;
78
+ }
79
+
package/models/index.ts CHANGED
@@ -9,6 +9,7 @@ export * from './commission-agreement-version-class';
9
9
  export * from './commission-class';
10
10
  export * from './commission-conditions-dto';
11
11
  export * from './commission-config-dto';
12
+ export * from './commission-estimate-class';
12
13
  export * from './commission-item-class';
13
14
  export * from './commission-recipient-class';
14
15
  export * from './commission-settlement-class';
@@ -27,6 +28,7 @@ export * from './create-commission-request-dto';
27
28
  export * from './create-commission-response-class';
28
29
  export * from './create-commission-settlement-request-dto';
29
30
  export * from './create-commission-settlement-response-class';
31
+ export * from './estimate-commissions-response-class';
30
32
  export * from './evaluate-commission-agreement-rule-request-dto';
31
33
  export * from './evaluate-commission-agreement-rule-response-class';
32
34
  export * from './evaluated-commission-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk",
3
- "version": "1.0.0-beta.37",
3
+ "version": "1.0.0-beta.38",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [