org.broadleafcommerce.core.catalog.domain
Class SkuFeeImpl

java.lang.Object
  extended by org.broadleafcommerce.core.catalog.domain.SkuFeeImpl
All Implemented Interfaces:
Serializable, SkuFee

@Entity
public class SkuFeeImpl
extends Object
implements SkuFee

Author:
Phillip Verheyden
See Also:
Serialized Form

Field Summary
protected  BigDecimal amount
           
protected  String description
           
protected  String expression
           
protected  String feeType
           
protected  Long id
           
protected  String name
           
protected  List<Sku> skus
           
protected  Boolean taxable
           
 
Constructor Summary
SkuFeeImpl()
           
 
Method Summary
 Money getAmount()
          Gets the amount to charge for this surcharge
 String getDescription()
          Get the description of the surcharge
 String getExpression()
          Gets the optional MVEL expression used as additional criteria to determine if this fee applies
 SkuFeeType getFeeType()
           
 Long getId()
           
 String getName()
          Get the name of the surcharge
 List<Sku> getSkus()
          Gets the Skus associated with this surcharge
 Boolean getTaxable()
          Gets whether or not this surcharge is taxable.
 void setAmount(Money amount)
          Sets the amount to charge for this surcharge
 void setDescription(String description)
          Sets the fee description
 void setExpression(String expression)
          Sets the MVEL expression used to determine if this fee should be applied.
 void setFeeType(SkuFeeType feeType)
           
 void setId(Long id)
           
 void setName(String name)
          Sets the name of the surcharge
 void setSkus(List<Sku> skus)
          Sets the Skus associated with this surcharge
 void setTaxable(Boolean taxable)
          Sets whether or not this surcharge should be included in tax calculations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected Long id

name

protected String name

description

protected String description

amount

protected BigDecimal amount

taxable

protected Boolean taxable

expression

protected String expression

feeType

protected String feeType

skus

protected List<Sku> skus
Constructor Detail

SkuFeeImpl

public SkuFeeImpl()
Method Detail

getId

public Long getId()
Specified by:
getId in interface SkuFee

setId

public void setId(Long id)
Specified by:
setId in interface SkuFee

getName

public String getName()
Description copied from interface: SkuFee
Get the name of the surcharge

Specified by:
getName in interface SkuFee
Returns:
the surcharge name

setName

public void setName(String name)
Description copied from interface: SkuFee
Sets the name of the surcharge

Specified by:
setName in interface SkuFee

getDescription

public String getDescription()
Description copied from interface: SkuFee
Get the description of the surcharge

Specified by:
getDescription in interface SkuFee
Returns:
the surcharge description

setDescription

public void setDescription(String description)
Description copied from interface: SkuFee
Sets the fee description

Specified by:
setDescription in interface SkuFee

getAmount

public Money getAmount()
Description copied from interface: SkuFee
Gets the amount to charge for this surcharge

Specified by:
getAmount in interface SkuFee
Returns:
the fee amount

setAmount

public void setAmount(Money amount)
Description copied from interface: SkuFee
Sets the amount to charge for this surcharge

Specified by:
setAmount in interface SkuFee

getTaxable

public Boolean getTaxable()
Description copied from interface: SkuFee
Gets whether or not this surcharge is taxable.

Specified by:
getTaxable in interface SkuFee
Returns:
true if the surcharge is taxable, false otherwise. Defaults to false

setTaxable

public void setTaxable(Boolean taxable)
Description copied from interface: SkuFee
Sets whether or not this surcharge should be included in tax calculations

Specified by:
setTaxable in interface SkuFee

getExpression

public String getExpression()
Description copied from interface: SkuFee
Gets the optional MVEL expression used as additional criteria to determine if this fee applies

Specified by:
getExpression in interface SkuFee
Returns:
the MVEL expression of extra criteria to determine if this fee applies

setExpression

public void setExpression(String expression)
Description copied from interface: SkuFee
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

Specified by:
setExpression in interface SkuFee
Parameters:
expression - - a valid MVEL expression

getFeeType

public SkuFeeType getFeeType()
Specified by:
getFeeType in interface SkuFee

setFeeType

public void setFeeType(SkuFeeType feeType)
Specified by:
setFeeType in interface SkuFee

getSkus

public List<Sku> getSkus()
Description copied from interface: SkuFee
Gets the Skus associated with this surcharge

Specified by:
getSkus in interface SkuFee
Returns:
Skus that have this particular surcharge

setSkus

public void setSkus(List<Sku> skus)
Description copied from interface: SkuFee
Sets the Skus associated with this surcharge

Specified by:
setSkus in interface SkuFee


Copyright © 2013. All Rights Reserved.