Update Service.php

Add getTypes and filterType functions