In rate routine, specify coverage as flat-rated
About this task
In a rate routine, you specify that a coverage is flat-rated rather than prorated. (Prorated is the default.) The cost of a flat-rated coverage is not prorated. For more information about costs that are flat-rated, see Cost delegate.
In the sample data, the personal auto line of business contains the Mexico Coverage - Limited flat-rated coverage in the Personal Auto Line. You can use this example as a guide to creating your own flat-rated coverages.
Procedure
- In Product Designer, define the coverage. The definition of a flat-rate coverage is no different than any other coverage. The coverage does not have a flat-rated field.
-
In PolicyCenter, define the rate
routine for the flat-rated coverage. The rate routine must have a step
that sets the ProrationMethod
instruction to the typelist value ProrationMethod.Flat.
The PA Coverage Flat Rate Algorithm rate routine provides the rating algorithm for the Mexico Coverage - Limited coverage. The first step of the rate routine sets the proration method to flat. The second step gets the base rate from the Base Rate rate table. Subsequent steps calculate the adjusted rate and term amount.
The PA_RTM_Demo_Rating rate book contains the Base Rate rate table and PA Coverage Flat Rate Algorithm rate routine.
-
In Studio, extend the rating plugin to execute the new rate routine. This steps
is only necessary if you added a new rate routine. See Configuring the rating engine to execute the rate routine.
In Gosu code, the coverage is rated as flat. For example, in the personal auto line, the PARatingEngine class executes the
pa_cov_flatraterate routine. The PARatingEngine class is in thegw.lob.pa.ratingpackage.The rate routine computes the properties on the cost. The computeAmount method in
CostDatacomputes the cost as a flat cost because the rate routine set the proration method to flat. The CostData class is in thegw.lob.pa.ratingpackage.
