Class: MetronomeSDK::Models::V2::ContractEditParams::AddOverride::OverwriteRate
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V2::ContractEditParams::AddOverride::OverwriteRate
- Defined in:
- lib/metronome_sdk/models/v2/contract_edit_params.rb
Overview
Defined Under Namespace
Modules: RateType
Instance Attribute Summary collapse
- #credit_type_id ⇒ String?
-
#custom_rate ⇒ Hash{Symbol=>Object}?
Only set for CUSTOM rate_type.
-
#is_prorated ⇒ Boolean?
Default proration configuration.
-
#price ⇒ Float?
Default price.
-
#quantity ⇒ Float?
Default quantity.
- #rate_type ⇒ Symbol, MetronomeSDK::Models::V2::ContractEditParams::AddOverride::OverwriteRate::RateType
-
#tiers ⇒ Array<MetronomeSDK::Models::Tier>?
Only set for TIERED rate_type.
Instance Method Summary collapse
-
#initialize(rate_type: , credit_type_id: nil, custom_rate: nil, is_prorated: nil, price: nil, quantity: nil, tiers: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see OverwriteRate for more details.
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: , credit_type_id: nil, custom_rate: nil, is_prorated: nil, price: nil, quantity: nil, tiers: nil) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V2::ContractEditParams::AddOverride::OverwriteRate for more details.
Required for OVERWRITE type.
|
|
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1656
|
Instance Attribute Details
#credit_type_id ⇒ String?
1621 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1621 optional :credit_type_id, String |
#custom_rate ⇒ Hash{Symbol=>Object}?
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
1628 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1628 optional :custom_rate, MetronomeSDK::Internal::Type::HashOf[MetronomeSDK::Internal::Type::Unknown] |
#is_prorated ⇒ Boolean?
Default proration configuration. Only valid for SUBSCRIPTION rate_type. Must be set to true.
1635 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1635 optional :is_prorated, MetronomeSDK::Internal::Type::Boolean |
#price ⇒ Float?
Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type, this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.
1642 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1642 optional :price, Float |
#quantity ⇒ Float?
Default quantity. For SUBSCRIPTION rate_type, this must be >=0.
1648 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1648 optional :quantity, Float |
#rate_type ⇒ Symbol, MetronomeSDK::Models::V2::ContractEditParams::AddOverride::OverwriteRate::RateType
1615 1616 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1615 required :rate_type, enum: -> { MetronomeSDK::V2::ContractEditParams::AddOverride::OverwriteRate::RateType } |
#tiers ⇒ Array<MetronomeSDK::Models::Tier>?
Only set for TIERED rate_type.
1654 |
# File 'lib/metronome_sdk/models/v2/contract_edit_params.rb', line 1654 optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Tier] } |