Final Expenses (SLI)
Below is the model for just user.preneed.finalExpenses
Model​
user.preneed.finalExpenses
finalExpenses: {
bulletPoints: [String],
estimate: Number,
incrementValue: Number,
inflationPercentage: Number,
lastUpdated: Date,
lastViewedScreen: {
screenId: {
type: String,
enum: ['details', 'climate', 'surroundings', 'hobbies', 'travel', 'food', 'rest']
},
date: Date
},
maximumPrice: Number,
minimumPrice: Number,
monthlyRateMultiplier: Number,
monthlyRateMultiplierLastUpdated: Date,
priceChangeLog: [
{
direction: {
type: String,
enum: ['up', 'none', 'down']
},
date: Date,
screenId: {
type: String,
enum: ['details', 'climate', 'surroundings', 'hobbies', 'travel', 'food', 'rest']
}
}
],
selectedPrice: Number
}
Data​
| Key | Type | Description | Notes |
|---|---|---|---|
| bulletPoints | [String] | An array of bullet points used for display in the flow. | Reference for bulletpoints |
| estimate | Number | The user's Final Expenses estimate based on the user's preneed package, rounded up to the nearest $2000. | |
| 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 Final Expenses flow | Reference 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. |