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
ConstructorDescriptionFulfillmentFlatRate
(javax.money.MonetaryAmount value, com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.EmbeddedContextState
A subset ofTracking
information to expose the context state for this object.javax.money.MonetaryAmount
getValue()
The value of this flat rateint
hashCode()
void
setContextState
(com.broadleafcommerce.data.tracking.core.EmbeddedContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setValue
(javax.money.MonetaryAmount value) The value of this flat ratetoString()
-
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 ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
getContextState
in interfacecom.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 ofTracking
information to expose the context state for this object. This value is not persisted, and instead it is dynamically calculated and populated when theChangeDetails
for the parent object's entireattributes
map are compared.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.EmbeddedContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-