Class PriceListRef

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

public class PriceListRef extends Object implements Serializable
Slimmed-down reference to a price list.
Author:
Chad Harchar (charchar), Nathan Moore (nathanmoore)
See Also:
  • Constructor Details

    • PriceListRef

      public PriceListRef(String id, String type, String name, Integer priority, javax.money.CurrencyUnit currency)
    • PriceListRef

      public PriceListRef()
  • Method Details

    • getId

      public String getId()
      The id of this price list.
      Returns:
      The id of this price list.
    • getType

      public String getType()
      The type of this price list. By default, this can be "STANDARD", "SALE", or "CONTRACT".
      Returns:
      The type of this price list.
    • getName

      public String getName()
      The user-friendly name of this price list.
      Returns:
      The user-friendly name of this price list.
    • getPriority

      public Integer getPriority()
      When multiple price lists match a PriceContext, the price list with the higher priority wins out, where smaller integer values represent higher priorities. Nulls are implicitly given lower precedence than any other value - they will appear last.
      Returns:
      The priority of this price list.
    • getCurrency

      public javax.money.CurrencyUnit getCurrency()
      The currency to which this price list applies.
    • setId

      public void setId(String id)
      The id of this price list.
      Parameters:
      id - The id of this price list.
    • setType

      public void setType(String type)
      The type of this price list. By default, this can be "STANDARD", "SALE", or "CONTRACT".
      Parameters:
      type - The type of this price list.
    • setName

      public void setName(String name)
      The user-friendly name of this price list.
      Parameters:
      name - The user-friendly name of this price list.
    • setPriority

      public void setPriority(Integer priority)
      When multiple price lists match a PriceContext, the price list with the higher priority wins out, where smaller integer values represent higher priorities. Nulls are implicitly given lower precedence than any other value - they will appear last.
      Parameters:
      priority - The priority of this price list.
    • setCurrency

      public void setCurrency(javax.money.CurrencyUnit currency)
      The currency to which this price list applies.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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