Class: MethodRuby::Models::EntityCorporationOwner

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

Parameters:

  • address (MethodRuby::Models::Address) (defaults to: nil)

    Postal mailing address.

  • dob (Date) (defaults to: nil)

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

  • email (String) (defaults to: nil)

    Email address of the owner.

  • first_name (String) (defaults to: nil)

    First name of the owner.

  • last_name (String) (defaults to: nil)

    Last name of the owner.

  • phone (String) (defaults to: nil)

    Phone number of the owner.



# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 42

Instance Attribute Details

#addressMethodRuby::Models::Address?

Postal mailing address.

Returns:



10
# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 10

optional :address, -> { MethodRuby::Address }

#dobDate?

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

Returns:

  • (Date, nil)


16
# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 16

optional :dob, Date

#emailString?

Email address of the owner.

Returns:

  • (String, nil)


22
# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 22

optional :email, String

#first_nameString?

First name of the owner.

Returns:

  • (String, nil)


28
# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 28

optional :first_name, String

#last_nameString?

Last name of the owner.

Returns:

  • (String, nil)


34
# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 34

optional :last_name, String

#phoneString?

Phone number of the owner.

Returns:

  • (String, nil)


40
# File 'lib/method_ruby/models/entity_corporation_owner.rb', line 40

optional :phone, String