FINERACT-2354: Introduce reaging preview API

This commit is contained in:
Oleksii Novikov
2025-11-11 12:04:51 +01:00
committed by Adam Saghy
parent ed8e9d1376
commit 3efafa778e
19 changed files with 1772 additions and 446 deletions
@@ -64,4 +64,12 @@ public interface LoanRepaymentScheduleInstallmentRepository
@Param("businessDate") LocalDate businessDate, @Param("obligationsMet") boolean obligationsMet,
@Param("loanIds") List<Long> loanIds);
@Query("""
SELECT i
FROM LoanRepaymentScheduleInstallment i
WHERE i.loan.id = :loanId
ORDER BY i.loan.id, i.installmentNumber
""")
List<LoanRepaymentScheduleInstallment> findByLoanId(@Param("loanId") Long loanId);
}
@@ -32,6 +32,8 @@ public interface ReprocessLoanTransactionsService {
void reprocessTransactionsWithPostTransactionChecks(Loan loan, LocalDate transactionDate);
void reprocessTransactionsWithoutChecks(Loan loan, LocalDate transactionDate, List<LoanTransaction> newTransactions);
void processPostDisbursementTransactions(Loan loan);
void removeLoanCharge(Loan loan, LoanCharge loanCharge);