Class: MangoModel::LegalUser
- Inherits:
-
User
- Object
- EntityBase
- User
- MangoModel::LegalUser
- Includes:
- MangoPay::Jsonifier
- Defined in:
- lib/mangopay/model/entity/user/legal_user.rb
Overview
User entity of PersonType::LEGAL
A Legal User represents a business or an organization.
Constant Summary
Constants included from MangoPay::Jsonifier
Instance Attribute Summary collapse
-
#company_number ⇒ Object
[String].
-
#headquarters_address ⇒ Object
- Address
-
Their headquarters’ address.
-
#legal_person_type ⇒ Object
- LegalPersonType
-
Type of legal user.
-
#legal_representative_address ⇒ Object
- Address
-
Their legal representative’s physical address.
-
#legal_representative_birthday ⇒ Object
- Integer
-
Their legal representative’s birthday (UNIX timestamp).
-
#legal_representative_country_of_residence ⇒ Object
- CountryIso
-
Their legal representative’s country of residence.
-
#legal_representative_email ⇒ Object
- String
-
Their legal representative’s email address.
-
#legal_representative_first_name ⇒ Object
- String
-
Their legal representative’s first name.
-
#legal_representative_last_name ⇒ Object
- String
-
Their legal representative’s last name.
-
#legal_representative_nationality ⇒ Object
- CountryIso
-
Their legal representative’s nationality.
-
#name ⇒ Object
- String
-
Their name.
-
#proof_of_registration ⇒ Object
- String
-
Their proof of registration.
-
#shareholder_declaration ⇒ Object
- String
-
Their shareholder declaration.
-
#statute ⇒ Object
- String
-
Their statute.
Attributes inherited from User
#email, #kyc_level, #person_type
Attributes inherited from EntityBase
Instance Method Summary collapse
-
#initialize ⇒ LegalUser
constructor
A new instance of LegalUser.
Methods included from MangoPay::Jsonifier
Constructor Details
#initialize ⇒ LegalUser
Returns a new instance of LegalUser.
52 53 54 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 52 def initialize self.person_type = PersonType::LEGAL end |
Instance Attribute Details
#company_number ⇒ Object
- String
47 48 49 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 47 def company_number @company_number end |
#headquarters_address ⇒ Object
- Address
-
Their headquarters’ address
17 18 19 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 17 def headquarters_address @headquarters_address end |
#legal_person_type ⇒ Object
- LegalPersonType
-
Type of legal user
14 15 16 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 14 def legal_person_type @legal_person_type end |
#legal_representative_address ⇒ Object
- Address
-
Their legal representative’s physical address
26 27 28 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 26 def legal_representative_address @legal_representative_address end |
#legal_representative_birthday ⇒ Object
- Integer
-
Their legal representative’s birthday (UNIX timestamp)
32 33 34 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 32 def legal_representative_birthday @legal_representative_birthday end |
#legal_representative_country_of_residence ⇒ Object
- CountryIso
-
Their legal representative’s country of residence
38 39 40 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 38 def legal_representative_country_of_residence @legal_representative_country_of_residence end |
#legal_representative_email ⇒ Object
- String
-
Their legal representative’s email address
29 30 31 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 29 def legal_representative_email @legal_representative_email end |
#legal_representative_first_name ⇒ Object
- String
-
Their legal representative’s first name
20 21 22 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 20 def legal_representative_first_name @legal_representative_first_name end |
#legal_representative_last_name ⇒ Object
- String
-
Their legal representative’s last name
23 24 25 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 23 def legal_representative_last_name @legal_representative_last_name end |
#legal_representative_nationality ⇒ Object
- CountryIso
-
Their legal representative’s nationality
35 36 37 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 35 def legal_representative_nationality @legal_representative_nationality end |
#name ⇒ Object
- String
-
Their name
11 12 13 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 11 def name @name end |
#proof_of_registration ⇒ Object
- String
-
Their proof of registration
44 45 46 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 44 def proof_of_registration @proof_of_registration end |
#shareholder_declaration ⇒ Object
- String
-
Their shareholder declaration
50 51 52 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 50 def shareholder_declaration @shareholder_declaration end |
#statute ⇒ Object
- String
-
Their statute
41 42 43 |
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 41 def statute @statute end |