java.lang.Object
com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.orderoperation.service.provider.external.ExternalCartProvider
All Implemented Interfaces:
CartProvider

public class ExternalCartProvider extends AbstractExternalProvider implements CartProvider
  • Field Details

  • 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)
      Description copied from interface: CartProvider
      Read cart items for a cart with the provided cart item link
      Specified by:
      readCartItemsForCart in interface CartProvider
      Parameters:
      cartItemLink - The cart item link
      contextInfo - The context
      Returns:
      A list of cart items
    • readFulfillmentGroupsForCart

      public List<com.broadleafcommerce.cart.client.domain.FulfillmentGroup> readFulfillmentGroupsForCart(String fulfillmentGroupLink, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: CartProvider
      Read fulfillment groups for a cart with the provided fulfillment group link.
      Specified by:
      readFulfillmentGroupsForCart in interface CartProvider
      Parameters:
      fulfillmentGroupLink - The fulfillment group link
      contextInfo - The context
      Returns:
      A list of fulfillment groups
    • getServiceClient

      public String getServiceClient()
      Service client to use when interacting with the cart service. Default is "orderopsclient"
    • setServiceClient

      public void setServiceClient(String serviceClient)
      Service client to use when interacting with the cart service. Default is "orderopsclient"