Ejemplo n.º 1
0
        /// <summary>
        ///     Resume a stopped 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 activated."</returns>
        public string Resume(string recurring_expense_id)
        {
            var url      = baseAddress + "/" + recurring_expense_id + "/status/resume";
            var responce = ZohoHttpClient.post(url, getQueryParameters());

            return(RecurringExpenseParser.getMessage(responce));
        }
Ejemplo n.º 2
0
        /// <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)
        {
            var url      = baseAddress + "/" + recurring_expense_id;
            var responce = ZohoHttpClient.delete(url, getQueryParameters());

            return(RecurringExpenseParser.getMessage(responce));
        }