org.broadleafcommerce.core.pricing.service.module
Class SimpleTaxModule
java.lang.Object
org.broadleafcommerce.core.pricing.service.module.SimpleTaxModule
- All Implemented Interfaces:
- TaxModule
public class SimpleTaxModule
- extends Object
- implements TaxModule
Simple factor-based tax module. Not really useful for anything
other than demonstration.
- Author:
- jfischer
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULENAME
public static final String MODULENAME
- See Also:
- Constant Field Values
name
protected String name
factor
protected Double factor
SimpleTaxModule
public SimpleTaxModule()
calculateTaxForOrder
public Order calculateTaxForOrder(Order order)
throws TaxException
- Specified by:
calculateTaxForOrder in interface TaxModule
- Throws:
TaxException
getName
public String getName()
- Specified by:
getName in interface TaxModule
setName
public void setName(String name)
- Specified by:
setName in interface TaxModule
getFactor
public Double getFactor()
- Returns:
- the factor
setFactor
public void setFactor(Double factor)
- Parameters:
factor - the factor to set
Copyright © 2012. All Rights Reserved.