예제 #1
0
        /// <summary>
        /// Deletes an existing contact person.
        /// </summary>
        /// <param name="contact_Person_id">The contact_ person_id is the identifier of the contact person.</param>
        /// <returns>System.String.<br></br>The success message is "The contact person has been deleted."</returns>
        public string DeleteContactPerson(string contact_Person_id)
        {
            string url      = baseAddress + "/contactpersons/" + contact_Person_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(ContactParser.getMessage(responce));
        }
예제 #2
0
        /// <summary>
        ///     Deletes the comment.
        /// </summary>
        /// <param name="project_id">The project_id is the identifier of the project.</param>
        /// <param name="comment_id">The comment_id is the identifier of the comment for the specified project.</param>
        /// <returns>System.String.<br></br>The success message is "The comment has been deleted."</returns>
        public string DeleteComment(string project_id, string comment_id)
        {
            var url      = baseAddress + "/" + project_id + "/comments/" + comment_id;
            var responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(ProjectParser.getMessage(responce));
        }
예제 #3
0
        /// <summary>
        ///     Deletes the specified vendor_credit_id.
        /// </summary>
        /// <param name="vendor_credit_id">The vendor_credit_id.</param>
        /// <returns>System.String.</returns>
        public string Delete(string vendor_credit_id)
        {
            var url      = baseAddress + "/" + vendor_credit_id;
            var response = ZohoHttpClient.delete(url, getQueryParameters());

            return(VendorCreditParser.getMessage(response));
        }
예제 #4
0
        /// <summary>
        ///     Deletes the logged time entry.
        /// </summary>
        /// <param name="time_entry_id">The time_entry_id is the identifier of the time entry.</param>
        /// <returns>System.String.<br></br>The success message is "The time entry has been deleted" </returns>
        public string DeleteTimeEntry(string time_entry_id)
        {
            var url      = baseAddress + "/timeentries/" + time_entry_id;
            var responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(ProjectParser.getMessage(responce));
        }
예제 #5
0
        /// <summary>
        /// Deletes the receipt attached to the expense.
        /// </summary>
        /// <param name="expense_id">The expense_id is the identifier of the expense.</param>
        /// <returns>System.String.<br></br>The success message is "The attached expense receipt has been deleted."</returns>
        public string DeleteReceipt(string expense_id)
        {
            string url      = baseAddress + "/" + expense_id + "/receipt";
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(ExpenseParser.getMessage(responce));
        }
예제 #6
0
        /// <summary>
        /// Deletes an attachment.
        /// </summary>
        /// <param name="purchaseorder_id">The purchaseorder_id.</param>
        /// <returns>System.String.</returns>
        public string DeleteAnAttachment(string purchaseorder_id)
        {
            string url      = baseAddress + "/" + purchaseorder_id + "/attachment";
            var    response = ZohoHttpClient.delete(url, getQueryParameters());

            return(PurchaseorderParser.getMessage(response));
        }
        /// <summary>
        /// Deletes the given account. Accounts associated in any transaction/products could not be deleted.
        /// </summary>
        /// <param name="account_id">The account_id is the identifier of the account.</param>
        /// <returns>System.String.<br></br>The success message is "The account has been deleted."</returns>
        public string Delete(string account_id)
        {
            string url      = baseAddress + "/" + account_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(ChartofaccountParser.getMessage(responce));
        }
        /// <summary>
        /// Delete an existing recurring expense.
        /// </summary>
        /// <param name="recurring_expense_id">The recurring_expense_id is the identifier of the recurrence expnse.</param>
        /// <returns>System.String.<br></br>The success message is "The recurring expense has been deleted." </returns>
        public string Delete(string recurring_expense_id)
        {
            string url      = baseAddress + "/" + recurring_expense_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(RecurringExpenseParser.getMessage(responce));
        }
예제 #9
0
        /// <summary>
        ///     Deletes the comment.
        /// </summary>
        /// <param name="salesorder_id">The salesorder_id.</param>
        /// <param name="comment_id">The comment_id.</param>
        /// <returns>System.String.</returns>
        public string DeleteComment(string salesorder_id, string comment_id)
        {
            var url      = baseAddress + "/" + salesorder_id + "/comments/" + comment_id;
            var response = ZohoHttpClient.delete(url, getQueryParameters());

            return(SalesorderParser.getMessage(response));
        }
예제 #10
0
        /// <summary>
        ///     Deletes an existing estimate.
        /// </summary>
        /// <param name="estimate_id">The estimate_id is the identifier of the Estimate.</param>
        /// <returns>System.String.<br></br>The success message is "The estimate has been deleted."</returns>
        public string Delete(string estimate_id)
        {
            var url      = baseAddress + "/" + estimate_id;
            var responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(EstimateParser.getMessage(responce));
        }
예제 #11
0
        /// <summary>
        /// Remove user from the project.
        /// </summary>
        /// <param name="project_id">The project_id is the identifier of the project.</param>
        /// <param name="user_id">The user_id is the identifier of the user who is associated with the specified project.</param>
        /// <returns>System.String.<br></br>The success message is "The staff has been removed"</returns>
        public string DeleteUser(string project_id, string user_id)
        {
            string url      = baseAddress + "/" + project_id + "/users/" + user_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(ProjectParser.getMessage(responce));
        }
예제 #12
0
        /// <summary>
        ///     Deletes a user associated to the organization.
        /// </summary>
        /// <param name="user_id">The user_id is the identifier of the user.</param>
        /// <returns>System.String.<br></br>The success message is "The user has been removed from your organization."</returns>
        public string Delete(string user_id)
        {
            var url      = baseAddress + "/" + user_id;
            var response = ZohoHttpClient.delete(url, getQueryParameters());

            return(UserParser.getMessage(response));
        }
예제 #13
0
        /// <summary>
        /// Delete an existing invoice. Invoices which have payment or credits note applied cannot be deleted.
        /// </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 invoice has been deleted."</returns>
        public string Delete(string invoice_id)
        {
            string url      = baseAddress + "/" + invoice_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(InvoiceParser.getMessage(responce));
        }
예제 #14
0
        /// <summary>
        ///     Deletes the logged time entries.
        /// </summary>
        /// <param name="parameters">
        ///     The parameters is the dictionary object which contains the following mandatory parameter in the key,value pair
        ///     format.<br></br>
        ///     <table>
        ///         <tr>
        ///             <td>time_entry_ids*</td><td>IDs of the time entries to be deleted.</td>
        ///         </tr>
        ///     </table>
        /// </param>
        /// <returns>System.String.<br></br>The success message is "The selected timesheet entries have been deleted"</returns>
        public string DeleteTimeEntries(Dictionary <object, object> parameters)
        {
            var url      = baseAddress + "/timeentries";
            var responce = ZohoHttpClient.delete(url, getQueryParameters(parameters));

            return(ProjectParser.getMessage(responce));
        }
        /// <summary>
        /// Deletes the base currency adjustment.
        /// </summary>
        /// <param name="base_currency_adjustment_id">The base_currency_adjustment_id is the identifier of the base currency adjustment which is going to be deleted.</param>
        /// <returns>System.String.<br></br>The success message is "The selected base currency adjustment has been deleted."</returns>
        public string Delete(string base_currency_adjustment_id)
        {
            string url      = baseAddress + "/" + base_currency_adjustment_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(BaseCurrencyAdjustmentParser.getMessage(responce));
        }
        /// <summary>
        /// Deletes the transaction.
        /// </summary>
        /// <param name="transaction_id">The transaction_id is the identifier of the specified transaction.</param>
        /// <returns>System.String.<br></br>The success message is "The transaction has been deleted."</returns>
        public string DeleteATransaction(string transaction_id)
        {
            string url      = getBaseAddress() + "/transactions/" + transaction_id;
            var    responce = ZohoHttpClient.delete(url, getQueryParameters());

            Console.WriteLine(responce.Content.ReadAsStringAsync().Result);
            return(ChartofaccountParser.getMessage(responce));
        }
        /// <summary>
        ///     Deletes the comment.
        /// </summary>
        /// <param name="purchaseorder_id">The purchaseorder_id.</param>
        /// <param name="comment_id">The comment_id.</param>
        /// <returns>System.String.</returns>
        public string DeleteComment(string purchaseorder_id, string comment_id)
        {
            var url      = baseAddress + "/" + purchaseorder_id + "/comments/" + comment_id;
            var response = ZohoHttpClient.delete(url, getQueryParameters());

            Console.WriteLine(response.Content.ReadAsStringAsync().Result);
            return(PurchaseorderParser.getMessage(response));
        }
예제 #18
0
        /// <summary>
        /// Deletes an estimate comment.
        /// </summary>
        /// <param name="estimate_id">The estimate_id is the identifier of the estimate.</param>
        /// <param name="comment_id">The comment_id is the identifier of the comment.</param>
        /// <returns>System.String.<br></br>The success message is "The comment has been deleted."</returns>
        public string DeleteComment(string estimate_id, string comment_id)
        {
            string        url         = baseAddress + "/" + estimate_id + "/comments/" + comment_id;;
            var           responce    = ZohoHttpClient.delete(url, getQueryParameters());
            StringBuilder queryString = new StringBuilder();

            return(EstimateParser.getMessage(responce));
        }
예제 #19
0
        /// <summary>
        ///     Deltes the applied credit.
        /// </summary>
        /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param>
        /// <param name="creditnote_id">
        ///     The creditnote_id is the identifier of the creditnote which applied for the specified
        ///     invoice.
        /// </param>
        /// <returns>System.String<br></br> The success message is "Credits applied to an invoice have been deleted." </returns>
        public string DelteAppliedCredit(string invoice_id, string creditnote_id)
        {
            var url = baseAddress + "/" + invoice_id + "/creditsapplied/" + creditnote_id;

            ;
            var responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(InvoiceParser.getMessage(responce));
        }
 /// <summary>
 /// Deletes the statement that was previously imported.
 /// </summary>
 /// <param name="account_id">The account_id is the acount identifier for which requiring the previously imported statement.</param>
 /// <param name="statement_id">The statement_id is the identifier of the statement.</param>
 /// <returns>System.String.</returns>
 public string DeleteLastImportedStatement(string account_id, string statement_id)
 {
     string url = baseAddress + "/" + account_id + "/statement/"+statement_id;
     var responce = ZohoHttpClient.delete(url, getQueryParameters());
     return BankAccountParser.getMessage(responce);
 }