public class DefaultSubscriptionCommercePlaceOrderMethodHook extends java.lang.Object implements CommercePlaceOrderMethodHook
| Constructor and Description |
|---|
DefaultSubscriptionCommercePlaceOrderMethodHook() |
public DefaultSubscriptionCommercePlaceOrderMethodHook()
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel) throws InvalidCartException
CommercePlaceOrderMethodHookafterPlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutorderModel - object containing the order modelInvalidCartExceptionpublic void beforePlaceOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
CommercePlaceOrderMethodHookbeforePlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutInvalidCartExceptionpublic void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
CommercePlaceOrderMethodHookbeforeSubmitOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutresult - object containing the order modelInvalidCartExceptionprotected OrderModel createEnrichedOrderFromCart(CartModel masterCart, CartModel cartModel, SalesApplication salesApplication, OrderModel masterOrder) throws InvalidCartException
OrderModel based on the data of the given cartModel and returns it. In case a
child order is created from a child cart, the child order is enriched with data of the given
masterCart where necessary.InvalidCartExceptionprotected void setDeliveryInfo(CartModel masterCart, CartModel cartModel, OrderModel orderModel)
protected void setPaymentInfo(CartModel cartModel, OrderModel masterOrder, OrderModel orderModel)
protected void setPaymentFromCart(CartModel cartModel, OrderModel orderModel)
protected void setPaymentFromMasterOrder(OrderModel masterOrder, OrderModel orderModel)
protected void setMasterEntryForOrderEntries(OrderModel masterOrder, OrderModel childOrder, CartModel masterCart, CartModel childCart)
protected OrderService getOrderService()
public void setOrderService(OrderService orderService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
protected BaseSiteService getBaseSiteService()
public void setBaseSiteService(BaseSiteService baseSiteService)
protected PromotionsService getPromotionsService()
public void setPromotionsService(PromotionsService promotionsService)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected CalculationService getCalculationService()
public void setCalculationService(CalculationService calculationService)
Copyright © 2018 SAP SE. All Rights Reserved.