Add support for Invoices

**WIP - do not merge**