public final class SDKTaxRateLookup extends java.lang.Object implements TaxRateLookup
| Constructor and Description |
|---|
SDKTaxRateLookup(TaxRateLookupConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
TaxResponse |
lookupByAddress(TaxRateAddress address,
Preferences preferences)
Performs lookup by address
|
TaxResponse |
lookupByLocation(Location location,
Preferences preferences)
Performs lookup by location i.e.
|
public SDKTaxRateLookup(TaxRateLookupConfiguration configuration)
public TaxResponse lookupByAddress(TaxRateAddress address, Preferences preferences)
TaxRateLookuplookupByAddress in interface TaxRateLookupaddress - address to use for lookuppreferences - Preferences to useTaxResponsepublic TaxResponse lookupByLocation(Location location, Preferences preferences) throws TaxRateLookupException
TaxRateLookuplookupByLocation in interface TaxRateLookuplocation - location o use for lookuppreferences - Preferences to useTaxResponseTaxRateLookupException - exception thrown when it fails looking uppublic void close()
close in interface java.lang.AutoCloseablepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object