com.endeca.mobile.services.cart.models
Class Promotion
java.lang.Object
com.endeca.mobile.services.cart.models.Model
com.endeca.mobile.services.cart.models.NamedModel
com.endeca.mobile.services.cart.models.Promotion
- All Implemented Interfaces:
- java.io.Serializable
public class Promotion
- extends NamedModel
- See Also:
- Serialized Form
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Promotion
public Promotion()
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)