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 void
afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)
Stops the completed flash buy, which is executed after placing ordervoid
beforePlaceOrder(CommerceCheckoutParameter parameter)
Executed before the place ordervoid
beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result)
Executed before the submit orderprotected CouponRedemptionStrategy<FlashBuyCouponModel>
getCouponRedemptionStrategy()
protected FlashBuyService
getFlashBuyService()
protected boolean
isFlashBuyCouponCompleted(java.lang.String code, FlashBuyCouponModel flashBuyCoupon)
void
setCouponRedemptionStrategy(CouponRedemptionStrategy<FlashBuyCouponModel> couponRedemptionStrategy)
void
setFlashBuyService(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:
afterPlaceOrder
in 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: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
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
-
getFlashBuyService
protected FlashBuyService getFlashBuyService()
-
setFlashBuyService
public void setFlashBuyService(FlashBuyService flashBuyService)
-
getCouponRedemptionStrategy
protected CouponRedemptionStrategy<FlashBuyCouponModel> getCouponRedemptionStrategy()
-
setCouponRedemptionStrategy
public void setCouponRedemptionStrategy(CouponRedemptionStrategy<FlashBuyCouponModel> couponRedemptionStrategy)
-
-