scenarios/bank_account_debit/ruby.mako in balanced-1.0.1 vs scenarios/bank_account_debit/ruby.mako in balanced-1.0.2
- old
+ new
@@ -1,50 +1,50 @@
% if mode == 'definition':
Balanced::BankAccount.debit
% elif mode == 'request':
require 'balanced'
-Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
+Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
-bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM')
+bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb')
bank_account.debit(
:amount => 5000,
:appears_on_statement_as => 'Statement text',
:description => 'Some descriptive text for the debit in the dashboard'
)
% elif mode == 'response':
-#<Balanced::Debit:0x007fa4e40e2a78
+#<Balanced::Debit:0x007fa93ebddb68
@attributes=
{"amount"=>5000,
"appears_on_statement_as"=>"BAL*Statement text",
- "created_at"=>"2014-03-06T19:22:35.961050Z",
+ "created_at"=>"2014-04-25T20:09:33.925749Z",
"currency"=>"USD",
"description"=>"Some descriptive text for the debit in the dashboard",
"failure_reason"=>nil,
"failure_reason_code"=>nil,
- "href"=>"/debits/WD5qunOPeKdCnWXIg9EHyHge",
- "id"=>"WD5qunOPeKdCnWXIg9EHyHge",
+ "href"=>"/debits/WD42s4BBkPXvzXTxyo7CLfFj",
+ "id"=>"WD42s4BBkPXvzXTxyo7CLfFj",
"links"=>
{"customer"=>nil,
"dispute"=>nil,
"order"=>nil,
- "source"=>"BA50LpPrCTB63Ecm0wEgdOQM"},
+ "source"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
"meta"=>{},
"status"=>"succeeded",
- "transaction_number"=>"W051-293-0823",
- "updated_at"=>"2014-03-06T19:22:36.418154Z"},
+ "transaction_number"=>"W212-186-3238",
+ "updated_at"=>"2014-04-25T20:09:34.551675Z"},
@hyperlinks=
{"customer"=>
- #<Proc:0x007fa4e40e1290/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebdd028/lib/balanced/utils.rb:6 (lambda)>,
"dispute"=>
- #<Proc:0x007fa4e40dffa8/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebdc6a0/lib/balanced/utils.rb:6 (lambda)>,
"events"=>
- #<Proc:0x007fa4e40dd870/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebe67e0/lib/balanced/utils.rb:6 (lambda)>,
"order"=>
- #<Proc:0x007fa4e40dc718/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebe5e08/lib/balanced/utils.rb:6 (lambda)>,
"refunds"=>
- #<Proc:0x007fa4e40d62a0/lib/balanced/utils.rb:6 (lambda)>,
+ #<Proc:0x007fa93ebeff70/lib/balanced/utils.rb:6 (lambda)>,
"source"=>
- #<Proc:0x007fa4e40d44f0/lib/balanced/resources/resource.rb:60 (lambda)>}>
+ #<Proc:0x007fa93ebee5d0/lib/balanced/resources/resource.rb:60 (lambda)>}>
% endif