Interface CartIntegrationFacade

All Known Implementing Classes:
DefaultCartIntegrationFacade

public interface CartIntegrationFacade
Facade for integration between the shopping cart and CPQ configurable products.
  • Method Details

    • addConfigurationToCart

      CartModificationData addConfigurationToCart(String configId, long quantity) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Adds the current CPQ configuration to shopping cart.
      Parameters:
      configId - configuration id to add to the shopping cart
      quantity - quantity of the cart entry
      Returns:
      cart modification data containing modified cart entry
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - in case adding to cart failed
    • getProductCodeForSessionCartEntry

      String getProductCodeForSessionCartEntry(Integer entryNumber)
      Gets product code that is assigned to the cart entry specified by the entry number provided
      Parameters:
      entryNumber - Cart entry number
      Returns:
      product code
    • getConfigIdForSessionCartEntry

      ProductConfigData getConfigIdForSessionCartEntry(Integer entryNumber)
      Gets configuration ID that is assigned to the cart entry specified by the entry number provided
      Parameters:
      entryNumber - Cart entry number
      Returns:
      ProductConfigData containing the CPQ configuration ID
    • updateCartEntryFromConfiguration

      CartModificationData updateCartEntryFromConfiguration(String configId, int cartEntryNumber)
      Updates cart entry (prices, configuration summary) from the configuration attached to it
      Parameters:
      configId - Configuration identifier
      cartEntryNumber - Cart entry number
      Returns:
      cart modification data containing modified cart entry