Class PromotionDiscount

java.lang.Object
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:
  • Constructor Details

    • PromotionDiscount

      public PromotionDiscount()
  • Method Details

    • getPromotion

      public Offer getPromotion()
    • setPromotion

      public void setPromotion(Offer promotion)
    • getItemCriteria

      public OfferItemCriteria getItemCriteria()
    • setItemCriteria

      public void setItemCriteria(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)
    • split

      public PromotionDiscount split(int splitQty)
    • copy

      public PromotionDiscount copy()
    • resetQty

      public void resetQty(int qty)
    • isFinalized

      public boolean isFinalized()