Class SkuFeeImpl

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

@Entity public class SkuFeeImpl extends Object implements SkuFee
Author:
Phillip Verheyden
See Also:
  • Field Details

  • Constructor Details

    • SkuFeeImpl

      public SkuFeeImpl()
  • Method Details

    • 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
    • getCurrency

      public BroadleafCurrency getCurrency()
      Specified by:
      getCurrency in interface SkuFee
    • setCurrency

      public void setCurrency(BroadleafCurrency currency)
      Specified by:
      setCurrency in interface SkuFee
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object