Пример #1
0
        /// <summary>
        ///     Gets the tax exemption.
        /// </summary>
        /// <param name="tax_exemption_id">The tax_exemption_id.</param>
        /// <returns>TaxExemption.</returns>
        public TaxExemption GetTaxExemption(string tax_exemption_id)
        {
            var url      = baseAddress + "/taxexemption/" + tax_exemption_id;
            var response = ZohoHttpClient.get(url, getQueryParameters());

            return(SettingsParser.getTaxExemption(response));
        }
Пример #2
0
        /// <summary>
        ///     Updates the tax exemption.
        /// </summary>
        /// <param name="tax_exemption_id">The tax_exemption_id.</param>
        /// <param name="update_info">The update_info.</param>
        /// <returns>TaxExemption.</returns>
        public TaxExemption UpdateTaxExemption(string tax_exemption_id, TaxExemption update_info)
        {
            var url        = baseAddress + "/taxexemptions/" + tax_exemption_id;
            var json       = JsonConvert.SerializeObject(update_info);
            var jsonParams = new Dictionary <object, object>();

            jsonParams.Add("JSONString", json);
            var response = ZohoHttpClient.put(url, getQueryParameters(jsonParams));

            return(SettingsParser.getTaxExemption(response));
        }