@Entity public class OfferImpl extends Object implements Offer, AdminMainEntity, OfferAdminPresentation
OfferAdminPresentation.FieldOrder, OfferAdminPresentation.GroupName, OfferAdminPresentation.GroupOrder, OfferAdminPresentation.TabName, OfferAdminPresentation.TabOrderMAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
OfferImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends Offer> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
boolean |
equals(Object o) |
OfferAdjustmentType |
getAdjustmentType()
This indicates how an Offer should be fulfilled to the customer, defaulting to order time discount.
|
boolean |
getApplyDiscountToSalePrice() |
Boolean |
getApplyToChildItems()
Returns whether or not this offer should apply to an
OrderItems child order items |
Character |
getArchived() |
boolean |
getCombinableWithOtherOffers() |
String |
getDescription() |
OfferDiscountType |
getDiscountType() |
Date |
getEndDate() |
Long |
getId() |
String |
getMainEntityName() |
String |
getMarketingMessage() |
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.
|
CustomerMaxUsesStrategyType |
getMaxUsesStrategyType()
Enum that allows implementations to vary how customer max uses will
be interpreted.
|
Long |
getMinimumDaysPerUsage()
Sets the minimum number of days that this offer can be used
by the same customer before resetting the number of uses dictated by
Offer.getMaxUsesPerCustomer(). |
String |
getName() |
List<OfferCode> |
getOfferCodes()
Returns the offer codes that can be used to retrieve this Offer.
|
OfferItemRestrictionRuleType |
getOfferItemQualifierRuleType() |
OfferItemRestrictionRuleType |
getOfferItemTargetRuleType() |
Map<String,OfferOfferRuleXref> |
getOfferMatchRulesXref() |
List<OfferPriceData> |
getOfferPriceData() |
Money |
getOrderMinSubTotal() |
int |
getPriority() |
Set<OfferQualifyingCriteriaXref> |
getQualifyingItemCriteriaXref() |
Money |
getQualifyingItemSubTotal()
Indicates the amount of items that must be purchased for this offer to
be considered for this order.
|
Boolean |
getRequiresRelatedTargetAndQualifiers() |
Date |
getStartDate() |
Set<OfferTargetCriteriaXref> |
getTargetItemCriteriaXref() |
Money |
getTargetMinSubTotal() |
String |
getTargetSystem() |
OfferType |
getType() |
Boolean |
getUseListForDiscounts() |
BigDecimal |
getValue() |
int |
hashCode() |
boolean |
isActive() |
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 |
isFutureCredit()
Future credit means that the associated adjustment will be discounted at a later time to the customer
via a credit.
|
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 |
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 |
setAdjustmentType(OfferAdjustmentType adjustmentType)
This indicates how an Offer should be fulfilled to the customer, defaulting to order time discount.
|
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice) |
void |
setApplyToChildItems(boolean applyToChildItems)
Sets whether or not this offer should apply to an
OrderItems child order items |
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 |
setDescription(String description) |
void |
setDiscountType(OfferDiscountType discountType) |
void |
setEndDate(Date endDate) |
void |
setId(Long id) |
void |
setMarketingMessage(String marketingMessage) |
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 |
setMaxUsesStrategyType(CustomerMaxUsesStrategyType strategyType)
Sets the strategy for determining customer max uses.
|
void |
setMinimumDaysPerUsage(Long minimumDaysPerUsage)
Sets the minimum number of days that this offer can be used
by the same customer before resetting the number of uses dictated by
Offer.getMaxUsesPerCustomer(). |
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 |
setOfferMatchRulesXref(Map<String,OfferOfferRuleXref> offerMatchRulesXref) |
void |
setOfferPriceData(List<OfferPriceData> offerPriceData) |
void |
setOrderMinSubTotal(Money orderMinSubTotal) |
void |
setPriority(Integer priority) |
void |
setQualifyingItemCriteriaXref(Set<OfferQualifyingCriteriaXref> qualifyingItemCriteriaXref) |
void |
setQualifyingItemSubTotal(Money qualifyingItemSubTotal) |
void |
setRequiresRelatedTargetAndQualifiers(Boolean requiresRelatedTargetAndQualifiers) |
void |
setStartDate(Date startDate) |
void |
setTargetItemCriteriaXref(Set<OfferTargetCriteriaXref> targetItemCriteriaXref) |
void |
setTargetMinSubTotal(Money targetMinSubTotal) |
void |
setTargetSystem(String targetSystem) |
void |
setTotalitarianOffer(Boolean totalitarianOffer) |
void |
setType(OfferType type) |
void |
setUseListForDiscounts(Boolean useListForDiscounts) |
void |
setValue(BigDecimal value) |
public static final long serialVersionUID
public static final String EXCLUDE_OFFERCODE_COPY_HINT
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 String targetSystem
protected Boolean applyToSalePrice
protected Boolean applyToChildItems
protected Boolean combinableWithOtherOffers
protected Boolean automaticallyAdded
protected Integer maxUsesPerOrder
protected Long maxUsesPerCustomer
protected String maxUsesStrategy
protected Long minimumDaysPerUsage
protected String offerItemQualifierRuleType
protected BigDecimal qualifyingItemSubTotal
protected BigDecimal orderMinSubTotal
protected BigDecimal targetMinSubTotal
protected String offerItemTargetRuleType
protected Set<OfferQualifyingCriteriaXref> qualifyingItemCriteria
protected Set<OfferItemCriteria> legacyQualifyingItemCriteria
protected Set<OfferTargetCriteriaXref> targetItemCriteria
protected Set<OfferItemCriteria> legacyTargetItemCriteria
protected Boolean totalitarianOffer
protected Boolean requiresRelatedTargetAndQualifiers
protected String adjustmentType
protected Boolean useListForDiscounts
protected List<OfferPriceData> offerPriceData
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(Integer 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 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 Offerpublic Boolean getApplyToChildItems()
OfferOrderItems child order itemsgetApplyToChildItems in interface Offerpublic void setApplyToChildItems(boolean applyToChildItems)
OfferOrderItems child order itemssetApplyToChildItems in interface Offerpublic boolean isCombinableWithOtherOffers()
isCombinableWithOtherOffers in interface Offerpublic void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
setCombinableWithOtherOffers in interface OffercombinableWithOtherOffers - public boolean getCombinableWithOtherOffers()
public boolean isAutomaticallyAdded()
OfferisAutomaticallyAdded in interface Offerpublic void setAutomaticallyAdded(boolean automaticallyAdded)
OffersetAutomaticallyAdded in interface OfferOffer.isAutomaticallyAdded()public Long getMaxUsesPerCustomer()
OffergetMaxUsesPerCustomer in interface Offerpublic void setMaxUsesPerCustomer(Long maxUsesPerCustomer)
OffersetMaxUsesPerCustomer in interface Offerpublic CustomerMaxUsesStrategyType getMaxUsesStrategyType()
OfferCustomerMaxUsesStrategyType.CUSTOMER.getMaxUsesStrategyType in interface Offerpublic void setMaxUsesStrategyType(CustomerMaxUsesStrategyType strategyType)
OffersetMaxUsesStrategyType in interface OfferOffer.getMaxUsesStrategyType()public Long getMinimumDaysPerUsage()
OfferOffer.getMaxUsesPerCustomer().
0 or null indicates that the offer will never reset usages.getMinimumDaysPerUsage in interface Offerpublic void setMinimumDaysPerUsage(Long minimumDaysPerUsage)
OfferOffer.getMaxUsesPerCustomer().
0 or null indicates that the offer will never reset usages.setMinimumDaysPerUsage 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 Offerpublic String getMarketingMessage()
getMarketingMessage in interface Offerpublic void setMarketingMessage(String marketingMessage)
setMarketingMessage in interface Offerpublic Set<OfferQualifyingCriteriaXref> getQualifyingItemCriteriaXref()
getQualifyingItemCriteriaXref in interface Offerpublic void setQualifyingItemCriteriaXref(Set<OfferQualifyingCriteriaXref> qualifyingItemCriteriaXref)
setQualifyingItemCriteriaXref in interface Offerpublic Set<OfferTargetCriteriaXref> getTargetItemCriteriaXref()
getTargetItemCriteriaXref in interface Offerpublic void setTargetItemCriteriaXref(Set<OfferTargetCriteriaXref> targetItemCriteriaXref)
setTargetItemCriteriaXref in interface Offerpublic Boolean isTotalitarianOffer()
isTotalitarianOffer in interface Offerpublic void setTotalitarianOffer(Boolean totalitarianOffer)
setTotalitarianOffer in interface Offerpublic Map<String,OfferOfferRuleXref> getOfferMatchRulesXref()
getOfferMatchRulesXref in interface Offerpublic void setOfferMatchRulesXref(Map<String,OfferOfferRuleXref> offerMatchRulesXref)
setOfferMatchRulesXref in interface Offerpublic Boolean getUseListForDiscounts()
getUseListForDiscounts in interface Offerpublic void setUseListForDiscounts(Boolean useListForDiscounts)
setUseListForDiscounts in interface Offerpublic List<OfferPriceData> getOfferPriceData()
getOfferPriceData in interface Offerpublic void setOfferPriceData(List<OfferPriceData> offerPriceData)
setOfferPriceData 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 Money getOrderMinSubTotal()
getOrderMinSubTotal in interface Offerpublic void setOrderMinSubTotal(Money orderMinSubTotal)
setOrderMinSubTotal in interface Offerpublic Money getTargetMinSubTotal()
getTargetMinSubTotal in interface Offerpublic void setTargetMinSubTotal(Money targetMinSubTotal)
setTargetMinSubTotal 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 AdminMainEntitypublic OfferAdjustmentType getAdjustmentType()
OffergetAdjustmentType in interface Offerpublic void setAdjustmentType(OfferAdjustmentType adjustmentType)
OffersetAdjustmentType in interface Offerpublic boolean isFutureCredit()
OfferOffer.getAdjustmentType() for more infoisFutureCredit in interface Offerpublic <G extends Offer> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<Offer>CloneNotSupportedExceptionCopyright © 2019. All rights reserved.