|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.pricing.service.module.SimpleTaxModule
@Deprecated public class SimpleTaxModule
Simple factor-based tax module that can be configured by adding rates for specific postalCodes, city, state, or country. Through configuration, this module can be used to set a specific tax rate for items and shipping for a given postal code, city, state, or country. Utilizes the fulfillment group's address to determine the tax location. Useful for those with very simple tax needs.
| Field Summary | |
|---|---|
protected Double |
defaultFulfillmentGroupTaxRate
Deprecated. |
protected Double |
defaultItemTaxRate
Deprecated. |
protected Map<String,Double> |
fulfillmentGroupCityTaxRateMap
Deprecated. |
protected Map<String,Double> |
fulfillmentGroupCountryTaxRateMap
Deprecated. |
protected Map<String,Double> |
fulfillmentGroupPostalCodeTaxRateMap
Deprecated. |
protected Map<String,Double> |
fulfillmentGroupStateTaxRateMap
Deprecated. |
protected Map<String,Double> |
itemCityTaxRateMap
Deprecated. |
protected Map<String,Double> |
itemCountryTaxRateMap
Deprecated. |
protected Map<String,Double> |
itemPostalCodeTaxRateMap
Deprecated. |
protected Map<String,Double> |
itemStateTaxRateMap
Deprecated. |
static String |
MODULENAME
Deprecated. |
protected String |
name
Deprecated. |
protected boolean |
taxFees
Deprecated. |
| Constructor Summary | |
|---|---|
SimpleTaxModule()
Deprecated. |
|
| Method Summary | |
|---|---|
Order |
calculateTaxForOrder(Order order)
Deprecated. |
Double |
determineItemTaxRate(Address address)
Deprecated. Uses the passed in address to determine if the item is taxable. |
Double |
determineTaxRateForFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
Deprecated. Uses the passed in address to determine if the item is taxable. |
Double |
getDefaultFulfillmentGroupTaxRate()
Deprecated. |
Double |
getDefaultItemTaxRate()
Deprecated. |
Double |
getFactor()
Deprecated. |
Map<String,Double> |
getFulfillmentGroupCityTaxRateMap()
Deprecated. |
Map<String,Double> |
getFulfillmentGroupCountryTaxRateMap()
Deprecated. |
Map<String,Double> |
getFulfillmentGroupPostalCodeTaxRateMap()
Deprecated. |
Map<String,Double> |
getFulfillmentGroupStateTaxRateMap()
Deprecated. |
Map<String,Double> |
getItemCityTaxRateMap()
Deprecated. |
Map<String,Double> |
getItemCountryTaxRateMap()
Deprecated. |
Map<String,Double> |
getItemPostalCodeTaxRateMap()
Deprecated. |
Map<String,Double> |
getItemStateTaxRateMap()
Deprecated. |
String |
getName()
Deprecated. |
protected boolean |
isFeeTaxable(FulfillmentGroupFee fee)
Deprecated. |
protected boolean |
isItemTaxable(FulfillmentGroupItem item)
Deprecated. |
Double |
lookupCityRate(Map<String,Double> cityTaxRateMap,
String city)
Deprecated. Changes the city to upper case before checking the configuration. |
Double |
lookupCountryRate(Map<String,Double> countryTaxRateMap,
Country country)
Deprecated. Returns the taxAmount for the passed in country or null if no match is found. |
Double |
lookupPostalCodeRate(Map<String,Double> postalCodeTaxRateMap,
String postalCode)
Deprecated. Returns the taxAmount for the passed in postal code or null if no match is found. |
Double |
lookupStateRate(Map<String,Double> stateTaxRateMap,
State state)
Deprecated. Returns the taxAmount for the passed in state or null if no match is found. |
void |
setDefaultFulfillmentGroupTaxRate(Double defaultFulfillmentGroupTaxRate)
Deprecated. |
void |
setDefaultItemTaxRate(Double defaultItemTaxRate)
Deprecated. |
void |
setFactor(Double factor)
Deprecated. |
void |
setFulfillmentGroupCityTaxRateMap(Map<String,Double> fulfillmentGroupCityTaxRateMap)
Deprecated. |
void |
setFulfillmentGroupCountryTaxRateMap(Map<String,Double> fulfillmentGroupCountryTaxRateMap)
Deprecated. |
void |
setFulfillmentGroupPostalCodeTaxRateMap(Map<String,Double> fulfillmentGroupPostalCodeTaxRateMap)
Deprecated. |
void |
setFulfillmentGroupStateTaxRateMap(Map<String,Double> fulfillmentGroupStateTaxRateMap)
Deprecated. |
void |
setItemCityTaxRateMap(Map<String,Double> itemCityTaxRateMap)
Deprecated. |
void |
setItemCountryTaxRateMap(Map<String,Double> itemCountryTaxRateMap)
Deprecated. |
void |
setItemPostalCodeTaxRateMap(Map<String,Double> itemPostalCodeTaxRateMap)
Deprecated. |
void |
setItemStateTaxRateMap(Map<String,Double> itemStateTaxRateMap)
Deprecated. |
void |
setName(String name)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MODULENAME
protected String name
protected Map<String,Double> itemPostalCodeTaxRateMap
protected Map<String,Double> itemCityTaxRateMap
protected Map<String,Double> itemStateTaxRateMap
protected Map<String,Double> itemCountryTaxRateMap
protected Map<String,Double> fulfillmentGroupPostalCodeTaxRateMap
protected Map<String,Double> fulfillmentGroupCityTaxRateMap
protected Map<String,Double> fulfillmentGroupStateTaxRateMap
protected Map<String,Double> fulfillmentGroupCountryTaxRateMap
protected Double defaultItemTaxRate
protected Double defaultFulfillmentGroupTaxRate
protected boolean taxFees
| Constructor Detail |
|---|
public SimpleTaxModule()
| Method Detail |
|---|
public Order calculateTaxForOrder(Order order)
throws TaxException
calculateTaxForOrder in interface TaxModuleTaxExceptionpublic String getName()
getName in interface TaxModulepublic void setName(String name)
setName in interface TaxModule
public Double lookupPostalCodeRate(Map<String,Double> postalCodeTaxRateMap,
String postalCode)
postalCode -
public Double lookupCityRate(Map<String,Double> cityTaxRateMap,
String city)
cityTaxRateMap, - city
public Double lookupStateRate(Map<String,Double> stateTaxRateMap,
State state)
stateTaxRateMap, - state
public Double lookupCountryRate(Map<String,Double> countryTaxRateMap,
Country country)
countryTaxRateMap, - state
protected boolean isItemTaxable(FulfillmentGroupItem item)
protected boolean isFeeTaxable(FulfillmentGroupFee fee)
public Double determineItemTaxRate(Address address)
address -
public Double determineTaxRateForFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
fulfillmentGroup -
public Map<String,Double> getItemPostalCodeTaxRateMap()
public void setItemPostalCodeTaxRateMap(Map<String,Double> itemPostalCodeTaxRateMap)
public Map<String,Double> getItemCityTaxRateMap()
public void setItemCityTaxRateMap(Map<String,Double> itemCityTaxRateMap)
public Map<String,Double> getItemStateTaxRateMap()
public void setItemStateTaxRateMap(Map<String,Double> itemStateTaxRateMap)
public Map<String,Double> getItemCountryTaxRateMap()
public void setItemCountryTaxRateMap(Map<String,Double> itemCountryTaxRateMap)
public Map<String,Double> getFulfillmentGroupPostalCodeTaxRateMap()
public void setFulfillmentGroupPostalCodeTaxRateMap(Map<String,Double> fulfillmentGroupPostalCodeTaxRateMap)
public Map<String,Double> getFulfillmentGroupCityTaxRateMap()
public void setFulfillmentGroupCityTaxRateMap(Map<String,Double> fulfillmentGroupCityTaxRateMap)
public Map<String,Double> getFulfillmentGroupStateTaxRateMap()
public void setFulfillmentGroupStateTaxRateMap(Map<String,Double> fulfillmentGroupStateTaxRateMap)
public Map<String,Double> getFulfillmentGroupCountryTaxRateMap()
public void setFulfillmentGroupCountryTaxRateMap(Map<String,Double> fulfillmentGroupCountryTaxRateMap)
public Double getDefaultItemTaxRate()
public void setDefaultItemTaxRate(Double defaultItemTaxRate)
public Double getDefaultFulfillmentGroupTaxRate()
public void setDefaultFulfillmentGroupTaxRate(Double defaultFulfillmentGroupTaxRate)
@Deprecated public Double getFactor()
@Deprecated public void setFactor(Double factor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||