Class: MethodRuby::Models::EntityUpdateParams::Individual

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/entity_update_params.rb,
sig/method_ruby/models/entity_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(dob: nil, email: nil, first_name: nil, last_name: nil, phone: nil, ssn: nil, ssn_4: nil) ⇒ Object

Parameters:

  • dob (Date) (defaults to: nil) —

    Date of birth of the individual (YYYY-MM-DD).

  • email (String) (defaults to: nil) —

    Email address of the individual.

  • first_name (String) (defaults to: nil) —

    First name of the individual.

  • last_name (String) (defaults to: nil) —

    Last name of the individual.

  • phone (String) (defaults to: nil) —

    Phone number of the individual.

  • ssn (String) (defaults to: nil) —

    Social security number (9 digits). Mutually exclusive with ssn_4.

  • ssn_4 (String) (defaults to: nil) —

    Last 4 digits of SSN. Mutually exclusive with ssn.



# File 'lib/method_ruby/models/entity_update_params.rb', line 151

Instance Attribute Details

#dob ⇒ Date?

Date of birth of the individual (YYYY-MM-DD).

Parameters:

  • (Date)

Returns:

  • (Date, nil)


113
# File 'lib/method_ruby/models/entity_update_params.rb', line 113

optional :dob, Date

#email ⇒ String?

Email address of the individual.

Parameters:

  • (String)

Returns:

  • (String, nil)


119
# File 'lib/method_ruby/models/entity_update_params.rb', line 119

optional :email, String

#first_name ⇒ String?

First name of the individual.

Parameters:

  • (String)

Returns:

  • (String, nil)


125
# File 'lib/method_ruby/models/entity_update_params.rb', line 125

optional :first_name, String

#last_name ⇒ String?

Last name of the individual.

Parameters:

  • (String)

Returns:

  • (String, nil)


131
# File 'lib/method_ruby/models/entity_update_params.rb', line 131

optional :last_name, String

#phone ⇒ String?

Phone number of the individual.

Parameters:

  • (String)

Returns:

  • (String, nil)


137
# File 'lib/method_ruby/models/entity_update_params.rb', line 137

optional :phone, String

#ssn ⇒ String?

Social security number (9 digits). Mutually exclusive with ssn_4.

Parameters:

  • (String)

Returns:

  • (String, nil)


143
# File 'lib/method_ruby/models/entity_update_params.rb', line 143

optional :ssn, String

#ssn_4 ⇒ String?

Last 4 digits of SSN. Mutually exclusive with ssn.

Parameters:

  • (String)

Returns:

  • (String, nil)


149
# File 'lib/method_ruby/models/entity_update_params.rb', line 149

optional :ssn_4, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


169
# File 'sig/method_ruby/models/entity_update_params.rbs', line 169

def to_hash: -> {