49 lines
1.0 KiB
TypeScript
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]
|
|
}
|