//--------------------------------------------------------------------------------------------------------------- /// <summary> /// Gets the attachment. /// </summary> /// <param name="salesorder_id">The salesorder_id.</param> /// <param name="parameters">The parameters.</param> /// <returns>System.String.</returns> public string GetAttachment(string salesorder_id, Dictionary <object, object> parameters) { string url = baseAddress + "/" + salesorder_id + "/attachment"; ZohoHttpClient.getFile(url, getQueryParameters(parameters)); return("The attchment is stored at home directory."); }
//--------------------------------------------------------------------------------------------------- /// <summary> /// Returns the file attached to the bill. /// </summary> /// <param name="bill_id">The bill_id is the identifier of the bill.</param> /// <param name="parameters">The parameters is the dictionary object which is optionally having the boolean value of preview as key,value pair.</param> /// <returns>System.String.<br></br>The success message is "the selected expense receipt is saved at home directory." </returns> public string GetAttachment(string bill_id, Dictionary <object, object> parameters) { string url = baseAddress + "/" + bill_id + "/attachment"; ZohoHttpClient.getFile(url, getQueryParameters(parameters)); return("the selected expense receipt is saved in current directory"); }
//--------------------------------------------------------------------------------------------------- /// <summary> /// Returns the receipt attached to the expense. /// </summary> /// <param name="expense_id">The expense_id is the identifier of the expense.</param> /// <param name="parameters">The parameters is the dictionary object which contains the preview(bool value) parameter as a key,value pair.</param> /// <returns>System.String.<br></br>The success message is "the selected expense receipt is saved at home directory"</returns> public string GetReceipt(string expense_id, Dictionary <object, object> parameters) { string url = baseAddress + "/" + expense_id + "/receipt"; ZohoHttpClient.getFile(url, getQueryParameters(parameters)); return("the selected expense receipt is saved at home directory"); }
//-------------------------------------------------------------------------------------------- /// <summary> /// Returns the file attached to the invoice. /// </summary> /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param> /// <returns>System.String<br></br> The success message is "the selected expense receipt is saved at home directory" </returns> public string GetAttachment(string invoice_id) { string url = baseAddress + "/" + invoice_id + "/attachment"; ZohoHttpClient.getFile(url, getQueryParameters()); return("the selected expense receipt is saved at home directory"); }
/// <summary> /// Export invoices as pdf and print them. Maximum of 25 invoices can be printed. /// </summary> /// <param name="parameters">The parameters is the dictionary object which conatins the following mandatory pameter in the key value pair format.<br></br> /// <table><tr><td>invoice_ids*</td><td>Array of invoice ids for which the reminder has to be sent.</td></tr></table> /// </param> /// <returns>System.String<br></br> The success message is "the selected invoices are printed "</returns> public string BulkPrint(Dictionary <object, object> parameters) { string url = baseAddress + "/print"; ZohoHttpClient.getFile(url, getQueryParameters(parameters)); return("the selected invoices are printed "); }
/// <summary> /// Exports the bulk estimates into pdf.<br></br>Maximum of 25 estimates can be exported in a single pdf. /// </summary> /// <param name="parameters">The parameters is the dictionary object which contains the key,value pair parameters.<br></br>The parameters are<br></br> /// <table><tr>estimate_ids*<td></td><td>Comma separated estimate ids which are to be emailed.</td></tr></table> /// </param> /// <returns>System.String.<br></br>The success message is "the selected estimates are exported "</returns> public string BulkExport(Dictionary <object, object> parameters) { string url = baseAddress + "/pdf"; ZohoHttpClient.getFile(url, getQueryParameters(parameters)); return("the selected estimates are exported "); }
/// <summary> /// Bulks the print salesorders. /// </summary> /// <param name="salesorder_ids">The salesorder_ids.</param> /// <returns>System.String.</returns> public string BulkPrintSalesorders(List <string> salesorder_ids) { string url = baseAddress + "/print"; string salesorderIds = null; foreach (var salesorderId in salesorder_ids) { salesorderIds = salesorderIds + salesorderId; } var parameters = new Dictionary <object, object>(); parameters.Add("salesorder_ids", salesorderIds); ZohoHttpClient.getFile(url, getQueryParameters(parameters)); return("The Salesorders Printed Successfully."); }