Class SkuFeeImpl
java.lang.Object
org.broadleafcommerce.core.catalog.domain.SkuFeeImpl
- All Implemented Interfaces:
Serializable,SkuFee
- Author:
- Phillip Verheyden
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.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.inthashCode()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
-
Field Details
-
id
-
name
-
description
-
amount
-
taxable
-
expression
-
feeType
-
skus
-
currency
protected org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency
-
-
Constructor Details
-
SkuFeeImpl
public SkuFeeImpl()
-
-
Method Details
-
getId
-
setId
-
getName
Description copied from interface:SkuFeeGet the name of the surcharge -
setName
Description copied from interface:SkuFeeSets the name of the surcharge -
getDescription
Description copied from interface:SkuFeeGet the description of the surcharge- Specified by:
getDescriptionin interfaceSkuFee- Returns:
- the surcharge description
-
setDescription
Description copied from interface:SkuFeeSets the fee description- Specified by:
setDescriptionin interfaceSkuFee
-
getAmount
public org.broadleafcommerce.common.money.Money getAmount()Description copied from interface:SkuFeeGets the amount to charge for this surcharge -
setAmount
public void setAmount(org.broadleafcommerce.common.money.Money amount) Description copied from interface:SkuFeeSets the amount to charge for this surcharge -
getTaxable
Description copied from interface:SkuFeeGets whether or not this surcharge is taxable.- Specified by:
getTaxablein interfaceSkuFee- Returns:
- true if the surcharge is taxable, false otherwise. Defaults to false
-
setTaxable
Description copied from interface:SkuFeeSets whether or not this surcharge should be included in tax calculations- Specified by:
setTaxablein interfaceSkuFee
-
getExpression
Description copied from interface:SkuFeeGets the optional MVEL expression used as additional criteria to determine if this fee applies- Specified by:
getExpressionin interfaceSkuFee- Returns:
- the MVEL expression of extra criteria to determine if this fee applies
-
setExpression
Description copied from interface:SkuFeeSets the MVEL expression used to determine if this fee should be applied. If this is null or empty, this fee will always be applied- Specified by:
setExpressionin interfaceSkuFee- Parameters:
expression- - a valid MVEL expression
-
getFeeType
- Specified by:
getFeeTypein interfaceSkuFee
-
setFeeType
- Specified by:
setFeeTypein interfaceSkuFee
-
getSkus
Description copied from interface:SkuFeeGets the Skus associated with this surcharge -
setSkus
Description copied from interface:SkuFeeSets the Skus associated with this surcharge -
getCurrency
public org.broadleafcommerce.common.currency.domain.BroadleafCurrency getCurrency()- Specified by:
getCurrencyin interfaceSkuFee
-
setCurrency
public void setCurrency(org.broadleafcommerce.common.currency.domain.BroadleafCurrency currency) - Specified by:
setCurrencyin interfaceSkuFee
-
equals
-
hashCode
public int hashCode()
-