- ID
- da7e4ccd-a8c6-49b1-b8f9-c21e72664cfb
2023-08-02
DONE Ask Wed. question: If you could be anywhere watching the sunset tomorrow, where would you want to be?
DONE Prep for mob session ticket on NY tier updtaes
From Sergio Leon:
The ROC inherits from ReductionBasedRateOrderCalculator in platform-core.
Basically, it uses a list of calculations that mutate the policy premium at each
step (STEPS = [ArticlesFactorStep, BaseFactorStep, OptionalAddonsStep])
ToggleRentersRateOrderCalculatorDataSource is the data source for each of these
steps (adapter for policy or quote data)
For example, the BaseFactorStep looks up and multiplies the factors stored in
FarmersRentersRate db objects based on the policy/quote region. afterwards, line
items and taxes are calculated and added to the subtotal.
Based on the new requirements(https://app.box.com/file/1203377498429) it looks
like the credit score rate calculation will need to be updated. right now the
factor is only based on a lookup of the numerical
Quote.metadata.credit_score.last_score in the FarmersRentersRate table. but now
it will be based on three intermediate lookups (score group, occupancy group,
underwriting group) rather than just that one lookup.
the credit score calculation is used in ArticlesFactorStep - i think this will
need to be updated to reflect the new lookups (this piece -
specifically)