Class DiscountParameters
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.service.dto.DiscountParameters
-
- All Implemented Interfaces:
Serializable
public final class DiscountParameters extends Object implements Serializable
Parameters used in theDefaultOfferApplicationServiceto calculate the potential discount of aCandidateItemOfferfor anEnhancedLineItem.- Author:
- Nathan Moore (nathanmoore).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DiscountParameters(String discountMethodType, BigDecimal discountAmount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)BigDecimalgetDiscountAmount()StringgetDiscountMethodType()inthashCode()static DiscountParametersof(String discountMethodType, BigDecimal discountAmount)StringtoString()
-
-
-
Constructor Detail
-
DiscountParameters
public DiscountParameters(String discountMethodType, BigDecimal discountAmount)
-
-
Method Detail
-
of
public static DiscountParameters of(String discountMethodType, BigDecimal discountAmount)
-
getDiscountMethodType
public String getDiscountMethodType()
-
getDiscountAmount
public BigDecimal getDiscountAmount()
-
-