Schema
Contact
Class Contact, to handle Contact data and validate them
-
companystringCompany name (optional)
-
lastnamestringLast name
-
firstnamestringFirst name
-
addressstringStreet address
-
postalstringPostal code
-
citystringCity
-
countrystringCountry code (ISO 3166-1 alpha-2)
-
phonestringPhone number for the contact in the international format 00{country code}{number}
-
emailstringEmail address
-
passwordstringPassword (10-15 characters, must contain at least one uppercase letter, one lowercase letter, one number and one special character among -!*$@%_)
-
is_companybooleanWhether the contact is for a company or not
-
creditintegerCredit balance
{
"company": "My Company",
"lastname": "Doe",
"firstname": "John",
"address": "1 rue de la Paix",
"postal": "75000",
"city": "Paris",
"country": "FR",
"phone": "0033612345678",
"email": "[email protected]",
"password": "password",
"is_company": false,
"credit": 0
}