CreditorBillingRuleSearch.java
package com.tradecloud.dto.creditorbilling;
import com.tradecloud.domain.common.Incoterm;
import com.tradecloud.domain.container.ContainerType;
import com.tradecloud.domain.creditorbilling.transaction.CreditorBillingTransactionType;
import com.tradecloud.domain.model.shipment.ShippingMode;
import com.tradecloud.domain.party.ServiceProvider;
import com.tradecloud.domain.party.ServiceProviderType;
import java.io.Serializable;
import java.util.Date;
/**
*
* @author jon
*/
public class CreditorBillingRuleSearch implements Serializable{
private CreditorBillingTransactionType type;
private ServiceProvider carrier;
private ServiceProvider freightForwarder;
private Incoterm incoterm;
private ContainerType containerType;
private ShippingMode shippingMode;
private Date effectiveDate;
private ServiceProviderType counterPartyRole;
public ServiceProvider getCarrier() {
return carrier;
}
public void setCarrier(ServiceProvider carrier) {
this.carrier = carrier;
}
public ServiceProvider getFreightForwarder() {
return freightForwarder;
}
public void setFreightForwarder(ServiceProvider freightForwarder) {
this.freightForwarder = freightForwarder;
}
public Incoterm getIncoterm() {
return incoterm;
}
public void setIncoterm(Incoterm incoterm) {
this.incoterm = incoterm;
}
public ContainerType getContainerType() {
return containerType;
}
public void setContainerType(ContainerType containerType) {
this.containerType = containerType;
}
public ShippingMode getShippingMode() {
return shippingMode;
}
public void setShippingMode(ShippingMode shippingMode) {
this.shippingMode = shippingMode;
}
public Date getEffectiveDate() {
return effectiveDate;
}
public void setEffectiveDate(Date effectiveDate) {
this.effectiveDate = effectiveDate;
}
@Override
public String toString() {
return "Freight Forwarder=" + (freightForwarder != null ? freightForwarder.getName() : null)
+ ". Shipping mode=" + shippingMode
+ ". Incoterm="+ (incoterm != null ? incoterm.getName() : null)
+ ". Container type=" + (containerType != null ? containerType.getName() : null)
+ ". Carrier=" + (carrier != null ? carrier.getName() : null);
}
public ServiceProviderType getCounterPartyRole() {
return counterPartyRole;
}
public void setCounterPartyRole(ServiceProviderType counterPartyRole) {
this.counterPartyRole = counterPartyRole;
}
/**
* @return the type
*/
public CreditorBillingTransactionType getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(CreditorBillingTransactionType type) {
this.type = type;
}
}