org.broadleafcommerce.core.offer.domain
Interface Offer
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- OfferImpl
public interface Offer
- extends Serializable
setId
void setId(Long id)
getId
Long getId()
getName
String getName()
setName
void setName(String name)
getDescription
String getDescription()
setDescription
void setDescription(String description)
getType
OfferType getType()
setType
void setType(OfferType offerType)
getDiscountType
OfferDiscountType getDiscountType()
setDiscountType
void setDiscountType(OfferDiscountType type)
getValue
BigDecimal getValue()
setValue
void setValue(BigDecimal value)
getPriority
int getPriority()
setPriority
void setPriority(int priority)
getStartDate
Date getStartDate()
setStartDate
void setStartDate(Date startDate)
getEndDate
Date getEndDate()
setEndDate
void setEndDate(Date endDate)
isStackable
boolean isStackable()
setStackable
void setStackable(boolean stackable)
getTargetSystem
String getTargetSystem()
setTargetSystem
void setTargetSystem(String targetSystem)
getApplyDiscountToSalePrice
boolean getApplyDiscountToSalePrice()
setApplyDiscountToSalePrice
void setApplyDiscountToSalePrice(boolean applyToSalePrice)
getAppliesToOrderRules
@Deprecated
String getAppliesToOrderRules()
- Deprecated.
setAppliesToOrderRules
@Deprecated
void setAppliesToOrderRules(String appliesToRules)
- Deprecated.
getAppliesToCustomerRules
@Deprecated
String getAppliesToCustomerRules()
- Deprecated.
setAppliesToCustomerRules
@Deprecated
void setAppliesToCustomerRules(String appliesToCustomerRules)
- Deprecated.
isApplyDiscountToMarkedItems
@Deprecated
boolean isApplyDiscountToMarkedItems()
- Deprecated.
setApplyDiscountToMarkedItems
@Deprecated
void setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
- Deprecated.
getOfferItemQualifierRuleType
OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
setOfferItemQualifierRuleType
void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
getOfferItemTargetRuleType
OfferItemRestrictionRuleType getOfferItemTargetRuleType()
setOfferItemTargetRuleType
void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
isCombinableWithOtherOffers
boolean isCombinableWithOtherOffers()
setCombinableWithOtherOffers
void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
getDeliveryType
OfferDeliveryType getDeliveryType()
setDeliveryType
void setDeliveryType(OfferDeliveryType deliveryType)
getMaxUsesPerCustomer
Long getMaxUsesPerCustomer()
- Returns the maximum number of times that this offer
can be used by the same customer. This field
tracks the number of times the offer can be used
and not how many times it is applied.
0 or null indicates unlimited usage per customer.
- Returns:
setMaxUsesPerCustomer
void setMaxUsesPerCustomer(Long maxUses)
- Sets the maximum number of times that this offer
can be used by the same customer. Intended as a transient
field that gets derived from the other persisted max uses fields
including maxUsesPerOrder and maxUsesPerCustomer.
0 or null indicates unlimited usage.
- Parameters:
maxUses -
getMaxUses
int getMaxUses()
- Returns the maximum number of times that this offer
can be used in the current order.
0 indicates unlimited usage.
- Returns:
setMaxUses
void setMaxUses(int maxUses)
- Sets the maximum number of times that this offer
can be used in the current order.
0 indicates unlimited usage.
- Parameters:
maxUses -
getUses
@Deprecated
int getUses()
- Deprecated.
setUses
@Deprecated
void setUses(int uses)
- Deprecated.
getQualifyingItemCriteria
Set<OfferItemCriteria> getQualifyingItemCriteria()
setQualifyingItemCriteria
void setQualifyingItemCriteria(Set<OfferItemCriteria> qualifyingItemCriteria)
getTargetItemCriteria
Set<OfferItemCriteria> getTargetItemCriteria()
setTargetItemCriteria
void setTargetItemCriteria(Set<OfferItemCriteria> targetItemCriteria)
isTotalitarianOffer
Boolean isTotalitarianOffer()
setTotalitarianOffer
void setTotalitarianOffer(Boolean totalitarianOffer)
getOfferMatchRules
Map<String,OfferRule> getOfferMatchRules()
setOfferMatchRules
void setOfferMatchRules(Map<String,OfferRule> offerMatchRules)
getTreatAsNewFormat
Boolean getTreatAsNewFormat()
setTreatAsNewFormat
void setTreatAsNewFormat(Boolean treatAsNewFormat)
getQualifyingItemSubTotal
Money getQualifyingItemSubTotal()
- Indicates the amount of items that must be purchased for this offer to
be considered for this order.
The system will find all qualifying items for the given offer and sum their prices before
any discounts are applied to make the determination.
If the sum of the qualifying items is not greater than this value the offer is
not considered by the offer processing algorithm.
- Returns:
setQualifyingItemSubTotal
void setQualifyingItemSubTotal(Money qualifyingItemSubtotal)
Copyright © 2012. All Rights Reserved.