Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.9.0-b1
-
Component/s: None
-
Labels:None
Description
The method Clients::create creates a user, contact, and client. We want to create a method that will validate whether that method would succeed on the given input without actually creating the client. It can then be used to validate the information is sufficient and valid prior to attempting client creation.
- Add a method to the Clients model to validate whether given input is sufficient and valid for creating a client via Clients::create without attempting to create it
- Update any calls to Clients::create to first call the new validate method instead