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 an order's order items due to the application of a single CandidateItemOffer.
Author:
Nathan Moore (nathanmoore).
See Also:
  • Constructor Details

    • TotalPotentialSavings

      public TotalPotentialSavings()
  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object