Sha256: bb2a183af7f73ea1336bd5a5e55e730431a0e8fb5d6afae56b343f47168ee052
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
% if mode == 'definition': Balanced::Reversal.save % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') reversal = Balanced::Reversal.fetch('/reversals/RV6qrEOTouLeIJuPu4s73Ra1') reversal.description = 'update this description' reversal.meta = { 'refund.reason' => 'user not happy with product', 'user.notes' => 'very polite on the phone', 'user.satisfaction' => '6' } reversal.save % elif mode == 'response': #<Balanced::Reversal:0x007fa93b66d2a8 @attributes= {"amount"=>3000, "created_at"=>"2014-04-25T20:18:55.008280Z", "currency"=>"USD", "description"=>"update this description", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/reversals/RV6qrEOTouLeIJuPu4s73Ra1", "id"=>"RV6qrEOTouLeIJuPu4s73Ra1", "links"=>{"credit"=>"CR6nBcaGvGc4dtflEB1bjKBP", "order"=>nil}, "meta"=> {"refund.reason"=>"user not happy with product", "user.notes"=>"very polite on the phone", "user.satisfaction"=>"6"}, "status"=>"succeeded", "transaction_number"=>"RV296-883-6069", "updated_at"=>"2014-04-25T20:19:01.228936Z"}, @hyperlinks= {"credit"=> #<Proc:0x007fa93b666318/lib/balanced/resources/resource.rb:60 (lambda)>, "events"=> #<Proc:0x007fa93b65c098/lib/balanced/utils.rb:6 (lambda)>, "order"=> #<Proc:0x007fa93b655dd8/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0.2 | scenarios/reversal_update/ruby.mako |