Class DefaultFlashBuyCommercePlaceOrderMethodHook
- java.lang.Object
-
- de.hybris.platform.timedaccesspromotionengineservices.order.hooks.DefaultFlashBuyCommercePlaceOrderMethodHook
-
- All Implemented Interfaces:
CommercePlaceOrderMethodHook
public class DefaultFlashBuyCommercePlaceOrderMethodHook extends java.lang.Object implements CommercePlaceOrderMethodHook
Applys flash buy coupon after placing order
-
-
Constructor Summary
Constructors Constructor Description DefaultFlashBuyCommercePlaceOrderMethodHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)Stops the completed flash buy, which is executed after placing ordervoidbeforePlaceOrder(CommerceCheckoutParameter parameter)Executed before the place ordervoidbeforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)Executed before the submit orderprotected CouponRedemptionStrategy<FlashBuyCouponModel>getCouponRedemptionStrategy()protected FlashBuyServicegetFlashBuyService()protected booleanisFlashBuyCouponCompleted(java.lang.String code, FlashBuyCouponModel flashBuyCoupon)voidsetCouponRedemptionStrategy(CouponRedemptionStrategy<FlashBuyCouponModel> couponRedemptionStrategy)voidsetFlashBuyService(FlashBuyService flashBuyService)
-
-
-
Method Detail
-
afterPlaceOrder
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
Stops the completed flash buy, which is executed after placing order- Specified by:
afterPlaceOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- the information for checkoutresult- the order model- Throws:
InvalidCartException
-
isFlashBuyCouponCompleted
protected boolean isFlashBuyCouponCompleted(java.lang.String code, FlashBuyCouponModel flashBuyCoupon)
-
beforePlaceOrder
public void beforePlaceOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
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
Description copied from interface:CommercePlaceOrderMethodHookExecuted before the submit order- Specified by:
beforeSubmitOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkoutresult- object containing the order model- Throws:
InvalidCartException
-
getFlashBuyService
protected FlashBuyService getFlashBuyService()
-
setFlashBuyService
public void setFlashBuyService(FlashBuyService flashBuyService)
-
getCouponRedemptionStrategy
protected CouponRedemptionStrategy<FlashBuyCouponModel> getCouponRedemptionStrategy()
-
setCouponRedemptionStrategy
public void setCouponRedemptionStrategy(CouponRedemptionStrategy<FlashBuyCouponModel> couponRedemptionStrategy)
-
-