Org Web Adapter

journals/2023_08_02.org

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

surerenterst2

From Sergio Leon:

https://github.com/sureapp/surepreme/blob/develop/surepreme/apps/protections/verticals/toggle/renters/rates/roc.py

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 -

https://github.com/sureapp/surepreme/blob/e19b9b0f8f1429cc0c865cac5951646ab192c865/surepreme/apps/protections/verticals/toggle/renters/rates/steps/articles_factor.py#L16-L26 -

specifically)