Class ExternalCartProvider
java.lang.Object
com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.notification.service.provider.external.ExternalCartProvider
- All Implemented Interfaces:
CartProvider
-
Field Summary
Fields inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
RSQL_FILTER_PARAM
-
Constructor Summary
ConstructorsConstructorDescriptionExternalCartProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionService client to use when interacting with the cart service.List<com.broadleafcommerce.cart.client.domain.CartItem>
readCartItemsForCart
(String cartItemLink, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup>
readFulfillmentGroupsForCart
(String fulfillmentGroupLink, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
setServiceClient
(String serviceClient) Service client to use when interacting with the cart service.Methods inherited from class com.broadleafcommerce.notification.service.provider.external.AbstractExternalProvider
executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, pageableToParams
-
Constructor Details
-
ExternalCartProvider
public ExternalCartProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
readCartItemsForCart
public List<com.broadleafcommerce.cart.client.domain.CartItem> readCartItemsForCart(String cartItemLink, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readCartItemsForCart
in interfaceCartProvider
-
readFulfillmentGroupsForCart
public List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> readFulfillmentGroupsForCart(String fulfillmentGroupLink, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
readFulfillmentGroupsForCart
in interfaceCartProvider
-
getServiceClient
Service client to use when interacting with the cart service. Default is "notificationclient" -
setServiceClient
Service client to use when interacting with the cart service. Default is "notificationclient"
-