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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Defines 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.MonetaryAmount
getPrice()
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.RecurringPriceDetail
Represents 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.UsagePriceDetail
Represents the details related to a usage price including the units.int
hashCode()
void
setActiveEndDate
(Instant activeEndDate) Defines the ending time for which this price is activevoid
setActiveStartDate
(Instant activeStartDate) Defines the beginning time for which this price is active.void
setAvailableQuantity
(Integer availableQuantity) The available quantity that can use this price data.void
setPrice
(javax.money.MonetaryAmount price) The one-time price.void
setPriceDataId
(String priceDataId) Id of the specific PriceData that this price came from.void
setPriority
(Integer priority) The relative priority of this price detail vs others that might apply to the same target.void
setRecurringPriceDetail
(com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail recurringPriceDetail) Represents the details related to a recurring (or subscription) price include the terms.void
setStartingQuantity
(Integer startingQuantity) Defines the initial quantity available for this price data before a pricing event such as a flash sale.void
setUsagePriceDetail
(com.broadleafcommerce.pricing.client.domain.UsagePriceDetail usagePriceDetail) Represents the details related to a usage price including the units.toString()
-
Constructor Details
-
PriceSummary
public PriceSummary()
-
-
Method Details
-
getPrice
public javax.money.MonetaryAmount getPrice()The one-time price. This is typically used during checkout. -
getPriceDataId
Id of the specific PriceData that this price came from.Only applicable if the price was from a PriceData.
-
getActiveStartDate
Defines the beginning time for which this price is active. -
getActiveEndDate
Defines the ending time for which this price is active -
getStartingQuantity
Defines the initial quantity available for this price data before a pricing event such as a flash sale. It only serves an informational purpose. -
getAvailableQuantity
The 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. -
getRecurringPriceDetail
public com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail getRecurringPriceDetail()Represents the details related to a recurring (or subscription) price include the terms. -
getUsagePriceDetail
public com.broadleafcommerce.pricing.client.domain.UsagePriceDetail getUsagePriceDetail()Represents the details related to a usage price including the units. -
getPriority
The relative priority of this price detail vs others that might apply to the same target. -
setPrice
public void setPrice(javax.money.MonetaryAmount price) The one-time price. This is typically used during checkout. -
setPriceDataId
Id of the specific PriceData that this price came from.Only applicable if the price was from a PriceData.
-
setActiveStartDate
Defines the beginning time for which this price is active. -
setActiveEndDate
Defines the ending time for which this price is active -
setStartingQuantity
Defines the initial quantity available for this price data before a pricing event such as a flash sale. It only serves an informational purpose. -
setAvailableQuantity
The 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. -
setRecurringPriceDetail
public void setRecurringPriceDetail(com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail recurringPriceDetail) Represents the details related to a recurring (or subscription) price include the terms. -
setUsagePriceDetail
public void setUsagePriceDetail(com.broadleafcommerce.pricing.client.domain.UsagePriceDetail usagePriceDetail) Represents the details related to a usage price including the units. -
setPriority
The relative priority of this price detail vs others that might apply to the same target. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-