TradeFinanceDTO.java
package com.tradecloud.dto.order;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tradecloud.domain.model.ordermanagement.TradeFinance;
import java.math.BigDecimal;
import java.util.Date;
/**
* Created by ds on 2017/06/14.
*/
public class TradeFinanceDTO {
@JsonProperty(access = JsonProperty.Access.AUTO)
private BigDecimal interestRate;
@JsonProperty(access = JsonProperty.Access.AUTO)
private BigDecimal confirmingMarginFeePercentage;
@JsonProperty("amount")
private BigDecimal estimatedSupplierSettlementAmount;
@JsonProperty(access = JsonProperty.Access.AUTO)
private BigDecimal estimateTermDays;
@JsonProperty("billPayableDate")
private Date billOfExchangeMaturityDate;
private BigDecimal serviceFee = BigDecimal.ZERO;
@JsonIgnore
private BigDecimal vatOnServiceFee = BigDecimal.ZERO;
@JsonProperty(access = JsonProperty.Access.AUTO)
private BigDecimal interest = BigDecimal.ZERO;
@JsonProperty("totalExclVat")
private BigDecimal totalInterestAndServiceFeeExVat = BigDecimal.ZERO;
@JsonProperty("paymentDescription")
private String reference;
@JsonProperty(required = true)
private Long objectId;
@JsonProperty("datePayable")
private Date estimatedSupplierSettlementDate;
@JsonProperty(required = true)
private String level;
@JsonProperty(required = true)
private TradeFinance tradeFinance;
private String orderReference;
@JsonIgnore
private int defaultCreditTerm;
@JsonProperty(access = JsonProperty.Access.AUTO)
private String marginPercentage;
@JsonProperty(access = JsonProperty.Access.AUTO)
private String currentPrimePlusMargin;
@JsonProperty(access = JsonProperty.Access.AUTO)
private String primeRate;
@JsonIgnore
private boolean showCurrentPrimePlus;
public BigDecimal getInterestRate() {
return interestRate;
}
public void setInterestRate(BigDecimal interestRate) {
this.interestRate = interestRate;
}
public BigDecimal getConfirmingMarginFeePercentage() {
return confirmingMarginFeePercentage;
}
public void setConfirmingMarginFeePercentage(BigDecimal confirmingMarginFeePercentage) {
this.confirmingMarginFeePercentage = confirmingMarginFeePercentage;
}
public BigDecimal getEstimatedSupplierSettlementAmount() {
return estimatedSupplierSettlementAmount != null ? estimatedSupplierSettlementAmount : BigDecimal.ZERO;
}
public void setEstimatedSupplierSettlementAmount(BigDecimal estimatedSupplierSettlementAmount) {
this.estimatedSupplierSettlementAmount = estimatedSupplierSettlementAmount;
}
public BigDecimal getEstimateTermDays() {
return estimateTermDays;
}
public void setEstimateTermDays(BigDecimal estimateTermDays) {
this.estimateTermDays = estimateTermDays;
}
public Date getBillOfExchangeMaturityDate() {
return billOfExchangeMaturityDate;
}
public void setBillOfExchangeMaturityDate(Date billOfExchangeMaturityDate) {
this.billOfExchangeMaturityDate = billOfExchangeMaturityDate;
}
public BigDecimal getServiceFee() {
return serviceFee;
}
public void setServiceFee(BigDecimal serviceFee) {
this.serviceFee = serviceFee;
}
public BigDecimal getVatOnServiceFee() {
return vatOnServiceFee;
}
public void setVatOnServiceFee(BigDecimal vatOnServiceFee) {
this.vatOnServiceFee = vatOnServiceFee;
}
public BigDecimal getInterest() {
return interest;
}
public void setInterest(BigDecimal interest) {
this.interest = interest;
}
public BigDecimal getTotalInterestAndServiceFeeExVat() {
return totalInterestAndServiceFeeExVat;
}
public void setTotalInterestAndServiceFeeExVat(BigDecimal totalInterestAndServiceFeeExVat) {
this.totalInterestAndServiceFeeExVat = totalInterestAndServiceFeeExVat;
}
public String getReference() {
return reference;
}
public void setReference(String reference) {
this.reference = reference;
}
public Date getEstimatedSupplierSettlementDate() {
return estimatedSupplierSettlementDate;
}
public void setEstimatedSupplierSettlementDate(Date estimatedSupplierSettlementDate) {
this.estimatedSupplierSettlementDate = estimatedSupplierSettlementDate;
}
public String getLevel() {
return level;
}
public void setLevel(String level) {
this.level = level;
}
public TradeFinance getTradeFinance() {
return tradeFinance;
}
public void setTradeFinance(TradeFinance tradeFinance) {
this.tradeFinance = tradeFinance;
}
public Long getObjectId() {
return objectId;
}
public void setObjectId(Long objectId) {
this.objectId = objectId;
}
public String getOrderReference() {
return orderReference;
}
public void setOrderReference(String orderReference) {
this.orderReference = orderReference;
}
public int getDefaultCreditTerm() {
return defaultCreditTerm;
}
public void setDefaultCreditTerm(int defaultCreditTerm) {
this.defaultCreditTerm = defaultCreditTerm;
}
public String getMarginPercentage() {
return marginPercentage;
}
public void setMarginPercentage(String marginPercentage) {
this.marginPercentage = marginPercentage;
}
public String getCurrentPrimePlusMargin() {
return currentPrimePlusMargin;
}
public void setCurrentPrimePlusMargin(String currentPrimePlusMargin) {
this.currentPrimePlusMargin = currentPrimePlusMargin;
}
public String getPrimeRate() {
return primeRate;
}
public void setPrimeRate(String primeRate) {
this.primeRate = primeRate;
}
public boolean isShowCurrentPrimePlus() {
return showCurrentPrimePlus;
}
public void setShowCurrentPrimePlus(boolean showCurrentPrimePlus) {
this.showCurrentPrimePlus = showCurrentPrimePlus;
}
}