% if mode == 'definition': Balanced::Reversal.fetch % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') reversal = Balanced::Reversal.fetch('/reversals/RV42n8M9XZWna427oPDDi4RG') % elif mode == 'response': #3000, "created_at"=>"2014-01-27T22:58:21.214829Z", "currency"=>"USD", "description"=>"Reversal for Order #1111", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/reversals/RV42n8M9XZWna427oPDDi4RG", "id"=>"RV42n8M9XZWna427oPDDi4RG", "links"=>{"credit"=>"CR40neytmVG2HDBp1opfF7sY", "order"=>nil}, "meta"=> {"fulfillment.item.condition"=>"OK", "merchant.feedback"=>"positive", "user.refund_reason"=>"not happy with product"}, "status"=>"succeeded", "transaction_number"=>"RV219-169-0008", "updated_at"=>"2014-01-27T22:58:22.190749Z"}, @hyperlinks= {"credit"=> #, "events"=> #, "order"=> #}> % endif