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 booleanbooleanjavax.money.MonetaryAmountThe 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 thePriceListthat providedbestPrice.getType()The corresponding type of the price: salePrice, standardPrice, contractPrice, etc.inthashCode()voidsetBestPrice(javax.money.MonetaryAmount bestPrice) The determined best price value for this type of price from amongst all the candidates.voidsetBestRecurringPriceDetail(RecurringPriceDetail bestRecurringPriceDetail) Represents the details related to a recurring (or subscription) price include the terms.voidsetBestUsagePriceDetail(UsagePriceDetail bestUsagePriceDetail) Represents the details related to a usage price including the units.voidsetPriceDetails(Map<String, PriceDetail> priceDetails) voidsetPriceListId(String priceListId) String representation of thePriceListthat providedbestPrice.voidThe 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 thePriceListthat providedbestPrice.- Returns:
- String representation of the
PriceListthat providedbestPrice. - See Also:
-
getPriceDetails
- Returns:
- A map for every candidate
PriceListfor 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 thePriceListthat providedbestPrice.- Parameters:
priceListId- String representation of thePriceListthat providedbestPrice.- See Also:
-
setPriceDetails
- Parameters:
priceDetails- A map for every candidatePriceListfor thetype, with the key being aPriceListRef.getId().- See Also:
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-