adamsaghy commented on code in PR #6385:
URL: https://github.com/apache/fineract/pull/6385#discussion_r4004973940
##########
fineract-working-capital-loan/src/main/java/org/apache/fineract/portfolio/workingcapitalloan/api/WorkingCapitalLoanTransactionsApiResourceSwagger.java:
##########
@@ -264,4 +265,48 @@ private
ExecuteWorkingCapitalLoanTransactionCommandResponse() {}
@Schema(example = "repayment-ext-001")
public String resourceExternalId;
}
+
+ @Schema(description = "Prepayment template: the exact payoff amount that
closes the loan, broken down by bucket.")
+ public static final class WorkingCapitalLoanTransactionTemplateResponse {
+
+ private WorkingCapitalLoanTransactionTemplateResponse() {}
+
+ @Schema(example = "1")
+ public Long wcLoanId;
+ @Schema(description = "Loan currency")
+ public CurrencyData currency;
+ @Schema(description = "Transaction type")
+ public LoanTransactionEnumData type;
+ @Schema(example = "[2024, 2, 1]")
+ public LocalDate transactionDate;
+ @Schema(example = "10000.00", description = "prepayLoan only: total
payoff amount, principal + fee + penalty outstanding")
+ public BigDecimal transactionAmount;
+ @Schema(example = "9000.00", description = "Suggested amount to
pre-fill, which the user may change")
+ public BigDecimal expectedAmount;
+ @Schema(example = "[2024, 2, 1]", description = "disburse only:
expected disbursement date")
+ public LocalDate expectedDisbursementDate;
+ @Schema(example = "0.00", description = "disburse only: approved
discount amount")
+ public BigDecimal discountAmount;
+ @Schema(example = "false", description = "disburse only: whether the
product forbids overriding the default discount")
+ public Boolean overrideDiscountDisabled;
+
+ @Schema(example = "10000.00", description = "prepayLoan only:
outstanding principal portion of the payoff amount")
+ public BigDecimal principalPortion;
+ @Schema(example = "0.00", description = "prepayLoan only: outstanding
fee portion of the payoff amount")
+ public BigDecimal feeChargesPortion;
+ @Schema(example = "0.00", description = "prepayLoan only: outstanding
penalty portion of the payoff amount")
+ public BigDecimal penaltyChargesPortion;
+
+ @Schema(example = "10000.00", description = "chargeOff only:
auto-calculated outstanding balance, read-only")
+ public BigDecimal chargeOffAmount;
Review Comment:
Same here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]