Class: Telnyx::Models::OrganizationContact

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/organization_contact.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(email:, first_name:, job_title:, last_name:, phone:) ⇒ Object

Organization contact information. Note: the response returns this object with the phone field as ‘phone’ (not ‘phone_number’).

Parameters:

  • email (String)

    Contact’s email address

  • first_name (String)

    Contact’s first name

  • job_title (String)

    Contact’s job title (required)

  • last_name (String)

    Contact’s last name

  • phone (String)

    Contact’s phone number in E.164 format



# File 'lib/telnyx/models/organization_contact.rb', line 36

Instance Attribute Details

#emailString

Contact’s email address

Returns:

  • (String)


10
# File 'lib/telnyx/models/organization_contact.rb', line 10

required :email, String

#first_nameString

Contact’s first name

Returns:

  • (String)


16
# File 'lib/telnyx/models/organization_contact.rb', line 16

required :first_name, String

#job_titleString

Contact’s job title (required)

Returns:

  • (String)


22
# File 'lib/telnyx/models/organization_contact.rb', line 22

required :job_title, String

#last_nameString

Contact’s last name

Returns:

  • (String)


28
# File 'lib/telnyx/models/organization_contact.rb', line 28

required :last_name, String

#phoneString

Contact’s phone number in E.164 format

Returns:

  • (String)


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

required :phone, String