Saving the selected payment plan for the policy period
To save the selected payment plan when the
user binds the PolicyPeriod,
set the SelectedPaymentPlan
property of the PolicyPeriod
by calling the PaymentPlanData
method createPaymentPlanSummary.
Pass a reference to the current bundle to this method. For example, use
code similar to the following line:
newPolicyPeriod.SelectedPaymentPlan = selectedPlan.createPaymentPlanSummary(currentBundle)Use the properties on the
selected PaymentPlanData
object to set the values of the properties on the PaymentPlanSummary entity instance.
The PaymentPlanSummary
entity instance does not have separate implementations for installment
and reporting plan types as PaymentPlanData
does. Instead, the data model requires non-null values only for the properties
that both types use. The properties that only installment or reporting
plan types use are optional and can have null values. Your implementation
must set these properties appropriately.
In the base configuration, the implementation
of the createPaymentPlanSummary
method sets the properties that both installment and reporting plan types
of PaymentPlanSummary
entity use. This method then calls the doCreatePaymentPlanSummary
method. The classes that extend AbstractPaymentPlanData
set the additional properties that the payment plan type uses.
See also
