public interface Offer extends Status, Serializable, MultiTenantCloneable<Offer>
| Modifier and Type | Method and Description |
|---|---|
boolean |
getApplyDiscountToSalePrice() |
Boolean |
getApplyToChildItems()
Returns whether or not this offer should apply to an
OrderItems child order items |
String |
getDescription() |
OfferDiscountType |
getDiscountType() |
Date |
getEndDate() |
Long |
getId() |
String |
getMarketingMessage() |
Long |
getMaxUsesPerCustomer()
Returns the maximum number of times that this offer
can be used by the same customer.
|
int |
getMaxUsesPerOrder()
Returns the maximum number of times that this offer
can be used in the current order.
|
String |
getName() |
List<OfferCode> |
getOfferCodes()
Returns the offer codes that can be used to retrieve this Offer.
|
OfferItemRestrictionRuleType |
getOfferItemQualifierRuleType() |
OfferItemRestrictionRuleType |
getOfferItemTargetRuleType() |
Map<String,OfferOfferRuleXref> |
getOfferMatchRulesXref() |
Money |
getOrderMinSubTotal() |
int |
getPriority() |
Set<OfferQualifyingCriteriaXref> |
getQualifyingItemCriteriaXref() |
Money |
getQualifyingItemSubTotal()
Indicates the amount of items that must be purchased for this offer to
be considered for this order.
|
Boolean |
getRequiresRelatedTargetAndQualifiers() |
Date |
getStartDate() |
Set<OfferTargetCriteriaXref> |
getTargetItemCriteriaXref() |
Money |
getTargetMinSubTotal() |
String |
getTargetSystem() |
OfferType |
getType() |
BigDecimal |
getValue() |
boolean |
isAutomaticallyAdded()
Returns true if the offer system should automatically add this offer for consideration (versus requiring a code or
other delivery mechanism).
|
boolean |
isCombinableWithOtherOffers()
Returns false if this offer is not combinable with other offers of the same type.
|
boolean |
isLimitedUsePerCustomer()
Whether or not this offer has limited use in an order.
|
boolean |
isLimitedUsePerOrder()
Whether or not this offer has limited use in an order.
|
Boolean |
isTotalitarianOffer() |
boolean |
isUnlimitedUsePerCustomer()
Indicates that there is no limit to how many times a customer can use this offer.
|
boolean |
isUnlimitedUsePerOrder()
Indicates that there is no limit to how many times this offer can be applied to the order.
|
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice) |
void |
setApplyToChildItems(boolean applyToChildItems)
Sets whether or not this offer should apply to an
OrderItems child order items |
void |
setAutomaticallyAdded(boolean automaticallyAdded)
Sets whether or not this offer should be automatically considered for consideration (versus requiring a code or
other delivery mechanism).
|
void |
setCombinableWithOtherOffers(boolean combinableWithOtherOffers) |
void |
setDescription(String description) |
void |
setDiscountType(OfferDiscountType type) |
void |
setEndDate(Date endDate) |
void |
setId(Long id) |
void |
setMarketingMessage(String marketingMessage) |
void |
setMaxUsesPerCustomer(Long maxUses)
Sets the maximum number of times that this offer
can be used by the same customer.
|
void |
setMaxUsesPerOrder(int maxUsesPerOrder)
Sets the maximum number of times that this offer
can be used in the current order.
|
void |
setName(String name) |
void |
setOfferCodes(List<OfferCode> offerCodes)
Sets the offer codes that can be used to retrieve this Offer.
|
void |
setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType) |
void |
setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType) |
void |
setOfferMatchRulesXref(Map<String,OfferOfferRuleXref> offerMatchRulesXref) |
void |
setOrderMinSubTotal(Money orderMinSubTotal) |
void |
setPriority(Integer priority) |
void |
setQualifyingItemCriteriaXref(Set<OfferQualifyingCriteriaXref> qualifyingItemCriteriaXref) |
void |
setQualifyingItemSubTotal(Money qualifyingItemSubtotal) |
void |
setRequiresRelatedTargetAndQualifiers(Boolean requiresRelatedTargetAndQualifiers) |
void |
setStartDate(Date startDate) |
void |
setTargetItemCriteriaXref(Set<OfferTargetCriteriaXref> targetItemCriteriaXref) |
void |
setTargetMinSubTotal(Money targetMinSubTotal) |
void |
setTargetSystem(String targetSystem) |
void |
setTotalitarianOffer(Boolean totalitarianOffer) |
void |
setType(OfferType offerType) |
void |
setValue(BigDecimal value) |
getArchived, isActive, setArchivedcreateOrRetrieveCopyInstancevoid setId(Long id)
Long getId()
String getName()
void setName(String name)
String getDescription()
void setDescription(String description)
OfferType getType()
void setType(OfferType offerType)
OfferDiscountType getDiscountType()
void setDiscountType(OfferDiscountType type)
BigDecimal getValue()
void setValue(BigDecimal value)
int getPriority()
void setPriority(Integer priority)
Date getStartDate()
void setStartDate(Date startDate)
Date getEndDate()
void setEndDate(Date endDate)
String getTargetSystem()
void setTargetSystem(String targetSystem)
boolean getApplyDiscountToSalePrice()
void setApplyDiscountToSalePrice(boolean applyToSalePrice)
OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
OfferItemRestrictionRuleType getOfferItemTargetRuleType()
void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
Boolean getApplyToChildItems()
OrderItems child order itemsvoid setApplyToChildItems(boolean applyToChildItems)
OrderItems child order itemsapplyToChildItems - boolean isCombinableWithOtherOffers()
void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
boolean isAutomaticallyAdded()
void setAutomaticallyAdded(boolean automaticallyAdded)
isAutomaticallyAdded()Long getMaxUsesPerCustomer()
void setMaxUsesPerCustomer(Long maxUses)
maxUses - boolean isUnlimitedUsePerCustomer()
getMaxUsesPerCustomer() == 0boolean isLimitedUsePerCustomer()
getMaxUsesPerCustomer() > 0int getMaxUsesPerOrder()
void setMaxUsesPerOrder(int maxUsesPerOrder)
maxUses - boolean isUnlimitedUsePerOrder()
getMaxUsesPerOrder() == 0boolean isLimitedUsePerOrder()
getMaxUsesPerOrder() > 0Set<OfferQualifyingCriteriaXref> getQualifyingItemCriteriaXref()
void setQualifyingItemCriteriaXref(Set<OfferQualifyingCriteriaXref> qualifyingItemCriteriaXref)
Set<OfferTargetCriteriaXref> getTargetItemCriteriaXref()
void setTargetItemCriteriaXref(Set<OfferTargetCriteriaXref> targetItemCriteriaXref)
Boolean isTotalitarianOffer()
void setTotalitarianOffer(Boolean totalitarianOffer)
Map<String,OfferOfferRuleXref> getOfferMatchRulesXref()
void setOfferMatchRulesXref(Map<String,OfferOfferRuleXref> offerMatchRulesXref)
Money getQualifyingItemSubTotal()
void setQualifyingItemSubTotal(Money qualifyingItemSubtotal)
Money getOrderMinSubTotal()
void setOrderMinSubTotal(Money orderMinSubTotal)
void setMarketingMessage(String marketingMessage)
String getMarketingMessage()
Money getTargetMinSubTotal()
void setTargetMinSubTotal(Money targetMinSubTotal)
List<OfferCode> getOfferCodes()
isAutomaticallyAdded() is false}void setOfferCodes(List<OfferCode> offerCodes)
isAutomaticallyAdded() is false}Boolean getRequiresRelatedTargetAndQualifiers()
void setRequiresRelatedTargetAndQualifiers(Boolean requiresRelatedTargetAndQualifiers)
Copyright © 2016. All rights reserved.