|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Offer
| Method Summary | |
|---|---|
String |
getAppliesToCustomerRules()
Deprecated. |
String |
getAppliesToOrderRules()
Deprecated. |
boolean |
getApplyDiscountToSalePrice()
|
OfferDeliveryType |
getDeliveryType()
Deprecated. Replaced by isAutomaticallyApplied property. In prior versions of Broadleaf deliveryType was used to differentiate "automatic" orders from those requiring a code. If the underlying property is null, this method will return a delivery type based on the isAutomatic property. |
String |
getDescription()
|
OfferDiscountType |
getDiscountType()
|
Date |
getEndDate()
|
Long |
getId()
|
String |
getMarketingMessage()
|
int |
getMaxUses()
Deprecated. use getMaxUsesPerOrder() directly instead |
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. |
Date |
getStartDate()
|
Set<OfferItemCriteria> |
getTargetItemCriteria()
|
String |
getTargetSystem()
|
Boolean |
getTreatAsNewFormat()
|
OfferType |
getType()
|
int |
getUses()
Deprecated. replaced by the OfferAudit table |
BigDecimal |
getValue()
|
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 false if this offer is not combinable with other offers of the same type. |
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()
Deprecated. Use isCombinable instead. |
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 appliesToRules)
Deprecated. |
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated. |
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice)
|
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)
|
void |
setDeliveryType(OfferDeliveryType deliveryType)
Deprecated. Replaced by setAutomaticallyApplied(boolean val). |
void |
setDescription(String description)
|
void |
setDiscountType(OfferDiscountType type)
|
void |
setEndDate(Date endDate)
|
void |
setId(Long id)
|
void |
setMarketingMessage(String marketingMessage)
|
void |
setMaxUses(int maxUses)
Deprecated. use setMaxUsesPerOrder(int) directly instead |
void |
setMaxUsesPerCustomer(Long maxUses)
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 |
setStackable(boolean stackable)
Deprecated. calls setCombinableWithOtherOffers(boolean) |
void |
setStartDate(Date startDate)
|
void |
setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria)
|
void |
setTargetSystem(String targetSystem)
|
void |
setTotalitarianOffer(Boolean totalitarianOffer)
|
void |
setTreatAsNewFormat(Boolean treatAsNewFormat)
|
void |
setType(OfferType offerType)
|
void |
setUses(int uses)
Deprecated. replaced by the OfferAudit table |
void |
setValue(BigDecimal value)
|
| Method Detail |
|---|
void setId(Long id)
Long getId()
String getName()
void setName(String name)
String getDescription()
void setDescription(String description)
OfferType getType()
void setType(OfferType offerType)
OfferDiscountType getDiscountType()
void setDiscountType(OfferDiscountType type)
BigDecimal getValue()
void setValue(BigDecimal value)
int getPriority()
void setPriority(int priority)
Date getStartDate()
void setStartDate(Date startDate)
Date getEndDate()
void setEndDate(Date endDate)
@Deprecated boolean isStackable()
@Deprecated void setStackable(boolean stackable)
setCombinableWithOtherOffers(boolean)
stackable - String getTargetSystem()
void setTargetSystem(String targetSystem)
boolean getApplyDiscountToSalePrice()
void setApplyDiscountToSalePrice(boolean applyToSalePrice)
@Deprecated String getAppliesToOrderRules()
@Deprecated void setAppliesToOrderRules(String appliesToRules)
@Deprecated String getAppliesToCustomerRules()
@Deprecated void setAppliesToCustomerRules(String appliesToCustomerRules)
@Deprecated boolean isApplyDiscountToMarkedItems()
@Deprecated void setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
OfferItemRestrictionRuleType getOfferItemTargetRuleType()
void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
boolean isCombinableWithOtherOffers()
void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
boolean isAutomaticallyAdded()
getDeliveryType() method and return true if that value is set to AUTOMATIC.
If still null, this value will return false.
void setAutomaticallyAdded(boolean automaticallyAdded)
isAutomaticallyAdded()@Deprecated OfferDeliveryType getDeliveryType()
@Deprecated void setDeliveryType(OfferDeliveryType deliveryType)
deliveryType - @Nonnull Long getMaxUsesPerCustomer()
void setMaxUsesPerCustomer(Long maxUses)
maxUses - boolean isUnlimitedUsePerCustomer()
getMaxUsesPerCustomer() == 0
boolean isLimitedUsePerCustomer()
getMaxUsesPerCustomer() > 0
@Deprecated int getMaxUses()
getMaxUsesPerOrder() directly instead
@Deprecated void setMaxUses(int maxUses)
setMaxUsesPerOrder(int) directly instead
int getMaxUsesPerOrder()
void setMaxUsesPerOrder(int maxUsesPerOrder)
maxUses - boolean isUnlimitedUsePerOrder()
getMaxUsesPerOrder() == 0
boolean isLimitedUsePerOrder()
getMaxUsesPerOrder() > 0
@Deprecated int getUses()
OfferAudit table
@Deprecated void setUses(int uses)
OfferAudit table
Set<OfferItemCriteria> getQualifyingItemCriteria()
void setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria)
Set<OfferItemCriteria> getTargetItemCriteria()
void setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria)
Boolean isTotalitarianOffer()
void setTotalitarianOffer(Boolean totalitarianOffer)
Map<String,OfferRule> getOfferMatchRules()
void setOfferMatchRules(Map<String,OfferRule> offerMatchRules)
Boolean getTreatAsNewFormat()
void setTreatAsNewFormat(Boolean treatAsNewFormat)
Money getQualifyingItemSubTotal()
void setQualifyingItemSubTotal(Money qualifyingItemSubtotal)
void setMarketingMessage(String marketingMessage)
String getMarketingMessage()
List<OfferCode> getOfferCodes()
isAutomaticallyAdded() is false}
void setOfferCodes(List<OfferCode> offerCodes)
isAutomaticallyAdded() is false}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||