Class: Vatsense::Models::InvoiceAPI::Totals
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Vatsense::Models::InvoiceAPI::Totals
- Defined in:
- lib/vatsense/models/invoice.rb,
sig/vatsense/models/invoice.rbs
Overview
Instance Attribute Summary collapse
-
#discount ⇒ Float?
Total discount amount.
-
#subtotal ⇒ Float?
Total before VAT.
-
#total ⇒ Float?
Grand total.
-
#vat ⇒ Float?
Total VAT amount.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], 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
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize ⇒ Object
305 |
# File 'sig/vatsense/models/invoice.rbs', line 305
def initialize: (
|
Instance Attribute Details
#discount ⇒ Float?
Total discount amount.
259 |
# File 'lib/vatsense/models/invoice.rb', line 259 optional :discount, Float |
#subtotal ⇒ Float?
Total before VAT.
265 |
# File 'lib/vatsense/models/invoice.rb', line 265 optional :subtotal, Float |
#total ⇒ Float?
Grand total.
271 |
# File 'lib/vatsense/models/invoice.rb', line 271 optional :total, Float |
#vat ⇒ Float?
Total VAT amount.
277 |
# File 'lib/vatsense/models/invoice.rb', line 277 optional :vat, Float |
Instance Method Details
#to_hash ⇒ {
312 |
# File 'sig/vatsense/models/invoice.rbs', line 312
def to_hash: -> {
|