public abstract class Promotion extends ModelObject implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ACCESSORY
Type constant (value Product.PROMO_ACCESSORIES) which identifies accessories promotions.
|
static java.lang.String | CROSSSELL
Type constant (value Product.PROMO_XSELLS) which identifies cross-sell promotions.
|
static java.lang.String | DOWNSELL
Type constant (value Product.PROMO_DOWNSELLS) which identifies down-sell promotions.
|
static java.lang.String | PROMO_ORDER
A constant used to identify Order promotion (value "OrderLevelPromotion").
|
static java.lang.String | PROMO_PRODUCT
A constant used to identify Product promotion (value "ProductLevelPromotion").
|
static java.lang.String | PROMO_SHIPPING
A constant used to identify Shipping promotion (value "ShippingPromotion").
|
static java.lang.String | PROP_TYPE
A constant for the type property name.
|
static java.lang.String | REPLACEMENT
Type constant (value Product.PROMO_REPLACEMENT) which identifies replacement promotions.
|
static java.lang.String | UPSELL
Type constant (value Product.PROMO_UPSELLS) which identifies up-sell promotions.
|
Constructor and Description |
---|
Promotion()
Default constructor to create a promotion.
|
Modifier and Type | Method and Description |
---|---|
int | compareTo(java.lang.Object object)
This method compares this object with the specified object for order.
|
java.lang.String | getType()
This method is a convenience method for retrieving the current setting of the "type" property.
|
void | setType(java.lang.String type)
This is a convenience method for setting the PROP_TYPE property.
|
public static final java.lang.String CROSSSELL
public static final java.lang.String DOWNSELL
public static final java.lang.String UPSELL
public static final java.lang.String ACCESSORY
public static final java.lang.String REPLACEMENT
public static final java.lang.String PROMO_ORDER
public static final java.lang.String PROMO_PRODUCT
public static final java.lang.String PROMO_SHIPPING
public static final java.lang.String PROP_TYPE
The value is "type".
The data stored under the PROP_TYPE property is a String that represents the type of the promotion. The property value can be one of CROSSSELL, DOWNSELL, UPSELL, ACCESSORIES.
public java.lang.String getType()
public void setType(java.lang.String type)
public int compareTo(java.lang.Object object)