Interface CommerceRemoveEntryGroupStrategy
-
- All Known Implementing Classes:
DefaultCommerceRemoveEntryGroupStrategy
public interface CommerceRemoveEntryGroupStrategyA strategy interface for adding products to cart cart.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommerceCartModificationremoveEntryGroup(RemoveEntryGroupParameter parameter)Removes from the (existing)CartModelthe (existing)EntryGroupIf an entry with the given entry group already exists in the cart, it will be removed too.
-
-
-
Method Detail
-
removeEntryGroup
@Nonnull CommerceCartModification removeEntryGroup(@Nonnull RemoveEntryGroupParameter parameter) throws CommerceCartModificationException
Removes from the (existing)CartModelthe (existing)EntryGroupIf an entry with the given entry group already exists in the cart, it will be removed too.- Parameters:
parameter- - A parameter object containing all attributes needed for remove entry groupRemoveEntryGroupParameter.cart- The user's cart in sessionRemoveEntryGroupParameter.entryGroupNumber- The number of the entry group to be removed from the cartRemoveEntryGroupParameter.enableHooks- Are hooks enabled- Returns:
- the cart modification data that includes a statusCode and the actual entry group number removed from the cart
- Throws:
CommerceCartModificationException- if related cart entry wasn't removed
-
-