Skip to content
Augustin Riedinger edited this page Jan 14, 2014 · 2 revisions

The NaturalUser Object

Attributes

Property Type
Email String
FirstName String
LastName String
Address String
Birthday Date
Birthplace String
Nationality String
CountryOfResidence String
Occupation String
IncomeRange Integer
Tag String

Creating a new NaturalUser

Arguments

  • natural_user: A hash:
    • Email
    • FirstName
    • LastName
    • Address
    • Birthday
    • Birthplace
    • Nationality
    • CountryOfResidence
    • Occupation
    • IncomeRange
    • Tag

Returns

A NaturalUser Object

Example

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
})

Updating a NaturalUser

Arguments

  • natural_user_id: The id of the legal user you want to update
  • natural_user: A Hash:
    • Email
    • FirstName
    • LastName
    • Address
    • Birthday
    • Birthplace
    • Nationality
    • CountryOfResidence
    • Occupation
    • IncomeRange
    • Tag

Returns

A NaturalUser object

Example

MangoPay::NaturalUser.update(39217, {
  FirstName: 'Jack',
  LastName: 'Dah'
})

Retrieving a NaturalUser

Arguments

  • natural_user_id: the id of the legal user

Returns

A NaturalUser Object

Example

MangoPay::NaturalUser.fetch(87323)
Clone this wiki locally