java.lang.Object | +--com.ibm.commerce.discount.rules.Discount
This class represents a general discount type.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from interface com.ibm.commerce.discount.rules. DiscountConst |
COMPONENT_RULE_BASED_DISCOUNT,
DISCOUNT_SERVICE,
FIXED_VALUE,
ORDER_LEVEL,
PERCENTAGE_OFF,
PRODUCT_LEVEL,
SHIPPING,
VALUE_OFF |
Constructor Summary | |
---|---|
Discount() Constructor for Discount. |
Method Summary | |
---|---|
java.lang.String |
getDiscountCode() Get the discount code, which is unique within one store to represent a discount. |
java.lang.Integer |
getDiscountLevel() Get the discount level, which could be product level or order level based on the discount target. |
FixedPriceItem[] |
getFixedPriceItems() Get the fixed price items. |
FreebieItem[] |
getFreebieItems() Get the freebie items. |
MixedDiscount |
getMixedDiscount() Get the mixed discount. |
MonetaryDiscount |
getMonetaryDiscount() Get the monetary discount |
java.lang.String[] |
getProfileNames() Get the profile names |
ServiceDiscount[] |
getServiceDiscounts() Get the service discounts. |
void |
setDiscountCode(java.lang.String newDiscountCode) Set the discount code. |
void |
setDiscountLevel(java.lang.Integer newDiscountLevel) Set the discount level. |
void |
setFixedPriceItems(
FixedPriceItem[] newFixedPriceItems) Set the fixed price items |
void |
setFreebieItems(
FreebieItem[] newFreebieItems) Set the freebie items |
void |
setMixedDiscount(
MixedDiscount newMixedDiscount) Set the mixed discount. |
void |
setMonetaryDiscount(
MonetaryDiscount newMonetaryDiscount) Set the monetary discount |
void |
setProfileNames(java.lang.String[] newProfileNames) Set the profile names |
void |
setServiceDiscounts(
ServiceDiscount[] newServiceDiscounts) Set the service discounts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public Discount()
Method Detail |
---|
public java.lang.String getDiscountCode()
public java.lang.Integer getDiscountLevel()
public FixedPriceItem[] getFixedPriceItems()
public FreebieItem[] getFreebieItems()
public MixedDiscount getMixedDiscount()
public MonetaryDiscount getMonetaryDiscount()
public java.lang.String[] getProfileNames()
public ServiceDiscount[] getServiceDiscounts()
public void setDiscountCode(java.lang.String newDiscountCode)
newDiscountCode
- java.lang.Stringpublic void setDiscountLevel(java.lang.Integer newDiscountLevel)
public void setFixedPriceItems(FixedPriceItem[] newFixedPriceItems)
public void setFreebieItems(FreebieItem[] newFreebieItems)
public void setMixedDiscount(MixedDiscount newMixedDiscount)
public void setMonetaryDiscount(MonetaryDiscount newMonetaryDiscount)
public void setProfileNames(java.lang.String[] newProfileNames)
newProfileNames
- java.lang.String[]public void setServiceDiscounts(ServiceDiscount[] newServiceDiscounts)
newServiceDiscounts
-
com.ibm.commerce.discount.rules.ServiceDiscount[]