public interface CreateOrderFromCartStrategy
The strategy creates an OrderModel instance out of a given CartModel instance. The strategy is used
in OrderService.createOrderFromCart(CartModel) to introduce a new order. By default, the strategy validates
the cart using CartValidator and clones it as an order using configured CloneAbstractOrderStrategy.
| Modifier and Type | Method and Description |
|---|---|
OrderModel |
createOrderFromCart(CartModel cart)
Validates the cart using
CartValidator and performs cart to order cloning. |
OrderModel createOrderFromCart(CartModel cart) throws InvalidCartException
CartValidator and performs cart to order cloning.cart - - the target CartModelOrderModel instance.InvalidCartException - according to CartValidator implementation.Copyright © 2018 SAP SE. All Rights Reserved.