CreateOrderFromCartStrategy instead or use the default one - DefaultCreateOrderFromCartStrategy@Deprecated public class DefaultPlaceOrderStrategy extends AbstractBusinessService implements PlaceOrderStrategy
PlaceOrderStrategy.AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultPlaceOrderStrategy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
OrderModel |
placeOrder(CartModel cart,
AddressModel deliveryAddress,
AddressModel paymentAddress,
PaymentInfoModel paymentInfo)
Deprecated.
Place the order for the given
cart. |
void |
setCartService(CartService cartService)
Deprecated.
|
void |
setCartValidator(CartValidator cartValidator)
Deprecated.
|
void |
setKeyGenerator(KeyGenerator keyGenerator)
Deprecated.
|
void |
setOrderCalculation(OrderCalculation orderCalculation)
Deprecated.
|
void |
setUserService(UserService userService)
Deprecated.
|
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic OrderModel placeOrder(CartModel cart, AddressModel deliveryAddress, AddressModel paymentAddress, PaymentInfoModel paymentInfo) throws InvalidCartException
PlaceOrderStrategycart. 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.placeOrder in interface PlaceOrderStrategycart - 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.OrderModelInvalidCartExceptionpublic void setOrderCalculation(OrderCalculation orderCalculation)
public void setCartValidator(CartValidator cartValidator)
public void setCartService(CartService cartService)
public void setUserService(UserService userService)
public void setKeyGenerator(KeyGenerator keyGenerator)
Copyright © 2018 SAP SE. All Rights Reserved.