DefaultB2BCreateOrderFromCartStrategy@Deprecated public class DefaultB2BPlaceOrderStrategy extends java.lang.Object implements PlaceOrderStrategy
DefaultPlaceOrderStrategy and starts a order approval workflow| Constructor and Description |
|---|
DefaultB2BPlaceOrderStrategy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createB2BBusinessProcess(OrderModel order)
Deprecated.
|
protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> |
getB2bCustomerService()
Deprecated.
|
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> |
getB2bUnitService()
Deprecated.
|
BusinessProcessStrategy |
getBusinessProcessStrategy(java.lang.String code)
Deprecated.
Looks up the correct business process creation strategy based on the order status.
|
protected I18NService |
getI18nService()
Deprecated.
|
protected PlaceOrderStrategy |
getPlaceOrderStrategy()
Deprecated.
|
protected boolean |
isB2BContext(AbstractOrderModel order)
Deprecated.
|
OrderModel |
placeOrder(CartModel cart,
AddressModel deliveryAddress,
AddressModel paymentAddress,
PaymentInfoModel paymentInfo)
Deprecated.
Place the order for the given
cart. |
void |
setB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
Deprecated.
|
void |
setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
Deprecated.
|
void |
setBusinessProcessStrategies(java.util.List<BusinessProcessStrategy> businessProcessStrategies)
Deprecated.
|
void |
setI18nService(I18NService i18nService)
Deprecated.
|
void |
setPlaceOrderStrategy(PlaceOrderStrategy placeOrderStrategy)
Deprecated.
|
public 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.OrderModelInvalidCartExceptionprotected boolean isB2BContext(AbstractOrderModel order)
protected void createB2BBusinessProcess(OrderModel order)
protected PlaceOrderStrategy getPlaceOrderStrategy()
public void setPlaceOrderStrategy(PlaceOrderStrategy placeOrderStrategy)
placeOrderStrategy - the placeOrderStrategy to setpublic BusinessProcessStrategy getBusinessProcessStrategy(java.lang.String code)
code - public void setBusinessProcessStrategies(java.util.List<BusinessProcessStrategy> businessProcessStrategies)
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
public void setB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2bCustomerService()
protected I18NService getI18nService()
public void setI18nService(I18NService i18nService)
Copyright © 2018 SAP SE. All Rights Reserved.