Skip to main content

Term Life

Below is the model for just user.purchase.aa.termLife

Model​

user.purchase.aa.termLife
termLife: {
lastUpdated: Date,
lastViewedScreen: {
screenId: {
type: String,
enum: ['start', 'care', 'memorial', 'inflation', 'discount', 'summary']
},
date: Date
},
maximumPrice: Number,
minimumPrice: Number,
monthlyRateMultiplier: Number,
monthlyRateMultiplierLastUpdated: Date,
priceChangeLog: [
{
direction: {
type: String,
enum: ['up', 'none', 'down']
},
date: Date,
screenId: {
type: String,
enum: ['start', 'care', 'memorial', 'inflation', 'discount', 'summary']
}
}
],
selectedPrice: Number
}

Data​

| Key | Type | Description | Notes | | -------------------------------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | | | incrementValue | Number | The value to increment by when using the slider UI. | | | inflationPercentage | Number | The percentage value of inflation rate, calculated using the user's age and gender and an inflation rate formula. | Link to inflation forumula will be added later | | lastUpdated | Date | When user.finalExpenses was last updated. | May not be reliable ATM | | lastViewedScreen | { screenId: string, date: Date } | Info about the last screen the user viewed in the Term Life flow | for screenIds | | maximumPrice | Number | The upper bound for the range of prices the user can select. | | | minimumPrice | Number | The lower bound for the range of prices the user can select. | | | monthlyRateMultiplier | Number | The multiplier/ratio to use when calculating the user's Monthly Rate. (monthlyAmount = estimate * monthlyRateMultiplier) Calculated based on the user's age and gender, this number will be a decimal. | ex. 0.0084 | | monthlyRateMultiplierLastUpdated | Date | When the monthlyRateMultiplier was last updated. | May not be needed or reliable ATM | | priceChangeLog | Array | An array that logs each time the user adjusts the price and the direction of the price change. Tracks direction, date it occured, and screenId where the price was changed. | Currently not utilized by the clients, only for internal data tracking as of now | | selectedPrice | Number | The price value the user has selected for themselves via the slider UI. |