Class DefaultPlaceOrderStrategy

All Implemented Interfaces:
PlaceOrderStrategy, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

@Deprecated(since="ages", forRemoval=true) public class DefaultPlaceOrderStrategy extends AbstractBusinessService implements PlaceOrderStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
since ages - ImplementCreateOrderFromCartStrategy instead or use the default one - DefaultCreateOrderFromCartStrategy
Default implementation of the PlaceOrderStrategy.
See Also:
  • Constructor Details

    • DefaultPlaceOrderStrategy

      public DefaultPlaceOrderStrategy()
      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: PlaceOrderStrategy
      Place the order for the given 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.
      Specified by:
      placeOrder in interface PlaceOrderStrategy
      Parameters:
      cart - the CartModel
      deliveryAddress - 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.
      Returns:
      the OrderModel
      Throws:
      InvalidCartException
    • setOrderCalculation

      public void setOrderCalculation(OrderCalculation orderCalculation)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCartValidator

      public void setCartValidator(CartValidator cartValidator)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setCartService

      public void setCartService(CartService cartService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setUserService

      public void setUserService(UserService userService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setKeyGenerator

      public void setKeyGenerator(KeyGenerator keyGenerator)
      Deprecated, for removal: This API element is subject to removal in a future version.