add remaining state transitions and loan transactions to api format.

This commit is contained in:
Keith Woodlock
2012-05-17 02:07:41 +01:00
parent 8bc0b7461f
commit 7bb8b9359e
28 changed files with 397 additions and 1462 deletions
@@ -11,9 +11,12 @@ public class AdjustLoanTransactionCommand {
private Long loanId;
private Long repaymentId;
private LocalDate paymentDate;
private String dateFormat;
private String transactionDateFormatted;
private LocalDate transactionDate;
private String comment;
private BigDecimal paymentAmount;
private String transactionAmountFormatted;
private BigDecimal transactionAmount;
protected AdjustLoanTransactionCommand() {
//
@@ -24,9 +27,9 @@ public class AdjustLoanTransactionCommand {
final BigDecimal paymentAmount) {
this.loanId = loanId;
this.repaymentId = repaymentId;
this.paymentDate = paymentDate;
this.transactionDate = paymentDate;
this.comment = comment;
this.paymentAmount = paymentAmount;
this.transactionAmount = paymentAmount;
}
public Long getLoanId() {
@@ -37,30 +40,6 @@ public class AdjustLoanTransactionCommand {
this.loanId = loanId;
}
public String getComment() {
return this.comment;
}
public void setComment(final String comment) {
this.comment = comment;
}
public LocalDate getPaymentDate() {
return this.paymentDate;
}
public void setPaymentDate(final LocalDate paymentDate) {
this.paymentDate = paymentDate;
}
public BigDecimal getPaymentAmount() {
return this.paymentAmount;
}
public void setPaymentAmount(final BigDecimal paymentAmount) {
this.paymentAmount = paymentAmount;
}
public Long getRepaymentId() {
return repaymentId;
}
@@ -68,4 +47,52 @@ public class AdjustLoanTransactionCommand {
public void setRepaymentId(Long repaymentId) {
this.repaymentId = repaymentId;
}
public String getDateFormat() {
return dateFormat;
}
public void setDateFormat(String dateFormat) {
this.dateFormat = dateFormat;
}
public String getTransactionDateFormatted() {
return transactionDateFormatted;
}
public void setTransactionDateFormatted(String transactionDateFormatted) {
this.transactionDateFormatted = transactionDateFormatted;
}
public LocalDate getTransactionDate() {
return transactionDate;
}
public void setTransactionDate(LocalDate transactionDate) {
this.transactionDate = transactionDate;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getTransactionAmountFormatted() {
return transactionAmountFormatted;
}
public void setTransactionAmountFormatted(String transactionAmountFormatted) {
this.transactionAmountFormatted = transactionAmountFormatted;
}
public BigDecimal getTransactionAmount() {
return transactionAmount;
}
public void setTransactionAmount(BigDecimal transactionAmount) {
this.transactionAmount = transactionAmount;
}
}
@@ -10,9 +10,12 @@ import org.joda.time.LocalDate;
public class LoanTransactionCommand {
private Long loanId;
private LocalDate paymentDate;
private String dateFormat;
private String transactionDateFormatted;
private LocalDate transactionDate;
private String comment;
private BigDecimal paymentAmount;
private String transactionAmountFormatted;
private BigDecimal transactionAmount;
protected LoanTransactionCommand() {
//
@@ -22,9 +25,9 @@ public class LoanTransactionCommand {
final LocalDate paymentDate, final String comment,
final BigDecimal paymentAmount) {
this.loanId = loanId;
this.paymentDate = paymentDate;
this.transactionDate = paymentDate;
this.comment = comment;
this.paymentAmount = paymentAmount;
this.transactionAmount = paymentAmount;
}
public Long getLoanId() {
@@ -43,19 +46,43 @@ public class LoanTransactionCommand {
this.comment = comment;
}
public LocalDate getPaymentDate() {
return this.paymentDate;
public String getDateFormat() {
return dateFormat;
}
public void setPaymentDate(final LocalDate paymentDate) {
this.paymentDate = paymentDate;
public void setDateFormat(String dateFormat) {
this.dateFormat = dateFormat;
}
public BigDecimal getPaymentAmount() {
return this.paymentAmount;
public String getTransactionDateFormatted() {
return transactionDateFormatted;
}
public void setPaymentAmount(final BigDecimal paymentAmount) {
this.paymentAmount = paymentAmount;
public void setTransactionDateFormatted(String transactionDateFormatted) {
this.transactionDateFormatted = transactionDateFormatted;
}
public LocalDate getTransactionDate() {
return transactionDate;
}
public void setTransactionDate(LocalDate transactionDate) {
this.transactionDate = transactionDate;
}
public String getTransactionAmountFormatted() {
return transactionAmountFormatted;
}
public void setTransactionAmountFormatted(String transactionAmountFormatted) {
this.transactionAmountFormatted = transactionAmountFormatted;
}
public BigDecimal getTransactionAmount() {
return transactionAmount;
}
public void setTransactionAmount(BigDecimal transactionAmount) {
this.transactionAmount = transactionAmount;
}
}