Class ProfilePlaceOrderMethodHook
- java.lang.Object
-
- com.hybris.yprofile.services.order.ProfilePlaceOrderMethodHook
-
- All Implemented Interfaces:
CommercePlaceOrderMethodHook
public class ProfilePlaceOrderMethodHook extends java.lang.Object implements CommercePlaceOrderMethodHook
-
-
Constructor Summary
Constructors Constructor Description ProfilePlaceOrderMethodHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel)
Executed after the place ordervoid
beforePlaceOrder(CommerceCheckoutParameter parameter)
Executed before the place ordervoid
beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)
Stores the consent reference and the cart id in the order modelConsentService
getConsentService()
ModelService
getModelService()
ProfileConfigurationService
getProfileConfigurationService()
void
setConsentService(ConsentService consentService)
void
setModelService(ModelService modelService)
void
setProfileConfigurationService(ProfileConfigurationService profileConfigurationService)
-
-
-
Method Detail
-
afterPlaceOrder
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel) throws InvalidCartException
Description copied from interface:CommercePlaceOrderMethodHook
Executed after the place order- Specified by:
afterPlaceOrder
in interfaceCommercePlaceOrderMethodHook
- Parameters:
parameter
- object containing all the information for checkoutorderModel
- object containing the order model- Throws:
InvalidCartException
-
beforePlaceOrder
public void beforePlaceOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
Description copied from interface:CommercePlaceOrderMethodHook
Executed before the place order- Specified by:
beforePlaceOrder
in 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:
beforeSubmitOrder
in interfaceCommercePlaceOrderMethodHook
- Parameters:
parameter
- object containing all the information for checkoutresult
-- Throws:
InvalidCartException
-
getModelService
public ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getConsentService
public ConsentService getConsentService()
-
setConsentService
public void setConsentService(ConsentService consentService)
-
getProfileConfigurationService
public ProfileConfigurationService getProfileConfigurationService()
-
setProfileConfigurationService
public void setProfileConfigurationService(ProfileConfigurationService profileConfigurationService)
-
-