Files
policy-ui/app/types/quote-view-model.ts
Jordan Weingarten 67482f6629 WIP jordan
2026-04-16 11:11:44 -05:00

49 lines
1.0 KiB
TypeScript

export type QuoteClientSnapshot = {
name: string
ageYears: number
gender: 'Femenino' | 'Masculino' | 'Otro'
smoker: boolean
riskClass: string
occupation: string
}
export type QuoteRequestSnapshot = {
sumAssuredUsd: number
monthlyPremiumUsd: number
annualPremiumUsd: number
benefitTypeLabel: string
additionalCoverageLabel: string
initialDepositLabel: string
}
export type QuoteSavingsCell = {
yearLabel: string
ageLabel: string
guaranteed: number
projected: number
}
export type QuoteCarrierProductRow = {
carrierName: string
productName: string
ratesLine: string
sumAssuredUsd: number
cells: QuoteSavingsCell[]
highlightProjectedUsd?: number
highlightNote?: string
footnote?: string
}
export type QuoteComparativeView = {
title: string
subtitle: string
tagline: string
quoteDateIso: string
validDays: number
client: QuoteClientSnapshot
request: QuoteRequestSnapshot
carriers: QuoteCarrierProductRow[]
accumulatedPremiumsUsd: number[]
advisorColumns: [string, string, string]
}