Class PriceData

    • Constructor Detail

      • PriceData

        public PriceData()
    • Method Detail

      • getId

        public String getId()
      • getPriceListId

        public String getPriceListId()
        The contextId of the parent price list.
        See Also:
        PriceList.getId()
      • 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 of Tracking information to expose the context state for this object.
        Specified by:
        getContextState in interface com.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()
      • 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 of Tracking information to expose the context state for this object.
        Specified by:
        setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
        Parameters:
        contextState - a subset of Tracking information to expose the context state for this object
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object