@emilgroup/commission-sdk-node 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-node@1.0.0-beta.37 --save
20
+ npm install @emilgroup/commission-sdk-node@1.0.0-beta.38 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@1.0.0-beta.37
24
+ yarn add @emilgroup/commission-sdk-node@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';
@@ -125,6 +127,51 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
125
127
 
126
128
 
127
129
 
130
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
131
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
132
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
133
+
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ },
139
+ /**
140
+ * This will estimate commissions for a given policy.
141
+ * @summary Retrieve the estimate commissions
142
+ * @param {string} policyCode Unique identifier for the object.
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ estimateCommission: async (policyCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ // verify required parameter 'policyCode' is not null or undefined
149
+ assertParamExists('estimateCommission', 'policyCode', policyCode)
150
+ const localVarPath = `/commissionservice/v1/commissions/estimate/{policyCode}`
151
+ .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ let baseAccessToken;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ baseAccessToken = configuration.accessToken;
159
+ }
160
+
161
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
162
+ const localVarHeaderParameter = {} as any;
163
+ const localVarQueryParameter = {} as any;
164
+
165
+ // authentication bearer required
166
+ // http bearer authentication required
167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
+
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
171
+ }
172
+
173
+
174
+
128
175
  setSearchParams(localVarUrlObj, localVarQueryParameter);
129
176
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
177
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -347,6 +394,18 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
347
394
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommission(code, authorization, options);
348
395
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
396
  },
397
+ /**
398
+ * This will estimate commissions for a given policy.
399
+ * @summary Retrieve the estimate commissions
400
+ * @param {string} policyCode Unique identifier for the object.
401
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ async estimateCommission(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>> {
406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(policyCode, authorization, options);
407
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
+ },
350
409
  /**
351
410
  * This will get commission.
352
411
  * @summary Retrieve the commission
@@ -423,6 +482,17 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
423
482
  deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void> {
424
483
  return localVarFp.deleteCommission(code, authorization, options).then((request) => request(axios, basePath));
425
484
  },
485
+ /**
486
+ * This will estimate commissions for a given policy.
487
+ * @summary Retrieve the estimate commissions
488
+ * @param {string} policyCode Unique identifier for the object.
489
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ estimateCommission(policyCode: string, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
494
+ return localVarFp.estimateCommission(policyCode, authorization, options).then((request) => request(axios, basePath));
495
+ },
426
496
  /**
427
497
  * This will get commission.
428
498
  * @summary Retrieve the commission
@@ -509,6 +579,27 @@ export interface CommissionsApiDeleteCommissionRequest {
509
579
  readonly authorization?: string
510
580
  }
511
581
 
582
+ /**
583
+ * Request parameters for estimateCommission operation in CommissionsApi.
584
+ * @export
585
+ * @interface CommissionsApiEstimateCommissionRequest
586
+ */
587
+ export interface CommissionsApiEstimateCommissionRequest {
588
+ /**
589
+ * Unique identifier for the object.
590
+ * @type {string}
591
+ * @memberof CommissionsApiEstimateCommission
592
+ */
593
+ readonly policyCode: string
594
+
595
+ /**
596
+ * Bearer Token: provided by the login endpoint under the name accessToken.
597
+ * @type {string}
598
+ * @memberof CommissionsApiEstimateCommission
599
+ */
600
+ readonly authorization?: string
601
+ }
602
+
512
603
  /**
513
604
  * Request parameters for getCommission operation in CommissionsApi.
514
605
  * @export
@@ -659,6 +750,18 @@ export class CommissionsApi extends BaseAPI {
659
750
  return CommissionsApiFp(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
751
  }
661
752
 
753
+ /**
754
+ * This will estimate commissions for a given policy.
755
+ * @summary Retrieve the estimate commissions
756
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ * @memberof CommissionsApi
760
+ */
761
+ public estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig) {
762
+ return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.policyCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
763
+ }
764
+
662
765
  /**
663
766
  * This will get commission.
664
767
  * @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
@@ -193,6 +193,54 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
193
193
  });
194
194
  });
195
195
  },
196
+ /**
197
+ * This will estimate commissions for a given policy.
198
+ * @summary Retrieve the estimate commissions
199
+ * @param {string} policyCode Unique identifier for the object.
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ estimateCommission: function (policyCode, authorization, options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'policyCode' is not null or undefined
212
+ (0, common_1.assertParamExists)('estimateCommission', 'policyCode', policyCode);
213
+ localVarPath = "/commissionservice/v1/commissions/estimate/{policyCode}"
214
+ .replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ }
241
+ });
242
+ });
243
+ },
196
244
  /**
197
245
  * This will get commission.
198
246
  * @summary Retrieve the commission
@@ -424,6 +472,27 @@ var CommissionsApiFp = function (configuration) {
424
472
  });
425
473
  });
426
474
  },
475
+ /**
476
+ * This will estimate commissions for a given policy.
477
+ * @summary Retrieve the estimate commissions
478
+ * @param {string} policyCode Unique identifier for the object.
479
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ estimateCommission: function (policyCode, authorization, options) {
484
+ return __awaiter(this, void 0, void 0, function () {
485
+ var localVarAxiosArgs;
486
+ return __generator(this, function (_a) {
487
+ switch (_a.label) {
488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(policyCode, authorization, options)];
489
+ case 1:
490
+ localVarAxiosArgs = _a.sent();
491
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
492
+ }
493
+ });
494
+ });
495
+ },
427
496
  /**
428
497
  * This will get commission.
429
498
  * @summary Retrieve the commission
@@ -527,6 +596,17 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
527
596
  deleteCommission: function (code, authorization, options) {
528
597
  return localVarFp.deleteCommission(code, authorization, options).then(function (request) { return request(axios, basePath); });
529
598
  },
599
+ /**
600
+ * This will estimate commissions for a given policy.
601
+ * @summary Retrieve the estimate commissions
602
+ * @param {string} policyCode Unique identifier for the object.
603
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ estimateCommission: function (policyCode, authorization, options) {
608
+ return localVarFp.estimateCommission(policyCode, authorization, options).then(function (request) { return request(axios, basePath); });
609
+ },
530
610
  /**
531
611
  * This will get commission.
532
612
  * @summary Retrieve the commission
@@ -606,6 +686,18 @@ var CommissionsApi = /** @class */ (function (_super) {
606
686
  var _this = this;
607
687
  return (0, exports.CommissionsApiFp)(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
688
  };
689
+ /**
690
+ * This will estimate commissions for a given policy.
691
+ * @summary Retrieve the estimate commissions
692
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof CommissionsApi
696
+ */
697
+ CommissionsApi.prototype.estimateCommission = function (requestParameters, options) {
698
+ var _this = this;
699
+ return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.policyCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
700
+ };
609
701
  /**
610
702
  * This will get commission.
611
703
  * @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-node",
3
- "version": "1.0.0-beta.37",
3
+ "version": "1.0.0-beta.38",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [