APS - Premium Span Helper
Methods
Create Premium Spans (Overloaded Method)
Method Detail | Value |
---|---|
Visibility | Public |
Method Parameter | TransactionDto, EnrollmentSpan, Account |
Return Parameter | List<PremiumSpan> |
Functionality | This method will create premium span entities (createPremiumSpans) based on the date and the number of PREAMTTOT rate type that is available in the transaction. Populate the premium amounts (populatePremiumAmounts) in the premium spans that are created from the transaction. Save the premium spans and associate them to the members (using member premium helper) Associate the premium spans with the enrollment span. |
Save Updated Premium Spans
Method Detail | Value |
---|---|
Visibility | Public |
Method Parameter | List<PremiumSpanDto>, EnrollmentSpan |
Return Parameter | List<PremiumSpan> |
Functionality | Iterate through the premium span dto and
Return all the saved premium spans. |
Set Premium Span
Method Detail | Value |
---|---|
Visibility | Public |
Method Parameter | EnrollmentSpanDto, EnrollmentSpan, String (Zeus Transaction Control Number) |
Return Parameter | void |
Functionality | Retrieve the premium spans present in the enrollment span entity and convert them into their dto object and set them in the enrollment span dto object. Use member premium helper to set the corresponding member premiums in the dto. |
Create Premium Spans (Overloaded Method)
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | TransactionDto, EnrollmentSpan |
Return Parameter | List<PremiumSpan> |
Functionality | Perform the below steps to create the necessary premium spans
|
Populate Premium Amounts
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | List<PremiumSpans>, List<TransactionRateDto> |
Return Parameter | void |
Functionality | Iterate through each premium span and identify the rates that match with the same date as that of the premium span and set the policy amount (setPolicyAmount) |
Set Policy Amount
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | PremiumSpan, List<TransactionRateDto>, String (Rate Type Code) |
Return Parameter | Void |
Functionality | Retrieve the amount for the respective rate type code from the transaction and set the amount in the premium span. |
Sort Premium Dates
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | List<TransactionRateDto> |
Return Parameter | List<TransactionRateDto> |
Functionality | Get all the rate dto objects that have PREAMTTOT as the rate type code and sort it in the ascending order of the start date |