Class PriceListPriceDetail
java.lang.Object
com.broadleafcommerce.pricing.domain.PriceListPriceDetail
- All Implemented Interfaces:
com.broadleafcommerce.pricing.client.domain.PriceDetailComparable
,Serializable
public class PriceListPriceDetail
extends Object
implements Serializable, com.broadleafcommerce.pricing.client.domain.PriceDetailComparable
DTO containing the details of a price from a price list.
- Since:
- 1.7.14, 2.0.1
- Author:
- Sunny Yu
- 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.Defines the actual quantity available of a product as the sale progresses.javax.money.MonetaryAmount
getPrice()
Price determined from aPriceList.getPriceModifier()
orPriceData.getPrice()
for a particular list.Id of the specific PriceData that this price came from.The source of this price within the price list, e.g.com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail
Defines the initial quantity available for this price data before a pricing event such as a flash sale.com.broadleafcommerce.pricing.client.domain.UsagePriceDetail
int
hashCode()
boolean
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) Defines the actual quantity available of a product as the sale progresses.void
setPrice
(javax.money.MonetaryAmount price) Price determined from aPriceList.getPriceModifier()
orPriceData.getPrice()
for a particular list.void
setPriceDataId
(String priceDataId) Id of the specific PriceData that this price came from.void
setPriceListPriority
(Integer priceListPriority) void
setPriceSource
(String priceSource) The source of this price within the price list, e.g.void
setPriority
(Integer priority) void
setRecurringPriceDetail
(com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail recurringPriceDetail) 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) toString()
-
Constructor Details
-
PriceListPriceDetail
public PriceListPriceDetail()
-
-
Method Details
-
hasLimitedQuantity
public boolean hasLimitedQuantity() -
getPrice
public javax.money.MonetaryAmount getPrice()Price determined from aPriceList.getPriceModifier()
orPriceData.getPrice()
for a particular list.- Specified by:
getPrice
in interfacecom.broadleafcommerce.pricing.client.domain.PriceDetailComparable
- See Also:
-
PriceDetailComparable.getPrice()
-
getRecurringPriceDetail
public com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail getRecurringPriceDetail()- Specified by:
getRecurringPriceDetail
in interfacecom.broadleafcommerce.pricing.client.domain.PriceDetailComparable
- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getRecurringPriceDetail()
-
getUsagePriceDetail
public com.broadleafcommerce.pricing.client.domain.UsagePriceDetail getUsagePriceDetail()- Specified by:
getUsagePriceDetail
in interfacecom.broadleafcommerce.pricing.client.domain.PriceDetailComparable
- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getUsagePriceDetail()
-
getPriceSource
The source of this price within the price list, e.g. price list formula, price list price data, etc.- See Also:
-
DefaultPriceListPriceSources
-
getPriceDataId
Id of the specific PriceData that this price came from.Only applicable if the
priceSource
isDefaultPriceListPriceSources.BLC_PRICE_LIST_PRICE_DATA
. -
getPriority
- Specified by:
getPriority
in interfacecom.broadleafcommerce.pricing.client.domain.PriceDetailComparable
- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getPriority()
-
getPriceListPriority
- Specified by:
getPriceListPriority
in interfacecom.broadleafcommerce.pricing.client.domain.PriceDetailComparable
- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getPriceListPriority()
-
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
Defines the actual quantity available of a product as the sale progresses. Initially it is set equal to thestartingQuantity
and is deducted as and when it gets used. -
setPrice
public void setPrice(javax.money.MonetaryAmount price) Price determined from aPriceList.getPriceModifier()
orPriceData.getPrice()
for a particular list.- See Also:
-
PriceDetailComparable.getPrice()
-
setRecurringPriceDetail
public void setRecurringPriceDetail(com.broadleafcommerce.pricing.client.domain.RecurringPriceDetail recurringPriceDetail) - Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getRecurringPriceDetail()
-
setUsagePriceDetail
public void setUsagePriceDetail(com.broadleafcommerce.pricing.client.domain.UsagePriceDetail usagePriceDetail) - Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getUsagePriceDetail()
-
setPriceSource
The source of this price within the price list, e.g. price list formula, price list price data, etc.- See Also:
-
DefaultPriceListPriceSources
-
setPriceDataId
Id of the specific PriceData that this price came from.Only applicable if the
priceSource
isDefaultPriceListPriceSources.BLC_PRICE_LIST_PRICE_DATA
. -
setPriority
- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getPriority()
-
setPriceListPriority
- Since:
- Pricing Service 2.1.0, Release Train 2.2.0
- See Also:
-
PriceDetailComparable.getPriceListPriority()
-
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
Defines the actual quantity available of a product as the sale progresses. Initially it is set equal to thestartingQuantity
and is deducted as and when it gets used. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-