Interface FulfillmentPricingProvider

    • Method Detail

      • getFulfillmentOptionPricingResponses

        @Deprecated
        default List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getFulfillmentOptionPricingResponses​(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fulfillmentPricingRequest)
        Retrieve all possible priced fulfillment options for the provided request. Intended to be used to display options to the customer for selection.
        Parameters:
        fulfillmentPricingRequest - The request for which to calculate shipping and return options.
        Returns:
        All possible priced fulfillment options for the provided request.
      • providePricedFulfillmentOptions

        List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> providePricedFulfillmentOptions​(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fulfillmentPricingRequest)
        Retrieve all possible priced fulfillment options for the provided request. Intended to be used to display options to the customer for selection.
        Parameters:
        fulfillmentPricingRequest - The request for which to calculate shipping and return options.
        Returns:
        All possible priced fulfillment options for the provided request.
      • canProvidePricedFulfillmentOptions

        default boolean canProvidePricedFulfillmentOptions​(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fulfillmentPricingRequest)
        Whether this provider can provide fulfillment options based on the "fulfillmentPricingRequest"
        Parameters:
        fulfillmentPricingRequest - The request used to identify relevant fulfillment options
        Returns:
        Whether this provider can provide fulfillment options based on the "fulfillmentPricingRequest"
      • calculateCostForFulfillmentGroup

        com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse calculateCostForFulfillmentGroup​(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fulfillmentPricingRequest)
        Calculate shipping for a request that includes a specified fulfillment option.
        Parameters:
        fulfillmentPricingRequest - The request for which to calculate shipping.
        Returns:
        Response object with calculated shipping cost for the provided request.
      • canCalculateCostForOption

        boolean canCalculateCostForOption​(@Nullable
                                          String fulfillmentOptionName)
        Whether this provider has knowledge of the provided option and thus can provide cost information for it.
        Parameters:
        fulfillmentOptionName - The option to consider whether this provider can calculate cost information.
        Returns:
        Whether this provider has knowledge of the provided option and thus can provide cost information for it.
      • estimateCostForFulfillmentGroup

        com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse estimateCostForFulfillmentGroup​(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fulfillmentPricingRequest)
        Estimate shipping for a request that includes a specified fulfillment option.
        Parameters:
        fulfillmentPricingRequest - The request for which to estimate shipping.
        Returns:
        Response object with estimated shipping cost for the provided request.