Class: Telnyx::Models::InboundMessagePayload::Cc
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::InboundMessagePayload::Cc
- Defined in:
- lib/telnyx/models/inbound_message_payload.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#carrier ⇒ String?
The carrier of the receiver.
-
#line_type ⇒ Symbol, ...
The line-type of the receiver.
-
#phone_number ⇒ String?
Receiving address (+E.164 formatted phone number or short code).
- #status ⇒ Symbol, ...
Class Method 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, status: nil) ⇒ Object
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
# File 'lib/telnyx/models/inbound_message_payload.rb', line 226 class Cc < Telnyx::Internal::Type::BaseModel # @!attribute carrier # The carrier of the receiver. # # @return [String, nil] optional :carrier, String # @!attribute line_type # The line-type of the receiver. # # @return [Symbol, Telnyx::Models::InboundMessagePayload::Cc::LineType, nil] optional :line_type, enum: -> { Telnyx::InboundMessagePayload::Cc::LineType } # @!attribute phone_number # Receiving address (+E.164 formatted phone number or short code). # # @return [String, nil] optional :phone_number, String # @!attribute status # # @return [Symbol, Telnyx::Models::InboundMessagePayload::Cc::Status, nil] optional :status, enum: -> { Telnyx::InboundMessagePayload::Cc::Status } # @!method initialize(carrier: nil, line_type: nil, phone_number: nil, status: nil) # @param carrier [String] The carrier of the receiver. # # @param line_type [Symbol, Telnyx::Models::InboundMessagePayload::Cc::LineType] The line-type of the receiver. # # @param phone_number [String] Receiving address (+E.164 formatted phone number or short code). # # @param status [Symbol, Telnyx::Models::InboundMessagePayload::Cc::Status] # The line-type of the receiver. # # @see Telnyx::Models::InboundMessagePayload::Cc#line_type module LineType extend Telnyx::Internal::Type::Enum WIRELINE = :Wireline WIRELESS = :Wireless VO_WI_FI = :VoWiFi VO_IP = :VoIP PRE_PAID_WIRELESS = :"Pre-Paid Wireless" EMPTY = :"" # @!method self.values # @return [Array<Symbol>] end # @see Telnyx::Models::InboundMessagePayload::Cc#status module Status extend Telnyx::Internal::Type::Enum QUEUED = :queued SENDING = :sending SENT = :sent DELIVERED = :delivered SENDING_FAILED = :sending_failed DELIVERY_FAILED = :delivery_failed DELIVERY_UNCONFIRMED = :delivery_unconfirmed # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#carrier ⇒ String?
The carrier of the receiver.
231 |
# File 'lib/telnyx/models/inbound_message_payload.rb', line 231 optional :carrier, String |
#line_type ⇒ Symbol, ...
The line-type of the receiver.
237 |
# File 'lib/telnyx/models/inbound_message_payload.rb', line 237 optional :line_type, enum: -> { Telnyx::InboundMessagePayload::Cc::LineType } |
#phone_number ⇒ String?
Receiving address (+E.164 formatted phone number or short code).
243 |
# File 'lib/telnyx/models/inbound_message_payload.rb', line 243 optional :phone_number, String |
#status ⇒ Symbol, ...
248 |
# File 'lib/telnyx/models/inbound_message_payload.rb', line 248 optional :status, enum: -> { Telnyx::InboundMessagePayload::Cc::Status } |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/telnyx/models/inbound_message_payload.rb', line 272
|