Class ExternalShippingProvider
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
-
- com.broadleafcommerce.cartoperation.service.provider.external.ExternalShippingProvider
-
- All Implemented Interfaces:
ShippingProvider
public class ExternalShippingProvider extends AbstractExternalProvider implements ShippingProvider
-
-
Field Summary
-
Fields inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND
-
-
Constructor Summary
Constructors Constructor Description ExternalShippingProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalShippingProperties shippingProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
getAllRatesUrl()
com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse
getFulfillmentRate(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getFulfillmentRates(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getRates(String uri, com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofgetRates(String, FulfillmentPricingRequest, ContextInfo)
protected List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getRates(String uri, com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
protected String
getRateUrl()
protected String
getServiceClient()
protected ExternalShippingProperties
getShippingProperties()
-
Methods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.cartoperation.service.provider.ShippingProvider
getFulfillmentRate, getFulfillmentRates
-
-
-
-
Constructor Detail
-
ExternalShippingProvider
public ExternalShippingProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalShippingProperties shippingProperties)
-
-
Method Detail
-
getServiceClient
protected String getServiceClient()
-
getFulfillmentRates
public List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getFulfillmentRates(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
- Specified by:
getFulfillmentRates
in interfaceShippingProvider
-
getFulfillmentRate
public com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse getFulfillmentRate(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
- Specified by:
getFulfillmentRate
in interfaceShippingProvider
-
getRates
@Deprecated(since="1.8.0", forRemoval=true) protected List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getRates(String uri, com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
Deprecated, for removal: This API element is subject to removal in a future version.since 1.8.0, in favor ofgetRates(String, FulfillmentPricingRequest, ContextInfo)
-
getRates
protected List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getRates(String uri, com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
getAllRatesUrl
protected String getAllRatesUrl()
-
getRateUrl
protected String getRateUrl()
-
getShippingProperties
protected ExternalShippingProperties getShippingProperties()
-
-