Class: Telnyx::Models::BillingContact

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/billing_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:, last_name:, phone_number:) ⇒ Object

Parameters:

  • email (String)

    Contact’s email address

  • first_name (String)

    Contact’s first name

  • last_name (String)

    Contact’s last name

  • phone_number (String)

    Contact’s phone number (10-15 digits)



# File 'lib/telnyx/models/billing_contact.rb', line 30

Instance Attribute Details

#emailString

Contact’s email address

Returns:

  • (String)


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

required :email, String

#first_nameString

Contact’s first name

Returns:

  • (String)


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

required :first_name, String

#last_nameString

Contact’s last name

Returns:

  • (String)


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

required :last_name, String

#phone_numberString

Contact’s phone number (10-15 digits)

Returns:

  • (String)


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

required :phone_number, String