/// <summary>
        /// Gets details of a specified credit note.
        /// </summary>
        /// <param name="creitnote_id">The creitnote_id is the identifier of the creditnote.</param>
        /// <param name="parameters">The parameters is the dictionary object with the two optional key,value pair parameters.<br></br>Those parameters are <br></br>
        /// <table>
        /// <tr><td>print</td><td>Export credit note pdf with default print option.<br></br>Allowed Values: <i>true, false, on</i> and <i>off</i></td></tr>
        /// <tr><td>accept</td><td>You can get credit note details as json/pdf/html. Default format is html.<br></br>Allowed Values: <i>json, xml, csv, xls, pdf</i> and <i>html</i></td></tr>
        /// </table>
        /// </param>
        /// <returns>Creditnote object.</returns>
        public CreditNote Get(string creitnote_id, Dictionary <object, object> parameters)
        {
            string url      = baseAddress + "/" + creitnote_id;
            var    responce = ZohoHttpClient.get(url, getQueryParameters(parameters));

            return(CreditNoteParser.getCreditnote(responce));
        }
        /// <summary>
        /// Updates an existing credit note.
        /// </summary>
        /// <param name="creditnote_id">The creditnote_id is the identifier of the creditnote.</param>
        /// <param name="update_info">The update_info is the Creditnote object which is having the updation details.</param>
        /// <param name="parameters">The parameters is the dictionary object which is having the optional parameters.<br></br>Those are<br></br>
        /// <table>
        /// <tr><td>ignore_auto_number_generation</td><td>Ignore auto number generation for this credit note only. On enabling this option credit note number is mandatory.</td></tr>
        /// </table>
        /// </param>
        /// <returns>Creditnote object.</returns>
        public CreditNote Update(string creditnote_id, CreditNote update_info, Dictionary <object, object> parameters)
        {
            string url  = baseAddress + "/" + creditnote_id;
            var    json = JsonConvert.SerializeObject(update_info);

            parameters.Add("JSONString", json);
            var responce = ZohoHttpClient.put(url, getQueryParameters(parameters));

            return(CreditNoteParser.getCreditnote(responce));
        }
        /// <summary>
        ///     Creates a credit note for a customer..
        /// </summary>
        /// <param name="new_creditnote_info">
        ///     The new_creditnote_info is the Creditnote object which contains the information to
        ///     create a new creditnote with customer_id as mandatory parameter.
        /// </param>
        /// <param name="parameters">
        ///     The parameters is the dictionary object which is having the optional parameters to the new creditnote.<br></br>
        ///     Those are listed below<br></br>
        ///     <table>
        ///         <tr>
        ///             <td>invoice_id</td><td>Create a credit note and apply it to an invoice.</td>
        ///         </tr>
        ///         <tr>
        ///             <td>ignore_auto_number_generation</td>
        ///             <td>
        ///                 Ignore auto number generation for this credit note only. On enabling this option credit note number is
        ///                 mandatory.
        ///             </td>
        ///         </tr>
        ///     </table>
        /// </param>
        /// <returns>Creditnote object.</returns>
        public CreditNote Create(CreditNote new_creditnote_info, Dictionary <object, object> parameters)
        {
            var url  = baseAddress;
            var json = JsonConvert.SerializeObject(new_creditnote_info);

            parameters.Add("JSONString", json);
            var responce = ZohoHttpClient.post(url, getQueryParameters(parameters));

            return(CreditNoteParser.getCreditnote(responce));
        }