Class: MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse::Data
- Defined in:
- lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb
Overview
Defined Under Namespace
Modules: RateType
Instance Attribute Summary collapse
-
#commit_rate ⇒ MetronomeSDK::Models::CommitRate?
A distinct rate on the rate card.
- #credit_type ⇒ MetronomeSDK::Models::CreditTypeData?
-
#custom_rate ⇒ Hash{Symbol=>Object}?
Only set for CUSTOM rate_type.
-
#is_prorated ⇒ Boolean?
Default proration configuration.
-
#price ⇒ Float?
Default price.
-
#pricing_group_values ⇒ Hash{Symbol=>String}?
if pricing groups are used, this will contain the values used to calculate the price.
-
#quantity ⇒ Float?
Default quantity.
- #rate_type ⇒ Symbol, MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse::Data::RateType
-
#tiers ⇒ Array<MetronomeSDK::Models::Tier>?
Only set for TIERED rate_type.
-
#use_list_prices ⇒ Boolean?
Only set for PERCENTAGE rate_type.
Instance Method Summary collapse
-
#initialize(rate_type: , commit_rate: nil, credit_type: nil, custom_rate: nil, is_prorated: nil, price: nil, pricing_group_values: nil, quantity: nil, tiers: nil, use_list_prices: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Data 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: , commit_rate: nil, credit_type: nil, custom_rate: nil, is_prorated: nil, price: nil, pricing_group_values: nil, quantity: nil, tiers: nil, use_list_prices: nil) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse::Data for more details.
|
|
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 86
|
Instance Attribute Details
#commit_rate ⇒ MetronomeSDK::Models::CommitRate?
A distinct rate on the rate card. You can choose to use this rate rather than list rate when consuming a credit or commit.
31 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 31 optional :commit_rate, -> { MetronomeSDK::CommitRate } |
#credit_type ⇒ MetronomeSDK::Models::CreditTypeData?
36 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 36 optional :credit_type, -> { MetronomeSDK::CreditTypeData } |
#custom_rate ⇒ Hash{Symbol=>Object}?
Only set for CUSTOM rate_type. This field is interpreted by custom rate processors.
43 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 43 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.
50 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 50 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.
57 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 57 optional :price, Float |
#pricing_group_values ⇒ Hash{Symbol=>String}?
if pricing groups are used, this will contain the values used to calculate the price
64 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 64 optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String] |
#quantity ⇒ Float?
Default quantity. For SUBSCRIPTION rate_type, this must be >=0.
70 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 70 optional :quantity, Float |
#rate_type ⇒ Symbol, MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse::Data::RateType
23 24 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 23 required :rate_type, enum: -> { MetronomeSDK::Models::V1::Contracts::RateCards::RateAddResponse::Data::RateType } |
#tiers ⇒ Array<MetronomeSDK::Models::Tier>?
Only set for TIERED rate_type.
76 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 76 optional :tiers, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Tier] } |
#use_list_prices ⇒ Boolean?
Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed using list prices rather than the standard rates for this product on the contract.
84 |
# File 'lib/metronome_sdk/models/v1/contracts/rate_cards/rate_add_response.rb', line 84 optional :use_list_prices, MetronomeSDK::Internal::Type::Boolean |