Add transaction type when saving a transaction

PTAL @fcduarte @amitbharadwaj