org.broadleafcommerce.core.offer.service.discount
Class PromotionDiscount

java.lang.Object
  extended by org.broadleafcommerce.core.offer.service.discount.PromotionDiscount
All Implemented Interfaces:
Serializable

public class PromotionDiscount
extends Object
implements Serializable

Records the usage of this item as qualifier or target of the promotion. The discount amount will be 0 if this item was only used as a qualifier.

Author:
jfischer
See Also:
Serialized Form

Constructor Summary
PromotionDiscount()
           
 
Method Summary
 PromotionDiscount copy()
           
 PromotableCandidateItemOffer getCandidateItemOffer()
           
 int getFinalizedQuantity()
           
 Set<OfferItemCriteria> getItemCriteria()
           
 Offer getPromotion()
           
 int getQuantity()
           
 void incrementQuantity(int quantity)
           
 void resetQty(int qty)
           
 void setCandidateItemOffer(PromotableCandidateItemOffer candidateItemOffer)
           
 void setFinalizedQuantity(int finalizedQuantity)
           
 void setItemCriteria(Set<OfferItemCriteria> itemCriteria)
           
 void setPromotion(Offer promotion)
           
 void setQuantity(int quantity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromotionDiscount

public PromotionDiscount()
Method Detail

getPromotion

public Offer getPromotion()

setPromotion

public void setPromotion(Offer promotion)

getItemCriteria

public Set<OfferItemCriteria> getItemCriteria()

setItemCriteria

public void setItemCriteria(Set<OfferItemCriteria> itemCriteria)

getQuantity

public int getQuantity()

setQuantity

public void setQuantity(int quantity)

getFinalizedQuantity

public int getFinalizedQuantity()

setFinalizedQuantity

public void setFinalizedQuantity(int finalizedQuantity)

incrementQuantity

public void incrementQuantity(int quantity)

getCandidateItemOffer

public PromotableCandidateItemOffer getCandidateItemOffer()

setCandidateItemOffer

public void setCandidateItemOffer(PromotableCandidateItemOffer candidateItemOffer)

copy

public PromotionDiscount copy()

resetQty

public void resetQty(int qty)


Copyright © 2013. All Rights Reserved.