java.lang.Object
com.broadleafcommerce.promotion.offer.service.autoconfigure.properties.OfferRoundingProperties
Direct Known Subclasses:
OrderOfferRoundingProperties

public class OfferRoundingProperties extends Object
Properties related to offer rounding behaviors.
Author:
Sunny Yu
  • Constructor Details

    • OfferRoundingProperties

      public OfferRoundingProperties()
  • Method Details

    • isRoundOfferValues

      public boolean isRoundOfferValues()
      Whether to round offer values.

      Note that order typed offers are always rounded regardless of the value of this property.

    • getRoundingMode

      public RoundingMode getRoundingMode()
      The RoundingMode to use for rounding offer values.
    • setRoundOfferValues

      public void setRoundOfferValues(boolean roundOfferValues)
      Whether to round offer values.

      Note that order typed offers are always rounded regardless of the value of this property.

    • setRoundingMode

      public void setRoundingMode(RoundingMode roundingMode)
      The RoundingMode to use for rounding offer values.
    • 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