@Entity public class OfferImpl extends java.lang.Object implements Offer, Status
| Modifier and Type | Class and Description |
|---|---|
static class |
OfferImpl.Presentation |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
appliesToCustomerRules
Deprecated.
|
protected java.lang.String |
appliesToOrderRules
Deprecated.
|
protected boolean |
applyDiscountToMarkedItems
Deprecated.
|
protected java.lang.Boolean |
applyToSalePrice |
protected ArchiveStatus |
archiveStatus |
protected java.lang.Boolean |
automaticallyAdded |
protected java.lang.Boolean |
combinableWithOtherOffers
No offers can be applied on top of this offer;
If false, stackable has to be false also
|
protected java.lang.String |
deliveryType |
protected java.lang.String |
description |
protected java.lang.String |
discountType |
protected java.util.Date |
endDate |
protected java.lang.Long |
id |
protected java.lang.String |
marketingMessage |
protected java.lang.Long |
maxUsesPerCustomer |
protected java.lang.Integer |
maxUsesPerOrder |
protected java.lang.String |
name |
protected java.util.List<OfferCode> |
offerCodes |
protected java.lang.String |
offerItemQualifierRuleType |
protected java.lang.String |
offerItemTargetRuleType |
protected java.lang.Integer |
priority |
protected java.util.Set<OfferItemCriteria> |
qualifyingItemCriteria |
protected java.math.BigDecimal |
qualifyingItemSubTotal |
static long |
serialVersionUID |
protected java.lang.Boolean |
stackable |
protected java.util.Date |
startDate |
protected java.util.Set<OfferItemCriteria> |
targetItemCriteria |
protected java.lang.String |
targetSystem |
protected java.lang.Boolean |
totalitarianOffer |
protected java.lang.Boolean |
treatAsNewFormat |
protected java.lang.String |
type |
protected int |
uses
Deprecated.
|
protected java.math.BigDecimal |
value |
| Constructor and Description |
|---|
OfferImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAppliesToCustomerRules()
Deprecated.
|
java.lang.String |
getAppliesToOrderRules()
Deprecated.
|
boolean |
getApplyDiscountToMarkedItems()
Deprecated.
|
boolean |
getApplyDiscountToSalePrice() |
java.lang.Character |
getArchived() |
boolean |
getCombinableWithOtherOffers()
Deprecated.
|
OfferDeliveryType |
getDeliveryType()
Deprecated.
|
java.lang.String |
getDescription() |
OfferDiscountType |
getDiscountType() |
java.util.Date |
getEndDate() |
java.lang.Long |
getId() |
java.lang.String |
getMarketingMessage() |
int |
getMaxUses()
Returns the maximum number of times that this offer
can be used in the current order.
|
java.lang.Long |
getMaxUsesPerCustomer()
Returns the maximum number of times that this offer
can be used by the same customer.
|
int |
getMaxUsesPerOrder() |
java.lang.String |
getName() |
java.util.List<OfferCode> |
getOfferCodes() |
OfferItemRestrictionRuleType |
getOfferItemQualifierRuleType() |
OfferItemRestrictionRuleType |
getOfferItemTargetRuleType() |
java.util.Map<java.lang.String,OfferRule> |
getOfferMatchRules() |
int |
getPriority() |
java.util.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.
|
java.util.Date |
getStartDate() |
java.util.Set<OfferItemCriteria> |
getTargetItemCriteria() |
java.lang.String |
getTargetSystem() |
java.lang.Boolean |
getTreatAsNewFormat() |
OfferType |
getType() |
int |
getUses()
Deprecated.
|
java.math.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 |
isStackable()
Returns true if this offer can be stacked on top of another offer.
|
java.lang.Boolean |
isTotalitarianOffer() |
void |
setAppliesToCustomerRules(java.lang.String appliesToCustomerRules)
Deprecated.
|
void |
setAppliesToOrderRules(java.lang.String appliesToOrderRules)
Deprecated.
|
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated.
|
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice) |
void |
setArchived(java.lang.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(java.lang.String description) |
void |
setDiscountType(OfferDiscountType discountType) |
void |
setEndDate(java.util.Date endDate) |
void |
setId(java.lang.Long id) |
void |
setMarketingMessage(java.lang.String marketingMessage) |
void |
setMaxUses(int maxUses)
Sets the maximum number of times that this offer
can be used in the current order.
|
void |
setMaxUsesPerCustomer(java.lang.Long maxUsesPerCustomer)
Sets the maximum number of times that this offer
can be used by the same customer.
|
void |
setMaxUsesPerOrder(int maxUsesPerOrder) |
void |
setName(java.lang.String name) |
void |
setOfferCodes(java.util.List<OfferCode> offerCodes) |
void |
setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType) |
void |
setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType) |
void |
setOfferMatchRules(java.util.Map<java.lang.String,OfferRule> offerMatchRules) |
void |
setPriority(int priority) |
void |
setQualifyingItemCriteria(java.util.Set<OfferItemCriteria> qualifyingItemCriteria) |
void |
setQualifyingItemSubTotal(Money qualifyingItemSubTotal) |
void |
setStackable(boolean stackable)
Sets the stackable value for this offer.
|
void |
setStartDate(java.util.Date startDate) |
void |
setTargetItemCriteria(java.util.Set<OfferItemCriteria> targetItemCriteria) |
void |
setTargetSystem(java.lang.String targetSystem) |
void |
setTotalitarianOffer(java.lang.Boolean totalitarianOffer) |
void |
setTreatAsNewFormat(java.lang.Boolean treatAsNewFormat) |
void |
setType(OfferType type) |
void |
setUses(int uses)
Deprecated.
|
void |
setValue(java.math.BigDecimal value) |
public static final long serialVersionUID
protected java.lang.Long id
protected java.util.List<OfferCode> offerCodes
protected java.lang.String name
protected java.lang.String description
protected java.lang.String marketingMessage
protected java.lang.String type
protected java.lang.String discountType
protected java.math.BigDecimal value
protected java.lang.Integer priority
protected java.util.Date startDate
protected java.util.Date endDate
protected java.lang.Boolean stackable
protected java.lang.String targetSystem
protected java.lang.Boolean applyToSalePrice
@Deprecated protected java.lang.String appliesToOrderRules
@Deprecated protected java.lang.String appliesToCustomerRules
@Deprecated protected boolean applyDiscountToMarkedItems
protected java.lang.Boolean combinableWithOtherOffers
protected java.lang.String deliveryType
protected java.lang.Boolean automaticallyAdded
protected java.lang.Integer maxUsesPerOrder
protected java.lang.Long maxUsesPerCustomer
@Deprecated protected int uses
protected java.lang.String offerItemQualifierRuleType
protected java.lang.String offerItemTargetRuleType
protected java.util.Set<OfferItemCriteria> qualifyingItemCriteria
protected java.util.Set<OfferItemCriteria> targetItemCriteria
protected java.lang.Boolean totalitarianOffer
protected java.lang.Boolean treatAsNewFormat
protected java.math.BigDecimal qualifyingItemSubTotal
protected ArchiveStatus archiveStatus
public java.util.List<OfferCode> getOfferCodes()
public void setOfferCodes(java.util.List<OfferCode> offerCodes)
public java.lang.String getDescription()
getDescription in interface Offerpublic void setDescription(java.lang.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 int getPriority()
getPriority in interface Offerpublic void setPriority(int priority)
setPriority in interface Offerpublic java.util.Date getStartDate()
getStartDate in interface Offerpublic void setStartDate(java.util.Date startDate)
setStartDate in interface Offerpublic java.util.Date getEndDate()
getEndDate in interface Offerpublic void setEndDate(java.util.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 java.lang.String getTargetSystem()
getTargetSystem in interface Offerpublic void setTargetSystem(java.lang.String targetSystem)
setTargetSystem in interface Offerpublic boolean getApplyDiscountToSalePrice()
getApplyDiscountToSalePrice in interface Offerpublic void setApplyDiscountToSalePrice(boolean applyToSalePrice)
setApplyDiscountToSalePrice in interface Offer@Deprecated public java.lang.String getAppliesToOrderRules()
getAppliesToOrderRules in interface Offer@Deprecated public void setAppliesToOrderRules(java.lang.String appliesToOrderRules)
setAppliesToOrderRules in interface Offer@Deprecated public java.lang.String getAppliesToCustomerRules()
getAppliesToCustomerRules in interface Offer@Deprecated public void setAppliesToCustomerRules(java.lang.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 java.lang.Long getMaxUsesPerCustomer()
OffergetMaxUsesPerCustomer in interface Offerpublic void setMaxUsesPerCustomer(java.lang.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 Offerpublic java.lang.String getMarketingMessage()
getMarketingMessage in interface Offerpublic void setMarketingMessage(java.lang.String marketingMessage)
setMarketingMessage in interface Offer@Deprecated public void setUses(int uses)
public java.util.Set<OfferItemCriteria> getQualifyingItemCriteria()
getQualifyingItemCriteria in interface Offerpublic void setQualifyingItemCriteria(java.util.Set<OfferItemCriteria> qualifyingItemCriteria)
setQualifyingItemCriteria in interface Offerpublic java.util.Set<OfferItemCriteria> getTargetItemCriteria()
getTargetItemCriteria in interface Offerpublic void setTargetItemCriteria(java.util.Set<OfferItemCriteria> targetItemCriteria)
setTargetItemCriteria in interface Offerpublic java.lang.Boolean isTotalitarianOffer()
isTotalitarianOffer in interface Offerpublic void setTotalitarianOffer(java.lang.Boolean totalitarianOffer)
setTotalitarianOffer in interface Offerpublic java.util.Map<java.lang.String,OfferRule> getOfferMatchRules()
getOfferMatchRules in interface Offerpublic void setOfferMatchRules(java.util.Map<java.lang.String,OfferRule> offerMatchRules)
setOfferMatchRules in interface Offerpublic java.lang.Boolean getTreatAsNewFormat()
getTreatAsNewFormat in interface Offerpublic void setTreatAsNewFormat(java.lang.Boolean treatAsNewFormat)
setTreatAsNewFormat in interface Offerpublic java.lang.Character getArchived()
getArchived in interface Statuspublic void setArchived(java.lang.Character archived)
setArchived in interface Statuspublic Money getQualifyingItemSubTotal()
OffergetQualifyingItemSubTotal in interface Offerpublic void setQualifyingItemSubTotal(Money qualifyingItemSubTotal)
setQualifyingItemSubTotal in interface Offerpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018. All Rights Reserved.