@emilgroup/insurance-sdk-node 1.104.1-beta.4 → 1.104.1-beta.41

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.
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface TerminatePolicyRequestDto {
18
18
  /**
19
- * Terminate from.
19
+ * Policy termination date. A different date may be used depending on the policy minimum term, termination notice period, and the submission date.
20
20
  * @type {string}
21
21
  * @memberof TerminatePolicyRequestDto
22
22
  */
@@ -27,6 +27,12 @@ export interface TerminatePolicyRequestDto {
27
27
  * @memberof TerminatePolicyRequestDto
28
28
  */
29
29
  'terminationReason'?: TerminatePolicyRequestDtoTerminationReasonEnum;
30
+ /**
31
+ * Submission date. Date used for checking if the notice was given in time or late when the termination notice period is configured. Defaults to the current date when omitted.
32
+ * @type {string}
33
+ * @memberof TerminatePolicyRequestDto
34
+ */
35
+ 'submissionDate'?: string;
30
36
  }
31
37
  export declare const TerminatePolicyRequestDtoTerminationReasonEnum: {
32
38
  readonly TerminationAtRenewal: "termination_at_renewal";
@@ -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
  */
@@ -27,7 +27,7 @@ export interface GetDraftPolicyRequestDto {
27
27
  */
28
28
  'policyCode': string;
29
29
  /**
30
- * Fields to expand response by.
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
  */
@@ -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
- * Is premium override?
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
  */
@@ -38,6 +38,12 @@ export interface ProductVersionClass {
38
38
  * @memberof ProductVersionClass
39
39
  */
40
40
  'code': string;
41
+ /**
42
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id. It is derived from the product slug and the version number, e.g. `car-insurance_v2`.
43
+ * @type {string}
44
+ * @memberof ProductVersionClass
45
+ */
46
+ 'slug': string;
41
47
  /**
42
48
  * Product version description.
43
49
  * @type {string}
@@ -21,7 +21,7 @@
21
21
  */
22
22
  export interface TerminatePolicyRequestDto {
23
23
  /**
24
- * Terminate from.
24
+ * Policy termination date. A different date may be used depending on the policy minimum term, termination notice period, and the submission date.
25
25
  * @type {string}
26
26
  * @memberof TerminatePolicyRequestDto
27
27
  */
@@ -32,6 +32,12 @@ export interface TerminatePolicyRequestDto {
32
32
  * @memberof TerminatePolicyRequestDto
33
33
  */
34
34
  'terminationReason'?: TerminatePolicyRequestDtoTerminationReasonEnum;
35
+ /**
36
+ * Submission date. Date used for checking if the notice was given in time or late when the termination notice period is configured. Defaults to the current date when omitted.
37
+ * @type {string}
38
+ * @memberof TerminatePolicyRequestDto
39
+ */
40
+ 'submissionDate'?: string;
35
41
  }
36
42
 
37
43
  export const TerminatePolicyRequestDtoTerminationReasonEnum = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.104.1-beta.4",
3
+ "version": "1.104.1-beta.41",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [