Class ExternalPricingCartProvider
java.lang.Object
com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
com.broadleafcommerce.pricing.provider.external.ExternalPricingCartProvider
- All Implemented Interfaces:
PricingCartProvider
public class ExternalPricingCartProvider
extends AbstractExternalProvider
implements PricingCartProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND
-
Constructor Summary
ConstructorsConstructorDescriptionExternalPricingCartProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPricingCartProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
updateCartsMatchingTenantStatus
(List<String> cartIds, String status, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sets specified status to the carts identified by cartIdsMethods inherited from class com.broadleafcommerce.pricing.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams, uriVars
-
Constructor Details
-
ExternalPricingCartProvider
public ExternalPricingCartProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalPricingCartProperties properties)
-
-
Method Details
-
updateCartsMatchingTenantStatus
public List<Cart> updateCartsMatchingTenantStatus(List<String> cartIds, String status, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:PricingCartProvider
Sets specified status to the carts identified by cartIds- Specified by:
updateCartsMatchingTenantStatus
in interfacePricingCartProvider
- Parameters:
cartIds
- ids of the carts to updatestatus
- status to be setcontextInfo
- the context info- Returns:
- updated carts
-
getServiceClient
-