@Deprecated
public interface AddToCartStrategy
| Modifier and Type | Method and Description |
|---|---|
void |
addToCart(CartModel cart,
ProductModel product,
long quantity,
UnitModel unit)
Deprecated.
Adds to the (existing)
CartModel the (existing) ProductModel in the given UnitModel and
with the given quantity. |
void addToCart(CartModel cart, ProductModel product, long quantity, UnitModel unit) throws InvalidCartException
CartModel the (existing) ProductModel in the given UnitModel and
with the given quantity. If in the cart already an entry with the given product and given unit exists
the given quantity is added to the the quantity of this cart entry.cart - the cart, must existproduct - the product which is added to the cartquantity - the quantity of the productunit - if null ProductService.getOrderableUnit(ProductModel) is used to determine the unitInvalidCartException - if the product is a base product OR the quantity is less 1 or no usable unit was found
(only when given unit is also null)Copyright © 2018 SAP SE. All Rights Reserved.