User - Mangopay/mangopay2-ruby-sdk GitHub Wiki

The User Object

Property Type More
Id long
Tag String
CreationDate Time
PersonType String either ‘NATURAL’ or ‘LEGAL’
Email String

For the Users type “NATURAL”

Property Type More

| FirstName | String (<100 chars) | LastName | String (<100 chars) | Address | String (<255 chars) | Birthday | Date | Birthplace | String(<255 chars) | Nationality | String (ISO 3166-1 alpha-2) | CountryOfResidence | String (ISO 3166-1 alpha-2) | Occupation | String(<255 chars) | IncomeRange | 1 (-18K€, 2 (18-30K€), 3 (30-50K€), 4 (50-80K€), 5 (80-120K€), 6 (+120K€) | ProofOfIdentity | string | ProofOfAddress | string

For the Users type “LEGAL”

Property Type More
Name String
LegalPersonType String either ‘BUSINESS’ or ’ASSOCIATION’
HeadquartersAddress String
LegalRepresentativeFirstName String
LegalRepresentativeLastName String
LegalRepresentativeAdress String
LegalRepresentativeEmail String
LegalRepresentativeBirthday Date
LegalRepresentativeNationality String (ISO 3166-1 alpha-2)
LegalRepresentativeCountryOfResidence String (ISO 3166-1 alpha-2)
Statute String
ProofOfRegistration String
ShareholderDeclaration String

Retrieving all the Users

Arguments

None

Returns

An Array of Users

Example

MangoPay::User.fetch()

Retrieving a Users (natural or legal)

Arguments

  • user_id: the id of the user you want to fetch

Returns

A User Object

Examples

MangoPay::User.fetch(42344)
⚠️ **GitHub.com Fallback** ⚠️