* @param request
* user DTO - with user SSN;
* (optional) policy - sample policy
*/
public GenericResponse inviteCostomer(GenericRequest request) throws UserNotFoundException, InvalidInputValueException {
InvitationDTO invitationDTO = new InvitationDTO();
if(request.getAgentSsn() != null){
UserDTO agent = new UserDTO(request.getAgentSsn());
invitationDTO.setAgent(agent);
}
invitationDTO.setCustomer(request.getUser());
invitationDTO = cinService.sendInvitation(invitationDTO, request.getPolicy());
GenericResponse response = new GenericResponse();
response.setInvitation(invitationDTO);