com.endeca.mobile.services.cart.models
Class Promotion

java.lang.Object
  extended by com.endeca.mobile.services.cart.models.Model
      extended by com.endeca.mobile.services.cart.models.NamedModel
          extended by com.endeca.mobile.services.cart.models.Promotion
All Implemented Interfaces:
java.io.Serializable

public class Promotion
extends NamedModel

See Also:
Serialized Form

Constructor Summary
Promotion()
           
 
Method Summary
 java.lang.String getCode()
          The String value, like, "SHIPTODAY", or "HOLIDAY10".
 boolean isActive()
          A promotion may be displayed to the user, even if it is not active.
 boolean isEnabled()
          Whether or not the user is allowed to remove the promotion.
 void setActive(boolean active)
           
 void setCode(java.lang.String code)
           
 void setEnabled(boolean enabled)
           
 
Methods inherited from class com.endeca.mobile.services.cart.models.NamedModel
getDescription, getName, setDescription, setName
 
Methods inherited from class com.endeca.mobile.services.cart.models.Model
containsProperty, getId, getProperties, getProperty, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, putProperty, setId, setProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Promotion

public Promotion()
Method Detail

getCode

public java.lang.String getCode()
The String value, like, "SHIPTODAY", or "HOLIDAY10".


setCode

public void setCode(java.lang.String code)

isActive

public boolean isActive()
A promotion may be displayed to the user, even if it is not active.


setActive

public void setActive(boolean active)

isEnabled

public boolean isEnabled()
Whether or not the user is allowed to remove the promotion. Users can only remove enabled promotions.


setEnabled

public void setEnabled(boolean enabled)