Exemplo n.º 1
0
        //----------------------------------Invoice Settings--------------------------

        /// <summary>
        ///     Get the details of invoice settings.
        /// </summary>
        /// <returns>InvoiceSettings object.</returns>
        public InvoiceSettings GetInvoiceSettings()
        {
            var url             = baseAddress + "/invoices";
            var queryParameters = new Dictionary <object, object>();
            var response        = ZohoHttpClient.get(url, getQueryParameters());

            return(InvoiceSettingsParser.getInvoiceSettings(response));
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Update the settings information for invoices.
        /// </summary>
        /// <param name="update_info">
        ///     The update_info is the InvoiceSettings object which is having the settings updation
        ///     information.
        /// </param>
        /// <returns>InvoiceSettings object.</returns>
        public InvoiceSettings UpdateInvoiceSettings(InvoiceSettings update_info)
        {
            var url        = baseAddress + "/invoices";
            var json       = JsonConvert.SerializeObject(update_info);
            var jsonstring = new Dictionary <object, object>();

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

            return(InvoiceSettingsParser.getInvoiceSettings(response));
        }