Class: MetronomeSDK::Models::CommitRate
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::CommitRate
- Defined in:
- lib/metronome_sdk/models/commit_rate.rb
Defined Under Namespace
Modules: RateType
Instance Attribute Summary collapse
-
#price ⇒ Float?
Commit rate price.
- #rate_type ⇒ Symbol, MetronomeSDK::Models::CommitRate::RateType
-
#tiers ⇒ Array<MetronomeSDK::Models::Tier>?
Only set for TIERED rate_type.
Instance Method Summary collapse
-
#initialize(rate_type: , price: nil, tiers: nil) ⇒ Object
constructor
A distinct rate on the rate card.
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(rate_type: , price: nil, tiers: nil) ⇒ Object
A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.
|
|
# File 'lib/metronome_sdk/models/commit_rate.rb', line 23
|
Instance Attribute Details
#price ⇒ Float?
Commit rate price. For FLAT rate_type, this must be >=0.
15 |
# File 'lib/metronome_sdk/models/commit_rate.rb', line 15 optional :price, Float |
#rate_type ⇒ Symbol, MetronomeSDK::Models::CommitRate::RateType
9 |
# File 'lib/metronome_sdk/models/commit_rate.rb', line 9 required :rate_type, enum: -> { MetronomeSDK::CommitRate::RateType } |
#tiers ⇒ Array<MetronomeSDK::Models::Tier>?
Only set for TIERED rate_type.
21 |
# File 'lib/metronome_sdk/models/commit_rate.rb', line 21 optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Tier] } |