Class: Orb::Models::PerPriceCost
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::PerPriceCost
- Defined in:
- lib/orb/models/per_price_cost.rb
Instance Attribute Summary collapse
-
#price ⇒ Orb::Models::Price::Unit, ...
The price object.
-
#price_id ⇒ String
The price the cost is associated with.
-
#quantity ⇒ Float?
The price’s quantity for the timeframe.
-
#subtotal ⇒ String
Price’s contributions for the timeframe, excluding any minimums and discounts.
-
#total ⇒ String
Price’s contributions for the timeframe, including minimums and discounts.
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(price: , price_id: , subtotal: , total: , quantity: nil) ⇒ Object
|
|
# File 'lib/orb/models/per_price_cost.rb', line 36
|
Instance Attribute Details
#price ⇒ Orb::Models::Price::Unit, ...
The price object
10 |
# File 'lib/orb/models/per_price_cost.rb', line 10 required :price, union: -> { Orb::Price } |
#price_id ⇒ String
The price the cost is associated with
16 |
# File 'lib/orb/models/per_price_cost.rb', line 16 required :price_id, String |
#quantity ⇒ Float?
The price’s quantity for the timeframe
34 |
# File 'lib/orb/models/per_price_cost.rb', line 34 optional :quantity, Float, nil?: true |
#subtotal ⇒ String
Price’s contributions for the timeframe, excluding any minimums and discounts.
22 |
# File 'lib/orb/models/per_price_cost.rb', line 22 required :subtotal, String |
#total ⇒ String
Price’s contributions for the timeframe, including minimums and discounts.
28 |
# File 'lib/orb/models/per_price_cost.rb', line 28 required :total, String |