public class Tax extends Object
| Constructor and Description |
|---|
Tax(String country,
Collection<String> regions,
float rate,
Boolean taxShip)
Creates a tax object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCountry()
Gets the destination country, or null.
|
float |
getRate()
Gets the tax rate.
|
Collection<String> |
getRegions()
Gets the regions.
|
Boolean |
getTaxShip()
Gets the taxShip, or null.
|
String |
toString() |
public Tax(String country, Collection<String> regions, float rate, Boolean taxShip)
country - destination country (ISO 3312 2-letter code), can be nullregions - A list of shipping regions within the destination country, can be null.rate - the tax percentage rate. For example, for 6% tax rate, rate should be set to 6.taxShip - A boolean indicating whether the shipping is taxed, can be null.public float getRate()
public String getCountry()
public Collection<String> getRegions()
public Boolean getTaxShip()
Copyright © 2012. All Rights Reserved.