% if mode == 'definition': Balanced::Refund.fetch % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') refund = Balanced::Refund.fetch('/refunds/RF4VbbS5LdgSxlECITkHg0Zf') % elif mode == 'response': #3000, "created_at"=>"2014-04-25T20:10:22.593252Z", "currency"=>"USD", "description"=>"Refund for Order #1111", "href"=>"/refunds/RF4VbbS5LdgSxlECITkHg0Zf", "id"=>"RF4VbbS5LdgSxlECITkHg0Zf", "links"=> {"debit"=>"WD4SOTNKiZbBFrmMk6mfszIl", "dispute"=>nil, "order"=>nil}, "meta"=> {"fulfillment.item.condition"=>"OK", "merchant.feedback"=>"positive", "user.refund_reason"=>"not happy with product"}, "status"=>"succeeded", "transaction_number"=>"RF854-846-2859", "updated_at"=>"2014-04-25T20:10:23.032505Z"}, @hyperlinks= {"debit"=> #, "dispute"=> #, "events"=> #, "order"=> #}> % endif