PaymentConfig.java
package com.tradecloud.domain.configuration;
import com.tradecloud.common.base.PersistenceBase;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@Table(name = "PaymentConfig")
@Access(AccessType.FIELD)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "PaymentConfig")
public class PaymentConfig extends PersistenceBase {
private boolean autolinkPayToInvoice;
private boolean allowReallocation;
private boolean requireERPPaymentId;
private boolean allowOverPayment;
@Enumerated(EnumType.STRING)
private DefaultSearch defaultSearch = DefaultSearch.NONE;
public enum DefaultSearch {
SHIPPING_REFERENCE, ORDER_REFERENCE, NONE
}
public boolean isAutolinkPayToInvoice() {
return autolinkPayToInvoice;
}
public void setAutolinkPayToInvoice(boolean autolinkPayToInvoice) {
this.autolinkPayToInvoice = autolinkPayToInvoice;
}
public boolean isAllowReallocation() {
return allowReallocation;
}
public void setAllowReallocation(boolean allowReallocation) {
this.allowReallocation = allowReallocation;
}
public boolean isRequireERPPaymentId() {
return requireERPPaymentId;
}
public void setRequireERPPaymentId(boolean requireERPPaymentId) {
this.requireERPPaymentId = requireERPPaymentId;
}
public DefaultSearch getDefaultSearch() {
return defaultSearch;
}
public void setDefaultSearch(DefaultSearch defaultSearch) {
this.defaultSearch = defaultSearch;
}
public boolean isAllowOverPayment() {
return allowOverPayment;
}
public void setAllowOverPayment(boolean allowOverPayment) {
this.allowOverPayment = allowOverPayment;
}
}