Class: Orb::Models::OtherSubLineItem
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::OtherSubLineItem
- Defined in:
- lib/orb/models/other_sub_line_item.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#amount ⇒ String
The total amount for this sub line item.
- #grouping ⇒ Orb::Models::SubLineItemGrouping?
- #name ⇒ String
- #quantity ⇒ Float
- #type ⇒ Symbol, Orb::Models::OtherSubLineItem::Type
Instance Method Summary collapse
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(amount: , grouping: , name: , quantity: , type: ) ⇒ Object
|
|
# File 'lib/orb/models/other_sub_line_item.rb', line 32
|
Instance Attribute Details
#amount ⇒ String
The total amount for this sub line item.
10 |
# File 'lib/orb/models/other_sub_line_item.rb', line 10 required :amount, String |
#grouping ⇒ Orb::Models::SubLineItemGrouping?
15 |
# File 'lib/orb/models/other_sub_line_item.rb', line 15 required :grouping, -> { Orb::SubLineItemGrouping }, nil?: true |
#name ⇒ String
20 |
# File 'lib/orb/models/other_sub_line_item.rb', line 20 required :name, String |
#quantity ⇒ Float
25 |
# File 'lib/orb/models/other_sub_line_item.rb', line 25 required :quantity, Float |
#type ⇒ Symbol, Orb::Models::OtherSubLineItem::Type
30 |
# File 'lib/orb/models/other_sub_line_item.rb', line 30 required :type, enum: -> { Orb::OtherSubLineItem::Type } |