Interface ShoppingTravelBundleCommerceCartFacade

All Known Implementing Classes:
DefaultPROSTravelBundleCommerceCartFacade

public interface ShoppingTravelBundleCommerceCartFacade
The shopping interface for bundle commerce cart facade.
  • Method Details

    • startBundle

      CartModificationData startBundle(@Nonnull String bundleTemplateId, @Nonnull String productCode, long quantity, OrderEntryType entryType, Integer solutionId) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Starts new bundle in cart based on the given bundle template and add the product to it. Assigns an OrderEntryType to every entry created during the process and a solutionId.
      Parameters:
      bundleTemplateId - a component to add the product to. The whole bundle structure - starting from the root of the component - will be added to cart groups
      productCode - a product which will be added to the component
      quantity - quantity for the product. Is limited by selection criteria of the component
      entryType - order entry type to be set against each created entry
      solutionId - the solution id
      Returns:
      information about the new cart entry
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - if the operation is not possible
      See Also:
    • addToCart

      CartModificationData addToCart(@Nonnull String productCode, long quantity, int groupNumber, Integer solutionId) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Add a product to an existing bundle and set the solutionId.
      Parameters:
      productCode - product to add
      quantity - quantity of the product
      groupNumber - entry group number, that defines the bundle and the component within the bundle
      solutionId - the solution id
      Returns:
      information about the new cart entry
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - if the operation is not possible
      See Also: