I thought it would be beneficial to you all to see some different designs that my company has done.
This video show a locking cap design with a threaded bottom. The top cap rotates and locks in both the open and closed positions. There is a plastic pin that provides the pivot point.
The parts were printed using an SLA printer (the Form2 in tough resin)