scenarios/card_hold_update/ruby.mako in balanced-1.0.1 vs scenarios/card_hold_update/ruby.mako in balanced-1.0.2

- old
+ new

@@ -1,44 +1,44 @@ % if mode == 'definition': Balanced::CardHold.save % elif mode == 'request': require 'balanced' -Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') +Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') -card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') +card_hold = Balanced::CardHold.fetch('/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl') card_hold.description = 'update this description' card_hold.meta = { 'holding.for' => 'user1', 'meaningful.key' => 'some.value' } card_hold.save % elif mode == 'response': -#<Balanced::CardHold:0x007fa4e411dd08 +#<Balanced::CardHold:0x007fa93b74c868 @attributes= {"amount"=>5000, - "created_at"=>"2014-03-06T19:22:44.421804Z", + "created_at"=>"2014-04-25T20:09:41.712497Z", "currency"=>"USD", "description"=>"update this description", - "expires_at"=>"2014-03-13T19:22:44.661981Z", + "expires_at"=>"2014-05-02T20:09:41.878825Z", "failure_reason"=>nil, "failure_reason_code"=>nil, - "href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT", - "id"=>"HL5wAfv8JaMsEn9idXrLZZZT", - "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil}, + "href"=>"/card_holds/HL4bdnO7ELS2JfyJ2T8elYOl", + "id"=>"HL4bdnO7ELS2JfyJ2T8elYOl", + "links"=>{"card"=>"CC4auQXiAWMBxJcEUIMYeZFj", "debit"=>nil}, "meta"=>{"holding.for"=>"user1", "meaningful.key"=>"some.value"}, "status"=>"succeeded", - "transaction_number"=>"HL116-606-6128", - "updated_at"=>"2014-03-06T19:22:48.496101Z", + "transaction_number"=>"HL244-046-8353", + "updated_at"=>"2014-04-25T20:09:45.729280Z", "voided_at"=>nil}, @hyperlinks= {"card"=> - #<Proc:0x007fa4e4127088/lib/balanced/resources/resource.rb:60 (lambda)>, + #<Proc:0x007fa93b746c10/lib/balanced/resources/resource.rb:60 (lambda)>, "debit"=> - #<Proc:0x007fa4e4124478/lib/balanced/utils.rb:6 (lambda)>, + #<Proc:0x007fa93b745f90/lib/balanced/utils.rb:6 (lambda)>, "debits"=> - #<Proc:0x007fa4e4935040/lib/balanced/utils.rb:6 (lambda)>, + #<Proc:0x007fa93b746788/lib/balanced/utils.rb:6 (lambda)>, "events"=> - #<Proc:0x007fa4e493e870/lib/balanced/utils.rb:6 (lambda)>}> + #<Proc:0x007fa93b73dcf0/lib/balanced/utils.rb:6 (lambda)>}> % endif