Sha256: 6ca8e57ce866bc4e31b713b7e667049314d3d6c83f232f3f251243ad51664007
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
% if mode == 'definition': Balanced::Debit.refund % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') debit = Balanced::Debit.fetch('/debits/WD3MKNxNTKBGgA7mX50yogiu') debit.refund( :amount => 3000, :description => 'Refund for Order #1111', :meta => { 'fulfillment.item.condition' => 'OK', 'merchant.feedback' => 'positive', 'user.refund_reason' => 'not happy with product' } ) % elif mode == 'response': #<Balanced::Refund:0x007fdc9c0e1958 @attributes= {"amount"=>3000, "created_at"=>"2014-01-27T22:58:11.375665Z", "currency"=>"USD", "description"=>"Refund for Order #1111", "href"=>"/refunds/RF3RklPuFgsgI50UuYtr4g6I", "id"=>"RF3RklPuFgsgI50UuYtr4g6I", "links"=> {"debit"=>"WD3MKNxNTKBGgA7mX50yogiu", "dispute"=>nil, "order"=>nil}, "meta"=> {"fulfillment.item.condition"=>"OK", "merchant.feedback"=>"positive", "user.refund_reason"=>"not happy with product"}, "status"=>"succeeded", "transaction_number"=>"RF383-088-7077", "updated_at"=>"2014-01-27T22:58:12.115131Z"}, @hyperlinks= {"debit"=> #<Proc:0x007fdc9c0d6eb8/lib/balanced/resources/resource.rb:60 (lambda)>, "dispute"=> #<Proc:0x007fdc9c0d5798/lib/balanced/utils.rb:6 (lambda)>, "events"=> #<Proc:0x007fdc9c0cf938/lib/balanced/utils.rb:6 (lambda)>, "order"=> #<Proc:0x007fdc9c0cebf0/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0.beta1 | scenarios/refund_create/ruby.mako |