|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PromotionResultIf
Promotion Result Object. It contains the result of a promotion applied to a product. A product may have an array of these objects. If the product has options then each productQuantity attribute of the product may contain an array of these since the promotion may only apply to a certain configuration of the product. i.e. For a blue shirt and not for a black shirt.
| Method Summary | |
|---|---|
java.lang.String |
getOrderTotalCode()
|
int |
getPromotionId()
|
java.math.BigDecimal |
getValue()
The promotion discount |
boolean |
isApplyBeforeTax()
When true, the discount should be applied before tax |
boolean |
isPercentageDiscount()
When true, the value specifies a percentage |
void |
setApplyBeforeTax(boolean applyBeforeTax)
When true, the discount should be applied before tax |
void |
setOrderTotalCode(java.lang.String orderTotalCode)
|
void |
setPercentageDiscount(boolean percentageDiscount)
When true, the value specifies a percentage |
void |
setPromotionId(int promotionId)
|
void |
setValue(java.math.BigDecimal value)
The promotion discount |
| Method Detail |
|---|
int getPromotionId()
void setPromotionId(int promotionId)
promotionId - the promotionId to setjava.lang.String getOrderTotalCode()
void setOrderTotalCode(java.lang.String orderTotalCode)
orderTotalCode - the orderTotalCode to setjava.math.BigDecimal getValue()
void setValue(java.math.BigDecimal value)
value - the value to setboolean isPercentageDiscount()
void setPercentageDiscount(boolean percentageDiscount)
percentageDiscount - the percentageDiscount to setboolean isApplyBeforeTax()
void setApplyBeforeTax(boolean applyBeforeTax)
applyBeforeTax - the applyBeforeTax to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||