Class DefaultB2BPlaceOrderStrategy
java.lang.Object
de.hybris.platform.b2b.strategies.impl.DefaultB2BPlaceOrderStrategy
- All Implemented Interfaces:
PlaceOrderStrategy
@Deprecated(since="4.4",
forRemoval=true)
public class DefaultB2BPlaceOrderStrategy
extends Object
implements PlaceOrderStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
A place order strategy which delegates to
DefaultPlaceOrderStrategy and starts a order approval workflow-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated, for removal: This API element is subject to removal in a future version.protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> Deprecated, for removal: This API element is subject to removal in a future version.protected B2BUnitService<B2BUnitModel,B2BCustomerModel> Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Looks up the correct business process creation strategy based on the order status.protected I18NServiceDeprecated, for removal: This API element is subject to removal in a future version.protected PlaceOrderStrategyDeprecated, for removal: This API element is subject to removal in a future version.protected booleanisB2BContext(AbstractOrderModel order) Deprecated, for removal: This API element is subject to removal in a future version.placeOrder(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.voidsetB2bCustomerService(B2BCustomerService<B2BCustomerModel, B2BUnitModel> b2bCustomerService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetB2bUnitService(B2BUnitService<B2BUnitModel, B2BCustomerModel> b2bUnitService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetBusinessProcessStrategies(List<BusinessProcessStrategy> businessProcessStrategies) Deprecated, for removal: This API element is subject to removal in a future version.voidsetI18nService(I18NService i18nService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetPlaceOrderStrategy(PlaceOrderStrategy placeOrderStrategy) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
DefaultB2BPlaceOrderStrategy
public DefaultB2BPlaceOrderStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
placeOrder
public 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.Description copied from interface:PlaceOrderStrategyPlace 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.- Specified by:
placeOrderin interfacePlaceOrderStrategy- 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
-
isB2BContext
Deprecated, for removal: This API element is subject to removal in a future version. -
createB2BBusinessProcess
Deprecated, for removal: This API element is subject to removal in a future version. -
getPlaceOrderStrategy
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the placeOrderStrategy
-
setPlaceOrderStrategy
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
placeOrderStrategy- the placeOrderStrategy to set
-
getBusinessProcessStrategy
Deprecated, for removal: This API element is subject to removal in a future version.Looks up the correct business process creation strategy based on the order status. The strategy.code attribute should be injected with an appropriate OrderStatus enumeration value- Parameters:
code-- Returns:
- BusinessProcessStrategy
-
setBusinessProcessStrategies
Deprecated, for removal: This API element is subject to removal in a future version. -
getB2bUnitService
Deprecated, for removal: This API element is subject to removal in a future version. -
setB2bUnitService
Deprecated, for removal: This API element is subject to removal in a future version. -
setB2bCustomerService
public void setB2bCustomerService(B2BCustomerService<B2BCustomerModel, B2BUnitModel> b2bCustomerService) Deprecated, for removal: This API element is subject to removal in a future version. -
getB2bCustomerService
Deprecated, for removal: This API element is subject to removal in a future version. -
getI18nService
Deprecated, for removal: This API element is subject to removal in a future version. -
setI18nService
Deprecated, for removal: This API element is subject to removal in a future version.
-
DefaultB2BCreateOrderFromCartStrategy