You are here:
InsPolicyRevenueScheduleService:cancelRevenueSchedule
When a policy is canceled, this service adjusts the revenue schedule to calculate revenue until the cancellation date.
Method: cancelRevenueSchedule
How it works
-
This service looks for the policy (asset) ID, the transaction ID, and the effective date for the cancellation of the policy.
-
Uses
modificationTypeto query the transaction tableTypefield to get a list of modifications to the policy. If nomodificationTypeis specified, the service usesChanged/Endorsedby default. -
Modifies the revenue schedule, removing future unearned revenue from the policy (asset) object.
-
Returns the policy ID in the output JSON.

