| Pharmacy_owner registers new adult employee with type 'HR' | - status - "NEW",
- employee_type - "HR"
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
| Response 200 - Employee saved in DB with status APPROVED
| - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|
EPR4 | Pharmacy_owner registers new not adult employee with type 'HR' | - status - "NEW",
- employee_type - "HR"
- name - valid
- birth_date - not valid (<18)
- documents - valid
- tax_id - valid
- phones - valid
| Response 422 | - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
|
|
EPR5 | Pharmacy_owner registers himself as new employee with type 'HR' | - status - "NEW",
- employee_type - "HR"
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
| Response 200 - Employee saved in DB with status APPROVED
| - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|
EPR6 | HR registers new employee with type PHARMACIST with - speciality_type - PHARMASICT2
| - status - "NEW",
- employee_type - "PHARMACIST"
- name - valid
- birth_date - valid (18+)
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
- speciality_type - PHARMASICT2
- Position - P15
| Response 200 - Employee saved in DB with status APPROVED
| - Get HR authorize token
- Authorize scopes hr
- Exchange grant token HR
- Create employee request
- Pass register steps via link in email
|
|
EPR7 | HR registers new employee with type PHARMACY_OWNER | - status - "NEW",
- employee_type - "PHARMACY_OWNER"
- name - valid
- birth_date - valid
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
| Response 422?? | - Get HR authorize token
- Authorize scopes hr
- Exchange grant token HR
- Create employee request
|
|
EPR8 | PHARMACY_OWNER registers new employee with type PHARMACY_OWNER | - status - "NEW",
- employee_type - "PHARMACY_OWNER"
- name - valid
- birth_date - valid
- documents - valid
- tax_id - valid
- phones - valid
- educations - valid
|
| - Get Pharmacy_owner authorize token
- Authorize scopes Pharmacy_owner
- Exchange grant token owner
- Create employee request
- Pass register steps via link in email
|
|