Interface OfferTier

All Superinterfaces:
Comparable<OfferTier>, org.broadleafcommerce.common.copy.MultiTenantCloneable<OfferTier>, Serializable

public interface OfferTier extends Comparable<OfferTier>, Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<OfferTier>
Represents a tier and amount combination for an offer. For example, an offer might allow a 10% off if a user purchases 1 -5 but then allow 15% off if they purchase more than 5.
Author:
bpolster
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the amount of the offer.
    Returns the unique id of the offer tier.
    The minimum number needed to qualify for this tier.
    Returns the associated offer.
    void
    Sets the amount of the tier.
    void
    setId(Long id)
    Sets the id of the offer tier.
    void
    setMinQuantity(Long minQuantity)
    Sets the minimum number need to qualify for this tier.
    void
    setOffer(Offer offer)
    Sets the associated offer.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable

    createOrRetrieveCopyInstance
  • Method Details

    • getId

      Long getId()
      Returns the unique id of the offer tier.
      Returns:
    • setId

      void setId(Long id)
      Sets the id of the offer tier.
      Parameters:
      id -
    • getAmount

      BigDecimal getAmount()
      Returns the amount of the offer. The amount could be a percentage, fixed price, or amount-off depending on the parent Offer.getDiscountType()
      Returns:
    • setAmount

      void setAmount(BigDecimal amount)
      Sets the amount of the tier.
      Parameters:
      amount -
    • getMinQuantity

      Long getMinQuantity()
      The minimum number needed to qualify for this tier.
      Returns:
    • setMinQuantity

      void setMinQuantity(Long minQuantity)
      Sets the minimum number need to qualify for this tier.
      Parameters:
      minQuantity -
    • getOffer

      Offer getOffer()
      Returns the associated offer.
      Returns:
    • setOffer

      void setOffer(Offer offer)
      Sets the associated offer.
      Parameters:
      offer -