Class PriceListRef
java.lang.Object
com.broadleafcommerce.pricing.client.domain.PriceListRef
- All Implemented Interfaces:
Serializable
Slimmed-down reference to a price list.
- Author:
- Chad Harchar (charchar), Nathan Moore (nathanmoore)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPriceListRef
(String id, String type, String name, Integer priority, javax.money.CurrencyUnit currency) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.CurrencyUnit
The currency to which this price list applies.getId()
The id of this price list.getName()
The user-friendly name of this price list.When multiple price lists match aPriceContext
, the price list with the higher priority wins out, where smaller integer values represent higher priorities.getType()
The type of this price list.int
hashCode()
void
setCurrency
(javax.money.CurrencyUnit currency) The currency to which this price list applies.void
The id of this price list.void
The user-friendly name of this price list.void
setPriority
(Integer priority) When multiple price lists match aPriceContext
, the price list with the higher priority wins out, where smaller integer values represent higher priorities.void
The type of this price list.toString()
-
Constructor Details
-
PriceListRef
-
PriceListRef
public PriceListRef()
-
-
Method Details
-
getId
The id of this price list.- Returns:
- The id of this price list.
-
getType
The type of this price list. By default, this can be "STANDARD", "SALE", or "CONTRACT".- Returns:
- The type of this price list.
-
getName
The user-friendly name of this price list.- Returns:
- The user-friendly name of this price list.
-
getPriority
When multiple price lists match aPriceContext
, 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
The id of this price list.- Parameters:
id
- The id of this price list.
-
setType
The type of this price list. By default, this can be "STANDARD", "SALE", or "CONTRACT".- Parameters:
type
- The type of this price list.
-
setName
The user-friendly name of this price list.- Parameters:
name
- The user-friendly name of this price list.
-
setPriority
When multiple price lists match aPriceContext
, 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
-
equals
-
canEqual
-
hashCode
public int hashCode()
-