Пример #1
0
        //------------------------------------------------------------------------------

        //-------------------------Creditnote Settings----------------------------------

        /// <summary>
        ///     List of settings applied for creditnotes.
        /// </summary>
        /// <returns>CreditnoteSettings object.</returns>
        public CreditNoteSettings GetCreditnoteSettings()
        {
            var url      = baseAddress + "/creditnotes";
            var response = ZohoHttpClient.get(url, getQueryParameters());

            return(CreditnoteSettingsParser.getCreditNoteSettings(response));
        }
Пример #2
0
        /// <summary>
        ///     Update the settings associated to creditnotes.
        /// </summary>
        /// <param name="update_info">
        ///     The update_info is the CreditnoteSettings object which is having the settings updation
        ///     information.
        /// </param>
        /// <returns>CreditnoteSettings object.</returns>
        public CreditNoteSettings UpdateCreditnoteSettings(CreditNoteSettings update_info)
        {
            var url        = baseAddress + "/creditnotes";
            var json       = JsonConvert.SerializeObject(update_info);
            var jsonstring = new Dictionary <object, object>();

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

            return(CreditnoteSettingsParser.getCreditNoteSettings(response));
        }