Methods
| Modifier and Type |
Method and Description |
Order |
calculateTaxForOrder(Order order) |
Double |
determineItemTaxRate(Address address)
Uses the passed in address to determine if the item is taxable.
|
Double |
determineTaxRateForFulfillmentGroup(FulfillmentGroup fulfillmentGroup)
Uses the passed in address to determine if the item is taxable.
|
Double |
getDefaultFulfillmentGroupTaxRate() |
Double |
getDefaultItemTaxRate() |
Double |
getFactor()
Deprecated.
|
Map<String,Double> |
getFulfillmentGroupCityTaxRateMap() |
Map<String,Double> |
getFulfillmentGroupCountryTaxRateMap() |
Map<String,Double> |
getFulfillmentGroupPostalCodeTaxRateMap() |
Map<String,Double> |
getFulfillmentGroupStateTaxRateMap() |
Map<String,Double> |
getItemCityTaxRateMap() |
Map<String,Double> |
getItemCountryTaxRateMap() |
Map<String,Double> |
getItemPostalCodeTaxRateMap() |
Map<String,Double> |
getItemStateTaxRateMap() |
String |
getName() |
protected boolean |
isFeeTaxable(FulfillmentGroupFee fee) |
protected boolean |
isItemTaxable(FulfillmentGroupItem item) |
Double |
lookupCityRate(Map<String,Double> cityTaxRateMap,
String city)
Changes the city to upper case before checking the
configuration.
|
Double |
lookupCountryRate(Map<String,Double> countryTaxRateMap,
Country country)
Returns the taxAmount for the passed in country or
null if no match is found.
|
Double |
lookupPostalCodeRate(Map<String,Double> postalCodeTaxRateMap,
String postalCode)
Returns the taxAmount for the passed in postal code or
null if no match is found.
|
Double |
lookupStateRate(Map<String,Double> stateTaxRateMap,
State state)
Returns the taxAmount for the passed in state or
null if no match is found.
|
void |
setDefaultFulfillmentGroupTaxRate(Double defaultFulfillmentGroupTaxRate) |
void |
setDefaultItemTaxRate(Double defaultItemTaxRate) |
void |
setFactor(Double factor)
Deprecated.
|
void |
setFulfillmentGroupCityTaxRateMap(Map<String,Double> fulfillmentGroupCityTaxRateMap) |
void |
setFulfillmentGroupCountryTaxRateMap(Map<String,Double> fulfillmentGroupCountryTaxRateMap) |
void |
setFulfillmentGroupPostalCodeTaxRateMap(Map<String,Double> fulfillmentGroupPostalCodeTaxRateMap) |
void |
setFulfillmentGroupStateTaxRateMap(Map<String,Double> fulfillmentGroupStateTaxRateMap) |
void |
setItemCityTaxRateMap(Map<String,Double> itemCityTaxRateMap) |
void |
setItemCountryTaxRateMap(Map<String,Double> itemCountryTaxRateMap) |
void |
setItemPostalCodeTaxRateMap(Map<String,Double> itemPostalCodeTaxRateMap) |
void |
setItemStateTaxRateMap(Map<String,Double> itemStateTaxRateMap) |
void |
setName(String name) |