public CountrySubdivisions GetCountrySubdivisions(CountrySubdivisionMerchantLocationRequestOptions 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(CountrySubdivisionMerchantLocationRequestOptions options) { string url; if (this.environment == Environments.Environment.PRODUCTION) { url = PRODUCTION_URL; } else { url = SANDBOX_URL; } url = URLUtil.AddQueryParameter(url, "Details", options.GetDetails(), false, null); url = URLUtil.AddQueryParameter(url, "Country", options.GetCountry(), false, null); return(url); }