Class: Telnyx::Models::WhatsappContact

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/whatsapp_contact.rb

Defined Under Namespace

Classes: Address, Email, Org, Phone, URL

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(phone: nil, type: nil, wa_id: nil) ⇒ Object

Parameters:

  • phone (String) (defaults to: nil)
  • type (String) (defaults to: nil)
  • wa_id (String) (defaults to: nil)


# File 'lib/telnyx/models/whatsapp_contact.rb', line 86

Instance Attribute Details

#addressesArray<Telnyx::Models::WhatsappContact::Address>?



9
# File 'lib/telnyx/models/whatsapp_contact.rb', line 9

optional :addresses, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::Address] }

#birthdayString?

Returns:

  • (String, nil)


14
# File 'lib/telnyx/models/whatsapp_contact.rb', line 14

optional :birthday, String

#emailsArray<Telnyx::Models::WhatsappContact::Email>?



19
# File 'lib/telnyx/models/whatsapp_contact.rb', line 19

optional :emails, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::Email] }

#nameString?

Returns:

  • (String, nil)


24
# File 'lib/telnyx/models/whatsapp_contact.rb', line 24

optional :name, String

#orgTelnyx::Models::WhatsappContact::Org?



29
# File 'lib/telnyx/models/whatsapp_contact.rb', line 29

optional :org, -> { Telnyx::WhatsappContact::Org }

#phonesArray<Telnyx::Models::WhatsappContact::Phone>?



34
# File 'lib/telnyx/models/whatsapp_contact.rb', line 34

optional :phones, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::Phone] }

#urlsArray<Telnyx::Models::WhatsappContact::URL>?

Returns:



39
# File 'lib/telnyx/models/whatsapp_contact.rb', line 39

optional :urls, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::URL] }