Class PriceTypeDetail
java.lang.Object
com.broadleafcommerce.pricing.client.domain.PriceTypeDetail
- All Implemented Interfaces:
Serializable
Aggregation of
PriceDetails
for a specific type of price along with the price
and currency of the "best" of all the candidate PriceLists
.- Author:
- Nathan Moore (nathandmoore)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
javax.money.MonetaryAmount
The determined best price value for this type of price from amongst all the candidates.Represents the details related to a recurring (or subscription) price include the terms.Represents the details related to a usage price including the units.String representation of thePriceList
that providedbestPrice
.getType()
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.int
hashCode()
void
setBestPrice
(javax.money.MonetaryAmount bestPrice) The determined best price value for this type of price from amongst all the candidates.void
setBestRecurringPriceDetail
(RecurringPriceDetail bestRecurringPriceDetail) Represents the details related to a recurring (or subscription) price include the terms.void
setBestUsagePriceDetail
(UsagePriceDetail bestUsagePriceDetail) Represents the details related to a usage price including the units.void
setPriceDetails
(Map<String, PriceDetail> priceDetails) void
setPriceListId
(String priceListId) String representation of thePriceList
that providedbestPrice
.void
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.toString()
-
Constructor Details
-
PriceTypeDetail
public PriceTypeDetail()
-
-
Method Details
-
getType
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.- Returns:
- The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
-
getBestPrice
public javax.money.MonetaryAmount getBestPrice()The determined best price value for this type of price from amongst all the candidates.- Returns:
- The determined best price value for this type of price from amongst all the candidates.
-
getBestRecurringPriceDetail
Represents the details related to a recurring (or subscription) price include the terms.- Since:
- Pricing Client 2.0.3
-
getBestUsagePriceDetail
Represents the details related to a usage price including the units.- Since:
- Pricing Client 2.0.3
-
getPriceListId
String representation of thePriceList
that providedbestPrice
.- Returns:
- String representation of the
PriceList
that providedbestPrice
. - See Also:
-
getPriceDetails
- Returns:
- A map for every candidate
PriceList
for thetype
, with the key being aPriceListRef.getId()
. - See Also:
-
setType
The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.- Parameters:
type
- The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.
-
setBestPrice
public void setBestPrice(javax.money.MonetaryAmount bestPrice) The determined best price value for this type of price from amongst all the candidates.- Parameters:
bestPrice
- The determined best price value for this type of price from amongst all the candidates.
-
setBestRecurringPriceDetail
Represents the details related to a recurring (or subscription) price include the terms.- Since:
- Pricing Client 2.0.3
-
setBestUsagePriceDetail
Represents the details related to a usage price including the units.- Since:
- Pricing Client 2.0.3
-
setPriceListId
String representation of thePriceList
that providedbestPrice
.- Parameters:
priceListId
- String representation of thePriceList
that providedbestPrice
.- See Also:
-
setPriceDetails
- Parameters:
priceDetails
- A map for every candidatePriceList
for thetype
, with the key being aPriceListRef.getId()
.- See Also:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-