NaturalUser - Mangopay/mangopay2-ruby-sdk GitHub Wiki
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: '[email protected]',
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)