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 TypeMethodDescriptionReturns the amount of the offer.getId()Returns the unique id of the offer tier.The minimum number needed to qualify for this tier.getOffer()Returns the associated offer.voidsetAmount(BigDecimal amount) Sets the amount of the tier.voidSets the id of the offer tier.voidsetMinQuantity(Long minQuantity) Sets the minimum number need to qualify for this tier.voidSets the associated offer.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.broadleafcommerce.common.copy.MultiTenantCloneable
createOrRetrieveCopyInstance
-
Method Details
-
getId
Long getId()Returns the unique id of the offer tier.- Returns:
-
setId
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 parentOffer.getDiscountType()- Returns:
-
setAmount
Sets the amount of the tier.- Parameters:
amount-
-
getMinQuantity
Long getMinQuantity()The minimum number needed to qualify for this tier.- Returns:
-
setMinQuantity
Sets the minimum number need to qualify for this tier.- Parameters:
minQuantity-
-
getOffer
Offer getOffer()Returns the associated offer.- Returns:
-
setOffer
Sets the associated offer.- Parameters:
offer-
-