Class DynamicSkuPrices
java.lang.Object
org.broadleafcommerce.core.catalog.service.dynamic.DynamicSkuPrices
- All Implemented Interfaces:
Serializable
DTO to represent pricing overrides returned from invocations to
DynamicSkuPricingService- Author:
- jfischer
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPrice()Returns the lower ofgetSalePrice()andgetRetailPrice().getPriceForQuantity(long quantity) The out of box implementation returnsgetPrice().voidsetDidOverride(Boolean didOverride) voidsetPriceAdjustment(Money priceAdjustment) voidsetRetailPrice(Money retailPrice) voidsetSalePrice(Money salePrice)
-
Field Details
-
retailPrice
-
salePrice
-
priceAdjustment
-
didOverride
-
-
Constructor Details
-
DynamicSkuPrices
public DynamicSkuPrices()
-
-
Method Details
-
getRetailPrice
-
setRetailPrice
-
getSalePrice
-
setSalePrice
-
getPriceAdjustment
-
setPriceAdjustment
-
getPriceForQuantity
The out of box implementation returnsgetPrice(). Intended as a hook for advanced pricing considerations like those in BLC Enterprise pricing.- Parameters:
quantity-- Returns:
-
getPrice
Returns the lower ofgetSalePrice()andgetRetailPrice(). Intended as a hook for advanced pricing considerations like those in BLC Enterprise pricing.- Returns:
-
getDidOverride
-
setDidOverride
-