Class: MangoModel::NaturalUser

Inherits:
User show all
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

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Attributes inherited from User

#email, #kyc_level, #person_type

Attributes inherited from EntityBase

#creation_date, #id, #tag

Instance Method Summary collapse

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Constructor Details

#initializeNaturalUser

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

#addressObject

Address

Their address



17
18
19
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 17

def address
  @address
end

#birthdayObject

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

#birthplaceObject

String

Their place of birth



23
24
25
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 23

def birthplace
  @birthplace
end

#capacityObject

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_residenceObject

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_nameObject

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_rangeObject

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_nameObject

String

Their last name



14
15
16
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 14

def last_name
  @last_name
end

#nationalityObject

CountryIso

Their nationality



26
27
28
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 26

def nationality
  @nationality
end

#occupationObject

String

Their occupation



32
33
34
# File 'lib/mangopay/model/entity/user/natural_user.rb', line 32

def occupation
  @occupation
end

#proof_of_addressObject

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_identityObject

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