support update single piece of information for loan product and tidy up validation.

This commit is contained in:
Keith Woodlock
2012-05-24 01:56:50 +01:00
parent b5d94a8c95
commit 9c8edb45a3
12 changed files with 518 additions and 348 deletions
@@ -15,13 +15,16 @@ public class LoanProductCommand {
private String currencyCode;
private Integer digitsAfterDecimal;
private BigDecimal principal;
private String principalFormatted;
private BigDecimal inArrearsToleranceAmount;
private String inArrearsToleranceAmountFormatted;
private Integer repaymentEvery;
private Integer repaymentFrequency;
private Integer numberOfRepayments;
private BigDecimal interestRatePerPeriod;
private String interestRatePerPeriodFormatted;
private Integer interestRateFrequencyMethod;
private Integer amortizationMethod;
private Integer interestMethod;
@@ -159,4 +162,30 @@ public class LoanProductCommand {
Integer interestCalculationPeriodMethod) {
this.interestCalculationPeriodMethod = interestCalculationPeriodMethod;
}
public String getPrincipalFormatted() {
return principalFormatted;
}
public void setPrincipalFormatted(String principalFormatted) {
this.principalFormatted = principalFormatted;
}
public String getInterestRatePerPeriodFormatted() {
return interestRatePerPeriodFormatted;
}
public void setInterestRatePerPeriodFormatted(
String interestRatePerPeriodFormatted) {
this.interestRatePerPeriodFormatted = interestRatePerPeriodFormatted;
}
public String getInArrearsToleranceAmountFormatted() {
return inArrearsToleranceAmountFormatted;
}
public void setInArrearsToleranceAmountFormatted(
String inArrearsToleranceAmountFormatted) {
this.inArrearsToleranceAmountFormatted = inArrearsToleranceAmountFormatted;
}
}