types: Make transaction on report optional.

While v3 API provides a transaction UUID v2 does not. Requiring it would
break our support of v2 API.