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¶
GetInterest(caseId, runDate): SQL-013.GetMissingPolicyPayments(selectDate)(SQL-014) andGetThirdPartyPayments(selectDate)(SQL-015).DebtorsWithoutPayments(lastStatementDate)(SQL-016) andDebtorsWithExpiredLocs(selectDate)(SQL-017).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])
Related documentation¶
Sources¶
Data/SAIF.Data.NHibernate/Repositories/CollectionsRepository.cs