public interface PriceModifier extends Serializable, org.broadleafcommerce.common.copy.MultiTenantCloneable<PriceModifier>
Modifier and Type | Method and Description |
---|---|
boolean |
getApplyToRetailPrice()
If true, this modification will be applied to both the price and retail price
fields.
|
String |
getFriendlyName()
Returns the friendly name of the modifier which is useful for keeping track of modifiers in the admin.
|
Long |
getId()
The unique id of this
PriceModifier |
String |
getMatchRule()
Returns the MVEL rule string to use for this
PriceModifier . |
BigDecimal |
getModificationAmount()
The amount of the modification.
|
ModificationSourceFieldType |
getModificationSourceField()
Deprecated.
since pricelist 1.3.0
|
PriceList |
getPriceList()
Gets the associated pricelist
|
PriceModificationType |
getPriceModificationType()
Determines the modification type (e.g.
|
Long |
getPriority()
Determines the order that modifier rules are evaluated.
|
void |
setApplyToRetailPrice(boolean applyToRetailPrice)
Sets whether or not modifiers should modify both price and retailPrice.
|
void |
setFriendlyName(String friendlyName)
Sets the friendly name of the modifier.
|
void |
setId(Long id)
Sets the unique id of this
PriceModifier |
void |
setMatchRule(String matchRule)
Sets the matchRule for this PriceModifier
|
void |
setModificationAmount(BigDecimal modificationAmount)
Sets the amount of the modification.
|
void |
setModificationSourceField(ModificationSourceFieldType type)
Deprecated.
since pricelist 1.3.0
|
void |
setPriceList(PriceList priceList)
Sets the associate pricelist
|
void |
setPriceModificationType(PriceModificationType type)
Sets the modifiction type.
|
void |
setPriority(Long priority)
Sets the priority of this modifier.
|
String getMatchRule()
PriceModifier
. If the matchRule
is null or empty, the rule evaluation should consider this modifier a match.void setMatchRule(String matchRule)
matchRule
- Long getId()
PriceModifier
void setId(Long id)
PriceModifier
id
- String getFriendlyName()
void setFriendlyName(String friendlyName)
friendlyName
- Long getPriority()
void setPriority(Long priority)
priority
- @Deprecated ModificationSourceFieldType getModificationSourceField()
ModificationSourceFieldType
@Deprecated void setModificationSourceField(ModificationSourceFieldType type)
type
- PriceModificationType getPriceModificationType()
void setPriceModificationType(PriceModificationType type)
type
- BigDecimal getModificationAmount()
void setModificationAmount(BigDecimal modificationAmount)
modificationAmount
- PriceList getPriceList()
void setPriceList(PriceList priceList)
priceList
- boolean getApplyToRetailPrice()
void setApplyToRetailPrice(boolean applyToRetailPrice)
applyToRetailPrice
- Copyright © 2019. All rights reserved.