Class TotalPotentialSavings
- java.lang.Object
-
- com.broadleafcommerce.promotion.offer.service.dto.TotalPotentialSavings
-
- All Implemented Interfaces:
Serializable
public class TotalPotentialSavings extends Object implements Serializable
DTO containing the total potential savings info for all of anorder's order itemsdue to the application of a singleCandidateItemOffer.- Author:
- Nathan Moore (nathanmoore).
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TotalPotentialSavings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)javax.money.MonetaryAmountgetAmount()BigDecimalgetWeightedSavingsPercentage()inthashCode()voidsetAmount(javax.money.MonetaryAmount amount)voidsetWeightedSavingsPercentage(BigDecimal weightedSavingsPercentage)StringtoString()TotalPotentialSavingswithAmount(javax.money.MonetaryAmount amount)TotalPotentialSavingswithWeightedSavingsPercentage(BigDecimal weightedSavingsPercentage)
-
-
-
Method Detail
-
withAmount
public TotalPotentialSavings withAmount(javax.money.MonetaryAmount amount)
-
withWeightedSavingsPercentage
public TotalPotentialSavings withWeightedSavingsPercentage(BigDecimal weightedSavingsPercentage)
-
getAmount
public javax.money.MonetaryAmount getAmount()
-
getWeightedSavingsPercentage
public BigDecimal getWeightedSavingsPercentage()
-
setAmount
public void setAmount(javax.money.MonetaryAmount amount)
-
setWeightedSavingsPercentage
public void setWeightedSavingsPercentage(BigDecimal weightedSavingsPercentage)
-
canEqual
protected boolean canEqual(Object other)
-
-