scenarios/bank_account_credit/ruby.mako in balanced-1.0.1 vs scenarios/bank_account_credit/ruby.mako in balanced-1.0.2
- old
+ new
@@ -1,42 +1,42 @@
% if mode == 'definition':
Balanced::BankAccount.credit
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
+Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
-bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m')
+bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3Y63fK5STwlhKNMkE3Utmd')
bank_account.credit(:amount => 5000)
% elif mode == 'response':
-#<Balanced::Credit:0x007fa4e412db40
+#<Balanced::Credit:0x007fa93ebb71c0
@attributes=
{"amount"=>5000,
"appears_on_statement_as"=>"example.com",
- "created_at"=>"2014-03-06T19:23:54.514782Z",
+ "created_at"=>"2014-04-25T20:18:52.480929Z",
"currency"=>"USD",
"description"=>nil,
"failure_reason"=>nil,
"failure_reason_code"=>nil,
- "href"=>"/credits/CR6NpuEtezCdLTYngDrSEODv",
- "id"=>"CR6NpuEtezCdLTYngDrSEODv",
+ "href"=>"/credits/CR6nBcaGvGc4dtflEB1bjKBP",
+ "id"=>"CR6nBcaGvGc4dtflEB1bjKBP",
"links"=>
- {"customer"=>"CU64R7DS6DwuXYVg9RTskFK8",
- "destination"=>"BA6bLGpQZPOiTNRxF24rMd9m",
+ {"customer"=>"CU3VYCUIfwngJsidJWdGw2W5",
+ "destination"=>"BA3Y63fK5STwlhKNMkE3Utmd",
"order"=>nil},
"meta"=>{},
"status"=>"succeeded",
- "transaction_number"=>"CR855-415-1670",
- "updated_at"=>"2014-03-06T19:23:55.019500Z"},
+ "transaction_number"=>"CR666-481-5204",
+ "updated_at"=>"2014-04-25T20:18:54.380146Z"},
@hyperlinks=
{"customer"=>
- #<Proc:0x007fa4e411fe50/lib/balanced/resources/resource.rb:60 (lambda)>,
+ #<Proc:0x007fa93ebb5690/lib/balanced/resources/resource.rb:60 (lambda)>,
"destination"=>
- #<Proc:0x007fa4e411e230/lib/balanced/resources/resource.rb:60 (lambda)>,
+ #<Proc:0x007fa93ebbfcf8/lib/balanced/resources/resource.rb:60 (lambda)>,
"events"=>
- #<Proc:0x007fa4e4117980/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebbde80/lib/balanced/utils.rb:6 (lambda)>,
"order"=>
- #<Proc:0x007fa4e4116dc8/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebbd4a8/lib/balanced/utils.rb:6 (lambda)>,
"reversals"=>
- #<Proc:0x007fa4e4114b90/lib/balanced/utils.rb:6 (lambda)>}>
+ #<Proc:0x007fa93ebc7610/lib/balanced/utils.rb:6 (lambda)>}>
% endif