public class CustomerCouponCommercePlaceOrderMethodHook extends java.lang.Object implements CommercePlaceOrderMethodHook, CustomerCouponsPlaceOrderStrategy
| Constructor and Description |
|---|
CustomerCouponCommercePlaceOrderMethodHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPlaceOrder(CommerceCheckoutParameter parameter,
CommerceOrderResult result)
Executed after the place order
|
void |
beforePlaceOrder(CommerceCheckoutParameter parameter)
Executed before the place order
|
void |
beforeSubmitOrder(CommerceCheckoutParameter parameter,
CommerceOrderResult result)
Executed before the submit order
|
protected CustomerCouponService |
getCustomerCouponService() |
protected SessionService |
getSessionService() |
void |
removeCouponsForCustomer(UserModel currentUser,
OrderModel order)
Removes the coupons from the customer and resets the notification status
|
void |
setCustomerCouponService(CustomerCouponService customerCouponService) |
void |
setSessionService(SessionService sessionService) |
void |
updateContinueUrl()
Redirects the continue url to the Open-Catalogue if there is coupon code in continue url
|
public CustomerCouponCommercePlaceOrderMethodHook()
public void removeCouponsForCustomer(UserModel currentUser, OrderModel order)
CustomerCouponsPlaceOrderStrategyremoveCouponsForCustomer in interface CustomerCouponsPlaceOrderStrategycurrentUser - the current user used for removing from related user grouporder - the order used for finding the applied couponspublic void updateContinueUrl()
CustomerCouponsPlaceOrderStrategyupdateContinueUrl in interface CustomerCouponsPlaceOrderStrategypublic void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
CommercePlaceOrderMethodHookafterPlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutresult - object containing the order modelInvalidCartExceptionpublic void beforePlaceOrder(CommerceCheckoutParameter parameter) throws InvalidCartException
CommercePlaceOrderMethodHookbeforePlaceOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutInvalidCartExceptionpublic void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException
CommercePlaceOrderMethodHookbeforeSubmitOrder in interface CommercePlaceOrderMethodHookparameter - object containing all the information for checkoutresult - object containing the order modelInvalidCartExceptionprotected CustomerCouponService getCustomerCouponService()
public void setCustomerCouponService(CustomerCouponService customerCouponService)
protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2018 SAP SE. All Rights Reserved.