Sha256: 98437eae83ac21aa542113e14625c1ec0e394920be65d39a5f328874dde1fc0d
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-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') debit = Balanced::Debit.fetch('/debits/WD4SOTNKiZbBFrmMk6mfszIl') 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:0x007fa93b7ad5f0 @attributes= {"amount"=>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"=> #<Proc:0x007fa93b7a79c0/lib/balanced/resources/resource.rb:60 (lambda)>, "dispute"=> #<Proc:0x007fa93b7a6fe8/lib/balanced/utils.rb:6 (lambda)>, "events"=> #<Proc:0x007fa93b7a5058/lib/balanced/utils.rb:6 (lambda)>, "order"=> #<Proc:0x007fa93b7a4680/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0.2 | scenarios/refund_create/ruby.mako |