CreateOrderFromCartStrategy for order placement instead.@Deprecated
public interface PlaceOrderStrategy
| Modifier and Type | Method and Description |
|---|---|
OrderModel |
placeOrder(CartModel cart,
AddressModel deliveryAddress,
AddressModel paymentAddress,
PaymentInfoModel paymentInfo)
Deprecated.
Place the order for the given
cart. |
OrderModel placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException
cart. This means: first the cart is calculated (see
OrderService.calculateOrder(de.hybris.platform.core.model.order.AbstractOrderModel) than (if not
null) the deliveryAddress and paymentAddress and paymentInfo
are stored for the current session user and also to the cart. After this from the cart an
OrderModel is created and the cart is removed from the session.cart - the CartModeldeliveryAddress - the delivery AddressModel for the current session user. Can be null.paymentAddress - the payment AddressModel for the current session user. Can be null.paymentInfo - the PaymentInfoModel for the current session user. Can be null.OrderModelInvalidCartExceptionCopyright © 2018 SAP SE. All Rights Reserved.