Class: KillBillClient::Model::Invoice

Inherits:
InvoiceAttributes show all
Defined in:
lib/killbill_client/models/invoice.rb

Constant Summary collapse

KILLBILL_API_INVOICES_PREFIX =
"#{KILLBILL_API_PREFIX}/invoices"

Constants inherited from Resource

Resource::KILLBILL_API_PREFIX

Instance Attribute Summary

Attributes inherited from Resource

#etag, #response, #session_id, #uri

Class Method Summary collapse

Methods inherited from Resource

attribute, create_alias, delete, extract_session_id, from_json, from_response, get, has_many, has_one, head, instantiate_record_from_json, post, put, #refresh, #to_hash, #to_json

Class Method Details

.find_by_id_or_number(id_or_number, with_items = true, audit = "NONE", options = {}) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/killbill_client/models/invoice.rb', line 13

def find_by_id_or_number(id_or_number, with_items = true, audit = "NONE", options = {})
  get "#{KILLBILL_API_INVOICES_PREFIX}/#{id_or_number}",
      {
        :withItems => with_items,
        :audit => audit
      },
      options
end