Class PriceSummary
java.lang.Object
com.broadleafcommerce.pricing.domain.PriceSummary
- All Implemented Interfaces:
- Serializable
Summarizes price information from a 
PriceData for a PriceableTarget. This is a
 DTO used in the PriceInfoService and is not intended to be returned or supplied via APIs.- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- Author:
- Nathan Moore (nathandmoore)
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanDefines the ending time for which this price is activeDefines the beginning time for which this price is active.The available quantity that can use this price data.javax.money.MonetaryAmountgetPrice()The one-time price.Id of the specific PriceData that this price came from.The relative priority of this price detail vs others that might apply to the same target.com.broadleafcommerce.pricing.client.domain.RecurringPriceDetailRepresents the details related to a recurring (or subscription) price include the terms.Defines the initial quantity available for this price data before a pricing event such as a flash sale.com.broadleafcommerce.pricing.client.domain.UsagePriceDetailRepresents the details related to a usage price including the units.inthashCode()voidsetActiveEndDate(Instant activeEndDate) Defines the ending time for which this price is activevoidsetActiveStartDate(Instant activeStartDate) Defines the beginning time for which this price is active.voidsetAvailableQuantity(Integer availableQuantity) The available quantity that can use this price data.voidsetPrice(javax.money.MonetaryAmount price) The one-time price.voidsetPriceDataId(String priceDataId) Id of the specific PriceData that this price came from.voidsetPriority(Integer priority) The relative priority of this price detail vs others that might apply to the same target.voidsetRecurringPriceDetail(com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail recurringPriceDetail) Represents the details related to a recurring (or subscription) price include the terms.voidsetStartingQuantity(Integer startingQuantity) Defines the initial quantity available for this price data before a pricing event such as a flash sale.voidsetUsagePriceDetail(com.broadleafcommerce.pricing.client.domain.UsagePriceDetail usagePriceDetail) Represents the details related to a usage price including the units.toString()
- 
Constructor Details- 
PriceSummarypublic PriceSummary()
 
- 
- 
Method Details- 
getPricepublic javax.money.MonetaryAmount getPrice()The one-time price. This is typically used during checkout.
- 
getPriceDataIdId of the specific PriceData that this price came from.Only applicable if the price was from a PriceData. 
- 
getActiveStartDateDefines the beginning time for which this price is active.
- 
getActiveEndDateDefines the ending time for which this price is active
- 
getStartingQuantityDefines the initial quantity available for this price data before a pricing event such as a flash sale. It only serves an informational purpose.
- 
getAvailableQuantityThe available quantity that can use this price data. This is used for events such as a flash sale where the sale price is limited to a certain amount of quantity.
- 
getRecurringPriceDetailpublic com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail getRecurringPriceDetail()Represents the details related to a recurring (or subscription) price include the terms.
- 
getUsagePriceDetailpublic com.broadleafcommerce.pricing.client.domain.UsagePriceDetail getUsagePriceDetail()Represents the details related to a usage price including the units.
- 
getPriorityThe relative priority of this price detail vs others that might apply to the same target.
- 
setPricepublic void setPrice(javax.money.MonetaryAmount price) The one-time price. This is typically used during checkout.
- 
setPriceDataIdId of the specific PriceData that this price came from.Only applicable if the price was from a PriceData. 
- 
setActiveStartDateDefines the beginning time for which this price is active.
- 
setActiveEndDateDefines the ending time for which this price is active
- 
setStartingQuantityDefines the initial quantity available for this price data before a pricing event such as a flash sale. It only serves an informational purpose.
- 
setAvailableQuantityThe available quantity that can use this price data. This is used for events such as a flash sale where the sale price is limited to a certain amount of quantity.
- 
setRecurringPriceDetailpublic void setRecurringPriceDetail(com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail recurringPriceDetail) Represents the details related to a recurring (or subscription) price include the terms.
- 
setUsagePriceDetailpublic void setUsagePriceDetail(com.broadleafcommerce.pricing.client.domain.UsagePriceDetail usagePriceDetail) Represents the details related to a usage price including the units.
- 
setPriorityThe relative priority of this price detail vs others that might apply to the same target.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
toString
 
-