public class PromotionOptions extends java.lang.Object implements PromotionOptionsIf
| Modifier and Type | Field and Description |
|---|---|
static int |
PRM_RULE_CHOOSE_LARGEST
Constant for rule to apply for more than one promotion
|
static int |
PRM_RULE_CHOOSE_SMALLEST
Constant for rule to apply for more than one promotion
|
static int |
PRM_RULE_CUMULATIVE
Constant for rule to apply for more than one promotion.
|
| Constructor and Description |
|---|
PromotionOptions()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPromotionRule()
Used in getPromotionsPerProducts()
|
boolean |
isCheckForExpiredCoupons()
Used in getPromotionsPerCoupon()
|
boolean |
isOnlyReturnActivePromotions()
Used in getPromotionsPerCoupon()
|
boolean |
isSubtractValueFromPriceExTax()
Used in getPromotionsPerProducts()
|
boolean |
isSubtractValueFromPriceIncTax()
Used in getPromotionsPerProducts()
|
void |
setCheckForExpiredCoupons(boolean checkForExpiredCoupons)
Used in getPromotionsPerCoupon()
|
void |
setOnlyReturnActivePromotions(boolean onlyReturnActivePromotions)
Used in getPromotionsPerCoupon()
|
void |
setPromotionRule(int promotionRule)
Used in getPromotionsPerProducts()
|
void |
setSubtractValueFromPriceExTax(boolean subtractValueFromPriceExTax)
Used in getPromotionsPerProducts()
|
void |
setSubtractValueFromPriceIncTax(boolean subtractValueFromPriceIncTax)
Used in getPromotionsPerProducts()
|
public static final int PRM_RULE_CHOOSE_LARGEST
public static final int PRM_RULE_CHOOSE_SMALLEST
public static final int PRM_RULE_CUMULATIVE
public int getPromotionRule()
getPromotionRule in interface PromotionOptionsIfpublic void setPromotionRule(int promotionRule)
setPromotionRule in interface PromotionOptionsIfpromotionRule - the promotionRule to setpublic boolean isSubtractValueFromPriceExTax()
isSubtractValueFromPriceExTax in interface PromotionOptionsIfpublic void setSubtractValueFromPriceExTax(boolean subtractValueFromPriceExTax)
setSubtractValueFromPriceExTax in interface PromotionOptionsIfsubtractValueFromPriceExTax - the subtractValueFromPriceExTax to setpublic boolean isSubtractValueFromPriceIncTax()
isSubtractValueFromPriceIncTax in interface PromotionOptionsIfpublic void setSubtractValueFromPriceIncTax(boolean subtractValueFromPriceIncTax)
setSubtractValueFromPriceIncTax in interface PromotionOptionsIfsubtractValueFromPriceIncTax - the subtractValueFromPriceIncTax to setpublic boolean isCheckForExpiredCoupons()
isCheckForExpiredCoupons in interface PromotionOptionsIfpublic void setCheckForExpiredCoupons(boolean checkForExpiredCoupons)
setCheckForExpiredCoupons in interface PromotionOptionsIfcheckForExpiredCoupons - the checkForExpiredCoupons to setpublic boolean isOnlyReturnActivePromotions()
isOnlyReturnActivePromotions in interface PromotionOptionsIfpublic void setOnlyReturnActivePromotions(boolean onlyReturnActivePromotions)
setOnlyReturnActivePromotions in interface PromotionOptionsIfonlyReturnActivePromotions - the onlyReturnActivePromotions to setCopyright © 2018 DS Data Systems UK Ltd.