|
|
|
@ -7,6 +7,7 @@ import org.apache.commons.lang3.time.DateUtils;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
@ -21,11 +22,11 @@ public class ClientRateConfig {
|
|
|
|
|
|
|
|
|
|
@JSONField(name = "rate_value")
|
|
|
|
|
@NotNull(message = "error.payment.valid.param_missing")
|
|
|
|
|
private Double rateValue;
|
|
|
|
|
private BigDecimal rateValue;
|
|
|
|
|
|
|
|
|
|
@JSONField(name = "transaction_fee")
|
|
|
|
|
@NotNull(message = "error.payment.valid.param_missing")
|
|
|
|
|
private Double transactionFee = 0.00;
|
|
|
|
|
private BigDecimal transactionFee = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
|
|
@JSONField(name = "active_time")
|
|
|
|
|
@NotNull(message = "error.payment.valid.param_missing")
|
|
|
|
@ -53,7 +54,7 @@ public class ClientRateConfig {
|
|
|
|
|
this.rateName = rateName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setRateValue(Double rateValue) {
|
|
|
|
|
public void setRateValue(BigDecimal rateValue) {
|
|
|
|
|
this.rateValue = rateValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -69,7 +70,7 @@ public class ClientRateConfig {
|
|
|
|
|
return rateName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Double getRateValue() {
|
|
|
|
|
public BigDecimal getRateValue() {
|
|
|
|
|
return rateValue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -97,11 +98,11 @@ public class ClientRateConfig {
|
|
|
|
|
this.remark = remark;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Double getTransactionFee() {
|
|
|
|
|
public BigDecimal getTransactionFee() {
|
|
|
|
|
return transactionFee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTransactionFee(Double transactionFee) {
|
|
|
|
|
public void setTransactionFee(BigDecimal transactionFee) {
|
|
|
|
|
this.transactionFee = transactionFee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|