Class: Telnyx::Models::PortingOrders::PortingVerificationCode

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/porting_orders/porting_verification_code.rb,
sig/telnyx/models/porting_orders/porting_verification_code.rbs

Overview

See Also:

  • Telnyx::Resources::PortingOrders::VerificationCodes#list

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(id: nil, created_at: nil, phone_number: nil, porting_order_id: nil, record_type: nil, updated_at: nil, verified: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Uniquely identifies this porting verification code

  • created_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was created.

  • phone_number (String) (defaults to: nil)

    E164 formatted phone number

  • porting_order_id (String) (defaults to: nil)

    Identifies the associated porting order

  • record_type (String) (defaults to: nil)

    Identifies the type of the resource.

  • updated_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was updated.

  • verified (Boolean) (defaults to: nil)

    Indicates whether the verification code has been verified



# File 'lib/telnyx/models/porting_orders/porting_verification_code.rb', line 52

Instance Attribute Details

#created_atTime?

ISO 8601 formatted date indicating when the resource was created.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


18
# File 'lib/telnyx/models/porting_orders/porting_verification_code.rb', line 18

optional :created_at, Time

#idString?

Uniquely identifies this porting verification code

Parameters:

  • (String)

Returns:

  • (String, nil)


12
# File 'lib/telnyx/models/porting_orders/porting_verification_code.rb', line 12

optional :id, String

#phone_numberString?

E164 formatted phone number

Parameters:

  • (String)

Returns:

  • (String, nil)


24
# File 'lib/telnyx/models/porting_orders/porting_verification_code.rb', line 24

optional :phone_number, String

#porting_order_idString?

Identifies the associated porting order

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :porting_order_id, String

#record_typeString? (readonly)

Returns the value of attribute record_type.

Returns:

  • (String, nil)


40
41
42
# File 'sig/telnyx/models/porting_orders/porting_verification_code.rbs', line 40

def record_type
  @record_type
end

#updated_atTime?

ISO 8601 formatted date indicating when the resource was updated.

Parameters:

  • (Time)

Returns:

  • (Time, nil)


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

optional :updated_at, Time

#verifiedBoolean?

Indicates whether the verification code has been verified

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


42
# File 'lib/telnyx/models/porting_orders/porting_verification_code.rb', line 42

optional :verified, Telnyx::Internal::Type::Boolean

Instance Method Details

#record_type=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


42
# File 'sig/telnyx/models/porting_orders/porting_verification_code.rbs', line 42

def record_type=: (String) -> String

#to_hash{

Returns:

  • ({)


54
# File 'sig/telnyx/models/porting_orders/porting_verification_code.rbs', line 54

def to_hash: -> {