org.broadleafcommerce.core.offer.service.type
Class OfferDeliveryType
java.lang.Object
org.broadleafcommerce.core.offer.service.type.OfferDeliveryType
- All Implemented Interfaces:
- Serializable, Comparable<OfferDeliveryType>, BroadleafEnumerationType
public class OfferDeliveryType
- extends Object
- implements Serializable, BroadleafEnumerationType, Comparable<OfferDeliveryType>
An extendible enumeration of delivery types.
Enumeration of how the offer should be applied.
AUTOMATIC - will be applied to everyone's order
MANUAL - offer is manually assigned to a Customer by an administrator
CODE - a offer code must be supplied in order to receive this offer
- See Also:
- Serialized Form
AUTOMATIC
public static final OfferDeliveryType AUTOMATIC
CODE
public static final OfferDeliveryType CODE
MANUAL
public static final OfferDeliveryType MANUAL
OfferDeliveryType
public OfferDeliveryType()
OfferDeliveryType
public OfferDeliveryType(String type,
String friendlyType,
int order)
getInstance
public static OfferDeliveryType getInstance(String type)
setType
public void setType(String type)
getType
public String getType()
- Specified by:
getType in interface BroadleafEnumerationType
getFriendlyType
public String getFriendlyType()
- Specified by:
getFriendlyType in interface BroadleafEnumerationType
getOrder
public int getOrder()
setOrder
public void setOrder(int order)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
compareTo
public int compareTo(OfferDeliveryType arg0)
- Specified by:
compareTo in interface Comparable<OfferDeliveryType>
Copyright © 2013. All Rights Reserved.