added function to get all types of an order