예제 #1
0
        /// <summary>
        ///     Get history and comments of a recurring expense.
        /// </summary>
        /// <param name="recurring_expense_id">The recurring_expense_id is the identifier of the recurrence expnse.</param>
        /// <returns>List of Comment objects.</returns>
        public CommentList GetComments(string recurring_expense_id)
        {
            var url      = baseAddress + "/" + recurring_expense_id + "/comments";
            var responce = ZohoHttpClient.get(url, getQueryParameters());

            return(CreditNoteParser.getCommentList(responce));
        }
//-----------------------------------------------------------------------------------------------
        /// <summary>
        /// Get history and comments of a credit note.
        /// </summary>
        /// <param name="creditnote_id">The creditnote_id is the identifier of the crditnote.</param>
        /// <returns>List of Comment objects.</returns>
        public CommentList GetcreditnoteComments(string creditnote_id)
        {
            string url      = baseAddress + "/" + creditnote_id + "/comments";
            var    responce = ZohoHttpClient.get(url, getQueryParameters());

            return(CreditNoteParser.getCommentList(responce));
        }