Class: Vatsense::Models::Invoice::InvoiceItemInput
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Vatsense::Models::Invoice::InvoiceItemInput
- Defined in:
- lib/vatsense/models/invoice/invoice_item_input.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#discount_rate ⇒ Float?
A percentage discount to apply to the price.
-
#item ⇒ String
The description of the line item.
-
#price_each ⇒ Float
The price per item.
-
#quantity ⇒ Float
The quantity of the item.
-
#vat_rate ⇒ Float
A percentage VAT rate for this item.
Method Summary
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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
This class inherits a constructor from Vatsense::Internal::Type::BaseModel
Instance Attribute Details
#discount_rate ⇒ Float?
A percentage discount to apply to the price.
35 |
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 35 optional :discount_rate, Float |
#item ⇒ String
The description of the line item.
11 |
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 11 required :item, String |
#price_each ⇒ Float
The price per item. Must be a decimal with 2 decimal places.
17 |
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 17 required :price_each, Float |
#quantity ⇒ Float
The quantity of the item.
23 |
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 23 required :quantity, Float |
#vat_rate ⇒ Float
A percentage VAT rate for this item.
29 |
# File 'lib/vatsense/models/invoice/invoice_item_input.rb', line 29 required :vat_rate, Float |