/// <summary> /// Gets the deatails of thr specified estimate. /// </summary> /// <param name="estimate_id">The estimate_id is the identifier of the estimate.</param> /// <param name="parameters">The parameters is the dictionary object which contains the parameters in the key,value pairs.<br></br>The possible parameters are listed below<br></br> /// <table> /// <tr><td>print</td><td>Print the exported pdf.</td></tr> /// <tr><td>accept</td><td>Get the details of a particular estimate in formats such as json/ pdf/ html. Default format is json.<br></br>Allowed Values: <i>json, pdf</i> and <i>html</i></td></tr> /// </table> /// </param> /// <returns>Estimate object.</returns> public Estimate Get(string estimate_id, Dictionary <object, object> parameters) { string url = baseAddress + "/" + estimate_id; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(EstimateParser.getEstimate(responce)); }
/// <summary> /// Gets refund of a particular credit note. /// </summary> /// <param name="creditnote_id">The creditnote_id is the identifier of the crditnote.</param> /// <param name="creditnote_refund_id">The creditnote_refund_id is the identifier of the refund.</param> /// <returns>Creditnote.</returns> public CreditNote GetCreditnoteRefund(string creditnote_id, string creditnote_refund_id) { var url = baseAddress + "/" + creditnote_id + "/refunds" + creditnote_refund_id; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(CreditNoteParser.getCreditnoteRefund(responce)); }
/// <summary> /// List all chart of accounts along with pagination. /// </summary> /// <param name="parameters">The parameters is the dictionary object wich is having the filters in the form of key,value pairs to refine the List.<br></br>The possible filters are listed below<br></br> /// <table> /// <tr><td>showbalance</td><td>Boolean to get current balance of accounts.</td></tr> /// <tr><td>filter_by</td><td>Filter accounts based on its account type and status.<br></br>Allowed Values: <i>AccountType.All, AccountType.Active, AccountType.Inactive, AccountType.Asset, AccountType.Liability, AccountType.Equity, AccountType.Income</i> and <i>AccountType.Expense</i></td></tr> /// <tr><td>sort_column</td><td>Sort accounts<br></br>Allowed Values: <i>account_name</i> and <i>account_type</i></td></tr> /// </table> /// </param> /// <returns>ChartofaccountList object.</returns> public ChartOfAccountList GetChartOfAcounts(Dictionary <object, object> parameters) { string url = getBaseAddress(); var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(ChartofaccountParser.getChartOfAccountList(responce)); }
/// <summary> /// Gets the content of the email for the creditnote. /// </summary> /// <param name="creditnote_id">The creditnote_id is the identifier of the contact.</param> /// <param name="parameters"> /// The parameters is the dictionary object which is having the optional parameter /// email_template_id as key,value pair. /// </param> /// <returns>Email object.</returns> public Email GetEmailContent(string creditnote_id, Dictionary <object, object> parameters) { var url = baseAddress + "/" + creditnote_id + "/email"; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(ContactParser.getEmailContent(responce)); }
//--------------------------------------------------------------------------------------------- /// <summary> /// List invoices to which the credit note is applied. /// </summary> /// <param name="creditnote_id">The creditnote_id is the identifier of the creditnote.</param> /// <returns>List of CreditedInvoice object.</returns> public CreditedInvoiceList GetInvoicesCredited(string creditnote_id) { var url = baseAddress + "/" + creditnote_id + "/invoices"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(CreditNoteParser.getCreditedInvoiceList(responce)); }
/// <summary> /// Fetch all the rules created for a specified bank or credit card account. /// </summary> /// <param name="parameters">The parameters is the query parameters which is having account_id as a mandatory parameter.</param> /// <returns>RuleList object.</returns> public RuleList GetRules(Dictionary <object, object> parameters) { var url = baseAddress; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(BankRuleParser.getRuleList(responce)); }
/// <summary> /// Gets details of a specified credit note. /// </summary> /// <param name="creitnote_id">The creitnote_id is the identifier of the creditnote.</param> /// <param name="parameters"> /// The parameters is the dictionary object with the two optional key,value pair parameters.<br></br>Those parameters /// are <br></br> /// <table> /// <tr> /// <td>print</td> /// <td> /// Export credit note pdf with default print option.<br></br>Allowed Values: <i>true, false, on</i> and /// <i>off</i> /// </td> /// </tr> /// <tr> /// <td>accept</td> /// <td> /// You can get credit note details as json/pdf/html. Default format is html.<br></br>Allowed Values: /// <i>json, xml, csv, xls, pdf</i> and <i>html</i> /// </td> /// </tr> /// </table> /// </param> /// <returns>Creditnote object.</returns> public CreditNote Get(string creitnote_id, Dictionary <object, object> parameters) { var url = baseAddress + "/" + creitnote_id; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(CreditNoteParser.getCreditnote(responce)); }
/// <summary> /// List all refunds of an existing credit note. /// </summary> /// <param name="creditnote_id">The creditnote_id is the identifier of the crditnote.</param> /// <returns>CreditnoteRefundList object.</returns> public CreditNoteRefundList GetRefundsOfCrreditnote(string creditnote_id) { string url = baseAddress + "/" + creditnote_id + "/refunds"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(CreditNoteParser.getCreditnoteRefundList(responce)); }
/// <summary> /// List credit notes with pagination. /// </summary> /// <param name="parameters">The parameters is the dictionary object which is having the filters to refine the list in the form of key,value pairs.<br></br>The possible filters are described in the following list<br></br> /// <table> /// <tr><td>creditnote_number</td><td>Search credit notes by credit note number.<br></br>Variants: <i>creditnote_number_startswith</i> and <i>creditnote_number_contains</i></td></tr> /// <tr><td>date</td><td>Search credit notes by credit note date.<br></br>Variants: <i>date_start, date_end, date_before</i> and <i>date_after</i></td></tr> /// <tr><td>status</td><td>Search credit notes by credit note status. Allowed statuses are draft,open,closed and void.<br></br>Allowed Values: <i>open, closed</i> and <i>void</i></td></tr> /// <tr><td>total</td><td>Search credit notes by credit note total amount.<br></br>Variants: <i>total_less_than, total_less_equals, total_greater_than</i> and <i>total_greater_equals</i></td></tr> /// <tr><td>reference_number</td><td>Search credit notes by credit note reference number.<br></br>Variants: reference_number_startswith and reference_number_contains</td></tr> /// <tr><td>customer_name</td><td>Search credit notes by customer name.<br></br>Variants: <i>customer_name_startswith</i> and <i>customer_name_contains</i></td></tr> /// <tr><td>item_name</td><td>Search credit notes by item name.<br></br>Variants: <i>item_name_startswith</i> and <i>item_name_contains</i></td></tr> /// <tr><td>item_description</td><td>Search credit notes by credit note item description.<br></br>Variants: <i>item_description_startswith</i> and <i>item_description_contains</i></td></tr> /// <tr><td>customer_id</td><td>Search credit notes by customer id.</td></tr> /// <tr><td>line_item_id</td><td>Search credit notes by credit note line item id.</td></tr> /// <tr><td>item_id</td><td>Search credit notes by item id.</td></tr> /// <tr><td>tax_id</td><td>Search credit notes by tax id.</td></tr> /// <tr><td>filter_by</td><td>Filter credit notes by statuses.<br></br>Allowed Values: <i>Status.All, Status.Open, Status.Draft, Status.Closed</i> and <i>Status.Void</i></td></tr> /// <tr><td>search_text</td>Search credit notes by credit note number or customer name or credit note reference number.<td></td></tr> /// <tr><td>sort_column</td><td>Sort credit notes by following columns customer_name, creditnote_number, balance, total, date and created_time.<br></br>Allowed Values: <i>customer_name, creditnote_number, balance, total, date</i> and <i>created_time</i></td></tr> /// </table> /// </param> /// <returns>CreditnoteList object.</returns> public CreditNoteList GetCreditnotes(Dictionary <object, object> parameters) { string url = baseAddress; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(CreditNoteParser.getCreditnoteList(responce)); }
/// <summary> /// List all invoices with pagination. /// </summary> /// <param name="parameters">The parameters is the Dictionary object which contains the filters in the form of key,value pairs to refine the list.<br></br>The possible filters are listed below<br></br> /// <table> /// <tr><td>invoice_number</td><td>Search invoices by invoice number.<br></br>Variants: <i>invoice_number_startswith</i> and <i>invoice_number_contains</i></td></tr> /// <tr><td>item_name</td><td>Search invoices by item name.<br></br>Variants: <i>item_name_startswith</i> and <i>item_name_contains</i></td></tr> /// <tr><td>item_id</td><td>Search invoices by item id.</td></tr> /// <tr><td>item_description</td><td>Search invoices by item description.<br></br>Variants: <i>item_description_startswith</i> and <i>item_description_contains</i></td></tr> /// <tr><td>reference_number</td><td>Search invoices by invoice reference number (i.e., P.O.#).<br></br>Variants: <i>reference_number_startswith</i> and <i>reference_number_contains</i></td></tr> /// <tr><td>customer_name</td><td>Search invoices by customer name.<br></br>Variants: <i>customer_name_startswith</i> and <i>customer_name_contains</i></td></tr> /// <tr><td>recurring_invoice_id</td><td>Search invoices by recurring profile id.</td></tr> /// <tr><td>email</td><td>Search invoices by customer contact persons email.</td></tr> /// <tr><td>total</td><td>Search invoices by invoice total.<br></br>Variants: <i>total_less_than, total_less_equals, total_greater_than</i> and <i>total_greater_equals</i></td></tr> /// <tr><td>balance</td><td>Search invoices by invoice total.<br></br>Variants: <i>balance_less_than, balance_less_equals, balance_greater_than</i> and <i>balance_greater_equals</i></td></tr> /// <tr><td>date</td><td>Search invoices by invoice date.<br></br>Variants: <i>date_start, date_end, date_before</i> and <i>date_after</i></td></tr> /// <tr><td>due_date</td><td>Search invoices by due date.<br></br>Variants: <i>due_date_start, due_date_end, due_date_before</i> and <i>due_date_after</i></td></tr> /// <tr><td>status</td><td>Search invoices by invoice status.<br></br>Allowed Values: <i>sent, draft, overdue, paid, void, unpaid, partiallypaid</i> and <i>viewed</i></td></tr> /// <tr><td>customer_id</td><td>Search invoices by customer id.</td></tr> /// <tr><td>custom_field</td><td>Search invoices by custom fields.<br></br>Variants: <i>custom_field_startswith</i> and <i>custom_field_contains</i></td></tr> /// <tr><td>filter_by</td><td>Filter invoices by any status or payment expected date.<br></br>Allowed Values: <i>Status.All, Status.Sent, Status.Draft, Status.OverDue, Status.Paid, Status.Void, Status.Unpaid, Status.PartiallyPaid, Status.Viewed</i> and <i>Date.PaymentExpectedDate</i></td></tr> /// <tr><td>search_text</td><td>Search invoices by invoice number or purchase order or customer name.</td></tr> /// <tr><td>sort_column</td><td>Sort invoices.<br></br>Allowed Values: <i>customer_name, invoice_number, date, due_date, total, balance</i> and <i>created_time</i></td></tr> /// </table> /// </param> /// <returns>InvoicesList object.</returns> public InvoicesList GetInvoices(Dictionary <object, object> parameters) { string url = baseAddress; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(InvoiceParser.getInvoiceList(responce)); }
/// <summary> /// Get the details of an invoice. /// </summary> /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param> /// <param name="parameters">The parameters is the dictionary object which contains the following optional parameters in the key,value pair forms.<br></br> /// <table> /// <tr><td>print</td><td>Print the exported pdf.</td></tr> /// <tr><td>accept</td><td>Get the details of a particular invoice in formats such as json/ pdf/ html. Default format is json.<br></br>Allowed Values: <i>json, pdf</i> and <i>html</i></td></tr> /// </table> /// </param> /// <returns>Invoice object.</returns> public Invoice Get(string invoice_id, Dictionary <object, object> parameters) { string url = baseAddress + "/" + invoice_id; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(InvoiceParser.getInvoice(responce)); }
/// <summary> /// Get the list of credits applied for an invoice. /// </summary> /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param> /// <returns>List of Creditnote objects.</returns> public CreditNoteList GetCreditsApplied(string invoice_id) { string url = baseAddress + "/" + invoice_id + "/creditsapplied"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(InvoiceParser.getCredits(responce)); }
//------------------------------------------------------------------------------------------------------- /// <summary> /// Get the list of payments made for an invoice. /// </summary> /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param> /// <returns>List of InvoicePayment objects.</returns> public PaymentList GetPayments(string invoice_id) { string url = baseAddress + "/" + invoice_id + "/payments"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(InvoiceParser.getPaymentsList(responce)); }
/// <summary> /// Gets the mail content of the payment reminder. /// </summary> /// <param name="invoice_id">The invoice_id is the identifier of the invoice.</param> /// <returns>Email object.</returns> public Email GetPaymentReminder(string invoice_id) { string url = baseAddress + "/" + invoice_id + "/paymentreminder"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(ContactParser.getEmailContent(responce)); }
/// <summary> /// Gets the journal list. /// </summary> /// <param name="parameters"> /// The parameters is the Dictionary object which contains the filters in the form of key,value pairs.<br></br>The /// possible filters are listed below<br></br> /// <table> /// <tr> /// <td>entry_number</td> /// <td> /// Search journals by journal entry number.<br></br>Variants: <i>entry_number_startswith</i> and /// <i>entry_number_contains</i> /// </td> /// </tr> /// <tr> /// <td>reference_number</td> /// <td> /// Search journals by journal reference number.<br></br>Variants: <i>reference_number_startswith</i> and /// <i>reference_number_contains</i> /// </td> /// </tr> /// <tr> /// <td>date</td> /// <td> /// Search journals by journal date.<br></br>Variants: <i>date_start, date_end, date_before</i> and /// <i>date_after</i> /// </td> /// </tr> /// <tr> /// <td>notes</td> /// <td> /// Search journals by journal notes.<br></br>Variants: <i>notes_startswith</i> and <i>notes_contains</i> /// </td> /// </tr> /// <tr> /// <td>total</td> /// <td> /// Search journals by journal total.<br></br>Variants: /// <i>total_less_than, total_less_equals, total_greater_than</i> and <i>total_greater_equals</i> /// </td> /// </tr> /// <tr> /// <td>filter_by</td> /// <td> /// Filter journals by journal date.<br></br>Allowed Values: /// <i> /// JournalDate.All, JournalDate.Today, JournalDate.ThisWeek, JournalDate.ThisMonth, /// JournalDate.ThisQuarter /// </i> /// and <i>JournalDate.ThisYear</i> /// </td> /// </tr> /// <tr> /// <td>sort_column</td> /// <td> /// Sort journal list.<br></br>Allowed Values: <i>journal_date, entry_number, reference_number</i> and /// <i>total</i> /// </td> /// </tr> /// </table> /// </param> /// <returns>JournalsList object.</returns> public JournalList GetJournals(Dictionary <object, object> parameters) { var url = baseAddress; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(JournalParser.getJournalList(responce)); }
/// <summary> /// List all contacts with pagination. /// </summary> /// <param name="parameters"> /// The parameters is the dictionary object which is having the filters to refine the list in the form of key,value /// pairs.<br></br>The possible filter keys and variants are listed below<br></br> /// <table> /// <tr> /// <td>contact_name</td> /// <td> /// Search contacts by contact name.<br></br>Variants: <i>contact_name_startswith</i> and /// <i>contact_name_contains</i> /// </td> /// </tr> /// <tr> /// <td>company_name</td> /// <td> /// Search contacts by company name.<br></br>Variants: <i>company_name_startswith</i> and /// <i>company_name_contains</i> /// </td> /// </tr> /// <tr> /// <td>first_name</td> /// <td> /// Search contacts by first name of the contact person.<br></br>Variants: <i>first_name_startswith</i> and /// <i>first_name_contains</i> /// </td> /// </tr> /// <tr> /// <td>last_name</td> /// <td> /// Search contacts by last name of the contact person.<br></br>Variants: <i>last_name_startswith</i> and /// <i>last_name_contains</i> /// </td> /// </tr> /// <tr> /// <td>address</td> /// <td> /// Search contacts by any of the address fields.<br></br>Variants: <i>address_startswith</i> and /// <i>address_contains</i> /// </td> /// </tr> /// <tr> /// <td>email</td> /// <td> /// Search contacts by email of the contact person.<br></br>Variants: <i>email_startswith</i> and /// <i>email_contains</i> /// </td> /// </tr> /// <tr> /// <td>phone</td> /// <td> /// Search contacts by phone number of the contact person.<br></br>Variants: <i>phone_startswith</i> and /// <i>phone_contains</i> /// </td> /// </tr> /// <tr> /// <td>filter_by</td> /// <td> /// Filter contacts by status.<br></br>Allowed Values: /// <i>Status.All, Status.Active, Status.Inactive, Status.Duplicate, Status.Customers, Status.Vendors</i> /// and <i>Status.Crm</i> /// </td> /// </tr> /// <tr> /// <td>search_text</td><td>Search contacts by contact name or notes.</td> /// </tr> /// <tr> /// <td>sort_column</td> /// <td> /// Sort contacts.<br></br>Allowed Values: /// <i> /// contact_name, first_name, last_name, email, outstanding_receivable_amount, /// outstanding_payable_amount, created_time /// </i> /// and <i>last_modified_time</i> /// </td> /// </tr> /// </table> /// </param> /// <returns>ContactList object.</returns> public ContactList GetContacts(Dictionary <object, object> parameters) { var url = baseAddress; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(ContactParser.getContactList(responce)); }
/// <summary> /// Get the details of an expense. /// </summary> /// <param name="expense_id">The expense_id is the identifier of the expense.</param> /// <returns>Expense object.</returns> public Expense Get(string expense_id) { var url = baseAddress + "/" + expense_id; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(ExpenseParser.getExpense(responce)); }
/// <summary> /// List the refund history of a contact. /// </summary> /// <param name="contact_id">The contact_id is the identifier of the contact.</param> /// <returns>CreditnoteRefundList object.</returns> public CreditNoteRefundList GetRefunds(string contact_id) { var url = baseAddress + "/" + contact_id + "/refunds"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(ContactParser.getCreditNoteRefundList(responce)); }
/// <summary> /// Gets the details of a specific rule. /// </summary> /// <param name="rule_id">The rule_id is the identifier of the rule which we are going to get the details.</param> /// <returns>Rule object.</returns> public Rule Get(string rule_id) { var url = baseAddress + "/" + rule_id; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(BankRuleParser.getRule(responce)); }
//-------------------------------------------------------------------------------------------- /// <summary> /// List contact persons of a contact with pagination. /// </summary> /// <param name="contact_id">The contact_id is the identifier of the contact.</param> /// <returns>ContactPersonList object.</returns> public ContactPersonList GetContactPersons(string contact_id) { var url = baseAddress + "/" + contact_id + "/contactpersons"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(ContactParser.getContactPersonList(responce)); }
/// <summary> /// Gets the email history of a credit note. /// </summary> /// <param name="creditnote_id">The creditnote_id is the identifier of the object.</param> /// <returns>List of EmailHistory object.</returns> public EmailHistoryList GetEmailHistory(string creditnote_id) { var url = baseAddress + "/" + creditnote_id + "/emailhistory"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(CreditNoteParser.getEmailHistoryList(responce)); }
/// <summary> /// List all involved transactions for the given account. /// </summary> /// <param name="parameters"> /// The parameters is dictionary object which is containg the filters to refine the list in the form of key,value /// pairs.<br></br>The possible filter keys and coresponded allowed values are listed below<br></br> /// <table> /// <tr> /// <td>account_id</td><td>ID of the account. List all transactions involved this account.</td> /// </tr> /// <tr> /// <td>date</td> /// <td> /// Search account transactions with the given date range. Default date format is yyyy-mm-dd.<br></br> /// Variants: <i>date.start, date.end, date.before</i> and <i>date.after</i> /// </td> /// </tr> /// <tr> /// <td>amount</td> /// <td> /// Search account transactions with given amount range.<br></br>Variants: /// <i>amount.less_than, amount.less_equals, amount.greater_than</i> and <i>amount.greater_equals</i> /// </td> /// </tr> /// <tr> /// <td>filter_by</td> /// <td> /// Filter transactions based on its type.<br></br>Allowed Values: /// <i> /// TransactionType.All, TransactionType.BaseCurrencyAdjustment, TransactionType.Bills, /// TransactionType.VendorPayment, TransactionType.CardPayment, TransactionType.CreditNotes, /// TransactionType.CreditNoteRefund, TransactionType.Deposit, TransactionType.Expense, /// TransactionType.Invoice, TransactionType.Journal, TransactionType.CustomerPayment, /// TransactionType.TransferFund /// </i> /// and <i>TransactionType.OpeningBalance</i> /// </td> /// </tr> /// <tr> /// <td>transaction_type</td> /// <td> /// Search transactions based on the given transaction type.<br></br>Allowed Values: /// <i> /// invoice, customer_payment, bills, vendor_payment, credit_notes, creditnote_refund, expense, /// card_payment, purchase_or_charges, journal, deposit, refund, transfer_fund, /// base_currency_adjustment, opening_balance, sales_without_invoices, expense_refund, tax_refund, /// receipt_from_initial_debtors, owner_contribution, interest_income, other_income, owner_drawings /// </i> /// and <i>payment_to_initial_creditors</i> /// </td> /// </tr> /// <tr> /// <td>sort_column</td> /// <td> /// Sort transactions.<br></br>Allowed Values: /// <i>transaction_date, payee, glname, transaction_type_formatted, reconcile_status, debit_amount</i> and /// <i>credit_amount</i> /// </td> /// </tr> /// </table> /// </param> /// <returns>TransactionList object.</returns> public TransactionList GetTransactions(Dictionary<object, object> parameters) { var url = baseAddress + "/transactions"; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); Console.WriteLine(responce.Content.ReadAsStringAsync().Result); return ChartofaccountParser.getTransactionList(responce); }
/// <summary> /// Get all credit note pdf templates. /// </summary> /// <returns>List of Template objects.</returns> public TemplateList GetTemplates() { var url = baseAddress + "/templates"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(CreditNoteParser.getTemplateList(responce)); }
/// <summary> /// Get the list of organizations. /// </summary> /// <returns>List of Organization objects.</returns> public OrganizationList GetOrganizations() { var url = baseAddress; var response = ZohoHttpClient.get(url, getQueryParameters()); return(OrganizationParser.getOrganizationList(response)); }
//------------------------------------------------------------------------------------------------- /// <summary> /// List all refunds with pagination. /// </summary> /// <param name="parameters"> /// The parameters is the multiple key,value pair object which helps to refine the list.<br></br>The possible filters /// are<br></br> /// <table> /// <tr> /// <td>customer_id</td><td>List credit note refunds made for a particular customer.</td> /// </tr> /// <tr> /// <td>sort_column</td> /// <td> /// Sort refunds list.<br></br>Allowed Values: /// <i>refund_mode, reference_number, date, creditnote_number, customer_name, amount_bcy</i> and /// <i>amount_fcy</i> /// </td> /// </tr> /// </table> /// </param> /// <returns>CreditnoteRefundList object.</returns> public CreditNoteRefundList GetCreditnoteRefunds(Dictionary <object, object> parameters) { var url = baseAddress + "/refunds"; var responce = ZohoHttpClient.get(url, getQueryParameters(parameters)); return(CreditNoteParser.getCreditnoteRefundList(responce)); }
/// <summary> /// Get the details of an organization. /// </summary> /// <param name="organization_id">The organization_id is the identifier of the organization.</param> /// <returns>Organization object.</returns> public Organization Get(string organization_id) { var url = baseAddress + "/" + organization_id; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(OrganizationParser.getOrganization(responce)); }
//----------------------------------------------------------------------------------------------- /// <summary> /// Get history and comments of a credit note. /// </summary> /// <param name="creditnote_id">The creditnote_id is the identifier of the crditnote.</param> /// <returns>List of Comment objects.</returns> public CommentList GetcreditnoteComments(string creditnote_id) { var url = baseAddress + "/" + creditnote_id + "/comments"; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(CreditNoteParser.getCommentList(responce)); }
/// <summary> /// Gets the details of specified journal. /// </summary> /// <param name="journal_id">The journal_id is the identifier of the journal.</param> /// <returns>Journal object.</returns> public Journal Get(string journal_id) { var url = baseAddress + "/" + journal_id; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(JournalParser.getJournal(responce)); }
/// <summary> /// Gets the details of an account. /// </summary> /// <param name="account_id">The account_id is the identifier of the chart of account.</param> /// <returns>ChartOfAccount object.</returns> public ChartOfAccount Get(string account_id) { string url = getBaseAddress() + "/" + account_id; var responce = ZohoHttpClient.get(url, getQueryParameters()); return(ChartofaccountParser.getChartOfAccount(responce)); }
/// <summary> /// Gets the details of the current user. /// </summary> /// <returns>User object.</returns> public User GetCurrentUser() { string url = baseAddress + "/me"; var response = ZohoHttpClient.get(url, getQueryParameters()); return(ProjectParser.getUser(response)); }