Class: Telnyx::Models::PortingOrders::VerificationCodeVerifyParams::VerificationCode

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/porting_orders/verification_code_verify_params.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(code: nil, phone_number: nil) ⇒ Object

Parameters:

  • code (String) (defaults to: nil)
  • phone_number (String) (defaults to: nil)


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/telnyx/models/porting_orders/verification_code_verify_params.rb', line 27

class VerificationCode < Telnyx::Internal::Type::BaseModel
  # @!attribute code
  #
  #   @return [String, nil]
  optional :code, String

  # @!attribute phone_number
  #
  #   @return [String, nil]
  optional :phone_number, String

  # @!method initialize(code: nil, phone_number: nil)
  #   @param code [String]
  #   @param phone_number [String]
end

Instance Attribute Details

#codeString?

Returns:

  • (String, nil)


31
# File 'lib/telnyx/models/porting_orders/verification_code_verify_params.rb', line 31

optional :code, String

#phone_numberString?

Returns:

  • (String, nil)


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

optional :phone_number, String