Class DefaultFlashBuyCommercePlaceOrderMethodHook
java.lang.Object
de.hybris.platform.timedaccesspromotionengineservices.order.hooks.DefaultFlashBuyCommercePlaceOrderMethodHook
- All Implemented Interfaces:
CommercePlaceOrderMethodHook
public class DefaultFlashBuyCommercePlaceOrderMethodHook
extends Object
implements CommercePlaceOrderMethodHook
Applys flash buy coupon after placing order
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterPlaceOrder(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>protected FlashBuyServiceprotected booleanisFlashBuyCouponCompleted(String code, FlashBuyCouponModel flashBuyCoupon) voidsetCouponRedemptionStrategy(CouponRedemptionStrategy<FlashBuyCouponModel> couponRedemptionStrategy) voidsetFlashBuyService(FlashBuyService flashBuyService)
-
Constructor Details
-
DefaultFlashBuyCommercePlaceOrderMethodHook
public DefaultFlashBuyCommercePlaceOrderMethodHook()
-
-
Method Details
-
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
-
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 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
-
setFlashBuyService
-
getCouponRedemptionStrategy
-
setCouponRedemptionStrategy
public void setCouponRedemptionStrategy(CouponRedemptionStrategy<FlashBuyCouponModel> couponRedemptionStrategy)
-