Class: Vatsense::Models::InvoiceAPI
Defined Under Namespace
Modules: Object, TaxType, Type
Classes: Business, Customer, Totals
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(discount: nil, subtotal: nil, total: nil, vat: nil) ⇒ Object
|
# File 'lib/vatsense/models/invoice.rb', line 117
|
Instance Attribute Details
14
|
# File 'lib/vatsense/models/invoice.rb', line 14
optional :business, -> { Vatsense::InvoiceAPI::Business }
|
#created ⇒ Time?
24
|
# File 'lib/vatsense/models/invoice.rb', line 24
optional :created, Time
|
#currency_code ⇒ String?
29
|
# File 'lib/vatsense/models/invoice.rb', line 29
optional :currency_code, String
|
34
|
# File 'lib/vatsense/models/invoice.rb', line 34
optional :customer, -> { Vatsense::InvoiceAPI::Customer }, nil?: true
|
#date ⇒ String?
39
|
# File 'lib/vatsense/models/invoice.rb', line 39
optional :date, String
|
#id ⇒ String?
9
|
# File 'lib/vatsense/models/invoice.rb', line 9
optional :id, String
|
#invoice_number ⇒ String?
49
|
# File 'lib/vatsense/models/invoice.rb', line 49
optional :invoice_number, String
|
#invoice_url ⇒ String?
Unique URL to view the invoice. Append “/pdf” to download a PDF copy.
55
|
# File 'lib/vatsense/models/invoice.rb', line 55
optional :invoice_url, String
|
#is_reverse_charge ⇒ Boolean?
#notes ⇒ String?
75
|
# File 'lib/vatsense/models/invoice.rb', line 75
optional :notes, String, nil?: true
|
#num_items ⇒ Integer?
80
|
# File 'lib/vatsense/models/invoice.rb', line 80
optional :num_items, Integer
|
#object ⇒ Symbol, ...
85
|
# File 'lib/vatsense/models/invoice.rb', line 85
optional :object, enum: -> { Vatsense::InvoiceAPI::Object }
|
#tax_point ⇒ String?
90
|
# File 'lib/vatsense/models/invoice.rb', line 90
optional :tax_point, String
|
#tax_type ⇒ Symbol, ...
95
|
# File 'lib/vatsense/models/invoice.rb', line 95
optional :tax_type, enum: -> { Vatsense::InvoiceAPI::TaxType }
|
100
|
# File 'lib/vatsense/models/invoice.rb', line 100
optional :totals, -> { Vatsense::InvoiceAPI::Totals }
|
#type ⇒ Symbol, ...
105
|
# File 'lib/vatsense/models/invoice.rb', line 105
optional :type, enum: -> { Vatsense::InvoiceAPI::Type }
|
#updated ⇒ Time?
110
|
# File 'lib/vatsense/models/invoice.rb', line 110
optional :updated, Time
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/vatsense/models/invoice.rb', line 238
|