public class DefaultCommercePromotionRestrictionFacade extends java.lang.Object implements CommercePromotionRestrictionFacade
CommercePromotionRestrictionFacade.| Constructor and Description |
|---|
DefaultCommercePromotionRestrictionFacade() |
| Modifier and Type | Method and Description |
|---|---|
void |
disablePromotionForCurrentCart(java.lang.String promotionCode)
Disables OrderPromotion by removing current cart from PromotionOrderRestriction
|
void |
enablePromotionForCurrentCart(java.lang.String promotionCode)
Enables OrderPromotion by adding current cart to PromotionOrderRestriction
|
protected CartService |
getCartService() |
protected CommerceCartService |
getCommerceCartService() |
protected CommercePromotionRestrictionService |
getCommercePromotionRestrictionService() |
protected CommercePromotionService |
getCommercePromotionService() |
void |
setCartService(CartService cartService) |
void |
setCommerceCartService(CommerceCartService commerceCartService) |
void |
setCommercePromotionRestrictionService(CommercePromotionRestrictionService commercePromotionRestrictionService) |
void |
setCommercePromotionService(CommercePromotionService commercePromotionService) |
public DefaultCommercePromotionRestrictionFacade()
public void enablePromotionForCurrentCart(java.lang.String promotionCode)
throws CommercePromotionRestrictionException
CommercePromotionRestrictionFacadeenablePromotionForCurrentCart in interface CommercePromotionRestrictionFacadepromotionCode - promotionCommercePromotionRestrictionExceptionpublic void disablePromotionForCurrentCart(java.lang.String promotionCode)
throws CommercePromotionRestrictionException
CommercePromotionRestrictionFacadedisablePromotionForCurrentCart in interface CommercePromotionRestrictionFacadepromotionCode - promotionCommercePromotionRestrictionExceptionprotected CommercePromotionRestrictionService getCommercePromotionRestrictionService()
public void setCommercePromotionRestrictionService(CommercePromotionRestrictionService commercePromotionRestrictionService)
protected CommercePromotionService getCommercePromotionService()
public void setCommercePromotionService(CommercePromotionService commercePromotionService)
protected CartService getCartService()
public void setCartService(CartService cartService)
protected CommerceCartService getCommerceCartService()
public void setCommerceCartService(CommerceCartService commerceCartService)
Copyright © 2018 SAP SE. All Rights Reserved.