mangopay v0.1.0 MangoPay.User.Legal
Functions for MangoPay user legal.
MangoPay official API documentation: https://docs.mangopay.com/endpoints/v2.01/users#e253_the-user-object
Link to this section Summary
Link to this section Functions
Link to this function
create(params)
Create a user.
Examples
params = %{
"Tag": "custom meta",
"HeadquartersAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"LegalPersonType": "BUSINESS",
"Name": "Mangopay Ltd",
"LegalRepresentativeAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"LegalRepresentativeBirthday": 1463496101,
"LegalRepresentativeCountryOfResidence": "ES",
"LegalRepresentativeNationality": "FR",
"LegalRepresentativeEmail": "support@mangopay.com",
"LegalRepresentativeFirstName": "Joe",
"LegalRepresentativeLastName": "Blogs",
"Email": "support@mangopay.com",
"CompanyNumber": "LU72HN11"
}
{:ok, user} = MangoPay.UserLegal.create(params)
Link to this function
create!(params)
Create a user.
Examples
params = %{
"Tag": "custom meta",
"HeadquartersAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"LegalPersonType": "BUSINESS",
"Name": "Mangopay Ltd",
"LegalRepresentativeAddress": %{
"AddressLine1": "1 Mangopay Street",
"AddressLine2": "The Loop",
"City": "Paris",
"Region": "Ile de France",
"PostalCode": "75001",
"Country": "FR"
},
"LegalRepresentativeBirthday": 1463496101,
"LegalRepresentativeCountryOfResidence": "ES",
"LegalRepresentativeNationality": "FR",
"LegalRepresentativeEmail": "support@mangopay.com",
"LegalRepresentativeFirstName": "Joe",
"LegalRepresentativeLastName": "Blogs",
"Email": "support@mangopay.com",
"CompanyNumber": "LU72HN11"
}
user = MangoPay.UserLegal.create!(params)
Link to this function
path()
Get path called.
Examples
"/users" = MangoPay.User.path()
Link to this function
path(id)
Get path called.
Examples
"/users/id" = MangoPay.User.path(id)
Link to this function
update(id, params)
Update a user.
Examples
params = %{
"Tag": "custom meta",
"HeadquartersAddress": "3 Mangopay Loop, Paris, 777",
"Name": "Mangopay Ltd",
"LegalRepresentativeAddress": "34bis Mangopay Circle, Paris, 777",
"LegalRepresentativeBirthday": 1463496101,
"LegalRepresentativeCountryOfResidence": "ES",
"LegalRepresentativeNationality": "FR",
"LegalRepresentativeEmail": "support@mangopay.com",
"LegalRepresentativeFirstName": "Joe",
"LegalRepresentativeLastName": "Blogs",
"LegalPersonType": "BUSINESS",
"CompanyNumber": "LU72HN11"
}
{:ok, user} = MangoPay.UserLegal.update(id, params)
Link to this function
update!(id, params)
Update a user.
Examples
params = %{
"Tag": "custom meta",
"HeadquartersAddress": "3 Mangopay Loop, Paris, 777",
"Name": "Mangopay Ltd",
"LegalRepresentativeAddress": "34bis Mangopay Circle, Paris, 777",
"LegalRepresentativeBirthday": 1463496101,
"LegalRepresentativeCountryOfResidence": "ES",
"LegalRepresentativeNationality": "FR",
"LegalRepresentativeEmail": "support@mangopay.com",
"LegalRepresentativeFirstName": "Joe",
"LegalRepresentativeLastName": "Blogs",
"LegalPersonType": "BUSINESS",
"CompanyNumber": "LU72HN11"
}
user = MangoPay.UserLegal.update(id, params)