/// <summary> /// Gets the tax authority. /// </summary> /// <param name="tax_authority_id">The tax_authority_id.</param> /// <returns>TaxAuthority.</returns> public TaxAuthority GetTaxAuthority(string tax_authority_id) { var url = baseAddress + "/taxauthorities/" + tax_authority_id; var response = ZohoHttpClient.get(url, getQueryParameters()); return(SettingsParser.getTaxAuthority(response)); }
/// <summary> /// Updates the tax authority. /// </summary> /// <param name="tax_authority_id">The tax_authority_id.</param> /// <param name="update_tax_authoriry_info">The update_tax_authoriry_info.</param> /// <returns>TaxAuthority.</returns> public TaxAuthority UpdateTaxAuthority(string tax_authority_id, TaxAuthority update_tax_authoriry_info) { var url = baseAddress + "/taxauthorities/" + tax_authority_id; var json = JsonConvert.SerializeObject(update_tax_authoriry_info); var jsonParams = new Dictionary <object, object>(); jsonParams.Add("JSONString", json); var response = ZohoHttpClient.put(url, getQueryParameters(jsonParams)); return(SettingsParser.getTaxAuthority(response)); }