This should be an object of class Transaction rather than an untyped map.