Class: MetronomeSDK::Models::V1::CreditGrantCreateParams::PaidAmount
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::CreditGrantCreateParams::PaidAmount
- Defined in:
- lib/metronome_sdk/models/v1/credit_grant_create_params.rb,
sig/metronome_sdk/models/v1/credit_grant_create_params.rbs
Instance Attribute Summary collapse
- #amount ⇒ Float
-
#credit_type_id ⇒ String
the ID of the pricing unit to be used.
Instance Method Summary collapse
-
#initialize ⇒ PaidAmount
constructor
A new instance of PaidAmount.
- #to_hash ⇒ { amount: Float, credit_type_id: String }
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 ⇒ PaidAmount
Returns a new instance of PaidAmount.
128 |
# File 'sig/metronome_sdk/models/v1/credit_grant_create_params.rbs', line 128
def initialize: (amount: Float, credit_type_id: String) -> void
|
Instance Attribute Details
#amount ⇒ Float
158 |
# File 'lib/metronome_sdk/models/v1/credit_grant_create_params.rb', line 158 required :amount, Float |
#credit_type_id ⇒ String
the ID of the pricing unit to be used. Defaults to USD (cents) if not passed.
164 |
# File 'lib/metronome_sdk/models/v1/credit_grant_create_params.rb', line 164 required :credit_type_id, String |
Instance Method Details
#to_hash ⇒ { amount: Float, credit_type_id: String }
130 |
# File 'sig/metronome_sdk/models/v1/credit_grant_create_params.rbs', line 130
def to_hash: -> { amount: Float, credit_type_id: String }
|