WIP jordan
This commit is contained in:
48
app/types/quote-view-model.ts
Normal file
48
app/types/quote-view-model.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
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]
|
||||
}
|
||||
Reference in New Issue
Block a user