spree/spree — pull request #5202 by jordan-brough (2014-08-13 12:38:25+00:00)
Title: Send originator of refund as an option to the gateway

Then the gateway can use that information for logging/auditing/connecting/etc.
This applies mostly to gateways that store the resulting objects in our database. In particular, the store credits extension can use this to link the credits generated & refunded to the originating object (a refund).