java.lang.Object
com.broadleafcommerce.pricing.client.domain.usage.PriceDataUsage
All Implemented Interfaces:
Serializable

public class PriceDataUsage extends Object implements Serializable
DTO used to record a price data usage for a specific target.
Since:
Pricing Client 2.0.3
Author:
Sunny Yu
See Also:
  • Constructor Details

    • PriceDataUsage

      public PriceDataUsage()
  • Method Details

    • getTarget

      public PriceableTarget getTarget()
      The PriceableTarget to which this usage corresponds to.
    • getPriceDataId

      public String getPriceDataId()
      The id of the limited PriceData.
    • getPriceListId

      public String getPriceListId()
      The id of the PriceList that the limited price data was from.
    • getUsageQuantity

      public Integer getUsageQuantity()
      Defines the quantity that was used by this target.
    • setTarget

      public void setTarget(PriceableTarget target)
      The PriceableTarget to which this usage corresponds to.
    • setPriceDataId

      public void setPriceDataId(String priceDataId)
      The id of the limited PriceData.
    • setPriceListId

      public void setPriceListId(String priceListId)
      The id of the PriceList that the limited price data was from.
    • setUsageQuantity

      public void setUsageQuantity(Integer usageQuantity)
      Defines the quantity that was used by this target.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object