Every user in our application should be an owner of some apartment. Once apartment created it should already have a list of ownerships (see ticket #478). Important user information as full name should be filled by cooperation admin during apartment creation. In this way during registration process user should not change it. There 2 types of owners can be created. Person and New workflow depends with other steps:
Cooperation admin crates apartment where filled users information. User's information with data saves into Database
After this by owner request cooperation admin can create invitation for user by concrete email. During this process registration token generates and sends to user with email
If user is a person:
user set the following fields: registration token, email, password and phone number.
If user is a legal_state:
user set all fields for a person and his full name.
After user confirm registration and there is no exception situations user record into Database updates and user becomes active
Tasks:
Rewrite OpenApi specification due to new model. Example of required payload present below:
Description
Every user in our application should be an owner of some apartment. Once apartment created it should already have a list of ownerships (see ticket #478). Important user information as full name should be filled by cooperation admin during apartment creation. In this way during registration process user should not change it. There 2 types of owners can be created. Person and New workflow depends with other steps:
If user is a
person
:If user is a
legal_state
:user set all fields for a person and his full name.
After user confirm registration and there is no exception situations user record into Database updates and user becomes active
Tasks:
For
person
:For
legal_state
user:Rewrite service layer due to new logic.
Optimize user' contact information storage in the database
Rewrite api tests due to new logic