Class DiscountAmountTypeHolderDto
java.lang.Object
com.broadleafcommerce.promotion.offer.domain.DiscountAmountTypeHolderDto
- All Implemented Interfaces:
DiscountAmountTypeHolder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe discount amount that this tier represents.Determines the method used to apply the discount.
-
Constructor Details
-
DiscountAmountTypeHolderDto
-
-
Method Details
-
getAmount
Description copied from interface:DiscountAmountTypeHolderThe 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.amountof the parentOffer.- Specified by:
getAmountin interfaceDiscountAmountTypeHolder
-
getMethodType
Description copied from interface:DiscountAmountTypeHolderDetermines the method used to apply the discount. The method can beDiscountMethodType.PERCENT_OFF,DiscountMethodType.AMOUNT_OFF, orDiscountMethodType.FIXED_PRICE. OverridesDiscount.methodTypeof the parentOffer.- Specified by:
getMethodTypein interfaceDiscountAmountTypeHolder- Returns:
- The method to use to apply this discount
- See Also:
-