Class: Privy::Models::LinkedAccountSmartWallet

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/linked_account_smart_wallet.rb,
sig/privy/models/linked_account_smart_wallet.rbs

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(address:, first_verified_at:, latest_verified_at:, smart_wallet_type:, type:, verified_at:, smart_wallet_version: nil) ⇒ Object

A smart wallet account linked to the user.

Parameters:



# File 'lib/privy/models/linked_account_smart_wallet.rb', line 42

Instance Attribute Details

#addressString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :address, String

#first_verified_atFloat?

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


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

required :first_verified_at, Float, nil?: true

#latest_verified_atFloat?

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


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

required :latest_verified_at, Float, nil?: true

#smart_wallet_typeSymbol, Privy::Models::SmartWalletType

The supported smart wallet providers.

Parameters:

  • value (Privy::Models::smart_wallet_type)

Returns:



25
# File 'lib/privy/models/linked_account_smart_wallet.rb', line 25

required :smart_wallet_type, enum: -> { Privy::SmartWalletType }

#smart_wallet_versionString?

Parameters:

  • (String)

Returns:

  • (String, nil)


40
# File 'lib/privy/models/linked_account_smart_wallet.rb', line 40

optional :smart_wallet_version, String

#typeSymbol, Privy::Models::LinkedAccountSmartWallet::Type

Parameters:

  • value (Privy::Models::LinkedAccountSmartWallet::type_)

Returns:



30
# File 'lib/privy/models/linked_account_smart_wallet.rb', line 30

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

#verified_atFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


35
# File 'lib/privy/models/linked_account_smart_wallet.rb', line 35

required :verified_at, Float

Instance Method Details

#to_hash{

Returns:

  • ({)


41
# File 'sig/privy/models/linked_account_smart_wallet.rbs', line 41

def to_hash: -> {