public interface EnterprisePricingService
| Modifier and Type | Method and Description |
|---|---|
org.broadleafcommerce.common.money.Money |
applyCurrentMatchingModifier(org.broadleafcommerce.core.catalog.domain.Sku sku,
org.broadleafcommerce.common.money.Money overridePrice)
Returns the price for the
Sku after applying the current PriceModifier associated with the
current PriceList. |
org.broadleafcommerce.common.money.Money |
applyPriceModification(org.broadleafcommerce.common.money.Money price,
PriceModifier priceModifier,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
Return the price after applying the passed in
PriceModifier for the given currency. |
PriceModifier |
findMatchingModifier(PriceList priceList,
org.broadleafcommerce.core.catalog.domain.Sku sku)
Return the
PriceModifier for the passed in PriceList. |
org.broadleafcommerce.common.money.Money |
getOverridePriceFromPriceData(org.broadleafcommerce.common.money.Money overridePrice,
List<org.broadleafcommerce.core.catalog.domain.pricing.PriceDataItem> data)
Returns the minimum of either the passed in override price or any of the prices from the passed in
PriceDataItem's for the current PriceList. |
SkuPriceData |
getSkuPriceData(PriceList priceList,
org.broadleafcommerce.core.catalog.domain.Sku sku)
Return a SkuPriceData object given a priceList and SKU.
|
PriceData |
lookupPriceDataForSku(org.broadleafcommerce.core.catalog.domain.pricing.SkuPriceWrapper skuWrapper)
Uses the existing customer, locale, and
PriceList to determine the correct price for
the passed in Sku. |
PriceDataInfo |
lookupPriceForPriceList(PriceData priceData,
PriceList priceList,
org.broadleafcommerce.core.catalog.domain.Sku sku)
|
PriceData lookupPriceDataForSku(org.broadleafcommerce.core.catalog.domain.pricing.SkuPriceWrapper skuWrapper)
PriceList to determine the correct price for
the passed in Sku.skuWrapper - PriceDataInfo lookupPriceForPriceList(PriceData priceData, PriceList priceList, org.broadleafcommerce.core.catalog.domain.Sku sku)
PriceDataInfo for the passed in PriceList and Sku.
This method makes use of cached database queries instead of looking at collections on the Sku.priceData - priceList - sku - SkuPriceData getSkuPriceData(PriceList priceList, org.broadleafcommerce.core.catalog.domain.Sku sku)
priceList - sku - org.broadleafcommerce.common.money.Money applyCurrentMatchingModifier(org.broadleafcommerce.core.catalog.domain.Sku sku,
org.broadleafcommerce.common.money.Money overridePrice)
Sku after applying the current PriceModifier associated with the
current PriceList.sku - overridePrice - PriceModifier findMatchingModifier(PriceList priceList, org.broadleafcommerce.core.catalog.domain.Sku sku)
PriceModifier for the passed in PriceList.priceList - sku - org.broadleafcommerce.common.money.Money applyPriceModification(org.broadleafcommerce.common.money.Money price,
PriceModifier priceModifier,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
PriceModifier for the given currency.price - priceModifier - currency - org.broadleafcommerce.common.money.Money getOverridePriceFromPriceData(org.broadleafcommerce.common.money.Money overridePrice,
List<org.broadleafcommerce.core.catalog.domain.pricing.PriceDataItem> data)
PriceDataItem's for the current PriceList.overridePrice - data - Copyright © 2020. All rights reserved.