Class: Telnyx::Models::OutboundMessagePayload::From

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

Overview

See Also:

Defined Under Namespace

Modules: LineType

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(carrier: nil, line_type: nil, phone_number: nil) ⇒ Object

Some parameter documentations has been truncated, see Telnyx::Models::OutboundMessagePayload::From for more details.

Parameters:

  • carrier (String) (defaults to: nil)

    The carrier of the receiver.

  • line_type (Symbol, Telnyx::Models::OutboundMessagePayload::From::LineType) (defaults to: nil)

    The line-type of the receiver.

  • phone_number (String) (defaults to: nil)

    Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short



# File 'lib/telnyx/models/outbound_message_payload.rb', line 429

Instance Attribute Details

#carrierString?

The carrier of the receiver.

Returns:

  • (String, nil)


414
# File 'lib/telnyx/models/outbound_message_payload.rb', line 414

optional :carrier, String

#line_typeSymbol, ...

The line-type of the receiver.



420
# File 'lib/telnyx/models/outbound_message_payload.rb', line 420

optional :line_type, enum: -> { Telnyx::OutboundMessagePayload::From::LineType }

#phone_numberString?

Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code).

Returns:

  • (String, nil)


427
# File 'lib/telnyx/models/outbound_message_payload.rb', line 427

optional :phone_number, String