Interface CommerceCartMergingStrategy
- All Known Implementing Classes:
DefaultCommerceCartMergingStrategy
public interface CommerceCartMergingStrategy
A strategy for merging carts.
-
Method Summary
Modifier and TypeMethodDescriptionvoidmergeCarts(CartModel fromCart, CartModel toCart, List<CommerceCartModification> modifications) Merge two carts and add modifications
-
Method Details
-
mergeCarts
void mergeCarts(CartModel fromCart, CartModel toCart, List<CommerceCartModification> modifications) throws CommerceCartMergingException Merge two carts and add modifications- Parameters:
fromCart- - Cart from merging is donetoCart- - Cart to merge tomodifications- - List of modifications- Throws:
CommerceCartMergingException
-