com.konakart.json.app
Class J_PromotionResult

java.lang.Object
  extended by com.konakart.json.app.J_PromotionResult
All Implemented Interfaces:
java.io.Serializable

public class J_PromotionResult
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

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

J_PromotionResult

public J_PromotionResult()
Method Detail

getPromotionId

public int getPromotionId()
Returns:
the promotionId

setPromotionId

public void setPromotionId(int _promotionId)
Parameters:
_promotionId - the promotionId to set

getOrderTotalCode

public java.lang.String getOrderTotalCode()
Returns:
the orderTotalCode

setOrderTotalCode

public void setOrderTotalCode(java.lang.String _orderTotalCode)
Parameters:
_orderTotalCode - the orderTotalCode to set

getValue

public java.math.BigDecimal getValue()
The promotion discount

Returns:
the value

setValue

public void setValue(java.math.BigDecimal _value)
The promotion discount

Parameters:
_value - the value to set

isPercentageDiscount

public boolean isPercentageDiscount()
When true, the value specifies a percentage

Returns:
the percentageDiscount

setPercentageDiscount

public void setPercentageDiscount(boolean _percentageDiscount)
When true, the value specifies a percentage

Parameters:
_percentageDiscount - the percentageDiscount to set

isApplyBeforeTax

public boolean isApplyBeforeTax()
When true, the discount should be applied before tax

Returns:
the applyBeforeTax

setApplyBeforeTax

public void setApplyBeforeTax(boolean _applyBeforeTax)
When true, the discount should be applied before tax

Parameters:
_applyBeforeTax - the applyBeforeTax to set


Copyright © 2011 DS Data Systems UK Ltd.