public interface PriceListService
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
buildMvelParameters(org.broadleafcommerce.profile.core.domain.Customer customer,
PricingContextDto pricingContext) |
List<PriceList> |
findAllPriceListsByTypes(List<PriceListType> priceListTypes) |
List<PriceList> |
findContractPriceLists(org.broadleafcommerce.profile.core.domain.Customer customer,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) |
PriceList |
findPriceListById(Long priceListId) |
List<PriceList> |
findSalePriceLists(org.broadleafcommerce.profile.core.domain.Customer customer,
org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) |
PriceList |
findStandardPriceListByRules(org.broadleafcommerce.profile.core.domain.Customer customer,
PricingContextDto pricingContext)
From a list of all
PriceListRule s, find the first PriceList that matches the Customer and
PricingContextDto . |
String |
getMatchRulesForPriceList(PriceList priceList,
boolean shouldCustomerRulesBeEvaluated) |
ProductSkuPriceDataDTOCache |
readPriceDataForProducts(List<org.broadleafcommerce.core.catalog.domain.Product> productIds)
For the given productIds, return a
ProductSkuPriceDataDTOCache built around productIds,
skuIds and PriceDataDTOs. |
PriceList |
save(PriceList priceList)
Saves a price list
|
List<PriceList> findAllPriceListsByTypes(List<PriceListType> priceListTypes)
PriceList findStandardPriceListByRules(org.broadleafcommerce.profile.core.domain.Customer customer, PricingContextDto pricingContext)
PriceListRule
s, find the first PriceList
that matches the Customer
and
PricingContextDto
.PriceList
String getMatchRulesForPriceList(PriceList priceList, boolean shouldCustomerRulesBeEvaluated)
PriceList save(PriceList priceList)
priceList
- Map<String,Object> buildMvelParameters(org.broadleafcommerce.profile.core.domain.Customer customer, PricingContextDto pricingContext)
ProductSkuPriceDataDTOCache readPriceDataForProducts(List<org.broadleafcommerce.core.catalog.domain.Product> productIds)
ProductSkuPriceDataDTOCache
built around productIds,
skuIds and PriceDataDTOs. This method is primarily used for improving performance for indexing.productIds
- List<PriceList> findContractPriceLists(org.broadleafcommerce.profile.core.domain.Customer customer, org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
customer
- currency
- Copyright © 2019. All rights reserved.