Class ExternalPricingOrderProvider
java.lang.Object
com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
com.broadleafcommerce.pricing.provider.external.ExternalPricingOrderProvider
- All Implemented Interfaces:
PricingOrderProvider
public class ExternalPricingOrderProvider
extends AbstractExternalProvider
implements PricingOrderProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionExternalPricingOrderProvider(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 StringreadByOrderLink(@NonNull String orderLink, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads order by specified linkMethods inherited from class com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Constructor Details
-
ExternalPricingOrderProvider
public ExternalPricingOrderProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPricingOrderProperties properties)
-
-
Method Details
-
readByOrderLink
public Order readByOrderLink(@NonNull @NonNull String orderLink, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:PricingOrderProviderReads order by specified link- Specified by:
readByOrderLinkin interfacePricingOrderProvider- Parameters:
orderLink- link to read order fromcontextInfo- the context info- Returns:
- order
-
getServiceClient
-