Class: MetronomeSDK::Models::V1::PlanListChargesResponse
Overview
Defined Under Namespace
Modules: ChargeType
Classes: Price, UnitConversion
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(tier: , value: , collection_interval: nil, collection_schedule: nil, quantity: nil) ⇒ Object
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 75
|
Instance Attribute Details
16
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 16
required :charge_type, enum: -> { MetronomeSDK::Models::V1::PlanListChargesResponse::ChargeType }
|
21
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 21
required :credit_type, -> { MetronomeSDK::CreditTypeData }
|
#custom_fields ⇒ Hash{Symbol=>String}
Custom fields to be added eg. { “key1”: “value1”, “key2”: “value2” }
27
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 27
required :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
|
#id ⇒ String
11
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 11
required :id, String
|
#name ⇒ String
32
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 32
required :name, String
|
37
38
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 37
required :prices,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::Models::V1::PlanListChargesResponse::Price] }
|
#product_id ⇒ String
43
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 43
required :product_id, String
|
#product_name ⇒ String
48
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 48
required :product_name, String
|
#quantity ⇒ Float?
53
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 53
optional :quantity, Float
|
#start_period ⇒ Float?
Used in price ramps. Indicates how many billing periods pass before the charge applies.
60
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 60
optional :start_period, Float
|
#tier_reset_frequency ⇒ Float?
Used in pricing tiers. Indicates how often the tier resets. Default is 1 - the tier count resets every billing period.
67
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 67
optional :tier_reset_frequency, Float
|
Specifies how quantities for usage based charges will be converted.
73
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 73
optional :unit_conversion, -> { MetronomeSDK::Models::V1::PlanListChargesResponse::UnitConversion }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/metronome_sdk/models/v1/plan_list_charges_response.rb', line 113
|