public interface Offer extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getAppliesToCustomerRules()
Deprecated.
|
String |
getAppliesToOrderRules()
Deprecated.
|
boolean |
getApplyDiscountToSalePrice() |
OfferDeliveryType |
getDeliveryType() |
String |
getDescription() |
OfferDiscountType |
getDiscountType() |
Date |
getEndDate() |
Long |
getId() |
String |
getMarketingMessage() |
int |
getMaxUses()
Deprecated.
use
getMaxUsesPerOrder() directly instead |
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() |
OfferItemRestrictionRuleType |
getOfferItemQualifierRuleType() |
OfferItemRestrictionRuleType |
getOfferItemTargetRuleType() |
Map<String,OfferRule> |
getOfferMatchRules() |
int |
getPriority() |
Set<OfferItemCriteria> |
getQualifyingItemCriteria() |
Money |
getQualifyingItemSubTotal()
Indicates the amount of items that must be purchased for this offer to
be considered for this order.
|
Date |
getStartDate() |
Set<OfferItemCriteria> |
getTargetItemCriteria() |
String |
getTargetSystem() |
Boolean |
getTreatAsNewFormat() |
OfferType |
getType() |
int |
getUses()
Deprecated.
replaced by the
OfferAudit table |
BigDecimal |
getValue() |
boolean |
isApplyDiscountToMarkedItems()
Deprecated.
|
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 |
isStackable()
Deprecated.
Use isCombinable instead.
|
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 |
setAppliesToCustomerRules(String appliesToCustomerRules)
Deprecated.
|
void |
setAppliesToOrderRules(String appliesToRules)
Deprecated.
|
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated.
|
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice) |
void |
setCombinableWithOtherOffers(boolean combinableWithOtherOffers) |
void |
setDeliveryType(OfferDeliveryType deliveryType) |
void |
setDescription(String description) |
void |
setDiscountType(OfferDiscountType type) |
void |
setEndDate(Date endDate) |
void |
setId(Long id) |
void |
setMarketingMessage(String marketingMessage) |
void |
setMaxUses(int maxUses)
Deprecated.
use
setMaxUsesPerOrder(int) directly instead |
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 |
setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType) |
void |
setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType) |
void |
setOfferMatchRules(Map<String,OfferRule> offerMatchRules) |
void |
setPriority(int priority) |
void |
setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria) |
void |
setQualifyingItemSubTotal(Money qualifyingItemSubtotal) |
void |
setStackable(boolean stackable)
Deprecated.
|
void |
setStartDate(Date startDate) |
void |
setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria) |
void |
setTargetSystem(String targetSystem) |
void |
setTotalitarianOffer(Boolean totalitarianOffer) |
void |
setTreatAsNewFormat(Boolean treatAsNewFormat) |
void |
setType(OfferType offerType) |
void |
setUses(int uses)
Deprecated.
replaced by the
OfferAudit table |
void |
setValue(BigDecimal value) |
void 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(int priority)
Date getStartDate()
void setStartDate(Date startDate)
Date getEndDate()
void setEndDate(Date endDate)
@Deprecated boolean isStackable()
@Deprecated void setStackable(boolean stackable)
setCombinableWithOtherOffers(boolean)stackable - String getTargetSystem()
void setTargetSystem(String targetSystem)
boolean getApplyDiscountToSalePrice()
void setApplyDiscountToSalePrice(boolean applyToSalePrice)
@Deprecated String getAppliesToOrderRules()
@Deprecated void setAppliesToOrderRules(String appliesToRules)
@Deprecated String getAppliesToCustomerRules()
@Deprecated void setAppliesToCustomerRules(String appliesToCustomerRules)
@Deprecated boolean isApplyDiscountToMarkedItems()
@Deprecated void setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
OfferItemRestrictionRuleType getOfferItemTargetRuleType()
void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
boolean isCombinableWithOtherOffers()
void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
OfferDeliveryType getDeliveryType()
void setDeliveryType(OfferDeliveryType deliveryType)
Long getMaxUsesPerCustomer()
void setMaxUsesPerCustomer(Long maxUses)
maxUses - boolean isUnlimitedUsePerCustomer()
getMaxUsesPerCustomer() == 0boolean isLimitedUsePerCustomer()
getMaxUsesPerCustomer() > 0@Deprecated int getMaxUses()
getMaxUsesPerOrder() directly instead@Deprecated void setMaxUses(int maxUses)
setMaxUsesPerOrder(int) directly insteadint getMaxUsesPerOrder()
void setMaxUsesPerOrder(int maxUsesPerOrder)
maxUses - boolean isUnlimitedUsePerOrder()
getMaxUsesPerOrder() == 0boolean isLimitedUsePerOrder()
getMaxUsesPerOrder() > 0@Deprecated int getUses()
OfferAudit table@Deprecated void setUses(int uses)
OfferAudit tableSet<OfferItemCriteria> getQualifyingItemCriteria()
void setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria)
Set<OfferItemCriteria> getTargetItemCriteria()
void setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria)
Boolean isTotalitarianOffer()
void setTotalitarianOffer(Boolean totalitarianOffer)
Boolean getTreatAsNewFormat()
void setTreatAsNewFormat(Boolean treatAsNewFormat)
Money getQualifyingItemSubTotal()
void setQualifyingItemSubTotal(Money qualifyingItemSubtotal)
void setMarketingMessage(String marketingMessage)
String getMarketingMessage()
Copyright © 2014. All Rights Reserved.