@Entity public class OfferImpl extends Object implements Offer, AdminMainEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
OfferImpl.Presentation |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
OfferImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAppliesToCustomerRules()
Deprecated.
|
String |
getAppliesToOrderRules()
Deprecated.
|
boolean |
getApplyDiscountToMarkedItems()
Deprecated.
|
boolean |
getApplyDiscountToSalePrice() |
Character |
getArchived() |
boolean |
getCombinableWithOtherOffers()
Deprecated.
|
OfferDeliveryType |
getDeliveryType()
Deprecated.
|
String |
getDescription() |
OfferDiscountType |
getDiscountType() |
Date |
getEndDate() |
Long |
getId() |
String |
getMainEntityName() |
String |
getMarketingMessage() |
int |
getMaxUses()
Deprecated.
|
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,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.
|
Boolean |
getRequiresRelatedTargetAndQualifiers() |
boolean |
getStackable()
Deprecated.
|
Date |
getStartDate() |
Set<OfferItemCriteria> |
getTargetItemCriteria() |
String |
getTargetSystem() |
Boolean |
getTreatAsNewFormat() |
OfferType |
getType() |
int |
getUses()
Deprecated.
|
BigDecimal |
getValue() |
int |
hashCode() |
boolean |
isActive() |
boolean |
isApplyDiscountToMarkedItems()
Deprecated.
|
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 true if this offer can be combined with other offers in the order.
|
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()
Returns true if this offer can be stacked on top of another offer.
|
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 appliesToOrderRules)
Deprecated.
|
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated.
|
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice) |
void |
setArchived(Character archived) |
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)
Sets the combinableWithOtherOffers value for this offer.
|
void |
setDeliveryType(OfferDeliveryType deliveryType) |
void |
setDescription(String description) |
void |
setDiscountType(OfferDiscountType discountType) |
void |
setEndDate(Date endDate) |
void |
setId(Long id) |
void |
setMarketingMessage(String marketingMessage) |
void |
setMaxUses(int maxUses)
Sets the maximum number of times that this offer
can be used in the current order.
|
void |
setMaxUsesPerCustomer(Long maxUsesPerCustomer)
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 |
setOfferMatchRules(Map<String,OfferRule> offerMatchRules) |
void |
setPriority(int priority) |
void |
setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria) |
void |
setQualifyingItemSubTotal(Money qualifyingItemSubTotal) |
void |
setRequiresRelatedTargetAndQualifiers(Boolean requiresRelatedTargetAndQualifiers) |
void |
setStackable(boolean stackable)
Sets the stackable value for this offer.
|
void |
setStartDate(Date startDate) |
void |
setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria) |
void |
setTargetSystem(String targetSystem) |
void |
setTotalitarianOffer(Boolean totalitarianOffer) |
void |
setTreatAsNewFormat(Boolean treatAsNewFormat) |
void |
setType(OfferType type) |
void |
setUses(int uses)
Deprecated.
|
void |
setValue(BigDecimal value) |
public static final long serialVersionUID
protected Long id
protected String name
protected String description
protected String marketingMessage
protected String type
protected String discountType
protected BigDecimal value
protected Integer priority
protected Date startDate
protected Date endDate
protected Boolean stackable
protected String targetSystem
protected Boolean applyToSalePrice
@Deprecated protected String appliesToOrderRules
@Deprecated protected String appliesToCustomerRules
@Deprecated protected boolean applyDiscountToMarkedItems
protected Boolean combinableWithOtherOffers
protected String deliveryType
protected Boolean automaticallyAdded
protected Integer maxUsesPerOrder
protected Long maxUsesPerCustomer
@Deprecated protected int uses
protected String offerItemQualifierRuleType
protected String offerItemTargetRuleType
protected Set<OfferItemCriteria> qualifyingItemCriteria
protected Set<OfferItemCriteria> targetItemCriteria
protected Boolean totalitarianOffer
protected Boolean requiresRelatedTargetAndQualifiers
protected Boolean treatAsNewFormat
protected BigDecimal qualifyingItemSubTotal
protected ArchiveStatus archiveStatus
public String getDescription()
getDescription in interface Offerpublic void setDescription(String description)
setDescription in interface Offerpublic OfferDiscountType getDiscountType()
getDiscountType in interface Offerpublic void setDiscountType(OfferDiscountType discountType)
setDiscountType in interface Offerpublic OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
getOfferItemQualifierRuleType in interface Offerpublic void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
setOfferItemQualifierRuleType in interface Offerpublic OfferItemRestrictionRuleType getOfferItemTargetRuleType()
getOfferItemTargetRuleType in interface Offerpublic void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
setOfferItemTargetRuleType in interface Offerpublic BigDecimal getValue()
public void setValue(BigDecimal value)
public int getPriority()
getPriority in interface Offerpublic void setPriority(int priority)
setPriority in interface Offerpublic Date getStartDate()
getStartDate in interface Offerpublic void setStartDate(Date startDate)
setStartDate in interface Offerpublic Date getEndDate()
getEndDate in interface Offerpublic void setEndDate(Date endDate)
setEndDate in interface Offerpublic boolean isStackable()
isStackable in interface Offerpublic void setStackable(boolean stackable)
setStackable in interface Offerstackable - @Deprecated public boolean getStackable()
public String getTargetSystem()
getTargetSystem in interface Offerpublic void setTargetSystem(String targetSystem)
setTargetSystem in interface Offerpublic boolean getApplyDiscountToSalePrice()
getApplyDiscountToSalePrice in interface Offerpublic void setApplyDiscountToSalePrice(boolean applyToSalePrice)
setApplyDiscountToSalePrice in interface Offer@Deprecated public String getAppliesToOrderRules()
getAppliesToOrderRules in interface Offer@Deprecated public void setAppliesToOrderRules(String appliesToOrderRules)
setAppliesToOrderRules in interface Offer@Deprecated public String getAppliesToCustomerRules()
getAppliesToCustomerRules in interface Offer@Deprecated public void setAppliesToCustomerRules(String appliesToCustomerRules)
setAppliesToCustomerRules in interface Offer@Deprecated public boolean isApplyDiscountToMarkedItems()
isApplyDiscountToMarkedItems in interface Offer@Deprecated public boolean getApplyDiscountToMarkedItems()
@Deprecated public void setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
setApplyDiscountToMarkedItems in interface Offerpublic boolean isCombinableWithOtherOffers()
isCombinableWithOtherOffers in interface Offerpublic void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
setCombinableWithOtherOffers in interface OffercombinableWithOtherOffers - @Deprecated public boolean getCombinableWithOtherOffers()
public boolean isAutomaticallyAdded()
OfferOffer.getDeliveryType() method and return true if that value is set to AUTOMATIC.
If still null, this value will return false.isAutomaticallyAdded in interface Offerpublic void setAutomaticallyAdded(boolean automaticallyAdded)
OffersetAutomaticallyAdded in interface OfferOffer.isAutomaticallyAdded()@Deprecated public OfferDeliveryType getDeliveryType()
getDeliveryType in interface Offerpublic void setDeliveryType(OfferDeliveryType deliveryType)
setDeliveryType in interface Offerpublic Long getMaxUsesPerCustomer()
OffergetMaxUsesPerCustomer in interface Offerpublic void setMaxUsesPerCustomer(Long maxUsesPerCustomer)
OffersetMaxUsesPerCustomer in interface Offerpublic boolean isUnlimitedUsePerCustomer()
OfferOffer.getMaxUsesPerCustomer() == 0isUnlimitedUsePerCustomer in interface Offerpublic boolean isLimitedUsePerCustomer()
OfferOffer.getMaxUsesPerCustomer() > 0isLimitedUsePerCustomer in interface Offerpublic int getMaxUsesPerOrder()
OffergetMaxUsesPerOrder in interface Offerpublic void setMaxUsesPerOrder(int maxUsesPerOrder)
OffersetMaxUsesPerOrder in interface Offerpublic boolean isUnlimitedUsePerOrder()
OfferOffer.getMaxUsesPerOrder() == 0isUnlimitedUsePerOrder in interface Offerpublic boolean isLimitedUsePerOrder()
OfferOffer.getMaxUsesPerOrder() > 0isLimitedUsePerOrder in interface Offer@Deprecated public int getMaxUses()
OffergetMaxUses in interface Offerpublic void setMaxUses(int maxUses)
OffersetMaxUses in interface Offer@Deprecated public int getUses()
public String getMarketingMessage()
getMarketingMessage in interface Offerpublic void setMarketingMessage(String marketingMessage)
setMarketingMessage in interface Offer@Deprecated public void setUses(int uses)
public Set<OfferItemCriteria> getQualifyingItemCriteria()
getQualifyingItemCriteria in interface Offerpublic void setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria)
setQualifyingItemCriteria in interface Offerpublic Set<OfferItemCriteria> getTargetItemCriteria()
getTargetItemCriteria in interface Offerpublic void setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria)
setTargetItemCriteria in interface Offerpublic Boolean isTotalitarianOffer()
isTotalitarianOffer in interface Offerpublic void setTotalitarianOffer(Boolean totalitarianOffer)
setTotalitarianOffer in interface Offerpublic Map<String,OfferRule> getOfferMatchRules()
getOfferMatchRules in interface Offerpublic void setOfferMatchRules(Map<String,OfferRule> offerMatchRules)
setOfferMatchRules in interface Offerpublic Boolean getTreatAsNewFormat()
getTreatAsNewFormat in interface Offerpublic void setTreatAsNewFormat(Boolean treatAsNewFormat)
setTreatAsNewFormat in interface Offerpublic Character getArchived()
getArchived in interface Statuspublic void setArchived(Character archived)
setArchived in interface Statuspublic Money getQualifyingItemSubTotal()
OffergetQualifyingItemSubTotal in interface Offerpublic void setQualifyingItemSubTotal(Money qualifyingItemSubTotal)
setQualifyingItemSubTotal in interface Offerpublic List<OfferCode> getOfferCodes()
OfferOffer.isAutomaticallyAdded() is false}getOfferCodes in interface Offerpublic void setOfferCodes(List<OfferCode> offerCodes)
OfferOffer.isAutomaticallyAdded() is false}setOfferCodes in interface Offerpublic Boolean getRequiresRelatedTargetAndQualifiers()
getRequiresRelatedTargetAndQualifiers in interface Offerpublic void setRequiresRelatedTargetAndQualifiers(Boolean requiresRelatedTargetAndQualifiers)
setRequiresRelatedTargetAndQualifiers in interface Offerpublic String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2015. All Rights Reserved.