Class ExternalPricingProvider
java.lang.Object
com.broadleafcommerce.datafeed.service.collector.provider.ExternalPricingProvider
- All Implemented Interfaces:
- PricingProvider
- 
Constructor SummaryConstructorsConstructorDescriptionExternalPricingProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, PricingProviderProperties pricingProviderProperties, ProviderUtil providerUtil) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected <T> reactor.core.publisher.Mono<T>customizeReadPricesForProductsMono(reactor.core.publisher.Mono<T> mono) protected org.springframework.http.HttpHeadersgetHeaders(com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.fasterxml.jackson.databind.ObjectMapperprotected PricingProviderPropertiesprotected ProviderUtilprotected com.broadleafcommerce.common.extension.TypeFactoryprotected org.springframework.web.reactive.function.client.WebClientList<com.broadleafcommerce.pricing.client.domain.PriceInfo>readPricesForProducts(@NonNull List<CollectedProduct> products, @NonNull com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Method to call a PricingService to fetchPrice Infosfor the provided list of Products.
- 
Constructor Details- 
ExternalPricingProviderpublic ExternalPricingProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, PricingProviderProperties pricingProviderProperties, ProviderUtil providerUtil) 
 
- 
- 
Method Details- 
readPricesForProductspublic List<com.broadleafcommerce.pricing.client.domain.PriceInfo> readPricesForProducts(@NonNull @NonNull List<CollectedProduct> products, @NonNull @NonNull com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext, @Nullable com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:PricingProviderMethod to call a PricingService to fetchPrice Infosfor the provided list of Products.- Specified by:
- readPricesForProductsin interface- PricingProvider
- Returns:
 
- 
getHeadersprotected org.springframework.http.HttpHeaders getHeaders(@Nullable com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) 
- 
customizeReadPricesForProductsMonoprotected <T> reactor.core.publisher.Mono<T> customizeReadPricesForProductsMono(reactor.core.publisher.Mono<T> mono) 
- 
getWebClientprotected org.springframework.web.reactive.function.client.WebClient getWebClient()
- 
getObjectMapperprotected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
- 
getTypeFactoryprotected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
- 
getPricingProviderProperties
- 
getProviderUtil
 
-