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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanintCompares price.booleanDefines 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.ContextStateA subset ofTrackinginformation to expose the context state for this object.getId()javax.money.MonetaryAmountgetPrice()The contextId of the parent price list.com.broadleafcommerce.pricing.client.domain.PriceableTargetRefgetTiers()Defines specific pricing for minimum quantities.inthashCode()voidsetActiveEndDate(Instant activeEndDate) Defines the ending time for which this price data is activevoidsetActiveStartDate(Instant activeStartDate) Defines the beginning time for which this price data is active.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidvoidsetPrice(javax.money.MonetaryAmount price) voidsetPriceListId(String priceListId) The contextId of the parent price list.voidsetPriceListName(String priceListName) voidsetTarget(com.broadleafcommerce.pricing.client.domain.PriceableTargetRef target) voidsetTiers(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:
compareToin 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:
-
PriceableTargetRefPriceableTarget
-
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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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:
-
PriceableTargetRefPriceableTarget
-
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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-