Class ProfilePlaceOrderMethodHook
java.lang.Object
com.hybris.yprofile.services.order.ProfilePlaceOrderMethodHook
- All Implemented Interfaces:
CommercePlaceOrderMethodHook
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel) Executed after the place ordervoidbeforePlaceOrder(CommerceCheckoutParameter parameter) Executed before the place ordervoidbeforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) Stores the consent reference and the cart id in the order modelvoidsetConsentService(ConsentService consentService) voidsetModelService(ModelService modelService) voidsetProfileConfigurationService(ProfileConfigurationService profileConfigurationService)
-
Constructor Details
-
ProfilePlaceOrderMethodHook
public ProfilePlaceOrderMethodHook()
-
-
Method Details
-
afterPlaceOrder
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel) throws InvalidCartException Description copied from interface:CommercePlaceOrderMethodHookExecuted after the place order- Specified by:
afterPlaceOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkoutorderModel- object containing the order model- Throws:
InvalidCartException
-
beforePlaceOrder
Description copied from interface:CommercePlaceOrderMethodHookExecuted before the place order- Specified by:
beforePlaceOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkout- Throws:
InvalidCartException
-
beforeSubmitOrder
public void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException Stores the consent reference and the cart id in the order model- Specified by:
beforeSubmitOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkoutresult-- Throws:
InvalidCartException
-
getModelService
-
setModelService
-
getConsentService
-
setConsentService
-
getProfileConfigurationService
-
setProfileConfigurationService
-