Class: MangoModel::LegalUser

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

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

#initializeLegalUser

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_numberObject

String


47
48
49
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 47

def company_number
  @company_number
end

#headquarters_addressObject

Address

Their headquarters’ address



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

def headquarters_address
  @headquarters_address
end
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
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
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
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
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
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
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
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

#nameObject

String

Their name



11
12
13
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 11

def name
  @name
end

#proof_of_registrationObject

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_declarationObject

String

Their shareholder declaration



50
51
52
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 50

def shareholder_declaration
  @shareholder_declaration
end

#statuteObject

String

Their statute



41
42
43
# File 'lib/mangopay/model/entity/user/legal_user.rb', line 41

def statute
  @statute
end