Class: Invoicexpress::Client

Inherits:
Object
  • Object
show all
Includes:
Authentication, CashInvoices, Charts, Clients, CreditNotes, DebitNotes, Invoices, Items, PurchaseOrders, Schedules, Sequences, SimplifiedInvoices, Taxes, Users, Connection, Request
Defined in:
lib/invoicexpress/client.rb,
lib/invoicexpress/client/items.rb,
lib/invoicexpress/client/taxes.rb,
lib/invoicexpress/client/users.rb,
lib/invoicexpress/client/charts.rb,
lib/invoicexpress/client/clients.rb,
lib/invoicexpress/client/invoices.rb,
lib/invoicexpress/client/schedules.rb,
lib/invoicexpress/client/sequences.rb,
lib/invoicexpress/client/debit_notes.rb,
lib/invoicexpress/client/credit_notes.rb,
lib/invoicexpress/client/cash_invoices.rb,
lib/invoicexpress/client/purchase_orders.rb,
lib/invoicexpress/client/simplified_invoices.rb

Overview

Please refer to each section inside the client for the respective documentation.

Defined Under Namespace

Modules: CashInvoices, Charts, Clients, CreditNotes, DebitNotes, Invoices, Items, PurchaseOrders, Schedules, Sequences, SimplifiedInvoices, Taxes, Users

Instance Method Summary collapse

Methods included from SimplifiedInvoices

#create_simplified_invoice, #simplified_invoice, #simplified_invoice_mail, #simplified_invoices, #update_simplified_invoice, #update_simplified_invoice_state

Methods included from CreditNotes

#create_credit_note, #credit_note, #credit_note_mail, #credit_notes, #update_credit_note, #update_credit_note_state

Methods included from DebitNotes

#create_debit_note, #debit_note, #debit_note_mail, #debit_notes, #update_debit_note, #update_debit_note_state

Methods included from PurchaseOrders

#create_purchase_order, #purchase_order, #purchase_order_mail, #purchase_orders, #update_purchase_order, #update_purchase_order_state

Methods included from Schedules

#activate_schedule, #create_schedule, #deactivate_schedule, #schedule, #schedules, #update_schedule

Methods included from Taxes

#create_tax, #delete_tax, #tax, #taxes, #update_tax

Methods included from Charts

#invoicing_chart, #quarterly_results, #top_clients, #top_debtors, #treasury_chart

Methods included from Users

#accounts, #change_account, #login

Methods included from Sequences

#create_sequence, #sequence, #sequences, #update_sequence

Methods included from Items

#create_item, #delete_item, #item, #items, #update_item

Methods included from CashInvoices

#cash_invoice, #cash_invoices, #create_cash_invoice, #update_cash_invoice, #update_cash_invoice_state

Methods included from Invoices

#create_invoice, #email_invoice, #invoice, #invoice_email, #invoices, #update_invoice, #update_invoice_state

Methods included from Clients

#client, #client_by_code, #client_by_name, #client_create_cash_invoice, #client_create_credit_note, #client_create_debit_note, #client_create_invoice, #client_invoices, #clients, #create_client, #update_client

Methods included from Request

#delete, #get, #patch, #post, #put

Methods included from Authentication

#authenticated?, #authentication

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



29
30
31
32
33
34
# File 'lib/invoicexpress/client.rb', line 29

def initialize(options={})
  options = Invoicexpress.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end