Module: FlowAccount::Client::Invoice

Included in:
FlowAccount::Client
Defined in:
lib/flow_account/client/invoice.rb

Instance Method Summary collapse

Instance Method Details

#create_invoice(params) ⇒ Object



5
6
7
# File 'lib/flow_account/client/invoice.rb', line 5

def create_invoice(params)
  post('billing-notes', params)
end

#invoice(id) ⇒ Object



13
14
15
# File 'lib/flow_account/client/invoice.rb', line 13

def invoice(id)
  get("billing-notes/#{id}")
end


21
22
23
# File 'lib/flow_account/client/invoice.rb', line 21

def invoice_link(id, lang=:en)
  get("billing-notes/#{id}/#{lang}/share-link")
end

#invoices(offset = 0, limit = 10) ⇒ Object



17
18
19
# File 'lib/flow_account/client/invoice.rb', line 17

def invoices(offset=0, limit=10)
  get("billing-notes", {offset: offset, limit: limit})
end

#update_invoice(id, params) ⇒ Object



9
10
11
# File 'lib/flow_account/client/invoice.rb', line 9

def update_invoice(id, params)
  put("billing-notes/#{id}", params)
end