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
-
-
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 Modifier and Type Method Description protected String
getAllRatesUrl()
com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse
getFulfillmentRate(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getFulfillmentRates(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
protected List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse>
getRates(String uri, com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
protected String
getRateUrl()
protected String
getServiceClient()
protected ExternalShippingProperties
getShippingProperties()
-
Methods inherited from class com.broadleafcommerce.cartoperation.service.provider.external.AbstractExternalProvider
executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, pageableToParams, uriVars
-
-
-
-
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)
- Specified by:
getFulfillmentRates
in interfaceShippingProvider
-
getFulfillmentRate
public com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse getFulfillmentRate(com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
- Specified by:
getFulfillmentRate
in interfaceShippingProvider
-
getRates
protected List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getRates(String uri, com.broadleafcommerce.shipping.domain.FulfillmentPricingRequest fpRequest)
-
getAllRatesUrl
protected String getAllRatesUrl()
-
getRateUrl
protected String getRateUrl()
-
getShippingProperties
protected ExternalShippingProperties getShippingProperties()
-
-