@emilgroup/insurance-sdk-node 1.104.1-beta.9 → 1.104.1-beta.91
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.
- package/.openapi-generator/FILES +5 -2
- package/README.md +2 -2
- package/api/health-check-api.ts +6 -10
- package/api/leads-api.ts +4 -4
- package/api/policies-api.ts +32 -32
- package/api/premium-calculation-api.ts +169 -0
- package/api.ts +2 -0
- package/dist/api/health-check-api.d.ts +7 -8
- package/dist/api/health-check-api.js +4 -4
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +3 -3
- package/dist/api/policies-api.d.ts +32 -32
- package/dist/api/policies-api.js +28 -28
- package/dist/api/premium-calculation-api.d.ts +97 -0
- package/dist/api/premium-calculation-api.js +228 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/calculate-premium-response-class.d.ts +39 -0
- package/dist/models/calculated-policy-objects-class.d.ts +25 -0
- package/dist/models/claim-config-class.d.ts +7 -0
- package/dist/models/create-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/create-premium-formula-request-dto.d.ts +6 -0
- package/dist/models/create-product-request-dto.d.ts +12 -0
- package/dist/models/create-product-version-request-dto.d.ts +6 -0
- package/dist/models/get-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/dist/models/partner-class.d.ts +6 -0
- package/dist/models/patch-draft-policy-request-dto.d.ts +2 -2
- package/dist/models/policy-object-dto.d.ts +1 -1
- package/dist/models/policy-premium-item-class.d.ts +1 -1
- package/dist/models/premium-formula-class.d.ts +6 -0
- package/dist/models/regulation-subtype-class.d.ts +30 -0
- package/dist/models/regulation-subtype-class.js +15 -0
- package/dist/models/regulation-subtypes-class.d.ts +37 -0
- package/dist/models/regulation-subtypes-class.js +15 -0
- package/models/calculate-premium-response-class.ts +45 -0
- package/models/calculated-policy-objects-class.ts +31 -0
- package/models/claim-config-class.ts +7 -0
- package/models/create-draft-policy-request-dto.ts +1 -1
- package/models/create-premium-formula-request-dto.ts +6 -0
- package/models/create-product-request-dto.ts +12 -0
- package/models/create-product-version-request-dto.ts +6 -0
- package/models/get-draft-policy-request-dto.ts +1 -1
- package/models/index.ts +4 -2
- package/models/partner-class.ts +6 -0
- package/models/patch-draft-policy-request-dto.ts +2 -2
- package/models/policy-object-dto.ts +1 -1
- package/models/policy-premium-item-class.ts +1 -1
- package/models/premium-formula-class.ts +6 -0
- package/models/regulation-subtype-class.ts +36 -0
- package/models/regulation-subtypes-class.ts +43 -0
- package/package.json +1 -1
- package/dist/models/inline-response200.d.ts +0 -54
- package/dist/models/inline-response503.d.ts +0 -54
- package/models/inline-response200.ts +0 -48
- package/models/inline-response503.ts +0 -48
- /package/dist/models/{inline-response200.js → calculate-premium-response-class.js} +0 -0
- /package/dist/models/{inline-response503.js → calculated-policy-objects-class.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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 { CalculatedPolicyObjectClass } from './calculated-policy-object-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CalculatedPolicyObjectsClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CalculatedPolicyObjectsClass {
|
|
19
|
+
/**
|
|
20
|
+
* Calculated policy objects.
|
|
21
|
+
* @type {Array<CalculatedPolicyObjectClass>}
|
|
22
|
+
* @memberof CalculatedPolicyObjectsClass
|
|
23
|
+
*/
|
|
24
|
+
'policyObjects': Array<CalculatedPolicyObjectClass>;
|
|
25
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ClaimPositionFieldsClass } from './claim-position-fields-class';
|
|
13
13
|
import { GeneralSettingClass } from './general-setting-class';
|
|
14
|
+
import { RegulationSubtypesClass } from './regulation-subtypes-class';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -29,4 +30,10 @@ export interface ClaimConfigClass {
|
|
|
29
30
|
* @memberof ClaimConfigClass
|
|
30
31
|
*/
|
|
31
32
|
'claimPositionFields': ClaimPositionFieldsClass;
|
|
33
|
+
/**
|
|
34
|
+
* Client-defined subtypes per regulation item type, selectable on claim regulations
|
|
35
|
+
* @type {RegulationSubtypesClass}
|
|
36
|
+
* @memberof ClaimConfigClass
|
|
37
|
+
*/
|
|
38
|
+
'regulationSubtypes'?: RegulationSubtypesClass;
|
|
32
39
|
}
|
|
@@ -24,7 +24,7 @@ export interface CreateDraftPolicyRequestDto {
|
|
|
24
24
|
*/
|
|
25
25
|
'policyObjects': Array<PolicyObjectDto>;
|
|
26
26
|
/**
|
|
27
|
-
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
27
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date. Required — unlike on the PATCH draft endpoint, `from` cannot be omitted when creating a draft.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof CreateDraftPolicyRequestDto
|
|
30
30
|
*/
|
|
@@ -75,6 +75,12 @@ export interface CreatePremiumFormulaRequestDto {
|
|
|
75
75
|
* @memberof CreatePremiumFormulaRequestDto
|
|
76
76
|
*/
|
|
77
77
|
'order': number;
|
|
78
|
+
/**
|
|
79
|
+
* Unique, immutable identifier for this Premium item. Omit it and one is generated. Supply it only when importing a Premium item that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreatePremiumFormulaRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'code'?: string;
|
|
78
84
|
}
|
|
79
85
|
export declare const CreatePremiumFormulaRequestDtoTypeEnum: {
|
|
80
86
|
readonly Time: "time";
|
|
@@ -45,6 +45,18 @@ export interface CreateProductRequestDto {
|
|
|
45
45
|
* @memberof CreateProductRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'defaultLanguage': CreateProductRequestDtoDefaultLanguageEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Unique, immutable identifier for this product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreateProductRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'code'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Unique, immutable identifier for the product version created along with the product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at its first version. It cannot be changed afterwards.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateProductRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'versionCode'?: string;
|
|
48
60
|
}
|
|
49
61
|
export declare const CreateProductRequestDtoInsuredObjectTypesEnum: {
|
|
50
62
|
readonly Default: "default";
|
|
@@ -27,4 +27,10 @@ export interface CreateProductVersionRequestDto {
|
|
|
27
27
|
* @memberof CreateProductVersionRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'description': string;
|
|
30
|
+
/**
|
|
31
|
+
* Unique, immutable identifier for this product version. Omit it and one is generated. Supply it only when importing a product version that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateProductVersionRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'code'?: string;
|
|
30
36
|
}
|
|
@@ -22,7 +22,7 @@ export interface GetDraftPolicyRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'policyCode': string;
|
|
24
24
|
/**
|
|
25
|
-
* Fields to expand response
|
|
25
|
+
* Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof GetDraftPolicyRequestDto
|
|
28
28
|
*/
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,8 +7,10 @@ export * from './billing-address-dto';
|
|
|
7
7
|
export * from './booking-funnel-class';
|
|
8
8
|
export * from './calculate-custom-premium-request-dto';
|
|
9
9
|
export * from './calculate-premium-request-dto';
|
|
10
|
+
export * from './calculate-premium-response-class';
|
|
10
11
|
export * from './calculate-product-fields-request-dto';
|
|
11
12
|
export * from './calculated-policy-object-class';
|
|
13
|
+
export * from './calculated-policy-objects-class';
|
|
12
14
|
export * from './calculation-errors-class';
|
|
13
15
|
export * from './calculation-item-errors-class';
|
|
14
16
|
export * from './calculation-message-class';
|
|
@@ -122,8 +124,6 @@ export * from './grouped-product-factor-class';
|
|
|
122
124
|
export * from './grouped-product-factor-value-class';
|
|
123
125
|
export * from './grouped-product-factors-response-class';
|
|
124
126
|
export * from './grpc-mandate-dto';
|
|
125
|
-
export * from './inline-response200';
|
|
126
|
-
export * from './inline-response503';
|
|
127
127
|
export * from './insured-object-class';
|
|
128
128
|
export * from './insured-object-type-class';
|
|
129
129
|
export * from './invoice-item-class';
|
|
@@ -196,6 +196,8 @@ export * from './product-factor-value-for-version-class';
|
|
|
196
196
|
export * from './product-field-class';
|
|
197
197
|
export * from './product-field-type-class';
|
|
198
198
|
export * from './product-version-class';
|
|
199
|
+
export * from './regulation-subtype-class';
|
|
200
|
+
export * from './regulation-subtypes-class';
|
|
199
201
|
export * from './rest-calculate-product-tariff-quote-request-dto';
|
|
200
202
|
export * from './rest-calculate-product-tariff-quote-response-class';
|
|
201
203
|
export * from './rest-clone-lead-account-request-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -23,8 +23,10 @@ __exportStar(require("./billing-address-dto"), exports);
|
|
|
23
23
|
__exportStar(require("./booking-funnel-class"), exports);
|
|
24
24
|
__exportStar(require("./calculate-custom-premium-request-dto"), exports);
|
|
25
25
|
__exportStar(require("./calculate-premium-request-dto"), exports);
|
|
26
|
+
__exportStar(require("./calculate-premium-response-class"), exports);
|
|
26
27
|
__exportStar(require("./calculate-product-fields-request-dto"), exports);
|
|
27
28
|
__exportStar(require("./calculated-policy-object-class"), exports);
|
|
29
|
+
__exportStar(require("./calculated-policy-objects-class"), exports);
|
|
28
30
|
__exportStar(require("./calculation-errors-class"), exports);
|
|
29
31
|
__exportStar(require("./calculation-item-errors-class"), exports);
|
|
30
32
|
__exportStar(require("./calculation-message-class"), exports);
|
|
@@ -138,8 +140,6 @@ __exportStar(require("./grouped-product-factor-class"), exports);
|
|
|
138
140
|
__exportStar(require("./grouped-product-factor-value-class"), exports);
|
|
139
141
|
__exportStar(require("./grouped-product-factors-response-class"), exports);
|
|
140
142
|
__exportStar(require("./grpc-mandate-dto"), exports);
|
|
141
|
-
__exportStar(require("./inline-response200"), exports);
|
|
142
|
-
__exportStar(require("./inline-response503"), exports);
|
|
143
143
|
__exportStar(require("./insured-object-class"), exports);
|
|
144
144
|
__exportStar(require("./insured-object-type-class"), exports);
|
|
145
145
|
__exportStar(require("./invoice-item-class"), exports);
|
|
@@ -212,6 +212,8 @@ __exportStar(require("./product-factor-value-for-version-class"), exports);
|
|
|
212
212
|
__exportStar(require("./product-field-class"), exports);
|
|
213
213
|
__exportStar(require("./product-field-type-class"), exports);
|
|
214
214
|
__exportStar(require("./product-version-class"), exports);
|
|
215
|
+
__exportStar(require("./regulation-subtype-class"), exports);
|
|
216
|
+
__exportStar(require("./regulation-subtypes-class"), exports);
|
|
215
217
|
__exportStar(require("./rest-calculate-product-tariff-quote-request-dto"), exports);
|
|
216
218
|
__exportStar(require("./rest-calculate-product-tariff-quote-response-class"), exports);
|
|
217
219
|
__exportStar(require("./rest-clone-lead-account-request-dto"), exports);
|
|
@@ -64,4 +64,10 @@ export interface PartnerClass {
|
|
|
64
64
|
* @memberof PartnerClass
|
|
65
65
|
*/
|
|
66
66
|
'tags': Array<TagClass>;
|
|
67
|
+
/**
|
|
68
|
+
* The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof PartnerClass
|
|
71
|
+
*/
|
|
72
|
+
'subtypes': Array<string>;
|
|
67
73
|
}
|
|
@@ -24,7 +24,7 @@ export interface PatchDraftPolicyRequestDto {
|
|
|
24
24
|
*/
|
|
25
25
|
'policyObjects': Array<PolicyObjectDto>;
|
|
26
26
|
/**
|
|
27
|
-
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
27
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date. Optional on PATCH — omit it to leave the current version unaffected.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof PatchDraftPolicyRequestDto
|
|
30
30
|
*/
|
|
@@ -36,7 +36,7 @@ export interface PatchDraftPolicyRequestDto {
|
|
|
36
36
|
*/
|
|
37
37
|
'to'?: string;
|
|
38
38
|
/**
|
|
39
|
-
* Policy revision status.
|
|
39
|
+
* Policy revision status. Terminal values change the draft lifecycle:<br/> <br/> - <b>APPROVED</b>: promotes the draft to the current policy version (`isCurrent: true`, `isDraft: false`), replacing the current version.<br/> - <b>REJECTED</b>: deletes the draft version; subsequent `GET .../draft` requests return 404.<br/> - <b>CREATED</b>, <b>IN_REVIEW</b>, or <b>REVIEWED</b>: updates the draft in place with the supplied payload and leaves it as a draft (`isCurrent: false`, `isDraft: true`).
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof PatchDraftPolicyRequestDto
|
|
42
42
|
*/
|
|
@@ -28,7 +28,7 @@ export interface PolicyObjectDto {
|
|
|
28
28
|
*/
|
|
29
29
|
'insuredObjectName'?: string;
|
|
30
30
|
/**
|
|
31
|
-
* Insured object data.
|
|
31
|
+
* Insured object data. For the \"Coverage\" insured object, pass the tariff variant as `tariffVariant`, for example `{ \"tariffVariant\": \"...\" }`.
|
|
32
32
|
* @type {object}
|
|
33
33
|
* @memberof PolicyObjectDto
|
|
34
34
|
*/
|
|
@@ -47,7 +47,7 @@ export interface PolicyPremiumItemClass {
|
|
|
47
47
|
*/
|
|
48
48
|
'premiumFormula': PremiumFormulaClass;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Whether this premium item is priced from an override rather than the formula. Read-only — it cannot be set directly. It is computed per formula (matched by `name` + `unit`) from whether the request included a matching entry in `premiumOverride.premiumOverrides`.
|
|
51
51
|
* @type {boolean}
|
|
52
52
|
* @memberof PolicyPremiumItemClass
|
|
53
53
|
*/
|
|
@@ -27,6 +27,12 @@ export interface PremiumFormulaClass {
|
|
|
27
27
|
* @memberof PremiumFormulaClass
|
|
28
28
|
*/
|
|
29
29
|
'productVersionId': number;
|
|
30
|
+
/**
|
|
31
|
+
* Unique, immutable identifier for the Premium item. Stable across environments; use it instead of the numeric id in cross-service configuration.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PremiumFormulaClass
|
|
34
|
+
*/
|
|
35
|
+
'code': string;
|
|
30
36
|
/**
|
|
31
37
|
* Premium group name.
|
|
32
38
|
* @type {string}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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 RegulationSubtypeClass
|
|
16
|
+
*/
|
|
17
|
+
export interface RegulationSubtypeClass {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier key of the regulation subtype. Stored on the regulation item.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegulationSubtypeClass
|
|
22
|
+
*/
|
|
23
|
+
'key': string;
|
|
24
|
+
/**
|
|
25
|
+
* Display name shown to users
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RegulationSubtypeClass
|
|
28
|
+
*/
|
|
29
|
+
'label': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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 { RegulationSubtypeClass } from './regulation-subtype-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RegulationSubtypesClass
|
|
17
|
+
*/
|
|
18
|
+
export interface RegulationSubtypesClass {
|
|
19
|
+
/**
|
|
20
|
+
* Subtypes available for payout regulations. Always contains the default subtypes \"indemnity\" and \"internalProcess\".
|
|
21
|
+
* @type {Array<RegulationSubtypeClass>}
|
|
22
|
+
* @memberof RegulationSubtypesClass
|
|
23
|
+
*/
|
|
24
|
+
'payout': Array<RegulationSubtypeClass>;
|
|
25
|
+
/**
|
|
26
|
+
* Subtypes available for regress regulations
|
|
27
|
+
* @type {Array<RegulationSubtypeClass>}
|
|
28
|
+
* @memberof RegulationSubtypesClass
|
|
29
|
+
*/
|
|
30
|
+
'regress': Array<RegulationSubtypeClass>;
|
|
31
|
+
/**
|
|
32
|
+
* Subtypes available for reserve regulations
|
|
33
|
+
* @type {Array<RegulationSubtypeClass>}
|
|
34
|
+
* @memberof RegulationSubtypesClass
|
|
35
|
+
*/
|
|
36
|
+
'reserve': Array<RegulationSubtypeClass>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 { CalculatedPolicyObjectsClass } from './calculated-policy-objects-class';
|
|
17
|
+
import { CalculationErrorsClass } from './calculation-errors-class';
|
|
18
|
+
import { PolicyPremiumClass } from './policy-premium-class';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface CalculatePremiumResponseClass
|
|
24
|
+
*/
|
|
25
|
+
export interface CalculatePremiumResponseClass {
|
|
26
|
+
/**
|
|
27
|
+
* Policy premium
|
|
28
|
+
* @type {PolicyPremiumClass}
|
|
29
|
+
* @memberof CalculatePremiumResponseClass
|
|
30
|
+
*/
|
|
31
|
+
'premium': PolicyPremiumClass;
|
|
32
|
+
/**
|
|
33
|
+
* Calculated policy objects
|
|
34
|
+
* @type {CalculatedPolicyObjectsClass}
|
|
35
|
+
* @memberof CalculatePremiumResponseClass
|
|
36
|
+
*/
|
|
37
|
+
'policyObjects': CalculatedPolicyObjectsClass;
|
|
38
|
+
/**
|
|
39
|
+
* Calculation errors
|
|
40
|
+
* @type {CalculationErrorsClass}
|
|
41
|
+
* @memberof CalculatePremiumResponseClass
|
|
42
|
+
*/
|
|
43
|
+
'errors': CalculationErrorsClass;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 { CalculatedPolicyObjectClass } from './calculated-policy-object-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CalculatedPolicyObjectsClass
|
|
22
|
+
*/
|
|
23
|
+
export interface CalculatedPolicyObjectsClass {
|
|
24
|
+
/**
|
|
25
|
+
* Calculated policy objects.
|
|
26
|
+
* @type {Array<CalculatedPolicyObjectClass>}
|
|
27
|
+
* @memberof CalculatedPolicyObjectsClass
|
|
28
|
+
*/
|
|
29
|
+
'policyObjects': Array<CalculatedPolicyObjectClass>;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
import { ClaimPositionFieldsClass } from './claim-position-fields-class';
|
|
17
17
|
import { GeneralSettingClass } from './general-setting-class';
|
|
18
|
+
import { RegulationSubtypesClass } from './regulation-subtypes-class';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
@@ -34,5 +35,11 @@ export interface ClaimConfigClass {
|
|
|
34
35
|
* @memberof ClaimConfigClass
|
|
35
36
|
*/
|
|
36
37
|
'claimPositionFields': ClaimPositionFieldsClass;
|
|
38
|
+
/**
|
|
39
|
+
* Client-defined subtypes per regulation item type, selectable on claim regulations
|
|
40
|
+
* @type {RegulationSubtypesClass}
|
|
41
|
+
* @memberof ClaimConfigClass
|
|
42
|
+
*/
|
|
43
|
+
'regulationSubtypes'?: RegulationSubtypesClass;
|
|
37
44
|
}
|
|
38
45
|
|
|
@@ -29,7 +29,7 @@ export interface CreateDraftPolicyRequestDto {
|
|
|
29
29
|
*/
|
|
30
30
|
'policyObjects': Array<PolicyObjectDto>;
|
|
31
31
|
/**
|
|
32
|
-
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
32
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date. Required — unlike on the PATCH draft endpoint, `from` cannot be omitted when creating a draft.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreateDraftPolicyRequestDto
|
|
35
35
|
*/
|
|
@@ -80,6 +80,12 @@ export interface CreatePremiumFormulaRequestDto {
|
|
|
80
80
|
* @memberof CreatePremiumFormulaRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'order': number;
|
|
83
|
+
/**
|
|
84
|
+
* Unique, immutable identifier for this Premium item. Omit it and one is generated. Supply it only when importing a Premium item that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CreatePremiumFormulaRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'code'?: string;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
export const CreatePremiumFormulaRequestDtoTypeEnum = {
|
|
@@ -50,6 +50,18 @@ export interface CreateProductRequestDto {
|
|
|
50
50
|
* @memberof CreateProductRequestDto
|
|
51
51
|
*/
|
|
52
52
|
'defaultLanguage': CreateProductRequestDtoDefaultLanguageEnum;
|
|
53
|
+
/**
|
|
54
|
+
* Unique, immutable identifier for this product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateProductRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'code'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Unique, immutable identifier for the product version created along with the product. Omit it and one is generated. Supply it only when importing a product that already exists in another environment, to keep cross-service configuration pointing at its first version. It cannot be changed afterwards.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateProductRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'versionCode'?: string;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
export const CreateProductRequestDtoInsuredObjectTypesEnum = {
|
|
@@ -32,5 +32,11 @@ export interface CreateProductVersionRequestDto {
|
|
|
32
32
|
* @memberof CreateProductVersionRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'description': string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique, immutable identifier for this product version. Omit it and one is generated. Supply it only when importing a product version that already exists in another environment, to keep cross-service configuration pointing at it. It cannot be changed afterwards.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateProductVersionRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'code'?: string;
|
|
35
41
|
}
|
|
36
42
|
|
|
@@ -27,7 +27,7 @@ export interface GetDraftPolicyRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'policyCode': string;
|
|
29
29
|
/**
|
|
30
|
-
* Fields to expand response
|
|
30
|
+
* Fields to expand in the draft response. Pass the unprefixed relation name; for example, \"premiumItems\" expands the draft premium items relation.<br/> <br/> <i>Allowed values: version, timelines, premiums, premiumItems, premiumFormulas</i>
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof GetDraftPolicyRequestDto
|
|
33
33
|
*/
|
package/models/index.ts
CHANGED
|
@@ -7,8 +7,10 @@ export * from './billing-address-dto';
|
|
|
7
7
|
export * from './booking-funnel-class';
|
|
8
8
|
export * from './calculate-custom-premium-request-dto';
|
|
9
9
|
export * from './calculate-premium-request-dto';
|
|
10
|
+
export * from './calculate-premium-response-class';
|
|
10
11
|
export * from './calculate-product-fields-request-dto';
|
|
11
12
|
export * from './calculated-policy-object-class';
|
|
13
|
+
export * from './calculated-policy-objects-class';
|
|
12
14
|
export * from './calculation-errors-class';
|
|
13
15
|
export * from './calculation-item-errors-class';
|
|
14
16
|
export * from './calculation-message-class';
|
|
@@ -122,8 +124,6 @@ export * from './grouped-product-factor-class';
|
|
|
122
124
|
export * from './grouped-product-factor-value-class';
|
|
123
125
|
export * from './grouped-product-factors-response-class';
|
|
124
126
|
export * from './grpc-mandate-dto';
|
|
125
|
-
export * from './inline-response200';
|
|
126
|
-
export * from './inline-response503';
|
|
127
127
|
export * from './insured-object-class';
|
|
128
128
|
export * from './insured-object-type-class';
|
|
129
129
|
export * from './invoice-item-class';
|
|
@@ -196,6 +196,8 @@ export * from './product-factor-value-for-version-class';
|
|
|
196
196
|
export * from './product-field-class';
|
|
197
197
|
export * from './product-field-type-class';
|
|
198
198
|
export * from './product-version-class';
|
|
199
|
+
export * from './regulation-subtype-class';
|
|
200
|
+
export * from './regulation-subtypes-class';
|
|
199
201
|
export * from './rest-calculate-product-tariff-quote-request-dto';
|
|
200
202
|
export * from './rest-calculate-product-tariff-quote-response-class';
|
|
201
203
|
export * from './rest-clone-lead-account-request-dto';
|
package/models/partner-class.ts
CHANGED
|
@@ -69,5 +69,11 @@ export interface PartnerClass {
|
|
|
69
69
|
* @memberof PartnerClass
|
|
70
70
|
*/
|
|
71
71
|
'tags': Array<TagClass>;
|
|
72
|
+
/**
|
|
73
|
+
* The business subtypes of the partner, as recorded in partnerservice. Empty when unset.
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof PartnerClass
|
|
76
|
+
*/
|
|
77
|
+
'subtypes': Array<string>;
|
|
72
78
|
}
|
|
73
79
|
|
|
@@ -29,7 +29,7 @@ export interface PatchDraftPolicyRequestDto {
|
|
|
29
29
|
*/
|
|
30
30
|
'policyObjects': Array<PolicyObjectDto>;
|
|
31
31
|
/**
|
|
32
|
-
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
32
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date. Optional on PATCH — omit it to leave the current version unaffected.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof PatchDraftPolicyRequestDto
|
|
35
35
|
*/
|
|
@@ -41,7 +41,7 @@ export interface PatchDraftPolicyRequestDto {
|
|
|
41
41
|
*/
|
|
42
42
|
'to'?: string;
|
|
43
43
|
/**
|
|
44
|
-
* Policy revision status.
|
|
44
|
+
* Policy revision status. Terminal values change the draft lifecycle:<br/> <br/> - <b>APPROVED</b>: promotes the draft to the current policy version (`isCurrent: true`, `isDraft: false`), replacing the current version.<br/> - <b>REJECTED</b>: deletes the draft version; subsequent `GET .../draft` requests return 404.<br/> - <b>CREATED</b>, <b>IN_REVIEW</b>, or <b>REVIEWED</b>: updates the draft in place with the supplied payload and leaves it as a draft (`isCurrent: false`, `isDraft: true`).
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof PatchDraftPolicyRequestDto
|
|
47
47
|
*/
|
|
@@ -33,7 +33,7 @@ export interface PolicyObjectDto {
|
|
|
33
33
|
*/
|
|
34
34
|
'insuredObjectName'?: string;
|
|
35
35
|
/**
|
|
36
|
-
* Insured object data.
|
|
36
|
+
* Insured object data. For the \"Coverage\" insured object, pass the tariff variant as `tariffVariant`, for example `{ \"tariffVariant\": \"...\" }`.
|
|
37
37
|
* @type {object}
|
|
38
38
|
* @memberof PolicyObjectDto
|
|
39
39
|
*/
|
|
@@ -52,7 +52,7 @@ export interface PolicyPremiumItemClass {
|
|
|
52
52
|
*/
|
|
53
53
|
'premiumFormula': PremiumFormulaClass;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Whether this premium item is priced from an override rather than the formula. Read-only — it cannot be set directly. It is computed per formula (matched by `name` + `unit`) from whether the request included a matching entry in `premiumOverride.premiumOverrides`.
|
|
56
56
|
* @type {boolean}
|
|
57
57
|
* @memberof PolicyPremiumItemClass
|
|
58
58
|
*/
|
|
@@ -32,6 +32,12 @@ export interface PremiumFormulaClass {
|
|
|
32
32
|
* @memberof PremiumFormulaClass
|
|
33
33
|
*/
|
|
34
34
|
'productVersionId': number;
|
|
35
|
+
/**
|
|
36
|
+
* Unique, immutable identifier for the Premium item. Stable across environments; use it instead of the numeric id in cross-service configuration.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PremiumFormulaClass
|
|
39
|
+
*/
|
|
40
|
+
'code': string;
|
|
35
41
|
/**
|
|
36
42
|
* Premium group name.
|
|
37
43
|
* @type {string}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService 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 RegulationSubtypeClass
|
|
21
|
+
*/
|
|
22
|
+
export interface RegulationSubtypeClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier key of the regulation subtype. Stored on the regulation item.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RegulationSubtypeClass
|
|
27
|
+
*/
|
|
28
|
+
'key': string;
|
|
29
|
+
/**
|
|
30
|
+
* Display name shown to users
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RegulationSubtypeClass
|
|
33
|
+
*/
|
|
34
|
+
'label': string;
|
|
35
|
+
}
|
|
36
|
+
|