Invoicing [PD-870]

Ensures that invoice emails remain static and that invoice ids provided to the user are unique.

All tests pass.
Very nice. Type safe, no magic strings. :+1: