public interface CartRule extends org.broadleafcommerce.common.persistence.Status, Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<CartRule>
CartRuleActions to take at certain
points in the Add to Cart workflow.| Modifier and Type | Method and Description |
|---|---|
Date |
getActiveEndDate()
Returns the active end date of this
CartRule |
Date |
getActiveStartDate()
Returns the active start date of this
CartRule |
List<CartRuleAction> |
getCartRuleActions()
Returns a list of
CartRuleActions associated with this CartRule |
List<CartRuleCustomerSegmentXref> |
getCustomerSegmentXrefs()
Returns a list of
CartRuleCustomerSegmentXrefs associated with this CartRule |
ExecutionTimeType |
getExecutionTimeType()
Returns the
ExecutionTimeType associated with this CartRule |
Long |
getId()
Returns the
CartRules id |
String |
getName()
Returns the
CartRules name |
Set<CartRuleQualifyingItemCriteriaXref> |
getQualifyingItemCriteria()
Returns the set of
CartRuleQualifyingItemCriteriaXrefs associated with this CartRule |
Set<CartRuleQualifyingOrderCriteriaXref> |
getQualifyingOrderCriteria()
Returns the set of
CartRuleQualifyingOrderCriteriaXrefs associated with this CartRule |
List<CartRuleAction> |
getReversibleCartRuleActions()
Returns the list of
CartRuleActions that are reversible |
Integer |
getTimesPerCustomer()
Returns the number of times this
CartRule can trigger per Customer |
Integer |
getTimesPerOrder()
Returns the number of times this
CartRule can trigger per Order |
boolean |
hasCartRuleActions()
Returns whether or not the
CartRule has any associated CartRuleActions |
void |
setActiveEndDate(Date activeEndDate)
Sets the active end date for this
CartRule |
void |
setActiveStartDate(Date activeStartDate)
Sets the active start date for this
CartRule |
void |
setCartRuleActions(List<CartRuleAction> cartRuleActions)
Sets the list of
CartRuleActions to be associated with this CartRule |
void |
setCustomerSegmentXrefs(List<CartRuleCustomerSegmentXref> customerSegmentXrefs)
Sets the list of
CartRuleCustomerSegmentXrefs to be associated with this CartRule |
void |
setExecutionTimeType(ExecutionTimeType executionTimeType)
Sets the
ExecutionTimeType to be associated with this CartRule |
void |
setId(Long id)
Sets the
CartRules id |
void |
setName(String name)
Sets the
CartRules name |
void |
setQualifyingItemCriteria(Set<CartRuleQualifyingItemCriteriaXref> qualifyingItemCriteria)
Sets the set of
CartRuleQualifyingItemCriteriaXrefs to be associated with this CartRule |
void |
setQualifyingOrderCriteria(Set<CartRuleQualifyingOrderCriteriaXref> qualifyingOrderCriteria)
Sets the set of
CartRuleQualifyingOrderCriteriaXrefs to be associated with this CartRule |
void |
setTimesPerCustomer(Integer timesPerCustomer)
Returns the number of times this
CartRule can trigger per Customer |
void |
setTimesPerOrder(Integer timesPerOrder)
Sets the number of times this
CartRule can trigger per Order |
ExecutionTimeType getExecutionTimeType()
ExecutionTimeType associated with this CartRulevoid setExecutionTimeType(ExecutionTimeType executionTimeType)
ExecutionTimeType to be associated with this CartRuleSet<CartRuleQualifyingItemCriteriaXref> getQualifyingItemCriteria()
CartRuleQualifyingItemCriteriaXrefs associated with this CartRulevoid setQualifyingItemCriteria(Set<CartRuleQualifyingItemCriteriaXref> qualifyingItemCriteria)
CartRuleQualifyingItemCriteriaXrefs to be associated with this CartRuleSet<CartRuleQualifyingOrderCriteriaXref> getQualifyingOrderCriteria()
CartRuleQualifyingOrderCriteriaXrefs associated with this CartRulevoid setQualifyingOrderCriteria(Set<CartRuleQualifyingOrderCriteriaXref> qualifyingOrderCriteria)
CartRuleQualifyingOrderCriteriaXrefs to be associated with this CartRuleList<CartRuleAction> getCartRuleActions()
CartRuleActions associated with this CartRulevoid setCartRuleActions(List<CartRuleAction> cartRuleActions)
CartRuleActions to be associated with this CartRuleboolean hasCartRuleActions()
CartRule has any associated CartRuleActionsList<CartRuleCustomerSegmentXref> getCustomerSegmentXrefs()
CartRuleCustomerSegmentXrefs associated with this CartRulevoid setCustomerSegmentXrefs(List<CartRuleCustomerSegmentXref> customerSegmentXrefs)
CartRuleCustomerSegmentXrefs to be associated with this CartRulecustomerSegmentXrefs - Date getActiveStartDate()
CartRulevoid setActiveStartDate(Date activeStartDate)
CartRulevoid setActiveEndDate(Date activeEndDate)
CartRuleInteger getTimesPerOrder()
CartRule can trigger per Ordervoid setTimesPerOrder(Integer timesPerOrder)
CartRule can trigger per OrdertimesPerOrder - Integer getTimesPerCustomer()
CartRule can trigger per Customervoid setTimesPerCustomer(Integer timesPerCustomer)
CartRule can trigger per CustomerList<CartRuleAction> getReversibleCartRuleActions()
CartRuleActions that are reversibleCopyright © 2020. All rights reserved.