scenarios/reversal_create/ruby.mako in balanced-1.0.2 vs scenarios/reversal_create/ruby.mako in balanced-1.1.0

- old
+ new

@@ -1,12 +1,12 @@ % if mode == 'definition': Balanced::Credit.reverse % elif mode == 'request': require 'balanced' -Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') +Balanced.configure('ak-test-2q80HU8DISm2atgm0iRKRVIePzDb34qYp') -reversal = Balanced::Credit.fetch('/credits/CR6nBcaGvGc4dtflEB1bjKBP') +reversal = Balanced::Credit.fetch('/credits/CR7ushK6kWjPJYdh24QoM1A9') credit.reverse( :amount => 3000, :description => 'Reversal for Order #1111', :meta => { 'fulfillment.item.condition' => 'OK', @@ -14,32 +14,32 @@ 'user.refund_reason' => 'not happy with product' } ) % elif mode == 'response': -#<Balanced::Reversal:0x007fa93b70ee00 +#<Balanced::Reversal:0x007fa7d417fe70 @attributes= {"amount"=>3000, - "created_at"=>"2014-04-25T20:18:55.008280Z", + "created_at"=>"2014-05-15T00:43:48.266113Z", "currency"=>"USD", "description"=>"Reversal for Order #1111", "failure_reason"=>nil, "failure_reason_code"=>nil, - "href"=>"/reversals/RV6qrEOTouLeIJuPu4s73Ra1", - "id"=>"RV6qrEOTouLeIJuPu4s73Ra1", - "links"=>{"credit"=>"CR6nBcaGvGc4dtflEB1bjKBP", "order"=>nil}, + "href"=>"/reversals/RV7BYCqyLOKwcWigapAoGWdr", + "id"=>"RV7BYCqyLOKwcWigapAoGWdr", + "links"=>{"credit"=>"CR7ushK6kWjPJYdh24QoM1A9", "order"=>nil}, "meta"=> {"fulfillment.item.condition"=>"OK", "merchant.feedback"=>"positive", "user.refund_reason"=>"not happy with product"}, "status"=>"succeeded", - "transaction_number"=>"RV296-883-6069", - "updated_at"=>"2014-04-25T20:18:57.393905Z"}, + "transaction_number"=>"RV689-626-0403", + "updated_at"=>"2014-05-15T00:43:53.755588Z"}, @hyperlinks= {"credit"=> - #<Proc:0x007fa93b70d1e0/lib/balanced/resources/resource.rb:60 (lambda)>, + #<Proc:0x007fa7d417e1b0/lib/balanced/resources/resource.rb:60 (lambda)>, "events"=> - #<Proc:0x007fa93b707290/lib/balanced/utils.rb:6 (lambda)>, + #<Proc:0x007fa7d4177c48/lib/balanced/utils.rb:6 (lambda)>, "order"=> - #<Proc:0x007fa93b7068b8/lib/balanced/utils.rb:6 (lambda)>}> + #<Proc:0x007fa7d4176af0/lib/balanced/utils.rb:6 (lambda)>}> % endif