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>
-
Field Summary
Fields inherited from class com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionExternalPricingFulfillmentProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPricingOrderProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.util.UriComponentsBuilderGets the base URI common to all direct requests for fulfillments.protected ExternalPricingOrderPropertiesprotected StringreadById(String fulfillmentId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve theOrderFulfillmentwith the given ID.Methods inherited from class com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
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:PricingFulfillmentProviderRetrieve theOrderFulfillmentwith the given ID.- Specified by:
readByIdin interfacePricingFulfillmentProvider<F extends OrderFulfillment>- Parameters:
fulfillmentId- the ID of the fulfillment to retrievecontextInfo- 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
-
getProperties
-