@emilgroup/public-api-sdk 1.12.0 → 1.14.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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +120 -0
  4. package/api/documents-api.ts +107 -0
  5. package/api.ts +2 -0
  6. package/dist/api/default-api.d.ts +66 -0
  7. package/dist/api/default-api.js +196 -0
  8. package/dist/api/documents-api.d.ts +57 -0
  9. package/dist/api/documents-api.js +93 -0
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/create-account-request-dto.d.ts +24 -24
  13. package/dist/models/create-document-request-dto.d.ts +8 -0
  14. package/dist/models/create-document-request-dto.js +9 -1
  15. package/dist/models/create-lead-request-dto.d.ts +20 -14
  16. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  17. package/dist/models/create-presigned-post-request-dto.js +52 -0
  18. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  19. package/dist/models/create-presigned-post-response-class.js +15 -0
  20. package/dist/models/document-class.d.ts +8 -0
  21. package/dist/models/document-class.js +9 -1
  22. package/dist/models/index.d.ts +4 -0
  23. package/dist/models/index.js +4 -0
  24. package/dist/models/inline-response200.d.ts +54 -0
  25. package/dist/models/inline-response200.js +15 -0
  26. package/dist/models/inline-response503.d.ts +54 -0
  27. package/dist/models/inline-response503.js +15 -0
  28. package/dist/models/lead-policy-object-class.d.ts +8 -2
  29. package/dist/models/policy-object-request-dto.d.ts +11 -5
  30. package/dist/models/product-class.d.ts +6 -0
  31. package/dist/models/product-document-class.d.ts +8 -0
  32. package/dist/models/product-document-class.js +9 -1
  33. package/dist/models/update-lead-request-dto.d.ts +20 -14
  34. package/models/create-account-request-dto.ts +24 -24
  35. package/models/create-document-request-dto.ts +9 -1
  36. package/models/create-lead-request-dto.ts +20 -14
  37. package/models/create-presigned-post-request-dto.ts +138 -0
  38. package/models/create-presigned-post-response-class.ts +36 -0
  39. package/models/document-class.ts +9 -1
  40. package/models/index.ts +4 -0
  41. package/models/inline-response200.ts +48 -0
  42. package/models/inline-response503.ts +48 -0
  43. package/models/lead-policy-object-class.ts +8 -2
  44. package/models/policy-object-request-dto.ts +11 -5
  45. package/models/product-class.ts +6 -0
  46. package/models/product-document-class.ts +9 -1
  47. package/models/update-lead-request-dto.ts +20 -14
  48. package/package.json +2 -1
@@ -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 {number}
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
- 'insuredObjectId': number;
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
- * Unique identifier referencing the insured object.
20
- * @type {number}
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
- 'insuredObjectId': number;
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': object;
35
+ 'data'?: object;
30
36
  /**
31
37
  *
32
38
  * @type {string}
@@ -71,4 +71,10 @@ export interface ProductClass {
71
71
  * @memberof ProductClass
72
72
  */
73
73
  'updatedAt': string;
74
+ /**
75
+ * Default language of the product.
76
+ * @type {string}
77
+ * @memberof ProductClass
78
+ */
79
+ 'defaultLanguage': string;
74
80
  }
@@ -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
- * Unique identifier for the object.
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
- * Unique identifier referencing the product version.
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': Array<PolicyObjectRequestDto>;
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
- * Custom data.
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
- * Codes for documents to be uploaded.
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\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
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 Method.
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 {CreateAccountRequestDto}
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
- 'account': CreateAccountRequestDto;
88
+ 'validate'?: boolean;
83
89
  }
@@ -21,91 +21,91 @@
21
21
  */
22
22
  export interface CreateAccountRequestDto {
23
23
  /**
24
- * Customer honorific title
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
- * Customer first name
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': string;
34
+ 'firstName'?: string;
35
35
  /**
36
- * Customer last name
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': string;
40
+ 'lastName'?: string;
41
41
  /**
42
- * Customer email
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': string;
46
+ 'email'?: string;
47
47
  /**
48
- * Customer gender
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': CreateAccountRequestDtoGenderEnum;
52
+ 'gender'?: CreateAccountRequestDtoGenderEnum;
53
53
  /**
54
- * Customer street
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': string;
58
+ 'street'?: string;
59
59
  /**
60
- * Customer zip code
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': string;
64
+ 'zipCode'?: string;
65
65
  /**
66
- * Customer city
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': string;
70
+ 'city'?: string;
71
71
  /**
72
- * Customer house number
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': string;
76
+ 'houseNumber'?: string;
77
77
  /**
78
- * Customer birth date (Required for account of type person).
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
- * Customer phone number
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': string;
88
+ 'phone'?: string;
89
89
  /**
90
- * Optional field to enter the type of the account.
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
- * Customer company name (Required for account of type org).
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
- * Custom fields could be included additional required/optional fields that the account would need for specific cases.
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
- * Unique identifier for the object.
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
- * Unique identifier referencing the product version.
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
- * Account code. The create lead request should either contain accountCode or account.
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': Array<PolicyObjectRequestDto>;
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
- * Custom data.
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
- * Codes for documents to be uploaded.
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\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
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 Method.
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