Added support for invoice and client apis
Fixed nullable invoice properties
Fixed fields needing to be long