Skip to content

Collections interest and payment selection

Collections interest and payment selection is implemented by CollectionsRepository and is documented as OP-SDN-05 in the Stage 1 analysis.

Field Value
Operation ID OP-SDN-05
Trigger See steps below
Primary components CollectionsRepository

Steps

  1. GetInterest(caseId, runDate): SQL-013.
  2. GetMissingPolicyPayments(selectDate) (SQL-014) and GetThirdPartyPayments(selectDate) (SQL-015).
  3. DebtorsWithoutPayments(lastStatementDate) (SQL-016) and DebtorsWithExpiredLocs(selectDate) (SQL-017).
  4. BalanceBroughtToMinAmountTransactions(selectDate): SQL-018.

Process flow

The following diagram visualizes this operation's control flow.

flowchart TD
    Start(["Collections interest and payment selection"]) --> S1["`CollectionsRepository`"]
    S1 --> S2{"Rules satisfied?"}
    S2 -->|Yes| EndOk([Result returned])
    S2 -->|No| EndErr([Exception / empty result])

Sources

  • Data/SAIF.Data.NHibernate/Repositories/CollectionsRepository.cs