コード例 #1
0
        /// <summary>
        ///     Resumes a stopped recurring invoice.
        /// </summary>
        /// <param name="recurring_invoice_id">The recurring_invoice_id is the identifier of the recuuring invoice.</param>
        /// <returns>System.String.<br></br>The success message is "The recurring invoice has been activated."</returns>
        public string Resume(string recurring_invoice_id)
        {
            var url      = baseAddress + "/" + recurring_invoice_id + "/status/resume";
            var responce = ZohoHttpClient.post(url, getQueryParameters());

            return(RecurringInvoiceParser.getMessage(responce));
        }
コード例 #2
0
        /// <summary>
        ///     Update the pdf template associated with the recurring invoice.
        /// </summary>
        /// <param name="recurring_invoice_id">The recurring_invoice_id is the identifier of the recuuring invoice.</param>
        /// <param name="template_id">The template_id is the identifier of the template.</param>
        /// <returns>System.String.<br></br>The success message is "Recurring invoice information has been updated."</returns>
        public string UpdateTemplate(string recurring_invoice_id, string template_id)
        {
            var url      = baseAddress + "/" + recurring_invoice_id + "/templates/" + template_id;
            var responce = ZohoHttpClient.put(url, getQueryParameters());

            return(RecurringInvoiceParser.getMessage(responce));
        }
コード例 #3
0
        /// <summary>
        ///     Deletes an existing recurring invoice.
        /// </summary>
        /// <param name="recurring_invoice_id">The recurring_invoice_id is the identifier of the recuuring invoice.</param>
        /// <returns>System.String.<br></br>The success message is "The recurring invoice has been deleted."</returns>
        public string Delete(string recurring_invoice_id)
        {
            var url      = baseAddress + "/" + recurring_invoice_id;
            var responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(RecurringInvoiceParser.getMessage(responce));
        }