|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.konakart.app.PromotionResult
public class 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 | |
|---|---|
PromotionResult()
Constructor |
|
| 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 |
java.lang.String |
toString()
Returns a string containing the attributes of the Promotion Result object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PromotionResult()
| Method Detail |
|---|
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()
PromotionResultIf
getValue in interface PromotionResultIfpublic void setValue(java.math.BigDecimal value)
PromotionResultIf
setValue in interface PromotionResultIfvalue - the value to setpublic boolean isPercentageDiscount()
PromotionResultIf
isPercentageDiscount in interface PromotionResultIfpublic void setPercentageDiscount(boolean percentageDiscount)
PromotionResultIf
setPercentageDiscount in interface PromotionResultIfpercentageDiscount - the percentageDiscount to setpublic boolean isApplyBeforeTax()
isApplyBeforeTax in interface PromotionResultIfpublic void setApplyBeforeTax(boolean applyBeforeTax)
setApplyBeforeTax in interface PromotionResultIfapplyBeforeTax - the applyBeforeTax to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||