public CountrySubdivisions GetCountrySubdivisions(CountrySubdivisionAtmLocationRequestOptions options) { string response = ""; Dictionary <string, string> responseMap = doRequest(GetURL(options), "GET", null); responseMap.TryGetValue(MESSAGE, out response); return(Serializer <CountrySubdivisions> .Deserialize(response)); }
private string GetURL(CountrySubdivisionAtmLocationRequestOptions options) { string url; if (this.environment == Environments.Environment.PRODUCTION) { url = PRODUCTION_URL; } else { url = SANDBOX_URL; } return(URLUtil.AddQueryParameter(url, "Country", options.GetCountry(), false, null)); }