Class: Telnyx::Models::MessageCancelScheduledResponse::Cc

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

Defined Under Namespace

Modules: LineType, Status

Instance Attribute Summary collapse

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

Parameters:



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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
# File 'lib/telnyx/models/message_cancel_scheduled_response.rb', line 241

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::MessageCancelScheduledResponse::Cc::LineType, nil]
  optional :line_type, enum: -> { Telnyx::Models::MessageCancelScheduledResponse::Cc::LineType }

  # @!attribute phone_number
  #   Receiving address (+E.164 formatted phone number or short code).
  #
  #   @return [String, nil]
  optional :phone_number, String

  # @!attribute status
  #   The delivery status of the message.
  #
  #   @return [Symbol, Telnyx::Models::MessageCancelScheduledResponse::Cc::Status, nil]
  optional :status, enum: -> { Telnyx::Models::MessageCancelScheduledResponse::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::MessageCancelScheduledResponse::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::MessageCancelScheduledResponse::Cc::Status] The delivery status of the message.

  # The line-type of the receiver.
  #
  # @see Telnyx::Models::MessageCancelScheduledResponse::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

  # The delivery status of the message.
  #
  # @see Telnyx::Models::MessageCancelScheduledResponse::Cc#status
  module Status
    extend Telnyx::Internal::Type::Enum

    SCHEDULED = :scheduled
    QUEUED = :queued
    SENDING = :sending
    SENT = :sent
    CANCELLED = :cancelled
    EXPIRED = :expired
    SENDING_FAILED = :sending_failed
    DELIVERY_UNCONFIRMED = :delivery_unconfirmed
    DELIVERED = :delivered
    DELIVERY_FAILED = :delivery_failed

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#carrierString?

The carrier of the receiver.

Returns:

  • (String, nil)


246
# File 'lib/telnyx/models/message_cancel_scheduled_response.rb', line 246

optional :carrier, String

#line_typeSymbol, ...

The line-type of the receiver.



252
# File 'lib/telnyx/models/message_cancel_scheduled_response.rb', line 252

optional :line_type, enum: -> { Telnyx::Models::MessageCancelScheduledResponse::Cc::LineType }

#phone_numberString?

Receiving address (+E.164 formatted phone number or short code).

Returns:

  • (String, nil)


258
# File 'lib/telnyx/models/message_cancel_scheduled_response.rb', line 258

optional :phone_number, String

#statusSymbol, ...

The delivery status of the message.



264
# File 'lib/telnyx/models/message_cancel_scheduled_response.rb', line 264

optional :status, enum: -> { Telnyx::Models::MessageCancelScheduledResponse::Cc::Status }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/message_cancel_scheduled_response.rb', line 288