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() |
void |
removeCouponsForCustomer(UserModel currentUser,
OrderModel order)
Remove the coupons from Customer.
|
void |
setCustomerCouponService(CustomerCouponService customerCouponService) |
public CustomerCouponCommercePlaceOrderMethodHook()
public void removeCouponsForCustomer(UserModel currentUser, OrderModel order)
CustomerCouponsPlaceOrderStrategyremoveCouponsForCustomer in interface CustomerCouponsPlaceOrderStrategycurrentUser - the current user to remove from related user grouporder - the order to find the applied couponspublic 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)
Copyright © 2017 SAP SE. All Rights Reserved.