Interface DiscountAmountTypeHolder
- All Known Implementing Classes:
Discount
,DiscountTier
public interface DiscountAmountTypeHolder
Interface to abstract whether the discount and amount come from a Discount or DiscountTier
-
Method Summary
Modifier and TypeMethodDescriptionThe discount amount that this tier represents.Determines the method used to apply the discount.
-
Method Details
-
getAmount
BigDecimal getAmount()The discount amount that this tier represents. If the amount is10
, then whether it is calculated as a percentage (10%) or a currency amount ($10) is determined by#methodType
. OverridesDiscount.amount
of the parentOffer
. -
getMethodType
String getMethodType()Determines the method used to apply the discount. The method can beDiscountMethodType.PERCENT_OFF
,DiscountMethodType.AMOUNT_OFF
, orDiscountMethodType.FIXED_PRICE
. OverridesDiscount.methodType
of the parentOffer
.- Parameters:
methodType
- The method to use to apply this discount- Returns:
- The method to use to apply this discount
- See Also:
-