@Entity public class OfferImpl extends Object implements Offer, Status
| Constructor and Description |
|---|
OfferImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAppliesToCustomerRules()
Deprecated.
|
String |
getAppliesToOrderRules()
Deprecated.
|
boolean |
getApplyDiscountToMarkedItems()
Deprecated.
|
boolean |
getApplyDiscountToSalePrice() |
Character |
getArchived() |
boolean |
getCombinableWithOtherOffers()
Deprecated.
|
OfferDeliveryType |
getDeliveryType() |
String |
getDescription() |
OfferDiscountType |
getDiscountType() |
Date |
getEndDate() |
Long |
getId() |
int |
getMaxUses()
Returns the maximum number of times that this offer
can be used in the current order.
|
Long |
getMaxUsesPerCustomer()
Returns the maximum number of times that this offer
can be used by the same customer.
|
int |
getMaxUsesPerOrder() |
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.
|
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 |
isCombinableWithOtherOffers()
Returns true if this offer can be combined with other offers in the order.
|
boolean |
isStackable()
Returns true if this offer can be stacked on top of another offer.
|
Boolean |
isTotalitarianOffer() |
void |
setAppliesToCustomerRules(String appliesToCustomerRules)
Deprecated.
|
void |
setAppliesToOrderRules(String appliesToOrderRules)
Deprecated.
|
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated.
|
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice) |
void |
setArchived(Character archived) |
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 |
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) |
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)
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 type
protected String discountType
protected BigDecimal value
protected int 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 int 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 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 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 int getMaxUsesPerOrder()
public void setMaxUsesPerOrder(int maxUsesPerOrder)
public int getMaxUses()
OffergetMaxUses in interface Offerpublic void setMaxUses(int maxUses)
OffersetMaxUses in interface Offer@Deprecated public int getUses()
@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 OfferCopyright © 2013. All rights reserved.