|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.konakart.json.app.J_PromotionResult
public class J_PromotionResult
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.
Constructor Summary | |
---|---|
J_PromotionResult()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public J_PromotionResult()
Method Detail |
---|
public int getPromotionId()
public void setPromotionId(int _promotionId)
_promotionId
- the promotionId to setpublic java.lang.String getOrderTotalCode()
public void setOrderTotalCode(java.lang.String _orderTotalCode)
_orderTotalCode
- the orderTotalCode to setpublic java.math.BigDecimal getValue()
public void setValue(java.math.BigDecimal _value)
_value
- the value to setpublic boolean isPercentageDiscount()
public void setPercentageDiscount(boolean _percentageDiscount)
_percentageDiscount
- the percentageDiscount to setpublic boolean isApplyBeforeTax()
public 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 |