com.konakart.appif
Interface PromotionResultIf

All Known Implementing Classes:
PromotionResult

public interface PromotionResultIf

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.


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
 

Method Detail

getPromotionId

int getPromotionId()
Returns:
the promotionId

setPromotionId

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

getOrderTotalCode

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

setOrderTotalCode

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

getValue

java.math.BigDecimal getValue()
The promotion discount

Returns:
the value

setValue

void setValue(java.math.BigDecimal value)
The promotion discount

Parameters:
value - the value to set

isPercentageDiscount

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

Returns:
the percentageDiscount

setPercentageDiscount

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

Parameters:
percentageDiscount - the percentageDiscount to set

isApplyBeforeTax

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

Returns:
the applyBeforeTax

setApplyBeforeTax

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.