...
Method Detail | Value |
---|---|
Visibility | Public |
Method Parameters | TransactionDto, Account, List<EnrollmentSpanDto> priorEnrollmentSpans |
Return | EnrollmentSpan |
Functionality | Below are the steps to create the enrollment span.
|
...
Method Detail | Value |
---|---|
Visibility | Public |
Method Parameters | AccountDto, TransactionDto, Account |
Return Parameter | void |
Functionality | Check if there are any enrollment spans that are being affected by add this enrollment span to the account (getOverlappingEnrollmentSpans). Update these overlapping enrollment spans as appropriate by terming or canceling them as needed. (updateOverlappingEnrollmentSpans) Update the account dto object with the enrollment spans that have been identified as overlapping and are termed or canceled (updateAccountDtoWithOverlappingSpans) Save the updated enrollment spans in the database (saveUpdatedEnrollmentSpans) Create the new enrollment span based on the information from the transaction (createEnrollmentSpan) Update the account entity with the updated and created enrollment spans. |
Cancel Premium Span
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | PremiumSpanDto |
Return Parameter | void |
Functionality | If the premium span start date is not equal to end date or if they are equal and the status is "ACTIVE" then,
|
...
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | List<EnrollmentSpanDto>, Account |
Return Parameter | List<EnrollmentSpan> |
Functionality | Retrieve the enrollment spans from the list and convert them into enrollment span entities with the help of the mapper and set the account the MMS key of the enrollment span and save the enrollment span to the repository. The corresponding premium spans are also updated by invoking the methods in the premium span helper. |
Update Account Dto With Overlapping Spans
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameters | AccountDto, List<EnrollmentSpanDto> (overlapping enrollment spans) |
Return Parameter | void |
Functionality | In the account dto, remove the enrollment span that matches using the enrollment span code from the overlapping enrollment span list. Once the stale enrollment spans are removed, add the overlapping enrollment span list received in the input to the account. |
Update Overlapping Enrollment Spans
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameters | List<EnrollmentSpanDto> (Overlapping Enrollment Spans), LocalDate (Effective Start Date), LocalDate (Effective End Date) |
Return Parameter | List<EnrollmentSpanDto> |
Functionality | The objective of this method is to identify the overlapping enrollment spans and term or cancel them appropriately. It follows the below steps to achieve this objective.
|