Class: Privy::Models::LinkedAccountPhone

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/linked_account_phone.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

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(first_verified_at:, latest_verified_at:, phone_number:, type:, verified_at:, number: nil) ⇒ Object

A phone number account linked to the user.

Parameters:

  • first_verified_at (Float, nil)
  • latest_verified_at (Float, nil)
  • phone_number (String)
  • type (Symbol, Privy::Models::LinkedAccountPhone::Type)
  • verified_at (Float)
  • number (String) (defaults to: nil)


# File 'lib/privy/models/linked_account_phone.rb', line 36

Instance Attribute Details

#first_verified_atFloat?

Returns:

  • (Float, nil)


9
# File 'lib/privy/models/linked_account_phone.rb', line 9

required :first_verified_at, Float, nil?: true

#latest_verified_atFloat?

Returns:

  • (Float, nil)


14
# File 'lib/privy/models/linked_account_phone.rb', line 14

required :latest_verified_at, Float, nil?: true

#numberString?

Returns:

  • (String, nil)


34
# File 'lib/privy/models/linked_account_phone.rb', line 34

optional :number, String

#phone_numberString

Returns:

  • (String)


19
# File 'lib/privy/models/linked_account_phone.rb', line 19

required :phone_number, String, api_name: :phoneNumber

#typeSymbol, Privy::Models::LinkedAccountPhone::Type



24
# File 'lib/privy/models/linked_account_phone.rb', line 24

required :type, enum: -> { Privy::LinkedAccountPhone::Type }

#verified_atFloat

Returns:

  • (Float)


29
# File 'lib/privy/models/linked_account_phone.rb', line 29

required :verified_at, Float