FINERACT-2325: Disable automatic Interest Refund calculation

This commit is contained in:
mariiaKraievska
2025-07-17 16:31:48 +02:00
committed by Adam Saghy
parent e2f481f351
commit aad7756bf5
8 changed files with 287 additions and 9 deletions
@@ -352,6 +352,8 @@ final class LoanTransactionsApiResourceSwagger {
@Schema(example = "numberOfInstallments")
public Integer numberOfInstallments;
// command=reAge END
@Schema(description = "Optional. Controls whether Interest Refund transaction should be created for this refund. If not provided, loan product config is used.", example = "false")
public Boolean interestRefundCalculation;
}
@Schema(description = "PostLoansLoanIdTransactionsResponse")
@@ -90,7 +90,7 @@ public interface LoanAccountDomainService {
Pair<LoanTransaction, LoanTransaction> makeRefund(Loan loan, ScheduleGeneratorDTO scheduleGeneratorDTO,
LoanTransactionType loanTransactionType, LocalDate transactionDate, BigDecimal transactionAmount, PaymentDetail paymentDetail,
ExternalId txnExternalId);
ExternalId txnExternalId, Boolean interestRefundCalculationOverride);
void updateAndSavePostDatedChecksForIndividualAccount(Loan loan, LoanTransaction transaction);