Class DefaultCommonFulfillmentPricingService

java.lang.Object
com.broadleafcommerce.cartoperation.service.pricing.DefaultCommonFulfillmentPricingService
All Implemented Interfaces:
CommonFulfillmentPricingService

public class DefaultCommonFulfillmentPricingService extends Object implements CommonFulfillmentPricingService
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • 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.
    protected void
    applyFulfillmentPricingForGroup(@NonNull com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    boolean
    canCalculateFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
    Indicate whether the cart contains the information required to calculate fulfillment pricing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultCommonFulfillmentPricingService

      public DefaultCommonFulfillmentPricingService()
  • Method Details

    • canCalculateFulfillmentPricing

      public boolean canCalculateFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart)
      Description copied from interface: CommonFulfillmentPricingService
      Indicate whether the cart contains the information required to calculate fulfillment pricing.
      Specified by:
      canCalculateFulfillmentPricing in interface CommonFulfillmentPricingService
      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

      public void applyFulfillmentPricing(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CommonFulfillmentPricingService
      Applies fulfillment pricing to the appropriate cart objects and fields.
      Specified by:
      applyFulfillmentPricing in interface CommonFulfillmentPricingService
      Parameters:
      cart - The cart to apply fulfillment pricing against.
      contextInfo - Context information for sandbox and multitenant state.
    • applyFulfillmentPricingForGroup

      protected void applyFulfillmentPricingForGroup(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup, @NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)