public class PromotionResult extends java.lang.Object implements PromotionResultIf
Constructor and Description |
---|
PromotionResult()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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
|
boolean |
isUsed()
Set to true if this promotion result has been used to modify the price of the product it is
attached to.
|
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 |
setUsed(boolean used)
Set to true if this promotion result has been used to modify the price of the product it is
attached to.
|
void |
setValue(java.math.BigDecimal value)
The promotion discount
|
java.lang.String |
toString()
Returns a string containing the attributes of the Promotion Result object
|
public java.lang.String toString()
toString
in class java.lang.Object
public int getPromotionId()
getPromotionId
in interface PromotionResultIf
public void setPromotionId(int promotionId)
setPromotionId
in interface PromotionResultIf
promotionId
- the promotionId to setpublic java.lang.String getOrderTotalCode()
getOrderTotalCode
in interface PromotionResultIf
public void setOrderTotalCode(java.lang.String orderTotalCode)
setOrderTotalCode
in interface PromotionResultIf
orderTotalCode
- the orderTotalCode to setpublic java.math.BigDecimal getValue()
PromotionResultIf
getValue
in interface PromotionResultIf
public void setValue(java.math.BigDecimal value)
PromotionResultIf
setValue
in interface PromotionResultIf
value
- the value to setpublic boolean isPercentageDiscount()
PromotionResultIf
isPercentageDiscount
in interface PromotionResultIf
public void setPercentageDiscount(boolean percentageDiscount)
PromotionResultIf
setPercentageDiscount
in interface PromotionResultIf
percentageDiscount
- the percentageDiscount to setpublic boolean isApplyBeforeTax()
isApplyBeforeTax
in interface PromotionResultIf
public void setApplyBeforeTax(boolean applyBeforeTax)
setApplyBeforeTax
in interface PromotionResultIf
applyBeforeTax
- the applyBeforeTax to setpublic boolean isUsed()
isUsed
in interface PromotionResultIf
public void setUsed(boolean used)
setUsed
in interface PromotionResultIf
used
- the used to setCopyright © 2018 DS Data Systems UK Ltd.