com.konakart.json.app
Class J_PromotionOptions
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
J_PromotionOptions
public J_PromotionOptions()
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:
- com.konakart.app.PromotionOptions.PRM_RULE_CHOOSE_LARGEST - The promotion offering the
largest discount is chosen. It applies to all promotions that produce a value (i.e. Not for a
3 for 2 promotion or free gift promotion etc.). If there are percentage discount promotions
mixed with promotions producing a non percentage discount, then the discount is actually
calculated for the percentage cases and the largest one is chosen.
- com.konakart.app.PromotionOptions.PRM_RULE_CHOOSE_SMALLEST - The promotion offering the
smallest discount is chosen. It applies to all promotions that produce a value (i.e. Not for
a 3 for 2 promotion or free gift promotion etc.). If there are percentage discount promotions
mixed with promotions producing a non percentage discount, then the discount is actually
calculated for the percentage cases and the smallest one is chosen.
- com.konakart.app.PromotionOptions.PRM_RULE_CUMULATIVE - This only applies to promotions
creating non percentage discounts. The discounts of all these promotions are applied to the
product.
- 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:
- com.konakart.app.PromotionOptions.PRM_RULE_CHOOSE_LARGEST - The promotion offering the
largest discount is chosen. It applies to all promotions that produce a value (i.e. Not for a
3 for 2 promotion or free gift promotion etc.). If there are percentage discount promotions
mixed with promotions producing a non percentage discount, then the discount is actually
calculated for the percentage cases and the largest one is chosen.
- com.konakart.app.PromotionOptions.PRM_RULE_CHOOSE_SMALLEST - The promotion offering the
smallest discount is chosen. It applies to all promotions that produce a value (i.e. Not for
a 3 for 2 promotion or free gift promotion etc.). If there are percentage discount promotions
mixed with promotions producing a non percentage discount, then the discount is actually
calculated for the percentage cases and the smallest one is chosen.
- com.konakart.app.PromotionOptions.PRM_RULE_CUMULATIVE - This only applies to promotions
creating non percentage discounts. The discounts of all these promotions are applied to the
product.
- 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.