Interface CommerceRemoveEntryGroupStrategy
-
- All Known Implementing Classes:
DefaultCommerceRemoveEntryGroupStrategy
public interface CommerceRemoveEntryGroupStrategy
A strategy interface for adding products to cart cart.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommerceCartModification
removeEntryGroup(RemoveEntryGroupParameter parameter)
Removes from the (existing)CartModel
the (existing)EntryGroup
If 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)CartModel
the (existing)EntryGroup
If 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
-
-