Interface PricingProvider

All Known Implementing Classes:
ExternalPricingProvider

public interface PricingProvider
Provider for interfacing with operations around pricing. Typically utilizes WebClient to make requests to an external REST API.
Author:
Chad Harchar (charchar)
  • Method Summary

    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 Details

    • 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.