Class: Privy::Models::LinkedAccountTelegramInput

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

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(telegram_user_id:, first_name: nil, last_name: nil, photo_url: nil, username: nil, type: :telegram) ⇒ Object

The payload for importing a Telegram account.

Parameters:

  • telegram_user_id (String)
  • first_name (String) (defaults to: nil)
  • last_name (String) (defaults to: nil)
  • photo_url (String) (defaults to: nil)
  • username (String) (defaults to: nil)
  • type (Symbol, :telegram) (defaults to: :telegram)


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

Instance Attribute Details

#first_nameString?

Returns:

  • (String, nil)


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

optional :first_name, String

#last_nameString?

Returns:

  • (String, nil)


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

optional :last_name, String

#photo_urlString?

Returns:

  • (String, nil)


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

optional :photo_url, String

#telegram_user_idString

Returns:

  • (String)


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

required :telegram_user_id, String

#typeSymbol, :telegram

Returns:

  • (Symbol, :telegram)


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

required :type, const: :telegram

#usernameString?

Returns:

  • (String, nil)


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

optional :username, String