public interface CartRuleAction extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<CartRuleAction>
CartRules to take at certain
points in the Add to Cart workflow.| Modifier and Type | Method and Description |
|---|---|
CartRule |
getCartRule()
Returns the
CartRuleActions target CartRule |
CartRuleActionType |
getCartRuleActionType()
Returns the
CartRuleActionType for this CartRuleAction |
Long |
getId()
Returns the
CartRuleActions id |
org.broadleafcommerce.core.catalog.domain.Product |
getProduct()
Returns the
Product for this CartRuleAction |
Integer |
getQuantity()
Returns the quantity for this
CartRuleAction |
Boolean |
getShouldReverse()
Deprecated.
rather than using automatic reversal (no longer supported), instead set up another cart rule that does the reverse of this one
|
void |
setCartRule(CartRule cartRule)
Sets the
CartRuleActions target CartRule |
void |
setCartRuleActionType(CartRuleActionType cartRuleActionType)
Sets the
CartRuleActionType for this CartRuleAction |
void |
setId(Long id)
Sets the
CartRuleActions id |
void |
setProduct(org.broadleafcommerce.core.catalog.domain.Product product)
Sets the
Product for this CartRuleAction |
void |
setQuantity(Integer quantity)
Sets the quantity for this
CartRuleAction |
void |
setShouldReverse(Boolean shouldReverse)
Deprecated.
rather than using this automatic reversal (no longer supported), instead set up another cart rule that does the reverse of this one
|
Long getId()
CartRuleActions idvoid setId(Long id)
CartRuleActions idCartRule getCartRule()
CartRuleActions target CartRulevoid setCartRule(CartRule cartRule)
CartRuleActions target CartRuleCartRuleActionType getCartRuleActionType()
CartRuleActionType for this CartRuleActionvoid setCartRuleActionType(CartRuleActionType cartRuleActionType)
CartRuleActionType for this CartRuleActionorg.broadleafcommerce.core.catalog.domain.Product getProduct()
Product for this CartRuleActionvoid setProduct(org.broadleafcommerce.core.catalog.domain.Product product)
Product for this CartRuleActionInteger getQuantity()
CartRuleActionvoid setQuantity(Integer quantity)
CartRuleAction@Deprecated Boolean getShouldReverse()
CartRuleAction should reverse if its CartRule
no longer applies@Deprecated void setShouldReverse(Boolean shouldReverse)
CartRuleAction should reverse if its CartRule
no longer appliesshouldReverse - Copyright © 2019. All rights reserved.