Class ExternalPricingFulfillmentProvider<F extends OrderFulfillment>

java.lang.Object
com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
com.broadleafcommerce.pricing.provider.external.ExternalPricingFulfillmentProvider<F>
All Implemented Interfaces:
PricingFulfillmentProvider<F>

public class ExternalPricingFulfillmentProvider<F extends OrderFulfillment> extends AbstractExternalProvider implements PricingFulfillmentProvider<F>
  • Constructor Details

    • ExternalPricingFulfillmentProvider

      public ExternalPricingFulfillmentProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPricingOrderProperties properties)
  • Method Details

    • readById

      public F readById(String fulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: PricingFulfillmentProvider
      Retrieve the OrderFulfillment with the given ID.
      Specified by:
      readById in interface PricingFulfillmentProvider<F extends OrderFulfillment>
      Parameters:
      fulfillmentId - the ID of the fulfillment to retrieve
      contextInfo - context information around sandbox and multitenant state.
      Returns:
      the fulfillment with the given ID
    • getBaseUri

      protected org.springframework.web.util.UriComponentsBuilder getBaseUri()
      Gets the base URI common to all direct requests for fulfillments.
      Returns:
      a URI components builder with the base URI set up
    • getServiceClient

      protected String getServiceClient()
    • getProperties

      protected ExternalPricingOrderProperties getProperties()