/// <summary> /// Get the contents of creditnote notes and terms. /// </summary> /// <returns>NotesAndTerms object.</returns> public NotesAndTerms GetCreditnoteNotesAndTerms() { var url = baseAddress + "/creditnotes/notesandterms"; var response = ZohoHttpClient.get(url, getQueryParameters()); return(SettingsParser.getNotesAndTerms(response)); }
/// <summary> /// Get the details of invoice notes and terms. /// </summary> /// <returns>NotesAndTerms object.</returns> public NotesAndTerms GetInvoiceNotesAndTerms() { string url = baseAddress + "/invoices/notesandterms"; var response = ZohoHttpClient.get(url, getQueryParameters()); return(SettingsParser.getNotesAndTerms(response)); }
/// <summary> /// Update the notes and terms field for creditnotes. /// </summary> /// <param name="update_info">The update_info is the NotesAndTerms object which contains the updation information.</param> /// <returns>NotesAndTerms object.</returns> public NotesAndTerms UpdateCreditnoteNotesAndTerms(NotesAndTerms update_info) { var url = baseAddress + "/creditnotes/notesandterms"; var json = JsonConvert.SerializeObject(update_info); var jsonstring = new Dictionary <object, object>(); jsonstring.Add("JSONString", json); var response = ZohoHttpClient.put(url, getQueryParameters(jsonstring)); return(SettingsParser.getNotesAndTerms(response)); }