% if mode == 'definition': Balanced::Refund.fetch % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') refund = Balanced::Refund.fetch('/refunds/RF6HsnqferSuES9VZEWrthG2') % elif mode == 'response': #3000, "created_at"=>"2014-03-06T19:23:46.176138Z", "currency"=>"USD", "description"=>"Refund for Order #1111", "href"=>"/refunds/RF6HsnqferSuES9VZEWrthG2", "id"=>"RF6HsnqferSuES9VZEWrthG2", "links"=> {"debit"=>"WD6BKYhbRzlRhfKSE1DcpqS5", "dispute"=>nil, "order"=>nil}, "meta"=> {"fulfillment.item.condition"=>"OK", "merchant.feedback"=>"positive", "user.refund_reason"=>"not happy with product"}, "status"=>"succeeded", "transaction_number"=>"RF348-549-7723", "updated_at"=>"2014-03-06T19:23:48.234584Z"}, @hyperlinks= {"debit"=> #, "dispute"=> #, "events"=> #, "order"=> #}> % endif