forked from antho1404/mangopay2-ruby-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
NaturalUser
Augustin Riedinger edited this page Jan 14, 2014
·
2 revisions
| Property | Type |
|---|---|
| String | |
| FirstName | String |
| LastName | String |
| Address | String |
| Birthday | Date |
| Birthplace | String |
| Nationality | String |
| CountryOfResidence | String |
| Occupation | String |
| IncomeRange | Integer |
| Tag | String |
- natural_user: A hash:
- FirstName
- LastName
- Address
- Birthday
- Birthplace
- Nationality
- CountryOfResidence
- Occupation
- IncomeRange
- Tag
A NaturalUser Object
MangoPay::NaturalUser.create({
Tag: 'test',
Email: 'my@email.com',
FirstName: 'John',
LastName: 'Doe',
Address: 'Here',
Birthday: Date.parse('01-01-2000').to_time.to_i,
Birthplace: 'Paris',
Nationality: 'FR',
CountryOfResidence: 'FR',
Occupation: 'Worker',
IncomeRange: 1
})- natural_user_id: The id of the legal user you want to update
- natural_user: A Hash:
- FirstName
- LastName
- Address
- Birthday
- Birthplace
- Nationality
- CountryOfResidence
- Occupation
- IncomeRange
- Tag
A NaturalUser object
MangoPay::NaturalUser.update(39217, {
FirstName: 'Jack',
LastName: 'Dah'
})- natural_user_id: the id of the legal user
A NaturalUser Object
MangoPay::NaturalUser.fetch(87323)