adamsaghy commented on code in PR #6385:
URL: https://github.com/apache/fineract/pull/6385#discussion_r4004967838


##########
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;

Review Comment:
   Lets remove this field and use `expectedAmount` instead. We dont need to 
introduce different kind of amount fields...



-- 
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]

Reply via email to