class IronBank::Resources::Invoice
A Zuora invoice is generated through a bill run, belongs to an account and holds many invoice items.
Public Class Methods
excluded_fields()
click to toggle source
See the comment for the instance method `#body`
Calls superclass method
# File lib/iron_bank/resources/invoice.rb, line 10 def self.excluded_fields super + single_resource_query_fields end
single_resource_query_fields()
click to toggle source
# File lib/iron_bank/resources/invoice.rb, line 14 def self.single_resource_query_fields %w[Body] end
Public Instance Methods
body()
click to toggle source
We can only retrieve one invoice body at a time, hence Body is excluded from the query fields, but is populated using the `find` class method
# File lib/iron_bank/resources/invoice.rb, line 29 def body remote[:body] || reload.remote[:body] end