Class GiveAwayMultiCodeCouponGenerationHook
- java.lang.Object
-
- de.hybris.platform.couponservices.order.hooks.GiveAwayMultiCodeCouponGenerationHook
-
- All Implemented Interfaces:
CommercePlaceOrderMethodHook
public class GiveAwayMultiCodeCouponGenerationHook extends java.lang.Object implements CommercePlaceOrderMethodHook
Default Implementation ofCommercePlaceOrderMethodHook
-
-
Constructor Summary
Constructors Constructor Description GiveAwayMultiCodeCouponGenerationHook()
-
Method Summary
-
-
-
Method Detail
-
beforeSubmitOrder
public void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
Description copied from interface:CommercePlaceOrderMethodHook
Executed before the submit order- Specified by:
beforeSubmitOrder
in interfaceCommercePlaceOrderMethodHook
- Parameters:
parameter
- object containing all the information for checkoutresult
- object containing the order model- Throws:
InvalidCartException
-
generateGiveAwayMultiCodeCoupon
protected void generateGiveAwayMultiCodeCoupon(RuleBasedAddCouponActionModel couponAction)
-
generateGiveAwayMultiCodeCoupon
protected void generateGiveAwayMultiCodeCoupon(MultiCodeCouponModel coupon, RuleBasedAddCouponActionModel couponAction)
-
setMultiCodeCouponToAction
protected void setMultiCodeCouponToAction(RuleBasedAddCouponActionModel couponAction, java.lang.String multiCodeCouponCode)
-
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
-
getCouponDao
protected CouponDao getCouponDao()
-
setCouponDao
public void setCouponDao(CouponDao couponDao)
-
getCouponCodeGenerationService
protected CouponCodeGenerationService getCouponCodeGenerationService()
-
setCouponCodeGenerationService
public void setCouponCodeGenerationService(CouponCodeGenerationService couponCodeGenerationService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getRuleBasedCouponActionDao
protected RuleBasedCouponActionDao getRuleBasedCouponActionDao()
-
setRuleBasedCouponActionDao
public void setRuleBasedCouponActionDao(RuleBasedCouponActionDao ruleBasedCouponActionDao)
-
-