scenarios/bank_account_credit/ruby.mako in balanced-1.0.beta1 vs scenarios/bank_account_credit/ruby.mako in balanced-1.0
- old
+ new
@@ -1,42 +1,42 @@
% if mode == 'definition':
Balanced::BankAccount.credit
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
+Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
-bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0')
+bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m')
bank_account.credit(:amount => 5000)
% elif mode == 'response':
-#<Balanced::Credit:0x007fdc9b190878
+#<Balanced::Credit:0x007ff2bd8c2a28
@attributes=
{"amount"=>5000,
"appears_on_statement_as"=>"example.com",
- "created_at"=>"2014-01-27T22:58:19.422292Z",
+ "created_at"=>"2014-03-06T19:23:54.514782Z",
"currency"=>"USD",
"description"=>nil,
"failure_reason"=>nil,
"failure_reason_code"=>nil,
- "href"=>"/credits/CR40neytmVG2HDBp1opfF7sY",
- "id"=>"CR40neytmVG2HDBp1opfF7sY",
+ "href"=>"/credits/CR6NpuEtezCdLTYngDrSEODv",
+ "id"=>"CR6NpuEtezCdLTYngDrSEODv",
"links"=>
- {"customer"=>"CU3eeasZ9yQ86uzzIYZkrPGg",
- "destination"=>"BA3qNbYRqFM0Q7MXn3IcjGl0",
+ {"customer"=>"CU64R7DS6DwuXYVg9RTskFK8",
+ "destination"=>"BA6bLGpQZPOiTNRxF24rMd9m",
"order"=>nil},
"meta"=>{},
"status"=>"succeeded",
- "transaction_number"=>"CR816-868-3666",
- "updated_at"=>"2014-01-27T22:58:20.346871Z"},
+ "transaction_number"=>"CR855-415-1670",
+ "updated_at"=>"2014-03-06T19:23:55.019500Z"},
@hyperlinks=
{"customer"=>
- #<Proc:0x007fdc9b804d08/lib/balanced/resources/resource.rb:60 (lambda)>,
+ #<Proc:0x007ff2bc106ba0/lib/balanced/resources/resource.rb:60 (lambda)>,
"destination"=>
- #<Proc:0x007fdc9b814960/lib/balanced/resources/resource.rb:60 (lambda)>,
+ #<Proc:0x007ff2be16a428/lib/balanced/resources/resource.rb:60 (lambda)>,
"events"=>
- #<Proc:0x007fdc9b827ab0/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007ff2be149250/lib/balanced/utils.rb:6 (lambda)>,
"order"=>
- #<Proc:0x007fdc9b10fb60/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007ff2be141550/lib/balanced/utils.rb:6 (lambda)>,
"reversals"=>
- #<Proc:0x007fdc9b82e040/lib/balanced/utils.rb:6 (lambda)>}>
+ #<Proc:0x007ff2be110540/lib/balanced/utils.rb:6 (lambda)>}>
% endif