Class FulfillmentFlatRate

java.lang.Object
com.broadleafcommerce.catalog.domain.product.FulfillmentFlatRate
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware, Serializable

public class FulfillmentFlatRate extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
Represents a flat fulfillment rate (e.g., shipping price) for a particular fulfillable item (e.g., Product, Variant) and fulfillment option (e.g., standard shipping). Depending on if the option is configured to use flat rates, this flat rate will be used in calculating the cost of fulfilling the associated item.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Field Summary

    Fields inherited from interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware

    DEFAULT_FIELD_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    FulfillmentFlatRate(javax.money.MonetaryAmount value, com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    com.broadleafcommerce.data.tracking.core.EmbeddedContextState
    A subset of Tracking information to expose the context state for this object.
    javax.money.MonetaryAmount
    The value of this flat rate
    int
     
    void
    setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState)
    A subset of Tracking information to expose the context state for this object.
    void
    setValue(javax.money.MonetaryAmount value)
    The value of this flat rate
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FulfillmentFlatRate

      public FulfillmentFlatRate(javax.money.MonetaryAmount value, com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState)
    • FulfillmentFlatRate

      public FulfillmentFlatRate()
  • Method Details

    • getValue

      public javax.money.MonetaryAmount getValue()
      The value of this flat rate
      Returns:
      The value of this flat rate
    • getContextState

      public com.broadleafcommerce.data.tracking.core.EmbeddedContextState getContextState()
      A subset of Tracking information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when the ChangeDetails for the parent object's entire attributes map are compared.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setValue

      public void setValue(javax.money.MonetaryAmount value)
      The value of this flat rate
      Parameters:
      value - The value of this flat rate
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState)
      A subset of Tracking information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when the ChangeDetails for the parent object's entire attributes map are compared.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • 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