public class FlashbuyCommerceAddToCartMethodHook extends java.lang.Object implements CommerceAddToCartMethodHook
ApprovedRequestModel| Constructor and Description |
|---|
FlashbuyCommerceAddToCartMethodHook() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAddToCart(CommerceCartParameter parameters,
CommerceCartModification result)
Execute custom logic after adding product to cart
|
void |
beforeAddToCart(CommerceCartParameter parameters)
Execute custom logic before adding product to cart
|
protected CommerceCartService |
getCommerceCartService() |
protected FlashbuyPromotionService |
getFlashbuyPromotionService() |
protected UserService |
getUserService() |
void |
setCommerceCartService(CommerceCartService commerceCartService) |
void |
setFlashbuyPromotionService(FlashbuyPromotionService flashbuyPromotionService) |
void |
setUserService(UserService userService) |
public void afterAddToCart(CommerceCartParameter parameters, CommerceCartModification result) throws CommerceCartModificationException
CommerceAddToCartMethodHookafterAddToCart in interface CommerceAddToCartMethodHookparameters - A parameter objectresult - A return value of addToCart methodCommerceCartModificationExceptionpublic void beforeAddToCart(CommerceCartParameter parameters) throws CommerceCartModificationException
CommerceAddToCartMethodHookbeforeAddToCart in interface CommerceAddToCartMethodHookparameters - A parameter objectCommerceCartModificationExceptionprotected FlashbuyPromotionService getFlashbuyPromotionService()
public void setFlashbuyPromotionService(FlashbuyPromotionService flashbuyPromotionService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected CommerceCartService getCommerceCartService()
public void setCommerceCartService(CommerceCartService commerceCartService)
Copyright © 2018 SAP SE. All Rights Reserved.