Class: MethodRuby::Models::EntityCorporationOwner

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/method_ruby/models/entity_corporation_owner.rb,
sig/method_ruby/models/entity_corporation_owner.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(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

#address ⇒ MethodRuby::Models::Address?

Postal mailing address.

Parameters:

Returns:



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

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

#dob ⇒ Date?

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

Parameters:

  • (Date)

Returns:

  • (Date, nil)


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

optional :dob, Date

#email ⇒ String?

Email address of the owner.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :email, String

#first_name ⇒ String?

First name of the owner.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :first_name, String

#last_name ⇒ String?

Last name of the owner.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :last_name, String

#phone ⇒ String?

Phone number of the owner.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :phone, String

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


47
# File 'sig/method_ruby/models/entity_corporation_owner.rbs', line 47

def to_hash: -> {