Class: Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateParams::Requirement

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

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(first_name:, last_name:) ⇒ Requirement

The end user's identity details for the action requirement. Australia mobile ID verification is currently the only action requirement. It requires first_name and last_name, the same fields the corresponding GET lists in fields_required.

Parameters:

  • first_name (String)

    The end user's first name.

  • last_name (String)

    The end user's last name.

  • first_name: (String)
  • last_name: (String)


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/telnyx/models/external_requirements/sub_number_order_update_params.rb', line 43

class Requirement < Telnyx::Internal::Type::BaseModel
  # @!attribute first_name
  #   The end user's first name.
  #
  #   @return [String]
  required :first_name, String

  # @!attribute last_name
  #   The end user's last name.
  #
  #   @return [String]
  required :last_name, String

  # @!method initialize(first_name:, last_name:)
  #   The end user's identity details for the action requirement. Australia mobile ID
  #   verification is currently the only action requirement. It requires `first_name`
  #   and `last_name`, the same fields the corresponding GET lists in
  #   `fields_required`.
  #
  #   @param first_name [String] The end user's first name.
  #
  #   @param last_name [String] The end user's last name.
end

Instance Attribute Details

#first_nameString

The end user's first name.

Parameters:

  • value (String)

Returns:

  • (String)


48
# File 'lib/telnyx/models/external_requirements/sub_number_order_update_params.rb', line 48

required :first_name, String

#last_nameString

The end user's last name.

Parameters:

  • value (String)

Returns:

  • (String)


54
# File 'lib/telnyx/models/external_requirements/sub_number_order_update_params.rb', line 54

required :last_name, String

Instance Method Details

#to_hash{ first_name: String, last_name: String }

Returns:

  • ({ first_name: String, last_name: String })


45
# File 'sig/telnyx/models/external_requirements/sub_number_order_update_params.rbs', line 45

def to_hash: -> { first_name: String, last_name: String }