public interface PromotionOptionsIf
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() |
int getPromotionRule()
getPromotionsPerProducts()
Rule to apply for more than one promotion. The rule is only used when one or both of the options to deduct the promotion value from the product price are chosen. Valid values are:
void setPromotionRule(int promotionRule)
getPromotionsPerProducts()
Rule to apply for more than one promotion. The rule is only used when one or both of the options to deduct the promotion value from the product price are chosen. Valid values are:
promotionRule
- the promotionRule to setboolean isSubtractValueFromPriceExTax()
getPromotionsPerProducts()
When set the promotion value is subtracted from the priceExTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.
void setSubtractValueFromPriceExTax(boolean subtractValueFromPriceExTax)
getPromotionsPerProducts()
When set the promotion value is subtracted from the priceExTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.
subtractValueFromPriceExTax
- the subtractValueFromPriceExTax to setboolean isSubtractValueFromPriceIncTax()
getPromotionsPerProducts()
When set the promotion value is subtracted from the priceIncTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.
void setSubtractValueFromPriceIncTax(boolean subtractValueFromPriceIncTax)
getPromotionsPerProducts()
When set the promotion value is subtracted from the priceIncTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.
subtractValueFromPriceIncTax
- the subtractValueFromPriceIncTax to setboolean isCheckForExpiredCoupons()
getPromotionsPerCoupon()
When set, no promotion objects are returned for the coupons referenced by the couponCode or couponId if they are expired.
void setCheckForExpiredCoupons(boolean checkForExpiredCoupons)
getPromotionsPerCoupon()
When set, no promotion objects are returned for the coupons referenced by the couponCode or couponId if they are expired.
checkForExpiredCoupons
- the checkForExpiredCoupons to setboolean isOnlyReturnActivePromotions()
getPromotionsPerCoupon()
When set, only active promotions are returned.
void setOnlyReturnActivePromotions(boolean onlyReturnActivePromotions)
getPromotionsPerCoupon()
When set, only active promotions are returned.
onlyReturnActivePromotions
- the onlyReturnActivePromotions to setCopyright © 2018 DS Data Systems UK Ltd.