Class DiscountParameters
java.lang.Object
com.broadleafcommerce.promotion.offer.service.dto.DiscountParameters
- All Implemented Interfaces:
Serializable
Parameters used in the
DefaultOfferApplicationService
to calculate the potential discount
of a CandidateItemOffer
for an EnhancedLineItem
.- Author:
- Nathan Moore (nathanmoore).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
static DiscountParameters
of
(String discountMethodType, BigDecimal discountAmount) toString()
-
Constructor Details
-
DiscountParameters
-
-
Method Details
-
of
public static DiscountParameters of(@NonNull String discountMethodType, @NonNull BigDecimal discountAmount) -
getDiscountMethodType
-
getDiscountAmount
-
equals
-
hashCode
public int hashCode() -
toString
-