@emilgroup/public-api-sdk 1.39.1-beta.1 → 1.39.1-beta.10
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/README.md +2 -2
- package/api/partners-api.ts +4 -4
- package/dist/api/partners-api.d.ts +4 -4
- package/dist/api/partners-api.js +4 -4
- package/dist/models/create-account-request-dto.d.ts +8 -4
- package/dist/models/create-custom-application-request-dto.d.ts +4 -2
- package/dist/models/create-document-request-dto.d.ts +8 -4
- package/dist/models/create-estimated-invoice-request-dto.d.ts +4 -2
- package/dist/models/create-lead-request-dto.d.ts +4 -2
- package/dist/models/policy-object-request-dto.d.ts +4 -2
- package/dist/models/send-notification-request-dto.d.ts +4 -2
- package/dist/models/update-lead-request-dto.d.ts +4 -2
- package/dist/models/validate-partner-request-dto.d.ts +21 -3
- package/dist/models/validate-partner-response-class.d.ts +1 -1
- package/models/create-account-request-dto.ts +4 -4
- package/models/create-custom-application-request-dto.ts +2 -2
- package/models/create-document-request-dto.ts +4 -4
- package/models/create-estimated-invoice-request-dto.ts +2 -2
- package/models/create-lead-request-dto.ts +2 -2
- package/models/policy-object-request-dto.ts +2 -2
- package/models/send-notification-request-dto.ts +2 -2
- package/models/update-lead-request-dto.ts +2 -2
- package/models/validate-partner-request-dto.ts +21 -3
- package/models/validate-partner-response-class.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk@1.39.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.39.1-beta.10 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.39.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.39.1-beta.10
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
package/api/partners-api.ts
CHANGED
|
@@ -31,7 +31,7 @@ import { ValidatePartnerResponseClass } from '../models';
|
|
|
31
31
|
export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
|
-
* Validates a partner identity by partnerNumber and
|
|
34
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
35
35
|
* @summary Validate a partner
|
|
36
36
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
37
37
|
* @param {string} [authorization] Bearer Token
|
|
@@ -88,7 +88,7 @@ export const PartnersApiFp = function(configuration?: Configuration) {
|
|
|
88
88
|
const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
|
|
89
89
|
return {
|
|
90
90
|
/**
|
|
91
|
-
* Validates a partner identity by partnerNumber and
|
|
91
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
92
92
|
* @summary Validate a partner
|
|
93
93
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
94
94
|
* @param {string} [authorization] Bearer Token
|
|
@@ -110,7 +110,7 @@ export const PartnersApiFactory = function (configuration?: Configuration, baseP
|
|
|
110
110
|
const localVarFp = PartnersApiFp(configuration)
|
|
111
111
|
return {
|
|
112
112
|
/**
|
|
113
|
-
* Validates a partner identity by partnerNumber and
|
|
113
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
114
114
|
* @summary Validate a partner
|
|
115
115
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
116
116
|
* @param {string} [authorization] Bearer Token
|
|
@@ -152,7 +152,7 @@ export interface PartnersApiValidatePartnerRequest {
|
|
|
152
152
|
*/
|
|
153
153
|
export class PartnersApi extends BaseAPI {
|
|
154
154
|
/**
|
|
155
|
-
* Validates a partner identity by partnerNumber and
|
|
155
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
156
156
|
* @summary Validate a partner
|
|
157
157
|
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
@@ -20,7 +20,7 @@ import { ValidatePartnerResponseClass } from '../models';
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const PartnersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
|
-
* Validates a partner identity by partnerNumber and
|
|
23
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
24
24
|
* @summary Validate a partner
|
|
25
25
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
26
26
|
* @param {string} [authorization] Bearer Token
|
|
@@ -35,7 +35,7 @@ export declare const PartnersApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
37
37
|
/**
|
|
38
|
-
* Validates a partner identity by partnerNumber and
|
|
38
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
39
39
|
* @summary Validate a partner
|
|
40
40
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
@@ -50,7 +50,7 @@ export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const PartnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
52
|
/**
|
|
53
|
-
* Validates a partner identity by partnerNumber and
|
|
53
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
54
54
|
* @summary Validate a partner
|
|
55
55
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
56
56
|
* @param {string} [authorization] Bearer Token
|
|
@@ -86,7 +86,7 @@ export interface PartnersApiValidatePartnerRequest {
|
|
|
86
86
|
*/
|
|
87
87
|
export declare class PartnersApi extends BaseAPI {
|
|
88
88
|
/**
|
|
89
|
-
* Validates a partner identity by partnerNumber and
|
|
89
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
90
90
|
* @summary Validate a partner
|
|
91
91
|
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
92
92
|
* @param {*} [options] Override http request option.
|
package/dist/api/partners-api.js
CHANGED
|
@@ -93,7 +93,7 @@ var PartnersApiAxiosParamCreator = function (configuration) {
|
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
95
|
/**
|
|
96
|
-
* Validates a partner identity by partnerNumber and
|
|
96
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
97
97
|
* @summary Validate a partner
|
|
98
98
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
@@ -152,7 +152,7 @@ var PartnersApiFp = function (configuration) {
|
|
|
152
152
|
var localVarAxiosParamCreator = (0, exports.PartnersApiAxiosParamCreator)(configuration);
|
|
153
153
|
return {
|
|
154
154
|
/**
|
|
155
|
-
* Validates a partner identity by partnerNumber and
|
|
155
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
156
156
|
* @summary Validate a partner
|
|
157
157
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
158
158
|
* @param {string} [authorization] Bearer Token
|
|
@@ -183,7 +183,7 @@ var PartnersApiFactory = function (configuration, basePath, axios) {
|
|
|
183
183
|
var localVarFp = (0, exports.PartnersApiFp)(configuration);
|
|
184
184
|
return {
|
|
185
185
|
/**
|
|
186
|
-
* Validates a partner identity by partnerNumber and
|
|
186
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
187
187
|
* @summary Validate a partner
|
|
188
188
|
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
189
189
|
* @param {string} [authorization] Bearer Token
|
|
@@ -208,7 +208,7 @@ var PartnersApi = /** @class */ (function (_super) {
|
|
|
208
208
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
|
-
* Validates a partner identity by partnerNumber and
|
|
211
|
+
* Validates a partner identity by partnerNumber and at least 2 of: birthdate, postalCode, email, primaryPhone. All provided fields must match (AND logic). Never returns partner data — only isValid.
|
|
212
212
|
* @summary Validate a partner
|
|
213
213
|
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
214
214
|
* @param {*} [options] Override http request option.
|
|
@@ -101,16 +101,20 @@ export interface CreateAccountRequestDto {
|
|
|
101
101
|
'accountNumber'?: string;
|
|
102
102
|
/**
|
|
103
103
|
* Optional custom fields for account. It could be included additional required/optional fields that the account would need for specific cases.
|
|
104
|
-
* @type {object}
|
|
104
|
+
* @type {{ [key: string]: object; }}
|
|
105
105
|
* @memberof CreateAccountRequestDto
|
|
106
106
|
*/
|
|
107
|
-
'customFields'?:
|
|
107
|
+
'customFields'?: {
|
|
108
|
+
[key: string]: object;
|
|
109
|
+
};
|
|
108
110
|
/**
|
|
109
111
|
* Metadata contains extra information that the account would need for specific cases.
|
|
110
|
-
* @type {object}
|
|
112
|
+
* @type {{ [key: string]: object; }}
|
|
111
113
|
* @memberof CreateAccountRequestDto
|
|
112
114
|
*/
|
|
113
|
-
'metadata'?:
|
|
115
|
+
'metadata'?: {
|
|
116
|
+
[key: string]: object;
|
|
117
|
+
};
|
|
114
118
|
}
|
|
115
119
|
export declare const CreateAccountRequestDtoTitleEnum: {
|
|
116
120
|
readonly Empty: "";
|
|
@@ -17,10 +17,12 @@
|
|
|
17
17
|
export interface CreateCustomApplicationRequestDto {
|
|
18
18
|
/**
|
|
19
19
|
* Required data to create a custom application.
|
|
20
|
-
* @type {object}
|
|
20
|
+
* @type {{ [key: string]: object; }}
|
|
21
21
|
* @memberof CreateCustomApplicationRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'data':
|
|
23
|
+
'data': {
|
|
24
|
+
[key: string]: object;
|
|
25
|
+
};
|
|
24
26
|
/**
|
|
25
27
|
* Custom provider name.
|
|
26
28
|
* @type {string}
|
|
@@ -29,10 +29,12 @@ export interface CreateDocumentRequestDto {
|
|
|
29
29
|
'productSlug'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Document payload.
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof CreateDocumentRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'payload':
|
|
35
|
+
'payload': {
|
|
36
|
+
[key: string]: object;
|
|
37
|
+
};
|
|
36
38
|
/**
|
|
37
39
|
* Document entity type.
|
|
38
40
|
* @type {string}
|
|
@@ -71,10 +73,12 @@ export interface CreateDocumentRequestDto {
|
|
|
71
73
|
'requester': CreateDocumentRequestDtoRequesterEnum;
|
|
72
74
|
/**
|
|
73
75
|
* Metadata contains extra information that the document would need for specific cases.
|
|
74
|
-
* @type {object}
|
|
76
|
+
* @type {{ [key: string]: object; }}
|
|
75
77
|
* @memberof CreateDocumentRequestDto
|
|
76
78
|
*/
|
|
77
|
-
'metadata'?:
|
|
79
|
+
'metadata'?: {
|
|
80
|
+
[key: string]: object;
|
|
81
|
+
};
|
|
78
82
|
/**
|
|
79
83
|
* Document type.
|
|
80
84
|
* @type {string}
|
|
@@ -31,10 +31,12 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
31
31
|
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
32
32
|
/**
|
|
33
33
|
* Customer custom data for premium calculation. Necessary when no policyObjects are provided.
|
|
34
|
-
* @type {object}
|
|
34
|
+
* @type {{ [key: string]: object; }}
|
|
35
35
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
36
36
|
*/
|
|
37
|
-
'data'?:
|
|
37
|
+
'data'?: {
|
|
38
|
+
[key: string]: object;
|
|
39
|
+
};
|
|
38
40
|
/**
|
|
39
41
|
* Custom provider name. Necessary if data is provided.
|
|
40
42
|
* @type {string}
|
|
@@ -72,10 +72,12 @@ export interface CreateLeadRequestDto {
|
|
|
72
72
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
73
73
|
/**
|
|
74
74
|
* 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
|
|
75
|
-
* @type {object}
|
|
75
|
+
* @type {{ [key: string]: object; }}
|
|
76
76
|
* @memberof CreateLeadRequestDto
|
|
77
77
|
*/
|
|
78
|
-
'customData'?:
|
|
78
|
+
'customData'?: {
|
|
79
|
+
[key: string]: object;
|
|
80
|
+
};
|
|
79
81
|
/**
|
|
80
82
|
* 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.
|
|
81
83
|
* @type {UploadedDocumentDto}
|
|
@@ -29,10 +29,12 @@ export interface PolicyObjectRequestDto {
|
|
|
29
29
|
'insuredObjectName'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Insured object data. The date will be validated if the \'validate\' flag is set to true.
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof PolicyObjectRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'data'?:
|
|
35
|
+
'data'?: {
|
|
36
|
+
[key: string]: object;
|
|
37
|
+
};
|
|
36
38
|
/**
|
|
37
39
|
*
|
|
38
40
|
* @type {string}
|
|
@@ -29,8 +29,10 @@ export interface SendNotificationRequestDto {
|
|
|
29
29
|
'emailSubject'?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Payload is used by the template engine to replace all template variables with proper data. For more information, please go to https://github.com/flosch/pongo2.
|
|
32
|
-
* @type {object}
|
|
32
|
+
* @type {{ [key: string]: object; }}
|
|
33
33
|
* @memberof SendNotificationRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'payload'?:
|
|
35
|
+
'payload'?: {
|
|
36
|
+
[key: string]: object;
|
|
37
|
+
};
|
|
36
38
|
}
|
|
@@ -65,10 +65,12 @@ export interface UpdateLeadRequestDto {
|
|
|
65
65
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
66
66
|
/**
|
|
67
67
|
* 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
|
|
68
|
-
* @type {object}
|
|
68
|
+
* @type {{ [key: string]: object; }}
|
|
69
69
|
* @memberof UpdateLeadRequestDto
|
|
70
70
|
*/
|
|
71
|
-
'customData'?:
|
|
71
|
+
'customData'?: {
|
|
72
|
+
[key: string]: object;
|
|
73
|
+
};
|
|
72
74
|
/**
|
|
73
75
|
* 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.
|
|
74
76
|
* @type {UploadedDocumentDto}
|
|
@@ -22,9 +22,27 @@ export interface ValidatePartnerRequestDto {
|
|
|
22
22
|
*/
|
|
23
23
|
'partnerNumber': string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* Partner birthdate to validate against partner data.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ValidatePartnerRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'birthdate'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Postal code to validate against partner data.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ValidatePartnerRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'postalCode'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Email address to validate against partner data.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidatePartnerRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'email'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Primary phone number to validate against partner data.
|
|
44
|
+
* @type {string}
|
|
27
45
|
* @memberof ValidatePartnerRequestDto
|
|
28
46
|
*/
|
|
29
|
-
'
|
|
47
|
+
'primaryPhone'?: string;
|
|
30
48
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ValidatePartnerResponseClass {
|
|
18
18
|
/**
|
|
19
|
-
* True when the partner was found and all provided
|
|
19
|
+
* True when the partner was found and all provided validation fields matched.
|
|
20
20
|
* @type {boolean}
|
|
21
21
|
* @memberof ValidatePartnerResponseClass
|
|
22
22
|
*/
|
|
@@ -106,16 +106,16 @@ export interface CreateAccountRequestDto {
|
|
|
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
|
-
* @type {object}
|
|
109
|
+
* @type {{ [key: string]: object; }}
|
|
110
110
|
* @memberof CreateAccountRequestDto
|
|
111
111
|
*/
|
|
112
|
-
'customFields'?: object;
|
|
112
|
+
'customFields'?: { [key: string]: object; };
|
|
113
113
|
/**
|
|
114
114
|
* Metadata contains extra information that the account would need for specific cases.
|
|
115
|
-
* @type {object}
|
|
115
|
+
* @type {{ [key: string]: object; }}
|
|
116
116
|
* @memberof CreateAccountRequestDto
|
|
117
117
|
*/
|
|
118
|
-
'metadata'?: object;
|
|
118
|
+
'metadata'?: { [key: string]: object; };
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export const CreateAccountRequestDtoTitleEnum = {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
export interface CreateCustomApplicationRequestDto {
|
|
23
23
|
/**
|
|
24
24
|
* Required data to create a custom application.
|
|
25
|
-
* @type {object}
|
|
25
|
+
* @type {{ [key: string]: object; }}
|
|
26
26
|
* @memberof CreateCustomApplicationRequestDto
|
|
27
27
|
*/
|
|
28
|
-
'data': object;
|
|
28
|
+
'data': { [key: string]: object; };
|
|
29
29
|
/**
|
|
30
30
|
* Custom provider name.
|
|
31
31
|
* @type {string}
|
|
@@ -34,10 +34,10 @@ export interface CreateDocumentRequestDto {
|
|
|
34
34
|
'productSlug'?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Document payload.
|
|
37
|
-
* @type {object}
|
|
37
|
+
* @type {{ [key: string]: object; }}
|
|
38
38
|
* @memberof CreateDocumentRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'payload': object;
|
|
40
|
+
'payload': { [key: string]: object; };
|
|
41
41
|
/**
|
|
42
42
|
* Document entity type.
|
|
43
43
|
* @type {string}
|
|
@@ -76,10 +76,10 @@ export interface CreateDocumentRequestDto {
|
|
|
76
76
|
'requester': CreateDocumentRequestDtoRequesterEnum;
|
|
77
77
|
/**
|
|
78
78
|
* Metadata contains extra information that the document would need for specific cases.
|
|
79
|
-
* @type {object}
|
|
79
|
+
* @type {{ [key: string]: object; }}
|
|
80
80
|
* @memberof CreateDocumentRequestDto
|
|
81
81
|
*/
|
|
82
|
-
'metadata'?: object;
|
|
82
|
+
'metadata'?: { [key: string]: object; };
|
|
83
83
|
/**
|
|
84
84
|
* Document type.
|
|
85
85
|
* @type {string}
|
|
@@ -36,10 +36,10 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
36
36
|
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
37
37
|
/**
|
|
38
38
|
* Customer custom data for premium calculation. Necessary when no policyObjects are provided.
|
|
39
|
-
* @type {object}
|
|
39
|
+
* @type {{ [key: string]: object; }}
|
|
40
40
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
41
41
|
*/
|
|
42
|
-
'data'?: object;
|
|
42
|
+
'data'?: { [key: string]: object; };
|
|
43
43
|
/**
|
|
44
44
|
* Custom provider name. Necessary if data is provided.
|
|
45
45
|
* @type {string}
|
|
@@ -77,10 +77,10 @@ export interface CreateLeadRequestDto {
|
|
|
77
77
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
78
78
|
/**
|
|
79
79
|
* 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
|
|
80
|
-
* @type {object}
|
|
80
|
+
* @type {{ [key: string]: object; }}
|
|
81
81
|
* @memberof CreateLeadRequestDto
|
|
82
82
|
*/
|
|
83
|
-
'customData'?: object;
|
|
83
|
+
'customData'?: { [key: string]: object; };
|
|
84
84
|
/**
|
|
85
85
|
* 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.
|
|
86
86
|
* @type {UploadedDocumentDto}
|
|
@@ -34,10 +34,10 @@ export interface PolicyObjectRequestDto {
|
|
|
34
34
|
'insuredObjectName'?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Insured object data. The date will be validated if the \'validate\' flag is set to true.
|
|
37
|
-
* @type {object}
|
|
37
|
+
* @type {{ [key: string]: object; }}
|
|
38
38
|
* @memberof PolicyObjectRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'data'?: object;
|
|
40
|
+
'data'?: { [key: string]: object; };
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @type {string}
|
|
@@ -34,9 +34,9 @@ export interface SendNotificationRequestDto {
|
|
|
34
34
|
'emailSubject'?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Payload is used by the template engine to replace all template variables with proper data. For more information, please go to https://github.com/flosch/pongo2.
|
|
37
|
-
* @type {object}
|
|
37
|
+
* @type {{ [key: string]: object; }}
|
|
38
38
|
* @memberof SendNotificationRequestDto
|
|
39
39
|
*/
|
|
40
|
-
'payload'?: object;
|
|
40
|
+
'payload'?: { [key: string]: object; };
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -70,10 +70,10 @@ export interface UpdateLeadRequestDto {
|
|
|
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
|
-
* @type {object}
|
|
73
|
+
* @type {{ [key: string]: object; }}
|
|
74
74
|
* @memberof UpdateLeadRequestDto
|
|
75
75
|
*/
|
|
76
|
-
'customData'?: object;
|
|
76
|
+
'customData'?: { [key: string]: 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}
|
|
@@ -27,10 +27,28 @@ export interface ValidatePartnerRequestDto {
|
|
|
27
27
|
*/
|
|
28
28
|
'partnerNumber': string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {
|
|
30
|
+
* Partner birthdate to validate against partner data.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ValidatePartnerRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'birthdate'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Postal code to validate against partner data.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ValidatePartnerRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'postalCode'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Email address to validate against partner data.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ValidatePartnerRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'email'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Primary phone number to validate against partner data.
|
|
49
|
+
* @type {string}
|
|
32
50
|
* @memberof ValidatePartnerRequestDto
|
|
33
51
|
*/
|
|
34
|
-
'
|
|
52
|
+
'primaryPhone'?: string;
|
|
35
53
|
}
|
|
36
54
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*/
|
|
22
22
|
export interface ValidatePartnerResponseClass {
|
|
23
23
|
/**
|
|
24
|
-
* True when the partner was found and all provided
|
|
24
|
+
* True when the partner was found and all provided validation fields matched.
|
|
25
25
|
* @type {boolean}
|
|
26
26
|
* @memberof ValidatePartnerResponseClass
|
|
27
27
|
*/
|