update state transition and transaction api for loans.
This commit is contained in:
@@ -1,98 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@XmlRootElement
|
||||
public class AdjustLoanTransactionCommand {
|
||||
|
||||
private Long loanId;
|
||||
private Long repaymentId;
|
||||
private String dateFormat;
|
||||
private String transactionDateFormatted;
|
||||
private LocalDate transactionDate;
|
||||
private String comment;
|
||||
private String transactionAmountFormatted;
|
||||
private BigDecimal transactionAmount;
|
||||
|
||||
protected AdjustLoanTransactionCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public AdjustLoanTransactionCommand(final Long loanId, final Long repaymentId,
|
||||
final LocalDate paymentDate, final String comment,
|
||||
final BigDecimal paymentAmount) {
|
||||
this.loanId = loanId;
|
||||
this.repaymentId = repaymentId;
|
||||
this.transactionDate = paymentDate;
|
||||
this.comment = comment;
|
||||
this.transactionAmount = paymentAmount;
|
||||
}
|
||||
|
||||
public Long getLoanId() {
|
||||
return this.loanId;
|
||||
}
|
||||
|
||||
public void setLoanId(final Long loanId) {
|
||||
this.loanId = loanId;
|
||||
}
|
||||
|
||||
public Long getRepaymentId() {
|
||||
return repaymentId;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
-186
@@ -1,186 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@XmlRootElement
|
||||
public class CalculateLoanScheduleCommand {
|
||||
|
||||
private String currencyCode;
|
||||
private Integer digitsAfterDecimalValue;
|
||||
private BigDecimal principalValue;
|
||||
private BigDecimal inArrearsToleranceValue;
|
||||
|
||||
private Integer repaymentEveryValue;
|
||||
private Integer repaymentFrequencyType;
|
||||
private Integer numberOfRepaymentsValue;
|
||||
|
||||
private BigDecimal interestRatePerPeriodValue;
|
||||
private Integer interestRateFrequencyType;
|
||||
private Integer amortizationType;
|
||||
private Integer interestType;
|
||||
private Integer interestCalculationPeriodType;
|
||||
|
||||
private LocalDate expectedDisbursementLocalDate;
|
||||
private LocalDate repaymentsStartingFromLocalDate;
|
||||
private LocalDate interestChargedFromLocalDate;
|
||||
|
||||
protected CalculateLoanScheduleCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public CalculateLoanScheduleCommand(final String currencyCode,
|
||||
final Integer digitsAfterDecimal, final Number principal,
|
||||
final Number interestRatePerPeriod, Integer interestRateFrequencyMethod, final Integer interestMethod, final Integer interestCalculationPeriodMethod,
|
||||
final Integer repaymentEvery, final Integer repaymentFrequency, final Integer numberOfRepayments, Integer amortizationMethod,
|
||||
final LocalDate expectedDisbursementDate,
|
||||
final LocalDate repaymentsStartingFromDate, final LocalDate interestCalculatedFromDate) {
|
||||
|
||||
this.currencyCode = currencyCode;
|
||||
this.digitsAfterDecimalValue = digitsAfterDecimal;
|
||||
if (principal != null) {
|
||||
this.principalValue = BigDecimal.valueOf(principal.doubleValue());
|
||||
}
|
||||
if (interestRatePerPeriod != null) {
|
||||
this.interestRatePerPeriodValue = BigDecimal.valueOf(interestRatePerPeriod.doubleValue());
|
||||
}
|
||||
this.interestRateFrequencyType = interestRateFrequencyMethod;
|
||||
this.interestType = interestMethod;
|
||||
this.interestCalculationPeriodType = interestCalculationPeriodMethod;
|
||||
this.repaymentEveryValue = repaymentEvery;
|
||||
this.repaymentFrequencyType = repaymentFrequency;
|
||||
this.numberOfRepaymentsValue = numberOfRepayments;
|
||||
this.amortizationType = amortizationMethod;
|
||||
|
||||
this.expectedDisbursementLocalDate = expectedDisbursementDate;
|
||||
this.repaymentsStartingFromLocalDate = repaymentsStartingFromDate;
|
||||
this.interestChargedFromLocalDate= interestCalculatedFromDate;
|
||||
}
|
||||
|
||||
public String getCurrencyCode() {
|
||||
return currencyCode;
|
||||
}
|
||||
|
||||
public void setCurrencyCode(String currencyCode) {
|
||||
this.currencyCode = currencyCode;
|
||||
}
|
||||
|
||||
public Integer getDigitsAfterDecimalValue() {
|
||||
return digitsAfterDecimalValue;
|
||||
}
|
||||
|
||||
public void setDigitsAfterDecimalValue(Integer digitsAfterDecimalValue) {
|
||||
this.digitsAfterDecimalValue = digitsAfterDecimalValue;
|
||||
}
|
||||
|
||||
public BigDecimal getPrincipalValue() {
|
||||
return principalValue;
|
||||
}
|
||||
|
||||
public void setPrincipalValue(BigDecimal principalValue) {
|
||||
this.principalValue = principalValue;
|
||||
}
|
||||
|
||||
public BigDecimal getInArrearsToleranceValue() {
|
||||
return inArrearsToleranceValue;
|
||||
}
|
||||
|
||||
public void setInArrearsToleranceValue(BigDecimal inArrearsToleranceValue) {
|
||||
this.inArrearsToleranceValue = inArrearsToleranceValue;
|
||||
}
|
||||
|
||||
public Integer getRepaymentEveryValue() {
|
||||
return repaymentEveryValue;
|
||||
}
|
||||
|
||||
public void setRepaymentEveryValue(Integer repaymentEveryValue) {
|
||||
this.repaymentEveryValue = repaymentEveryValue;
|
||||
}
|
||||
|
||||
public Integer getRepaymentFrequencyType() {
|
||||
return repaymentFrequencyType;
|
||||
}
|
||||
|
||||
public void setRepaymentFrequencyType(Integer repaymentFrequencyType) {
|
||||
this.repaymentFrequencyType = repaymentFrequencyType;
|
||||
}
|
||||
|
||||
public Integer getNumberOfRepaymentsValue() {
|
||||
return numberOfRepaymentsValue;
|
||||
}
|
||||
|
||||
public void setNumberOfRepaymentsValue(Integer numberOfRepaymentsValue) {
|
||||
this.numberOfRepaymentsValue = numberOfRepaymentsValue;
|
||||
}
|
||||
|
||||
public BigDecimal getInterestRatePerPeriodValue() {
|
||||
return interestRatePerPeriodValue;
|
||||
}
|
||||
|
||||
public void setInterestRatePerPeriodValue(BigDecimal interestRatePerPeriodValue) {
|
||||
this.interestRatePerPeriodValue = interestRatePerPeriodValue;
|
||||
}
|
||||
|
||||
public Integer getInterestRateFrequencyType() {
|
||||
return interestRateFrequencyType;
|
||||
}
|
||||
|
||||
public void setInterestRateFrequencyType(Integer interestRateFrequencyType) {
|
||||
this.interestRateFrequencyType = interestRateFrequencyType;
|
||||
}
|
||||
|
||||
public Integer getAmortizationType() {
|
||||
return amortizationType;
|
||||
}
|
||||
|
||||
public void setAmortizationType(Integer amortizationType) {
|
||||
this.amortizationType = amortizationType;
|
||||
}
|
||||
|
||||
public Integer getInterestType() {
|
||||
return interestType;
|
||||
}
|
||||
|
||||
public void setInterestType(Integer interestType) {
|
||||
this.interestType = interestType;
|
||||
}
|
||||
|
||||
public Integer getInterestCalculationPeriodType() {
|
||||
return interestCalculationPeriodType;
|
||||
}
|
||||
|
||||
public void setInterestCalculationPeriodType(
|
||||
Integer interestCalculationPeriodType) {
|
||||
this.interestCalculationPeriodType = interestCalculationPeriodType;
|
||||
}
|
||||
|
||||
public LocalDate getExpectedDisbursementLocalDate() {
|
||||
return expectedDisbursementLocalDate;
|
||||
}
|
||||
|
||||
public void setExpectedDisbursementLocalDate(
|
||||
LocalDate expectedDisbursementLocalDate) {
|
||||
this.expectedDisbursementLocalDate = expectedDisbursementLocalDate;
|
||||
}
|
||||
|
||||
public LocalDate getRepaymentsStartingFromLocalDate() {
|
||||
return repaymentsStartingFromLocalDate;
|
||||
}
|
||||
|
||||
public void setRepaymentsStartingFromLocalDate(
|
||||
LocalDate repaymentsStartingFromLocalDate) {
|
||||
this.repaymentsStartingFromLocalDate = repaymentsStartingFromLocalDate;
|
||||
}
|
||||
|
||||
public LocalDate getInterestChargedFromLocalDate() {
|
||||
return interestChargedFromLocalDate;
|
||||
}
|
||||
|
||||
public void setInterestChargedFromLocalDate(
|
||||
LocalDate interestChargedFromLocalDate) {
|
||||
this.interestChargedFromLocalDate = interestChargedFromLocalDate;
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class ImportLoanCommand {
|
||||
|
||||
private List<SubmitApproveDisburseLoanCommand> loans = new ArrayList<SubmitApproveDisburseLoanCommand>();
|
||||
|
||||
public ImportLoanCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public List<SubmitApproveDisburseLoanCommand> getLoans() {
|
||||
return loans;
|
||||
}
|
||||
|
||||
public void setLoans(List<SubmitApproveDisburseLoanCommand> loans) {
|
||||
this.loans = loans;
|
||||
}
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class ImportLoanRepaymentsCommand {
|
||||
|
||||
private List<LoanTransactionCommand> repayments = new ArrayList<LoanTransactionCommand>();
|
||||
|
||||
public ImportLoanRepaymentsCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public List<LoanTransactionCommand> getRepayments() {
|
||||
return repayments;
|
||||
}
|
||||
|
||||
public void setRepayments(List<LoanTransactionCommand> repayments) {
|
||||
this.repayments = repayments;
|
||||
}
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
/**
|
||||
* Use for any of the loan state transitions eg. reject, withdrawn by client, approve, disburse
|
||||
*/
|
||||
@XmlRootElement
|
||||
public class LoanStateTransitionCommand {
|
||||
|
||||
private Long loanId;
|
||||
private String dateFormat;
|
||||
private String eventDateFormatted;
|
||||
private LocalDate eventDate;
|
||||
private String comment;
|
||||
|
||||
protected LoanStateTransitionCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public LoanStateTransitionCommand(final Long loanId, final LocalDate eventDate,
|
||||
final String comment) {
|
||||
this.loanId = loanId;
|
||||
this.eventDate = eventDate;
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public Long getLoanId() {
|
||||
return this.loanId;
|
||||
}
|
||||
|
||||
public void setLoanId(final Long loanId) {
|
||||
this.loanId = loanId;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return this.comment;
|
||||
}
|
||||
|
||||
public void setComment(final String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public LocalDate getEventDate() {
|
||||
return eventDate;
|
||||
}
|
||||
|
||||
public void setEventDate(LocalDate eventDate) {
|
||||
this.eventDate = eventDate;
|
||||
}
|
||||
|
||||
public String getDateFormat() {
|
||||
return dateFormat;
|
||||
}
|
||||
|
||||
public void setDateFormat(String dateFormat) {
|
||||
this.dateFormat = dateFormat;
|
||||
}
|
||||
|
||||
public String getEventDateFormatted() {
|
||||
return eventDateFormatted;
|
||||
}
|
||||
|
||||
public void setEventDateFormatted(String eventDateFormatted) {
|
||||
this.eventDateFormatted = eventDateFormatted;
|
||||
}
|
||||
}
|
||||
@@ -1,88 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
|
||||
@XmlRootElement
|
||||
public class LoanTransactionCommand {
|
||||
|
||||
private Long loanId;
|
||||
private String dateFormat;
|
||||
private String transactionDateFormatted;
|
||||
private LocalDate transactionDate;
|
||||
private String comment;
|
||||
private String transactionAmountFormatted;
|
||||
private BigDecimal transactionAmount;
|
||||
|
||||
protected LoanTransactionCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public LoanTransactionCommand(final Long loanId,
|
||||
final LocalDate paymentDate, final String comment,
|
||||
final BigDecimal paymentAmount) {
|
||||
this.loanId = loanId;
|
||||
this.transactionDate = paymentDate;
|
||||
this.comment = comment;
|
||||
this.transactionAmount = paymentAmount;
|
||||
}
|
||||
|
||||
public Long getLoanId() {
|
||||
return this.loanId;
|
||||
}
|
||||
|
||||
public void setLoanId(final Long loanId) {
|
||||
this.loanId = loanId;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return this.comment;
|
||||
}
|
||||
|
||||
public void setComment(final String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
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 getTransactionAmountFormatted() {
|
||||
return transactionAmountFormatted;
|
||||
}
|
||||
|
||||
public void setTransactionAmountFormatted(String transactionAmountFormatted) {
|
||||
this.transactionAmountFormatted = transactionAmountFormatted;
|
||||
}
|
||||
|
||||
public BigDecimal getTransactionAmount() {
|
||||
return transactionAmount;
|
||||
}
|
||||
|
||||
public void setTransactionAmount(BigDecimal transactionAmount) {
|
||||
this.transactionAmount = transactionAmount;
|
||||
}
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
/**
|
||||
* Command used for add or edit notes.
|
||||
*/
|
||||
@XmlRootElement
|
||||
public class NoteCommand {
|
||||
|
||||
private Long id;
|
||||
private Long clientId;
|
||||
private Long loanId;
|
||||
private Long loanTransactionId;
|
||||
private String note;
|
||||
|
||||
public NoteCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getClientId() {
|
||||
return clientId;
|
||||
}
|
||||
|
||||
public void setClientId(Long clientId) {
|
||||
this.clientId = clientId;
|
||||
}
|
||||
|
||||
public Long getLoanId() {
|
||||
return loanId;
|
||||
}
|
||||
|
||||
public void setLoanId(Long loanId) {
|
||||
this.loanId = loanId;
|
||||
}
|
||||
|
||||
public Long getLoanTransactionId() {
|
||||
return loanTransactionId;
|
||||
}
|
||||
|
||||
public void setLoanTransactionId(Long loanTransactionId) {
|
||||
this.loanTransactionId = loanTransactionId;
|
||||
}
|
||||
|
||||
public String getNote() {
|
||||
return note;
|
||||
}
|
||||
|
||||
public void setNote(String note) {
|
||||
this.note = note;
|
||||
}
|
||||
}
|
||||
-40
@@ -1,40 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement
|
||||
public class SubmitApproveDisburseLoanCommand {
|
||||
|
||||
private SubmitLoanApplicationCommand submitLoanApplicationCommand;
|
||||
private LoanStateTransitionCommand approveLoanCommand;
|
||||
private LoanStateTransitionCommand disburseLoanCommand;
|
||||
|
||||
public SubmitApproveDisburseLoanCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public SubmitLoanApplicationCommand getSubmitLoanApplicationCommand() {
|
||||
return submitLoanApplicationCommand;
|
||||
}
|
||||
|
||||
public void setSubmitLoanApplicationCommand(
|
||||
SubmitLoanApplicationCommand submitLoanApplicationCommand) {
|
||||
this.submitLoanApplicationCommand = submitLoanApplicationCommand;
|
||||
}
|
||||
|
||||
public LoanStateTransitionCommand getApproveLoanCommand() {
|
||||
return approveLoanCommand;
|
||||
}
|
||||
|
||||
public void setApproveLoanCommand(LoanStateTransitionCommand approveLoanCommand) {
|
||||
this.approveLoanCommand = approveLoanCommand;
|
||||
}
|
||||
|
||||
public LoanStateTransitionCommand getDisburseLoanCommand() {
|
||||
return disburseLoanCommand;
|
||||
}
|
||||
|
||||
public void setDisburseLoanCommand(LoanStateTransitionCommand disburseLoanCommand) {
|
||||
this.disburseLoanCommand = disburseLoanCommand;
|
||||
}
|
||||
}
|
||||
-365
@@ -1,365 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
import org.mifosng.data.LoanSchedule;
|
||||
|
||||
@XmlRootElement
|
||||
public class SubmitLoanApplicationCommand {
|
||||
|
||||
private Long clientId;
|
||||
private Long productId;
|
||||
|
||||
// product
|
||||
private String locale;
|
||||
private String currencyCode;
|
||||
private String digitsAfterDecimal;
|
||||
private Integer digitsAfterDecimalValue;
|
||||
private BigDecimal principalValue;
|
||||
private String principal;
|
||||
private BigDecimal inArrearsToleranceValue;
|
||||
private String inArrearsTolerance;
|
||||
|
||||
private String numberOfRepayments;
|
||||
private Integer numberOfRepaymentsValue;
|
||||
private String repaymentEvery;
|
||||
private Integer repaymentEveryValue;
|
||||
|
||||
private String interestRatePerPeriod;
|
||||
private BigDecimal interestRatePerPeriodValue;
|
||||
|
||||
private Integer repaymentFrequencyType;
|
||||
private Integer interestRateFrequencyType;
|
||||
private Integer amortizationType;
|
||||
private Integer interestType;
|
||||
private Integer interestCalculationPeriodType;
|
||||
// end of product related fields
|
||||
|
||||
private String expectedDisbursementDate;
|
||||
private String repaymentsStartingFromDate;
|
||||
private String interestChargedFromDate;
|
||||
private LocalDate expectedDisbursementLocalDate;
|
||||
private LocalDate repaymentsStartingFromLocalDate;
|
||||
private LocalDate interestChargedFromLocalDate;
|
||||
|
||||
private String dateFormat;
|
||||
private String submittedOnDate;
|
||||
private LocalDate submittedOnLocalDate;
|
||||
private String submittedOnNote;
|
||||
private String externalId;
|
||||
|
||||
private LoanSchedule loanSchedule;
|
||||
|
||||
protected SubmitLoanApplicationCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public SubmitLoanApplicationCommand(final Long clientId,
|
||||
final Long productId, final LocalDate submittedOnDate,
|
||||
final String submittedOnNote,
|
||||
final LocalDate expectedDisbursementDate,
|
||||
final LocalDate repaymentsStartingFromDate,
|
||||
final LocalDate interestChargedFromLocalDate,
|
||||
final LoanSchedule loanSchedule, final String currencyCode,
|
||||
final Integer digitsAfterDecimal, final Number principal,
|
||||
final Number interestRatePerPeriod, Integer interestRateFrequencyMethod, final Integer interestMethod, final Integer interestCalculationPeriodMethod,
|
||||
final Integer repaymentEvery, final Integer repaymentFrequency, final Integer numberOfRepayments, Integer amortizationMethod, final Number toleranceAmount) {
|
||||
this.clientId = clientId;
|
||||
this.productId = productId;
|
||||
this.submittedOnLocalDate = submittedOnDate;
|
||||
this.submittedOnNote = submittedOnNote;
|
||||
this.expectedDisbursementLocalDate = expectedDisbursementDate;
|
||||
this.repaymentsStartingFromLocalDate = repaymentsStartingFromDate;
|
||||
this.interestChargedFromLocalDate = interestChargedFromLocalDate;
|
||||
this.loanSchedule = loanSchedule;
|
||||
this.inArrearsToleranceValue = BigDecimal.valueOf(toleranceAmount.doubleValue());
|
||||
|
||||
this.currencyCode = currencyCode;
|
||||
this.digitsAfterDecimalValue = digitsAfterDecimal;
|
||||
this.principalValue = BigDecimal.valueOf(principal.doubleValue());
|
||||
this.interestRatePerPeriodValue = BigDecimal.valueOf(interestRatePerPeriod.doubleValue());
|
||||
this.interestRateFrequencyType = interestRateFrequencyMethod;
|
||||
this.interestType = interestMethod;
|
||||
this.interestCalculationPeriodType = interestCalculationPeriodMethod;
|
||||
this.repaymentEveryValue = repaymentEvery;
|
||||
this.repaymentFrequencyType = repaymentFrequency;
|
||||
this.numberOfRepaymentsValue = numberOfRepayments;
|
||||
this.amortizationType = amortizationMethod;
|
||||
}
|
||||
|
||||
public CalculateLoanScheduleCommand toCalculateLoanScheduleCommand() {
|
||||
return new CalculateLoanScheduleCommand(currencyCode, digitsAfterDecimalValue, principalValue, interestRatePerPeriodValue, interestRateFrequencyType, interestType, interestCalculationPeriodType, repaymentEveryValue, repaymentFrequencyType, numberOfRepaymentsValue, amortizationType,
|
||||
expectedDisbursementLocalDate, repaymentsStartingFromLocalDate, interestChargedFromLocalDate);
|
||||
}
|
||||
|
||||
public Long getProductId() {
|
||||
return this.productId;
|
||||
}
|
||||
|
||||
public void setProductId(final Long productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getSubmittedOnNote() {
|
||||
return this.submittedOnNote;
|
||||
}
|
||||
|
||||
public void setSubmittedOnNote(final String submittedOnNote) {
|
||||
this.submittedOnNote = submittedOnNote;
|
||||
}
|
||||
|
||||
public LoanSchedule getLoanSchedule() {
|
||||
return this.loanSchedule;
|
||||
}
|
||||
|
||||
public void setLoanSchedule(final LoanSchedule loanSchedule) {
|
||||
this.loanSchedule = loanSchedule;
|
||||
}
|
||||
|
||||
public String getExternalId() {
|
||||
return externalId;
|
||||
}
|
||||
|
||||
public void setExternalId(String externalId) {
|
||||
this.externalId = externalId;
|
||||
}
|
||||
|
||||
public String getCurrencyCode() {
|
||||
return currencyCode;
|
||||
}
|
||||
|
||||
public void setCurrencyCode(String currencyCode) {
|
||||
this.currencyCode = currencyCode;
|
||||
}
|
||||
|
||||
public String getDateFormat() {
|
||||
return dateFormat;
|
||||
}
|
||||
|
||||
public void setDateFormat(String dateFormat) {
|
||||
this.dateFormat = dateFormat;
|
||||
}
|
||||
|
||||
public Long getClientId() {
|
||||
return clientId;
|
||||
}
|
||||
|
||||
public void setClientId(Long clientId) {
|
||||
this.clientId = clientId;
|
||||
}
|
||||
|
||||
public String getLocale() {
|
||||
return locale;
|
||||
}
|
||||
|
||||
public void setLocale(String locale) {
|
||||
this.locale = locale;
|
||||
}
|
||||
|
||||
public String getDigitsAfterDecimal() {
|
||||
return digitsAfterDecimal;
|
||||
}
|
||||
|
||||
public void setDigitsAfterDecimal(String digitsAfterDecimal) {
|
||||
this.digitsAfterDecimal = digitsAfterDecimal;
|
||||
}
|
||||
|
||||
public Integer getDigitsAfterDecimalValue() {
|
||||
return digitsAfterDecimalValue;
|
||||
}
|
||||
|
||||
public void setDigitsAfterDecimalValue(Integer digitsAfterDecimalValue) {
|
||||
this.digitsAfterDecimalValue = digitsAfterDecimalValue;
|
||||
}
|
||||
|
||||
public BigDecimal getPrincipalValue() {
|
||||
return principalValue;
|
||||
}
|
||||
|
||||
public void setPrincipalValue(BigDecimal principalValue) {
|
||||
this.principalValue = principalValue;
|
||||
}
|
||||
|
||||
public String getPrincipal() {
|
||||
return principal;
|
||||
}
|
||||
|
||||
public void setPrincipal(String principal) {
|
||||
this.principal = principal;
|
||||
}
|
||||
|
||||
public BigDecimal getInArrearsToleranceValue() {
|
||||
return inArrearsToleranceValue;
|
||||
}
|
||||
|
||||
public void setInArrearsToleranceValue(BigDecimal inArrearsToleranceValue) {
|
||||
this.inArrearsToleranceValue = inArrearsToleranceValue;
|
||||
}
|
||||
|
||||
public String getInArrearsTolerance() {
|
||||
return inArrearsTolerance;
|
||||
}
|
||||
|
||||
public void setInArrearsTolerance(String inArrearsTolerance) {
|
||||
this.inArrearsTolerance = inArrearsTolerance;
|
||||
}
|
||||
|
||||
public String getNumberOfRepayments() {
|
||||
return numberOfRepayments;
|
||||
}
|
||||
|
||||
public void setNumberOfRepayments(String numberOfRepayments) {
|
||||
this.numberOfRepayments = numberOfRepayments;
|
||||
}
|
||||
|
||||
public Integer getNumberOfRepaymentsValue() {
|
||||
return numberOfRepaymentsValue;
|
||||
}
|
||||
|
||||
public void setNumberOfRepaymentsValue(Integer numberOfRepaymentsValue) {
|
||||
this.numberOfRepaymentsValue = numberOfRepaymentsValue;
|
||||
}
|
||||
|
||||
public String getRepaymentEvery() {
|
||||
return repaymentEvery;
|
||||
}
|
||||
|
||||
public void setRepaymentEvery(String repaymentEvery) {
|
||||
this.repaymentEvery = repaymentEvery;
|
||||
}
|
||||
|
||||
public Integer getRepaymentEveryValue() {
|
||||
return repaymentEveryValue;
|
||||
}
|
||||
|
||||
public void setRepaymentEveryValue(Integer repaymentEveryValue) {
|
||||
this.repaymentEveryValue = repaymentEveryValue;
|
||||
}
|
||||
|
||||
public String getInterestRatePerPeriod() {
|
||||
return interestRatePerPeriod;
|
||||
}
|
||||
|
||||
public void setInterestRatePerPeriod(String interestRatePerPeriod) {
|
||||
this.interestRatePerPeriod = interestRatePerPeriod;
|
||||
}
|
||||
|
||||
public BigDecimal getInterestRatePerPeriodValue() {
|
||||
return interestRatePerPeriodValue;
|
||||
}
|
||||
|
||||
public void setInterestRatePerPeriodValue(BigDecimal interestRatePerPeriodValue) {
|
||||
this.interestRatePerPeriodValue = interestRatePerPeriodValue;
|
||||
}
|
||||
|
||||
public Integer getRepaymentFrequencyType() {
|
||||
return repaymentFrequencyType;
|
||||
}
|
||||
|
||||
public void setRepaymentFrequencyType(Integer repaymentFrequencyType) {
|
||||
this.repaymentFrequencyType = repaymentFrequencyType;
|
||||
}
|
||||
|
||||
public Integer getInterestRateFrequencyType() {
|
||||
return interestRateFrequencyType;
|
||||
}
|
||||
|
||||
public void setInterestRateFrequencyType(Integer interestRateFrequencyType) {
|
||||
this.interestRateFrequencyType = interestRateFrequencyType;
|
||||
}
|
||||
|
||||
public Integer getAmortizationType() {
|
||||
return amortizationType;
|
||||
}
|
||||
|
||||
public void setAmortizationType(Integer amortizationType) {
|
||||
this.amortizationType = amortizationType;
|
||||
}
|
||||
|
||||
public Integer getInterestType() {
|
||||
return interestType;
|
||||
}
|
||||
|
||||
public void setInterestType(Integer interestType) {
|
||||
this.interestType = interestType;
|
||||
}
|
||||
|
||||
public Integer getInterestCalculationPeriodType() {
|
||||
return interestCalculationPeriodType;
|
||||
}
|
||||
|
||||
public void setInterestCalculationPeriodType(
|
||||
Integer interestCalculationPeriodType) {
|
||||
this.interestCalculationPeriodType = interestCalculationPeriodType;
|
||||
}
|
||||
|
||||
public String getExpectedDisbursementDate() {
|
||||
return expectedDisbursementDate;
|
||||
}
|
||||
|
||||
public void setExpectedDisbursementDate(String expectedDisbursementDate) {
|
||||
this.expectedDisbursementDate = expectedDisbursementDate;
|
||||
}
|
||||
|
||||
public String getRepaymentsStartingFromDate() {
|
||||
return repaymentsStartingFromDate;
|
||||
}
|
||||
|
||||
public void setRepaymentsStartingFromDate(String repaymentsStartingFromDate) {
|
||||
this.repaymentsStartingFromDate = repaymentsStartingFromDate;
|
||||
}
|
||||
|
||||
public LocalDate getExpectedDisbursementLocalDate() {
|
||||
return expectedDisbursementLocalDate;
|
||||
}
|
||||
|
||||
public void setExpectedDisbursementLocalDate(
|
||||
LocalDate expectedDisbursementLocalDate) {
|
||||
this.expectedDisbursementLocalDate = expectedDisbursementLocalDate;
|
||||
}
|
||||
|
||||
public LocalDate getRepaymentsStartingFromLocalDate() {
|
||||
return repaymentsStartingFromLocalDate;
|
||||
}
|
||||
|
||||
public void setRepaymentsStartingFromLocalDate(
|
||||
LocalDate repaymentsStartingFromLocalDate) {
|
||||
this.repaymentsStartingFromLocalDate = repaymentsStartingFromLocalDate;
|
||||
}
|
||||
|
||||
public LocalDate getInterestChargedFromLocalDate() {
|
||||
return interestChargedFromLocalDate;
|
||||
}
|
||||
|
||||
public void setInterestChargedFromLocalDate(
|
||||
LocalDate interestChargedFromLocalDate) {
|
||||
this.interestChargedFromLocalDate = interestChargedFromLocalDate;
|
||||
}
|
||||
|
||||
public String getSubmittedOnDate() {
|
||||
return submittedOnDate;
|
||||
}
|
||||
|
||||
public void setSubmittedOnDate(String submittedOnDate) {
|
||||
this.submittedOnDate = submittedOnDate;
|
||||
}
|
||||
|
||||
public LocalDate getSubmittedOnLocalDate() {
|
||||
return submittedOnLocalDate;
|
||||
}
|
||||
|
||||
public void setSubmittedOnLocalDate(LocalDate submittedOnLocalDate) {
|
||||
this.submittedOnLocalDate = submittedOnLocalDate;
|
||||
}
|
||||
|
||||
public String getInterestChargedFromDate() {
|
||||
return interestChargedFromDate;
|
||||
}
|
||||
|
||||
public void setInterestChargedFromDate(String interestChargedFromDate) {
|
||||
this.interestChargedFromDate = interestChargedFromDate;
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package org.mifosng.data.command;
|
||||
|
||||
|
||||
public class UndoStateTransitionCommand {
|
||||
|
||||
private Long loanId;
|
||||
private String comment;
|
||||
|
||||
protected UndoStateTransitionCommand() {
|
||||
//
|
||||
}
|
||||
|
||||
public UndoStateTransitionCommand(final Long loanId, final String comment) {
|
||||
this.loanId = loanId;
|
||||
this.comment = comment;
|
||||
}
|
||||
|
||||
public Long getLoanId() {
|
||||
return this.loanId;
|
||||
}
|
||||
|
||||
public void setLoanId(final Long loanId) {
|
||||
this.loanId = loanId;
|
||||
}
|
||||
|
||||
public String getComment() {
|
||||
return comment;
|
||||
}
|
||||
|
||||
public void setComment(String comment) {
|
||||
this.comment = comment;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user