@emilgroup/public-api-sdk-node 1.14.0 → 1.16.0
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 -0
- package/README.md +2 -2
- package/api/default-api.ts +124 -0
- package/api/documents-api.ts +107 -0
- package/api.ts +2 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/documents-api.d.ts +57 -0
- package/dist/api/documents-api.js +93 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-account-request-dto.d.ts +24 -24
- package/dist/models/create-document-request-dto.d.ts +8 -0
- package/dist/models/create-document-request-dto.js +9 -1
- package/dist/models/create-lead-request-dto.d.ts +20 -14
- package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
- package/dist/models/create-presigned-post-request-dto.js +52 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/document-class.d.ts +8 -0
- package/dist/models/document-class.js +9 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/lead-policy-object-class.d.ts +8 -2
- package/dist/models/policy-object-request-dto.d.ts +11 -5
- package/dist/models/product-class.d.ts +6 -0
- package/dist/models/product-document-class.d.ts +8 -0
- package/dist/models/product-document-class.js +9 -1
- package/dist/models/update-lead-request-dto.d.ts +20 -14
- package/models/create-account-request-dto.ts +24 -24
- package/models/create-document-request-dto.ts +9 -1
- package/models/create-lead-request-dto.ts +20 -14
- package/models/create-presigned-post-request-dto.ts +138 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/document-class.ts +9 -1
- package/models/index.ts +4 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/lead-policy-object-class.ts +8 -2
- package/models/policy-object-request-dto.ts +11 -5
- package/models/product-class.ts +6 -0
- package/models/product-document-class.ts +9 -1
- package/models/update-lead-request-dto.ts +20 -14
- package/package.json +2 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public 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 CreatePresignedPostResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePresignedPostResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Upload document fields.
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof CreatePresignedPostResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'fields': object;
|
|
24
|
+
/**
|
|
25
|
+
* Pre-signed Url.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePresignedPostResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'url': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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 });
|
|
@@ -126,5 +126,13 @@ export declare const DocumentClassContentTypeEnum: {
|
|
|
126
126
|
readonly Html: "html";
|
|
127
127
|
readonly Json: "json";
|
|
128
128
|
readonly Xml: "xml";
|
|
129
|
+
readonly Txt: "txt";
|
|
130
|
+
readonly Zip: "zip";
|
|
131
|
+
readonly Tar: "tar";
|
|
132
|
+
readonly Rar: "rar";
|
|
133
|
+
readonly Mp4: "MP4";
|
|
134
|
+
readonly Mov: "MOV";
|
|
135
|
+
readonly Wmv: "WMV";
|
|
136
|
+
readonly Avi: "AVI";
|
|
129
137
|
};
|
|
130
138
|
export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './create-estimated-invoice-response-class';
|
|
|
17
17
|
export * from './create-lead-request-dto';
|
|
18
18
|
export * from './create-lead-response-class';
|
|
19
19
|
export * from './create-payment-method-request-dto';
|
|
20
|
+
export * from './create-presigned-post-request-dto';
|
|
21
|
+
export * from './create-presigned-post-response-class';
|
|
20
22
|
export * from './document-class';
|
|
21
23
|
export * from './get-custom-css-response-class';
|
|
22
24
|
export * from './get-lead-response-class';
|
|
@@ -31,6 +33,8 @@ export * from './initiate-payment-setup-request-dto';
|
|
|
31
33
|
export * from './initiate-payment-setup-response-class';
|
|
32
34
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
33
35
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
36
|
+
export * from './inline-response200';
|
|
37
|
+
export * from './inline-response503';
|
|
34
38
|
export * from './insured-object-class';
|
|
35
39
|
export * from './insured-object-type-class';
|
|
36
40
|
export * from './invoice-class';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,8 @@ __exportStar(require("./create-estimated-invoice-response-class"), exports);
|
|
|
33
33
|
__exportStar(require("./create-lead-request-dto"), exports);
|
|
34
34
|
__exportStar(require("./create-lead-response-class"), exports);
|
|
35
35
|
__exportStar(require("./create-payment-method-request-dto"), exports);
|
|
36
|
+
__exportStar(require("./create-presigned-post-request-dto"), exports);
|
|
37
|
+
__exportStar(require("./create-presigned-post-response-class"), exports);
|
|
36
38
|
__exportStar(require("./document-class"), exports);
|
|
37
39
|
__exportStar(require("./get-custom-css-response-class"), exports);
|
|
38
40
|
__exportStar(require("./get-lead-response-class"), exports);
|
|
@@ -47,6 +49,8 @@ __exportStar(require("./initiate-payment-setup-request-dto"), exports);
|
|
|
47
49
|
__exportStar(require("./initiate-payment-setup-response-class"), exports);
|
|
48
50
|
__exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
|
|
49
51
|
__exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
|
|
52
|
+
__exportStar(require("./inline-response200"), exports);
|
|
53
|
+
__exportStar(require("./inline-response503"), exports);
|
|
50
54
|
__exportStar(require("./insured-object-class"), exports);
|
|
51
55
|
__exportStar(require("./insured-object-type-class"), exports);
|
|
52
56
|
__exportStar(require("./invoice-class"), exports);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public 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 InlineResponse200
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse200 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse200
|
|
22
|
+
*/
|
|
23
|
+
'status'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
|
+
* @memberof InlineResponse200
|
|
28
|
+
*/
|
|
29
|
+
'info'?: {
|
|
30
|
+
[key: string]: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
|
+
* @memberof InlineResponse200
|
|
38
|
+
*/
|
|
39
|
+
'error'?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
|
+
* @memberof InlineResponse200
|
|
48
|
+
*/
|
|
49
|
+
'details'?: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public 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 InlineResponse503
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse503 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof InlineResponse503
|
|
22
|
+
*/
|
|
23
|
+
'status'?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
27
|
+
* @memberof InlineResponse503
|
|
28
|
+
*/
|
|
29
|
+
'info'?: {
|
|
30
|
+
[key: string]: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
37
|
+
* @memberof InlineResponse503
|
|
38
|
+
*/
|
|
39
|
+
'error'?: {
|
|
40
|
+
[key: string]: {
|
|
41
|
+
[key: string]: string;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
47
|
+
* @memberof InlineResponse503
|
|
48
|
+
*/
|
|
49
|
+
'details'?: {
|
|
50
|
+
[key: string]: {
|
|
51
|
+
[key: string]: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public 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 });
|
|
@@ -17,10 +17,16 @@
|
|
|
17
17
|
export interface LeadPolicyObjectClass {
|
|
18
18
|
/**
|
|
19
19
|
* Unique identifier referencing the insured object.
|
|
20
|
-
* @type {
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof LeadPolicyObjectClass
|
|
22
|
+
*/
|
|
23
|
+
'insuredObjectId': object;
|
|
24
|
+
/**
|
|
25
|
+
* Insured object name.
|
|
26
|
+
* @type {object}
|
|
21
27
|
* @memberof LeadPolicyObjectClass
|
|
22
28
|
*/
|
|
23
|
-
'
|
|
29
|
+
'insuredObjectName'?: object;
|
|
24
30
|
/**
|
|
25
31
|
* Insured object data.
|
|
26
32
|
* @type {object}
|
|
@@ -16,17 +16,23 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface PolicyObjectRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {
|
|
19
|
+
* The id of the insured object to be used in the policy. The insured object id will be validated if the \'validate\' flag is set to true.
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof PolicyObjectRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'insuredObjectId'?: object;
|
|
24
|
+
/**
|
|
25
|
+
* Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
|
|
26
|
+
* @type {string}
|
|
21
27
|
* @memberof PolicyObjectRequestDto
|
|
22
28
|
*/
|
|
23
|
-
'
|
|
29
|
+
'insuredObjectName'?: string;
|
|
24
30
|
/**
|
|
25
|
-
* Insured object data.
|
|
31
|
+
* Insured object data. The date will be validated if the \'validate\' flag is set to true.
|
|
26
32
|
* @type {object}
|
|
27
33
|
* @memberof PolicyObjectRequestDto
|
|
28
34
|
*/
|
|
29
|
-
'data'
|
|
35
|
+
'data'?: object;
|
|
30
36
|
/**
|
|
31
37
|
*
|
|
32
38
|
* @type {string}
|
|
@@ -87,5 +87,13 @@ export declare const ProductDocumentClassContentTypeEnum: {
|
|
|
87
87
|
readonly Html: "html";
|
|
88
88
|
readonly Json: "json";
|
|
89
89
|
readonly Xml: "xml";
|
|
90
|
+
readonly Txt: "txt";
|
|
91
|
+
readonly Zip: "zip";
|
|
92
|
+
readonly Tar: "tar";
|
|
93
|
+
readonly Rar: "rar";
|
|
94
|
+
readonly Mp4: "MP4";
|
|
95
|
+
readonly Mov: "MOV";
|
|
96
|
+
readonly Wmv: "WMV";
|
|
97
|
+
readonly Avi: "AVI";
|
|
90
98
|
};
|
|
91
99
|
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
@@ -24,5 +24,13 @@ exports.ProductDocumentClassContentTypeEnum = {
|
|
|
24
24
|
Docx: 'docx',
|
|
25
25
|
Html: 'html',
|
|
26
26
|
Json: 'json',
|
|
27
|
-
Xml: 'xml'
|
|
27
|
+
Xml: 'xml',
|
|
28
|
+
Txt: 'txt',
|
|
29
|
+
Zip: 'zip',
|
|
30
|
+
Tar: 'tar',
|
|
31
|
+
Rar: 'rar',
|
|
32
|
+
Mp4: 'MP4',
|
|
33
|
+
Mov: 'MOV',
|
|
34
|
+
Wmv: 'WMV',
|
|
35
|
+
Avi: 'AVI'
|
|
28
36
|
};
|
|
@@ -21,13 +21,13 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
|
21
21
|
*/
|
|
22
22
|
export interface UpdateLeadRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* The lead code is used in cases where the lead has been initiated before the lead creation.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof UpdateLeadRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'code': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
31
31
|
* @type {number}
|
|
32
32
|
* @memberof UpdateLeadRequestDto
|
|
33
33
|
*/
|
|
@@ -39,45 +39,51 @@ export interface UpdateLeadRequestDto {
|
|
|
39
39
|
*/
|
|
40
40
|
'productCode': string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Account object. The create lead request should either contain accountCode or account. The account content will be validated if the \'validate\' flag is set to true. an empty object is required if \'validate flag is set to false.
|
|
43
|
+
* @type {CreateAccountRequestDto}
|
|
44
|
+
* @memberof UpdateLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'account': CreateAccountRequestDto;
|
|
47
|
+
/**
|
|
48
|
+
* The policy objects contains necessary information to create a policy. The Policy objects array will be validated if the \'validate\' flag is set to true
|
|
43
49
|
* @type {Array<PolicyObjectRequestDto>}
|
|
44
50
|
* @memberof UpdateLeadRequestDto
|
|
45
51
|
*/
|
|
46
|
-
'policyObjects'
|
|
52
|
+
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
47
53
|
/**
|
|
48
|
-
* Bank account details
|
|
49
|
-
* @type {CreateBankAccountRequestDto}
|
|
54
|
+
* Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
|
|
55
|
+
* @type {Array<CreateBankAccountRequestDto>}
|
|
50
56
|
* @memberof UpdateLeadRequestDto
|
|
51
57
|
*/
|
|
52
|
-
'bankAccount'?: CreateBankAccountRequestDto
|
|
58
|
+
'bankAccount'?: Array<CreateBankAccountRequestDto>;
|
|
53
59
|
/**
|
|
54
|
-
*
|
|
60
|
+
* Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
|
|
55
61
|
* @type {object}
|
|
56
62
|
* @memberof UpdateLeadRequestDto
|
|
57
63
|
*/
|
|
58
64
|
'customData'?: object;
|
|
59
65
|
/**
|
|
60
|
-
*
|
|
66
|
+
* Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
|
|
61
67
|
* @type {UploadedDocumentDto}
|
|
62
68
|
* @memberof UpdateLeadRequestDto
|
|
63
69
|
*/
|
|
64
70
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
65
71
|
/**
|
|
66
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
72
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
67
73
|
* @type {string}
|
|
68
74
|
* @memberof UpdateLeadRequestDto
|
|
69
75
|
*/
|
|
70
76
|
'status': string;
|
|
71
77
|
/**
|
|
72
|
-
* Payment
|
|
78
|
+
* Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
|
|
73
79
|
* @type {CreatePaymentMethodRequestDto}
|
|
74
80
|
* @memberof UpdateLeadRequestDto
|
|
75
81
|
*/
|
|
76
82
|
'paymentMethod'?: CreatePaymentMethodRequestDto;
|
|
77
83
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {
|
|
84
|
+
* The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
|
|
85
|
+
* @type {boolean}
|
|
80
86
|
* @memberof UpdateLeadRequestDto
|
|
81
87
|
*/
|
|
82
|
-
'
|
|
88
|
+
'validate'?: boolean;
|
|
83
89
|
}
|
|
@@ -21,91 +21,91 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface CreateAccountRequestDto {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Optional field to enter the honorific title you want to be called.
|
|
25
25
|
* @type {string}
|
|
26
26
|
* @memberof CreateAccountRequestDto
|
|
27
27
|
*/
|
|
28
28
|
'title'?: CreateAccountRequestDtoTitleEnum;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* The account\'s holder first name. The account\'s first name will be validated if the \'validate\' flag is set to true.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof CreateAccountRequestDto
|
|
33
33
|
*/
|
|
34
|
-
'firstName'
|
|
34
|
+
'firstName'?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The account\'s holder first name. The account\'s first name will be validated if the \'validate\' flag is set to true.
|
|
37
37
|
* @type {string}
|
|
38
38
|
* @memberof CreateAccountRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'lastName'
|
|
40
|
+
'lastName'?: string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking. The account\'s email address will be validated if the \'validate\' flag is set to true.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CreateAccountRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'email'
|
|
46
|
+
'email'?: string;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* The account\'s holder gender. The account\'s gender will be validated if the \'validate\' flag is set to true.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CreateAccountRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'gender'
|
|
52
|
+
'gender'?: CreateAccountRequestDtoGenderEnum;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The account\'s holder street name. The account\'s street name will be validated if the \'validate\' flag is set to true.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof CreateAccountRequestDto
|
|
57
57
|
*/
|
|
58
|
-
'street'
|
|
58
|
+
'street'?: string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* The account\'s holder ZIP or postal code. The account\'s ZIP or postal code will be validated if the \'validate\' flag is set to true.
|
|
61
61
|
* @type {string}
|
|
62
62
|
* @memberof CreateAccountRequestDto
|
|
63
63
|
*/
|
|
64
|
-
'zipCode'
|
|
64
|
+
'zipCode'?: string;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* The account\'s holder city, district, suburb, town, or village. The account\'s city will be validated if the \'validate\' flag is set to true.
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof CreateAccountRequestDto
|
|
69
69
|
*/
|
|
70
|
-
'city'
|
|
70
|
+
'city'?: string;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* The account\'s holder house number. The account\'s house number will be validated if the \'validate\' flag is set to true.
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof CreateAccountRequestDto
|
|
75
75
|
*/
|
|
76
|
-
'houseNumber'
|
|
76
|
+
'houseNumber'?: string;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* The account\'s holder date of birth (Required for account of type person). The account\'s date of birth will be validated if the \'validate\' flag is set to true.
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof CreateAccountRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'birthDate'?: string;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* The account\'s holder phone number. The account\'s phone number will be validated if the \'validate\' flag is set to true.
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof CreateAccountRequestDto
|
|
87
87
|
*/
|
|
88
|
-
'phone'
|
|
88
|
+
'phone'?: string;
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* The account\'s type. Default value is person
|
|
91
91
|
* @type {string}
|
|
92
92
|
* @memberof CreateAccountRequestDto
|
|
93
93
|
*/
|
|
94
94
|
'type'?: CreateAccountRequestDtoTypeEnum;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
96
|
+
* The account\'s company name (Required for account of type org). The account\'s company name will be validated if the \'validate\' flag is set to true.
|
|
97
97
|
* @type {string}
|
|
98
98
|
* @memberof CreateAccountRequestDto
|
|
99
99
|
*/
|
|
100
100
|
'companyName'?: string;
|
|
101
101
|
/**
|
|
102
|
-
* Account number
|
|
102
|
+
* Account number.
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof CreateAccountRequestDto
|
|
105
105
|
*/
|
|
106
106
|
'accountNumber'?: string;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Optional custom fields for account. It could be included additional required/optional fields that the account would need for specific cases.
|
|
109
109
|
* @type {object}
|
|
110
110
|
* @memberof CreateAccountRequestDto
|
|
111
111
|
*/
|
|
@@ -109,7 +109,15 @@ export const CreateDocumentRequestDtoContentTypeEnum = {
|
|
|
109
109
|
Docx: 'docx',
|
|
110
110
|
Html: 'html',
|
|
111
111
|
Json: 'json',
|
|
112
|
-
Xml: 'xml'
|
|
112
|
+
Xml: 'xml',
|
|
113
|
+
Txt: 'txt',
|
|
114
|
+
Zip: 'zip',
|
|
115
|
+
Tar: 'tar',
|
|
116
|
+
Rar: 'rar',
|
|
117
|
+
Mp4: 'MP4',
|
|
118
|
+
Mov: 'MOV',
|
|
119
|
+
Wmv: 'WMV',
|
|
120
|
+
Avi: 'AVI'
|
|
113
121
|
} as const;
|
|
114
122
|
|
|
115
123
|
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
@@ -27,13 +27,13 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateLeadRequestDto {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* The lead code is used in cases where the lead has been initiated before the lead creation.
|
|
31
31
|
* @type {string}
|
|
32
32
|
* @memberof CreateLeadRequestDto
|
|
33
33
|
*/
|
|
34
34
|
'code'?: string;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
|
|
37
37
|
* @type {number}
|
|
38
38
|
* @memberof CreateLeadRequestDto
|
|
39
39
|
*/
|
|
@@ -45,58 +45,64 @@ export interface CreateLeadRequestDto {
|
|
|
45
45
|
*/
|
|
46
46
|
'productCode': string;
|
|
47
47
|
/**
|
|
48
|
-
* Account. The create lead request should either contain accountCode or account.
|
|
48
|
+
* Account object. The create lead request should either contain accountCode or account. The account content will be validated if the \'validate\' flag is set to true. an empty object is required if \'validate flag is set to false.
|
|
49
49
|
* @type {CreateAccountRequestDto}
|
|
50
50
|
* @memberof CreateLeadRequestDto
|
|
51
51
|
*/
|
|
52
52
|
'account'?: CreateAccountRequestDto;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof CreateLeadRequestDto
|
|
57
57
|
*/
|
|
58
58
|
'accountCode'?: string;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* The policy objects contains necessary information to create a policy. The Policy objects array will be validated if the \'validate\' flag is set to true
|
|
61
61
|
* @type {Array<PolicyObjectRequestDto>}
|
|
62
62
|
* @memberof CreateLeadRequestDto
|
|
63
63
|
*/
|
|
64
|
-
'policyObjects'
|
|
64
|
+
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
65
65
|
/**
|
|
66
|
-
* Bank account details.
|
|
66
|
+
* Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
|
|
67
67
|
* @type {CreateBankAccountRequestDto}
|
|
68
68
|
* @memberof CreateLeadRequestDto
|
|
69
69
|
*/
|
|
70
70
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
|
|
73
73
|
* @type {object}
|
|
74
74
|
* @memberof CreateLeadRequestDto
|
|
75
75
|
*/
|
|
76
76
|
'customData'?: object;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
|
|
79
79
|
* @type {UploadedDocumentDto}
|
|
80
80
|
* @memberof CreateLeadRequestDto
|
|
81
81
|
*/
|
|
82
82
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
83
83
|
/**
|
|
84
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
84
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
85
85
|
* @type {string}
|
|
86
86
|
* @memberof CreateLeadRequestDto
|
|
87
87
|
*/
|
|
88
88
|
'status'?: string;
|
|
89
89
|
/**
|
|
90
|
-
* Premium Override.
|
|
91
|
-
* @type {PremiumOverrideRequestDto}
|
|
90
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
91
|
+
* @type {Array<PremiumOverrideRequestDto>}
|
|
92
92
|
* @memberof CreateLeadRequestDto
|
|
93
93
|
*/
|
|
94
|
-
'premiumOverride'?: PremiumOverrideRequestDto
|
|
94
|
+
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
95
95
|
/**
|
|
96
|
-
* Payment
|
|
96
|
+
* Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
|
|
97
97
|
* @type {CreatePaymentMethodRequestDto}
|
|
98
98
|
* @memberof CreateLeadRequestDto
|
|
99
99
|
*/
|
|
100
100
|
'paymentMethod'?: CreatePaymentMethodRequestDto;
|
|
101
|
+
/**
|
|
102
|
+
* The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof CreateLeadRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'validate'?: boolean;
|
|
101
107
|
}
|
|
102
108
|
|