tidy up response for client account summary and retrieval of individual loan information.

This commit is contained in:
Keith Woodlock
2012-06-06 12:50:50 +01:00
parent 26c57c7ac0
commit e68f7f7589
22 changed files with 450 additions and 217 deletions
@@ -8,7 +8,7 @@ public class LoanRepaymentScheduleInstallmentBuilder {
private Loan loan = null;
private Integer installmentNumber = Integer.valueOf(1);
private LocalDate from = LocalDate.now();
// private LocalDate from = LocalDate.now();
private LocalDate dueDate = LocalDate.now();
private MonetaryCurrency currencyDetail = new MonetaryCurrencyBuilder().build();
private Money principal = new MoneyBuilder().build();
@@ -21,7 +21,7 @@ public class LoanRepaymentScheduleInstallmentBuilder {
}
public LoanRepaymentScheduleInstallment build() {
return new LoanRepaymentScheduleInstallment(loan, installmentNumber, from, dueDate, principal.getAmount(), interest.getAmount());
return new LoanRepaymentScheduleInstallment(loan, installmentNumber, dueDate, principal.getAmount(), interest.getAmount());
}
public LoanRepaymentScheduleInstallmentBuilder withPrincipal(String withPrincipal) {