Sha256: 8d8cc1b16e50e75eb79926e9486dd19198a41ac96d8633a4cb9fda4c149ded66
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-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') debit = Balanced::Debit.fetch('/debits/WD6BKYhbRzlRhfKSE1DcpqS5') 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:0x007ff2bda0ead0 @attributes= {"amount"=>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"=> #<Proc:0x007ff2bda0c7d0/lib/balanced/resources/resource.rb:60 (lambda)>, "dispute"=> #<Proc:0x007ff2bda05688/lib/balanced/utils.rb:6 (lambda)>, "events"=> #<Proc:0x007ff2bda057f0/lib/balanced/utils.rb:6 (lambda)>, "order"=> #<Proc:0x007ff2bda04a08/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0 | scenarios/refund_create/ruby.mako |