@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 Offer
public void setDescription(String description)
setDescription
in interface Offer
public OfferDiscountType getDiscountType()
getDiscountType
in interface Offer
public void setDiscountType(OfferDiscountType discountType)
setDiscountType
in interface Offer
public OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
getOfferItemQualifierRuleType
in interface Offer
public void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
setOfferItemQualifierRuleType
in interface Offer
public OfferItemRestrictionRuleType getOfferItemTargetRuleType()
getOfferItemTargetRuleType
in interface Offer
public void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
setOfferItemTargetRuleType
in interface Offer
public BigDecimal getValue()
public void setValue(BigDecimal value)
public int getPriority()
getPriority
in interface Offer
public void setPriority(int priority)
setPriority
in interface Offer
public Date getStartDate()
getStartDate
in interface Offer
public void setStartDate(Date startDate)
setStartDate
in interface Offer
public Date getEndDate()
getEndDate
in interface Offer
public void setEndDate(Date endDate)
setEndDate
in interface Offer
public boolean isStackable()
isStackable
in interface Offer
public void setStackable(boolean stackable)
setStackable
in interface Offer
stackable
- @Deprecated public boolean getStackable()
public String getTargetSystem()
getTargetSystem
in interface Offer
public void setTargetSystem(String targetSystem)
setTargetSystem
in interface Offer
public boolean getApplyDiscountToSalePrice()
getApplyDiscountToSalePrice
in interface Offer
public 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 Offer
public boolean isCombinableWithOtherOffers()
isCombinableWithOtherOffers
in interface Offer
public void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
setCombinableWithOtherOffers
in interface Offer
combinableWithOtherOffers
- @Deprecated public boolean getCombinableWithOtherOffers()
public OfferDeliveryType getDeliveryType()
getDeliveryType
in interface Offer
public void setDeliveryType(OfferDeliveryType deliveryType)
setDeliveryType
in interface Offer
public Long getMaxUsesPerCustomer()
Offer
getMaxUsesPerCustomer
in interface Offer
public void setMaxUsesPerCustomer(Long maxUsesPerCustomer)
Offer
setMaxUsesPerCustomer
in interface Offer
public int getMaxUsesPerOrder()
public void setMaxUsesPerOrder(int maxUsesPerOrder)
public int getMaxUses()
Offer
getMaxUses
in interface Offer
public void setMaxUses(int maxUses)
Offer
setMaxUses
in interface Offer
@Deprecated public int getUses()
@Deprecated public void setUses(int uses)
public Set<OfferItemCriteria> getQualifyingItemCriteria()
getQualifyingItemCriteria
in interface Offer
public void setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria)
setQualifyingItemCriteria
in interface Offer
public Set<OfferItemCriteria> getTargetItemCriteria()
getTargetItemCriteria
in interface Offer
public void setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria)
setTargetItemCriteria
in interface Offer
public Boolean isTotalitarianOffer()
isTotalitarianOffer
in interface Offer
public void setTotalitarianOffer(Boolean totalitarianOffer)
setTotalitarianOffer
in interface Offer
public Map<String,OfferRule> getOfferMatchRules()
getOfferMatchRules
in interface Offer
public void setOfferMatchRules(Map<String,OfferRule> offerMatchRules)
setOfferMatchRules
in interface Offer
public Boolean getTreatAsNewFormat()
getTreatAsNewFormat
in interface Offer
public void setTreatAsNewFormat(Boolean treatAsNewFormat)
setTreatAsNewFormat
in interface Offer
public Character getArchived()
getArchived
in interface Status
public void setArchived(Character archived)
setArchived
in interface Status
public Money getQualifyingItemSubTotal()
Offer
getQualifyingItemSubTotal
in interface Offer
public void setQualifyingItemSubTotal(Money qualifyingItemSubTotal)
setQualifyingItemSubTotal
in interface Offer
Copyright © 2013. All rights reserved.