Add support for updating a refund

Now that refunds can be updated, add support for adding and updating metadata.

Note: the tests will not pass until the support in the API has been shipped. Don't merge until then.