Class: PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PreludeSDK::Models::Verification::Phone::PhoneVerificationMoney
- Defined in:
- lib/prelude_sdk/models/verification/phone/phone_verification_money.rb,
sig/prelude_sdk/models/verification/phone/phone_verification_money.rbs
Instance Attribute Summary collapse
-
#amount ⇒ String
Exact decimal amount.
-
#currency ⇒ String
ISO 4217 currency code.
Instance Method Summary collapse
-
#initialize ⇒ PhoneVerificationMoney
constructor
A new instance of PhoneVerificationMoney.
- #to_hash ⇒ { amount: String, currency: 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 ⇒ PhoneVerificationMoney
Returns a new instance of PhoneVerificationMoney.
14 |
# File 'sig/prelude_sdk/models/verification/phone/phone_verification_money.rbs', line 14
def initialize: (amount: String, currency: String) -> void
|
Instance Attribute Details
#amount ⇒ String
Exact decimal amount. It is never rounded to the currency's minor units, so a
sub-cent cost reads as 0.0004 rather than as 0.00.
13 |
# File 'lib/prelude_sdk/models/verification/phone/phone_verification_money.rb', line 13 required :amount, String |
#currency ⇒ String
ISO 4217 currency code.
19 |
# File 'lib/prelude_sdk/models/verification/phone/phone_verification_money.rb', line 19 required :currency, String |
Instance Method Details
#to_hash ⇒ { amount: String, currency: String }
16 |
# File 'sig/prelude_sdk/models/verification/phone/phone_verification_money.rbs', line 16
def to_hash: -> { amount: String, currency: String }
|