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 PromotionOptionsIf
public void setPromotionRule(int promotionRule)
setPromotionRule
in interface PromotionOptionsIf
promotionRule
- the promotionRule to setpublic boolean isSubtractValueFromPriceExTax()
isSubtractValueFromPriceExTax
in interface PromotionOptionsIf
public void setSubtractValueFromPriceExTax(boolean subtractValueFromPriceExTax)
setSubtractValueFromPriceExTax
in interface PromotionOptionsIf
subtractValueFromPriceExTax
- the subtractValueFromPriceExTax to setpublic boolean isSubtractValueFromPriceIncTax()
isSubtractValueFromPriceIncTax
in interface PromotionOptionsIf
public void setSubtractValueFromPriceIncTax(boolean subtractValueFromPriceIncTax)
setSubtractValueFromPriceIncTax
in interface PromotionOptionsIf
subtractValueFromPriceIncTax
- the subtractValueFromPriceIncTax to setpublic boolean isCheckForExpiredCoupons()
isCheckForExpiredCoupons
in interface PromotionOptionsIf
public void setCheckForExpiredCoupons(boolean checkForExpiredCoupons)
setCheckForExpiredCoupons
in interface PromotionOptionsIf
checkForExpiredCoupons
- the checkForExpiredCoupons to setpublic boolean isOnlyReturnActivePromotions()
isOnlyReturnActivePromotions
in interface PromotionOptionsIf
public void setOnlyReturnActivePromotions(boolean onlyReturnActivePromotions)
setOnlyReturnActivePromotions
in interface PromotionOptionsIf
onlyReturnActivePromotions
- the onlyReturnActivePromotions to setCopyright © 2018 DS Data Systems UK Ltd.