Update life quotes to use new policy API structure
- Update life quote types to use insured/buyer instead of client - Update life fields: add coverage_type, coverage_amount, coverage_years, smoker, medications, surgeries, weight, height - Remove deprecated fields: dateOfBirth, age, gender, preexistingConditions, preexistingDetails, beneficiaryName, beneficiaryRelationship - Update life quote SetupStep component to use customer selection - Add Insured and Buyer sections with customer search and selection - Add health questionnaire with smoker, medications, surgeries, weight, height fields - Add coverage_type field (banking | protection) - Update life quote page to use new composables and API structure - Update validation to use insured/buyer validation - Update submission to use policy API with new structure
This commit is contained in:
@@ -4,24 +4,17 @@ export function emptyLifeQuoteDraft(): LifeQuoteDraft {
|
||||
return {
|
||||
quoteMode: null,
|
||||
segment: null,
|
||||
client: {
|
||||
fullName: '',
|
||||
email: '',
|
||||
phone: '',
|
||||
documentId: '',
|
||||
organizationName: ''
|
||||
},
|
||||
insured: null,
|
||||
buyer: null,
|
||||
life: {
|
||||
dateOfBirth: '',
|
||||
age: '',
|
||||
gender: '',
|
||||
coverage_type: 'banking',
|
||||
coverage_amount: 0,
|
||||
coverage_years: 10,
|
||||
smoker: false,
|
||||
preexistingConditions: false,
|
||||
preexistingDetails: '',
|
||||
coverageAmount: '',
|
||||
coverageTerm: '',
|
||||
beneficiaryName: '',
|
||||
beneficiaryRelationship: ''
|
||||
medications: '',
|
||||
surgeries: '',
|
||||
weight: 0,
|
||||
height: 0
|
||||
},
|
||||
forms: {
|
||||
medicalQuestionnaire: false,
|
||||
|
||||
Reference in New Issue
Block a user