Interface OfferTier

All Superinterfaces:
Comparable<OfferTier>, MultiTenantCloneable<OfferTier>, Serializable

public interface OfferTier extends Comparable<OfferTier>, Serializable, 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 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 -