Class: Orb::Models::AdjustmentInterval
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Orb::Models::AdjustmentInterval
- Defined in:
- lib/orb/models/adjustment_interval.rb
Defined Under Namespace
Modules: Adjustment
Instance Attribute Summary collapse
- #adjustment ⇒ Orb::Models::PlanPhaseUsageDiscountAdjustment, ...
-
#applies_to_price_interval_ids ⇒ Array<String>
The price interval IDs that this adjustment applies to.
-
#end_date ⇒ Time?
The end date of the adjustment interval.
- #id ⇒ String
-
#start_date ⇒ Time
The start date of the adjustment interval.
Instance Method Summary collapse
- #initialize(id: , adjustment: , applies_to_price_interval_ids: , end_date: , start_date: ) ⇒ Object constructor
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(id: , adjustment: , applies_to_price_interval_ids: , end_date: , start_date: ) ⇒ Object
|
|
# File 'lib/orb/models/adjustment_interval.rb', line 34
|
Instance Attribute Details
#adjustment ⇒ Orb::Models::PlanPhaseUsageDiscountAdjustment, ...
14 |
# File 'lib/orb/models/adjustment_interval.rb', line 14 required :adjustment, union: -> { Orb::AdjustmentInterval::Adjustment } |
#applies_to_price_interval_ids ⇒ Array<String>
The price interval IDs that this adjustment applies to.
20 |
# File 'lib/orb/models/adjustment_interval.rb', line 20 required :applies_to_price_interval_ids, Orb::Internal::Type::ArrayOf[String] |
#end_date ⇒ Time?
The end date of the adjustment interval.
26 |
# File 'lib/orb/models/adjustment_interval.rb', line 26 required :end_date, Time, nil?: true |
#id ⇒ String
9 |
# File 'lib/orb/models/adjustment_interval.rb', line 9 required :id, String |
#start_date ⇒ Time
The start date of the adjustment interval.
32 |
# File 'lib/orb/models/adjustment_interval.rb', line 32 required :start_date, Time |