Class: MangoModel::NaturalUser
- Inherits:
-
User
- Object
- EntityBase
- User
- MangoModel::NaturalUser
- Includes:
- MangoPay::Jsonifier
- Defined in:
- lib/mangopay/model/entity/user/natural_user.rb
Overview
User entity of PersonType::NATURAL
A Natural User represents an actual person.
Constant Summary
Constants included from MangoPay::Jsonifier
Instance Attribute Summary collapse
-
#address ⇒ Object
- Address
-
Their address.
-
#birthday ⇒ Object
- Integer
-
Their date of birth (UNIX timestamp).
-
#birthplace ⇒ Object
- String
-
Their place of birth.
-
#capacity ⇒ Object
- String
-
Their capacity within MangoPay.
-
#country_of_residence ⇒ Object
- CountryIso
-
Their current country of residence.
-
#first_name ⇒ Object
- String
-
Their first name.
-
#income_range ⇒ Object
- Integer
-
Their income range (see MangoModel::IncomeRange).
-
#last_name ⇒ Object
- String
-
Their last name.
-
#nationality ⇒ Object
- CountryIso
-
Their nationality.
-
#occupation ⇒ Object
- String
-
Their occupation.
-
#proof_of_address ⇒ Object
- String
-
Proof of their address.
-
#proof_of_identity ⇒ Object
- String
-
Proof of their identity.
Attributes inherited from User
#email, #kyc_level, #person_type
Attributes inherited from EntityBase
Instance Method Summary collapse
-
#initialize ⇒ NaturalUser
constructor
A new instance of NaturalUser.
Methods included from MangoPay::Jsonifier
Constructor Details
#initialize ⇒ NaturalUser
Returns a new instance of NaturalUser.
46 47 48 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 46 def initialize self.person_type = PersonType::NATURAL end |
Instance Attribute Details
#address ⇒ Object
- Address
-
Their address
17 18 19 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 17 def address @address end |
#birthday ⇒ Object
- Integer
-
Their date of birth (UNIX timestamp)
20 21 22 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 20 def birthday @birthday end |
#birthplace ⇒ Object
- String
-
Their place of birth
23 24 25 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 23 def birthplace @birthplace end |
#capacity ⇒ Object
- String
-
Their capacity within MangoPay
44 45 46 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 44 def capacity @capacity end |
#country_of_residence ⇒ Object
- CountryIso
-
Their current country of residence
29 30 31 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 29 def country_of_residence @country_of_residence end |
#first_name ⇒ Object
- String
-
Their first name
11 12 13 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 11 def first_name @first_name end |
#income_range ⇒ Object
- Integer
-
Their income range (see MangoModel::IncomeRange)
35 36 37 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 35 def income_range @income_range end |
#last_name ⇒ Object
- String
-
Their last name
14 15 16 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 14 def last_name @last_name end |
#nationality ⇒ Object
- CountryIso
-
Their nationality
26 27 28 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 26 def nationality @nationality end |
#occupation ⇒ Object
- String
-
Their occupation
32 33 34 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 32 def occupation @occupation end |
#proof_of_address ⇒ Object
- String
-
Proof of their address
41 42 43 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 41 def proof_of_address @proof_of_address end |
#proof_of_identity ⇒ Object
- String
-
Proof of their identity
38 39 40 |
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 38 def proof_of_identity @proof_of_identity end |