Interface CommonFulfillmentPricingService

All Known Subinterfaces:
FulfillmentPricingService
All Known Implementing Classes:
DefaultCommonFulfillmentPricingService, DefaultFulfillmentPricingService

public interface CommonFulfillmentPricingService
Encapsulate logic for applying fulfillment pricing to appropriate cart objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Applies fulfillment pricing to the appropriate cart objects and fields.
    boolean
    canCalculateFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
    Indicate whether the cart contains the information required to calculate fulfillment pricing.
  • Method Details

    • canCalculateFulfillmentPricing

      boolean canCalculateFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
      Indicate whether the cart contains the information required to calculate fulfillment pricing.
      Parameters:
      cart - The cart to evaluate whether it contains the necessary information to calculate fulfillment pricing.
      Returns:
      True if this instance can calculate fulfillment pricing for the given cart. False otherwise.
    • applyFulfillmentPricing

      void applyFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Applies fulfillment pricing to the appropriate cart objects and fields.
      Parameters:
      cart - The cart to apply fulfillment pricing against.
      contextInfo - Context information for sandbox and multitenant state.