Class PriceData
java.lang.Object
com.broadleafcommerce.pricing.domain.PriceData
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
,Comparable<PriceData>
public class PriceData
extends Object
implements Serializable, Comparable<PriceData>, com.broadleafcommerce.data.tracking.core.ContextStateAware
Data storing a specific price for a specific
PriceableTarget
.- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
int
Compares price.boolean
Defines the ending time for which this price data is activeDefines the beginning time for which this price data is active.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.getId()
javax.money.MonetaryAmount
getPrice()
The contextId of the parent price list.com.broadleafcommerce.pricing.client.domain.PriceableTargetRef
getTiers()
Defines specific pricing for minimum quantities.int
hashCode()
void
setActiveEndDate
(Instant activeEndDate) Defines the ending time for which this price data is activevoid
setActiveStartDate
(Instant activeStartDate) Defines the beginning time for which this price data is active.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
void
setPrice
(javax.money.MonetaryAmount price) void
setPriceListId
(String priceListId) The contextId of the parent price list.void
setPriceListName
(String priceListName) void
setTarget
(com.broadleafcommerce.pricing.client.domain.PriceableTargetRef target) void
setTiers
(List<PriceDataTier> tiers) Defines specific pricing for minimum quantities.toString()
-
Constructor Details
-
PriceData
public PriceData()
-
-
Method Details
-
compareTo
Compares price. Null is more than non-null.- Specified by:
compareTo
in interfaceComparable<PriceData>
-
getId
-
getPriceListId
The contextId of the parent price list.- See Also:
-
getPriceListName
- See Also:
-
getTarget
public com.broadleafcommerce.pricing.client.domain.PriceableTargetRef getTarget()- See Also:
-
PriceableTargetRef
PriceableTarget
-
getPrice
public javax.money.MonetaryAmount getPrice() -
getActiveStartDate
Defines the beginning time for which this price data is active. -
getActiveEndDate
Defines the ending time for which this price data is active -
getTiers
Defines specific pricing for minimum quantities. -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
-
setPriceListId
The contextId of the parent price list.- See Also:
-
setPriceListName
- See Also:
-
setTarget
public void setTarget(com.broadleafcommerce.pricing.client.domain.PriceableTargetRef target) - See Also:
-
PriceableTargetRef
PriceableTarget
-
setPrice
public void setPrice(javax.money.MonetaryAmount price) -
setActiveStartDate
Defines the beginning time for which this price data is active. -
setActiveEndDate
Defines the ending time for which this price data is active -
setTiers
Defines specific pricing for minimum quantities. -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-