Broadleaf Microservices
  • v1.0.0-latest-prod

FulfillmentProvider

Table of Contents

Overview

Cart Operations interacts with the FulfillmentServices during checkout when fetching fulfillment rates for the cart.

The default implementation facilitates HTTP requests against the Fulfillment Services endpoints.

See Fulfillment Services Docs for more details.

Usage

The FulfillmentProvider interface specifies two methods:

  • findFulfillmentOptions - get PricedFulfillmentOptions for the given FulfillmentOptionRequest

  • readFulfillmentPricingConfig - return the FulfillmentPricingConfig for the current context.

Configuration

ExternalFulfillmentProviderProperties exposes the following properties:

  • url - The base url for Fulfillment Services.

  • optionsUri - Path to fetch PricedFulfillmentOptions for the cart.

  • configUri - Path to fetch the FulfillmentPricingConfig for the current context.

  • serviceClient - The OAuth2 client to use when making REST calls to FulfillmentServices