Class FulfillmentPriceTier

java.lang.Object
com.broadleafcommerce.fulfillment.domain.FulfillmentPriceTier
All Implemented Interfaces:
Serializable

public class FulfillmentPriceTier extends Object implements Serializable
The tiers to determine fulfillment price. Could be banded by merchandise price or weight.
See Also:
  • Constructor Details

    • FulfillmentPriceTier

      public FulfillmentPriceTier()
  • Method Details

    • getMinValue

      @NonNull public @NonNull BigDecimal getMinValue()
      The banded min value. This must be less than or equal to the max value. This could be a price or a weight, depending on FulfillmentCalculatorConfig.getBandField().
    • getAmount

      public BigDecimal getAmount()
      The fulfillment price of this tier.
    • getOperationType

      public CalculatorOperation getOperationType()
      Optional override for Operation Type to determine if this tier is applied with a fixed amount or a rate.
    • setMinValue

      public void setMinValue(@NonNull @NonNull BigDecimal minValue)
      The banded min value. This must be less than or equal to the max value. This could be a price or a weight, depending on FulfillmentCalculatorConfig.getBandField().
    • setAmount

      public void setAmount(BigDecimal amount)
      The fulfillment price of this tier.
    • setOperationType

      public void setOperationType(CalculatorOperation operationType)
      Optional override for Operation Type to determine if this tier is applied with a fixed amount or a rate.
    • 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