com.konakart.json.app
Class J_PromotionOptions

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

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

The PromotionOptions is passed to the getPromotionsPerProducts() API call to configure the behavior of the call.

See Also:
Serialized Form

Constructor Summary
J_PromotionOptions()
           
 
Method Summary
 int getPromotionRule()
          Rule to apply for more than one promotion.
 boolean isSubtractValueFromPriceExTax()
          When set the promotion value is subtracted from the priceExTax attribute of the product.
 boolean isSubtractValueFromPriceIncTax()
          When set the promotion value is subtracted from the priceIncTax attribute of the product.
 void setPromotionRule(int _promotionRule)
          Rule to apply for more than one promotion.
 void setSubtractValueFromPriceExTax(boolean _subtractValueFromPriceExTax)
          When set the promotion value is subtracted from the priceExTax attribute of the product.
 void setSubtractValueFromPriceIncTax(boolean _subtractValueFromPriceIncTax)
          When set the promotion value is subtracted from the priceIncTax attribute of the product.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_PromotionOptions

public J_PromotionOptions()
Method Detail

getPromotionRule

public int getPromotionRule()
Rule to apply for more than one promotion. The rule is only used when one or both of the options to deduct the promotion value from the product price are chosen. Valid values are:

Returns:
the promotionRule

setPromotionRule

public void setPromotionRule(int _promotionRule)
Rule to apply for more than one promotion. The rule is only used when one or both of the options to deduct the promotion value from the product price are chosen. Valid values are:

Parameters:
_promotionRule - the promotionRule to set

isSubtractValueFromPriceExTax

public boolean isSubtractValueFromPriceExTax()
When set the promotion value is subtracted from the priceExTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.

Returns:
the subtractValueFromPriceExTax

setSubtractValueFromPriceExTax

public void setSubtractValueFromPriceExTax(boolean _subtractValueFromPriceExTax)
When set the promotion value is subtracted from the priceExTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.

Parameters:
_subtractValueFromPriceExTax - the subtractValueFromPriceExTax to set

isSubtractValueFromPriceIncTax

public boolean isSubtractValueFromPriceIncTax()
When set the promotion value is subtracted from the priceIncTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.

Returns:
the subtractValueFromPriceIncTax

setSubtractValueFromPriceIncTax

public void setSubtractValueFromPriceIncTax(boolean _subtractValueFromPriceIncTax)
When set the promotion value is subtracted from the priceIncTax attribute of the product. If there are multiple promotions then the promotion rule is used to decide how to apply the discount.

Parameters:
_subtractValueFromPriceIncTax - the subtractValueFromPriceIncTax to set


Copyright © 2011 DS Data Systems UK Ltd.