|
||||||||||
| 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()
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. |
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. |
Date |
getStartDate()
|
Set<OfferItemCriteria> |
getTargetItemCriteria()
|
String |
getTargetSystem()
|
Boolean |
getTreatAsNewFormat()
|
OfferType |
getType()
|
int |
getUses()
Deprecated. |
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 |
isStackable()
Deprecated. Use isCombinable instead. |
Boolean |
isTotalitarianOffer()
|
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)
Sets the maximum number of times that this offer can be used in the current order. |
void |
setMaxUsesPerCustomer(Long maxUses)
Sets the maximum number of times that this offer can be used by the same customer. |
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)
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. |
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)
boolean isStackable()
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()OfferDeliveryType getDeliveryType()
void setDeliveryType(OfferDeliveryType deliveryType)
deliveryType - Long getMaxUsesPerCustomer()
void setMaxUsesPerCustomer(Long maxUses)
maxUses - int getMaxUses()
void setMaxUses(int maxUses)
maxUses - @Deprecated int getUses()
@Deprecated void setUses(int uses)
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||