Interface PricingProvider
-
- All Known Implementing Classes:
ExternalPricingProvider
public interface PricingProviderProvider for interfacing with operations around pricing. Typically utilizesWebClientto make requests to an external REST API.- Author:
- Chad Harchar (charchar)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <C extends com.broadleafcommerce.cart.client.domain.CartItem>
List<C>retrievePrices(Collection<C> cartItems, Locale locale, javax.money.CurrencyUnit currency, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Retrieve and attach prices for the provided cart items.
-
-
-
Method Detail
-
retrievePrices
<C extends com.broadleafcommerce.cart.client.domain.CartItem> List<C> retrievePrices(Collection<C> cartItems, Locale locale, javax.money.CurrencyUnit currency, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve and attach prices for the provided cart items.- Parameters:
cartItems- The cart items that we are pricing.locale- The locale to use to match prices.currency- The currency to use to match prices.contextInfo- Context information around sandbox and multitenant state.- Returns:
- The cart items with prices attached.
-
-