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.Objectpublic int getPromotionId()
getPromotionId in interface PromotionResultIfpublic void setPromotionId(int promotionId)
setPromotionId in interface PromotionResultIfpromotionId - the promotionId to setpublic java.lang.String getOrderTotalCode()
getOrderTotalCode in interface PromotionResultIfpublic void setOrderTotalCode(java.lang.String orderTotalCode)
setOrderTotalCode in interface PromotionResultIforderTotalCode - the orderTotalCode to setpublic java.math.BigDecimal getValue()
PromotionResultIfgetValue in interface PromotionResultIfpublic void setValue(java.math.BigDecimal value)
PromotionResultIfsetValue in interface PromotionResultIfvalue - the value to setpublic boolean isPercentageDiscount()
PromotionResultIfisPercentageDiscount in interface PromotionResultIfpublic void setPercentageDiscount(boolean percentageDiscount)
PromotionResultIfsetPercentageDiscount in interface PromotionResultIfpercentageDiscount - the percentageDiscount to setpublic boolean isApplyBeforeTax()
isApplyBeforeTax in interface PromotionResultIfpublic void setApplyBeforeTax(boolean applyBeforeTax)
setApplyBeforeTax in interface PromotionResultIfapplyBeforeTax - the applyBeforeTax to setpublic boolean isUsed()
isUsed in interface PromotionResultIfpublic void setUsed(boolean used)
setUsed in interface PromotionResultIfused - the used to setCopyright © 2018 DS Data Systems UK Ltd.