Interface PlaceOrderStrategy
- All Known Implementing Classes:
DefaultB2BPlaceOrderStrategy,DefaultPlaceOrderStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
The place order strategy.
- Spring Bean ID:
- placeOrderStrategy
-
Method Summary
Modifier and TypeMethodDescriptionplaceOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) Deprecated, for removal: This API element is subject to removal in a future version.Place the order for the givencart.
-
Method Details
-
placeOrder
OrderModel placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException Deprecated, for removal: This API element is subject to removal in a future version.Place the order for the givencart. This means: first the cart is calculated (seeOrderService.calculateOrder(de.hybris.platform.core.model.order.AbstractOrderModel)than (if notnull) thedeliveryAddressandpaymentAddressandpaymentInfoare stored for the current session user and also to the cart. After this from thecartanOrderModelis created and the cart is removed from the session.- Parameters:
cart- theCartModeldeliveryAddress- the deliveryAddressModelfor the current session user. Can benull.paymentAddress- the paymentAddressModelfor the current session user. Can benull.paymentInfo- thePaymentInfoModelfor the current session user. Can benull.- Returns:
- the
OrderModel - Throws:
InvalidCartException
-
CreateOrderFromCartStrategyfor order placement instead.