Interface SkuFee
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SkuFeeImpl
Used to represent Sku-specific surcharges when fulfilling this item. For instance there might be a disposal fee
when selling batteries or an environmental fee for tires.
- Author:
- Phillip Verheyden
-
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.money.MoneyGets the amount to charge for this surchargeorg.broadleafcommerce.common.currency.domain.BroadleafCurrencyGet the description of the surchargeGets the optional MVEL expression used as additional criteria to determine if this fee appliesgetId()getName()Get the name of the surchargegetSkus()Gets the Skus associated with this surchargeGets whether or not this surcharge is taxable.voidsetAmount(org.broadleafcommerce.common.money.Money amount) Sets the amount to charge for this surchargevoidsetCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) voidsetDescription(String description) Sets the fee descriptionvoidsetExpression(String expression) Sets the MVEL expression used to determine if this fee should be applied.voidsetFeeType(SkuFeeType feeType) voidvoidSets the name of the surchargevoidSets the Skus associated with this surchargevoidsetTaxable(Boolean taxable) Sets whether or not this surcharge should be included in tax calculations
-
Method Details
-
getId
Long getId() -
setId
-
getName
String getName()Get the name of the surcharge- Returns:
- the surcharge name
-
setName
Sets the name of the surcharge- Parameters:
name-
-
getDescription
String getDescription()Get the description of the surcharge- Returns:
- the surcharge description
-
setDescription
Sets the fee description- Parameters:
description-
-
getAmount
org.broadleafcommerce.common.money.Money getAmount()Gets the amount to charge for this surcharge- Returns:
- the fee amount
-
setAmount
void setAmount(org.broadleafcommerce.common.money.Money amount) Sets the amount to charge for this surcharge- Parameters:
amount-
-
getTaxable
Boolean getTaxable()Gets whether or not this surcharge is taxable.- Returns:
- true if the surcharge is taxable, false otherwise. Defaults to false
-
setTaxable
Sets whether or not this surcharge should be included in tax calculations- Parameters:
taxable-
-
getExpression
String getExpression()Gets the optional MVEL expression used as additional criteria to determine if this fee applies- Returns:
- the MVEL expression of extra criteria to determine if this fee applies
-
setExpression
Sets the MVEL expression used to determine if this fee should be applied. If this is null or empty, this fee will always be applied- Parameters:
expression- - a valid MVEL expression
-
getFeeType
SkuFeeType getFeeType() -
setFeeType
-
getSkus
Gets the Skus associated with this surcharge- Returns:
- Skus that have this particular surcharge
-
setSkus
Sets the Skus associated with this surcharge- Parameters:
skus-
-
getCurrency
org.broadleafcommerce.common.currency.domain.BroadleafCurrency getCurrency() -
setCurrency
void setCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency)
-