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 specificPriceableTarget
.- Author:
- Chad Harchar (charchar)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PriceData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
int
compareTo(PriceData o)
Compares price.boolean
equals(Object o)
Instant
getActiveEndDate()
Defines the ending time for which this price data is activeInstant
getActiveStartDate()
Defines the beginning time for which this price data is active.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
getContextState()
A subset ofTracking
information to expose the context state for this object.String
getId()
javax.money.MonetaryAmount
getPrice()
String
getPriceListId()
The contextId of the parent price list.String
getPriceListName()
com.broadleafcommerce.pricing.client.domain.PriceableTargetRef
getTarget()
List<PriceDataTier>
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
setId(String id)
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.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(PriceData o)
Compares price. Null is more than non-null.- Specified by:
compareTo
in interfaceComparable<PriceData>
-
getId
public String getId()
-
getPriceListId
public String getPriceListId()
The contextId of the parent price list.- See Also:
PriceList.getId()
-
getPriceListName
public String getPriceListName()
- See Also:
PriceList.getName()
-
getTarget
public com.broadleafcommerce.pricing.client.domain.PriceableTargetRef getTarget()
- See Also:
PriceableTargetRef
,PriceableTarget
-
getPrice
public javax.money.MonetaryAmount getPrice()
-
getActiveStartDate
public Instant getActiveStartDate()
Defines the beginning time for which this price data is active.
-
getActiveEndDate
public Instant getActiveEndDate()
Defines the ending time for which this price data is active
-
getTiers
public List<PriceDataTier> 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
public void setId(String id)
-
setPriceListId
public void setPriceListId(String priceListId)
The contextId of the parent price list.- See Also:
PriceList.getId()
-
setPriceListName
public void setPriceListName(String priceListName)
- See Also:
PriceList.getName()
-
setTarget
public void setTarget(com.broadleafcommerce.pricing.client.domain.PriceableTargetRef target)
- See Also:
PriceableTargetRef
,PriceableTarget
-
setPrice
public void setPrice(javax.money.MonetaryAmount price)
-
setActiveStartDate
public void setActiveStartDate(Instant activeStartDate)
Defines the beginning time for which this price data is active.
-
setActiveEndDate
public void setActiveEndDate(Instant activeEndDate)
Defines the ending time for which this price data is active
-
setTiers
public void setTiers(List<PriceDataTier> tiers)
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
-
canEqual
protected boolean canEqual(Object other)
-
-