Class PublicFinancesLocalTaxesClient
- java.lang.Object
-
- com.github.dannil.scbjavaclient.client.AbstractClient
-
- com.github.dannil.scbjavaclient.client.publicfinances.localtaxes.PublicFinancesLocalTaxesClient
-
public class PublicFinancesLocalTaxesClient extends AbstractClient
Client which handles public finances local taxes data fetching.
- Since:
- 0.3.0
-
-
Constructor Summary
Constructors Constructor Description PublicFinancesLocalTaxesClient()Default constructor.PublicFinancesLocalTaxesClient(Locale locale)Overloaded constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseModel>getLocalTaxRates()Fetch all local tax rates data.List<ResponseModel>getLocalTaxRates(Collection<String> regions, Collection<Integer> years)Fetch all local tax rates data which match the input constraints.URLEndpointgetUrl()Returns the URL endpoint which this client represents.-
Methods inherited from class com.github.dannil.scbjavaclient.client.AbstractClient
doGetRequest, doPostRequest, getCommunicationProtocol, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, setCommunicationProtocol, setLocale, setLocalizationLocale
-
-
-
-
Constructor Detail
-
PublicFinancesLocalTaxesClient
public PublicFinancesLocalTaxesClient()
Default constructor.
-
PublicFinancesLocalTaxesClient
public PublicFinancesLocalTaxesClient(Locale locale)
Overloaded constructor.
- Parameters:
locale- theLocalefor this client
-
-
Method Detail
-
getLocalTaxRates
public List<ResponseModel> getLocalTaxRates()
Fetch all local tax rates data.
- Returns:
- the data wrapped in a list of
ResponseModelobjects - See Also:
getLocalTaxRates(Collection, Collection)
-
getLocalTaxRates
public List<ResponseModel> getLocalTaxRates(Collection<String> regions, Collection<Integer> years)
Fetch all local tax rates data which match the input constraints.
- Parameters:
regions- the regionsyears- the years- Returns:
- the data wrapped in a list of
ResponseModelobjects
-
getUrl
public URLEndpoint getUrl()
Description copied from class:AbstractClientReturns the URL endpoint which this client represents.
- Specified by:
getUrlin classAbstractClient- Returns:
- the URL endpoint for this client
-
-