balanced 1.0.beta1 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/LICENSE +2 -2
  5. data/balanced.gemspec +1 -1
  6. data/lib/balanced/resources.rb +1 -0
  7. data/lib/balanced/resources/customer.rb +0 -14
  8. data/lib/balanced/resources/dispute.rb +12 -0
  9. data/lib/balanced/version.rb +1 -1
  10. data/scenario.cache +142 -141
  11. data/scenarios/api_key_create/ruby.mako +6 -6
  12. data/scenarios/api_key_delete/ruby.mako +2 -2
  13. data/scenarios/api_key_list/ruby.mako +10 -10
  14. data/scenarios/api_key_show/ruby.mako +6 -6
  15. data/scenarios/bank_account_associate_to_customer/ruby.mako +13 -13
  16. data/scenarios/bank_account_create/ruby.mako +13 -13
  17. data/scenarios/bank_account_credit/ruby.mako +15 -15
  18. data/scenarios/bank_account_debit/ruby.mako +15 -15
  19. data/scenarios/bank_account_delete/ruby.mako +2 -2
  20. data/scenarios/bank_account_list/ruby.mako +22 -22
  21. data/scenarios/bank_account_show/ruby.mako +12 -12
  22. data/scenarios/bank_account_update/ruby.mako +12 -12
  23. data/scenarios/bank_account_verification_create/ruby.mako +9 -9
  24. data/scenarios/bank_account_verification_show/ruby.mako +9 -9
  25. data/scenarios/bank_account_verification_update/ruby.mako +9 -9
  26. data/scenarios/callback_create/ruby.mako +5 -4
  27. data/scenarios/callback_delete/ruby.mako +2 -2
  28. data/scenarios/callback_list/ruby.mako +4 -4
  29. data/scenarios/callback_show/ruby.mako +5 -5
  30. data/scenarios/card_associate_to_customer/ruby.mako +15 -15
  31. data/scenarios/card_create/ruby.mako +14 -14
  32. data/scenarios/card_debit/ruby.mako +16 -16
  33. data/scenarios/card_delete/ruby.mako +2 -2
  34. data/scenarios/card_hold_capture/ruby.mako +16 -16
  35. data/scenarios/card_hold_create/ruby.mako +16 -14
  36. data/scenarios/card_hold_list/ruby.mako +29 -25
  37. data/scenarios/card_hold_show/ruby.mako +16 -14
  38. data/scenarios/card_hold_update/ruby.mako +16 -14
  39. data/scenarios/card_hold_void/ruby.mako +16 -14
  40. data/scenarios/card_list/ruby.mako +24 -24
  41. data/scenarios/card_show/ruby.mako +13 -13
  42. data/scenarios/card_update/ruby.mako +13 -13
  43. data/scenarios/credit_list/ruby.mako +14 -14
  44. data/scenarios/credit_list_bank_account/ruby.mako +2 -2
  45. data/scenarios/credit_show/ruby.mako +15 -15
  46. data/scenarios/credit_update/ruby.mako +15 -15
  47. data/scenarios/customer_create/ruby.mako +19 -17
  48. data/scenarios/customer_delete/ruby.mako +1 -1
  49. data/scenarios/customer_list/ruby.mako +37 -33
  50. data/scenarios/customer_show/ruby.mako +20 -18
  51. data/scenarios/customer_update/ruby.mako +20 -18
  52. data/scenarios/debit_list/ruby.mako +28 -28
  53. data/scenarios/debit_show/ruby.mako +15 -15
  54. data/scenarios/debit_update/ruby.mako +15 -15
  55. data/scenarios/event_list/ruby.mako +67 -20
  56. data/scenarios/event_show/ruby.mako +23 -21
  57. data/scenarios/order_create/ruby.mako +14 -14
  58. data/scenarios/order_list/ruby.mako +13 -13
  59. data/scenarios/order_show/ruby.mako +14 -14
  60. data/scenarios/order_update/ruby.mako +14 -14
  61. data/scenarios/refund_create/ruby.mako +13 -13
  62. data/scenarios/refund_list/ruby.mako +12 -12
  63. data/scenarios/refund_show/ruby.mako +13 -13
  64. data/scenarios/refund_update/ruby.mako +13 -13
  65. data/scenarios/render_mako.rb +0 -1
  66. data/scenarios/reversal_create/ruby.mako +12 -12
  67. data/scenarios/reversal_list/ruby.mako +11 -11
  68. data/scenarios/reversal_show/ruby.mako +12 -12
  69. data/scenarios/reversal_update/ruby.mako +12 -12
  70. data/spec/balanced/resources/bank_account_spec.rb +0 -3
  71. data/spec/balanced/resources/debit_spec.rb +0 -13
  72. data/spec/balanced/resources/dispute_spec.rb +65 -0
  73. metadata +20 -18
  74. data/.rbenv-version +0 -1
@@ -3,19 +3,19 @@ Balanced::ApiKey.new
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  key = Balanced::ApiKey.new.save
9
9
 
10
10
  % elif mode == 'response':
11
- #<Balanced::ApiKey:0x007fdc9d289228
11
+ #<Balanced::ApiKey:0x007ff2bd9dc8a0
12
12
  @attributes=
13
- {"created_at"=>"2014-01-27T22:56:01.641736Z",
14
- "href"=>"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c",
15
- "id"=>"AK1vqjn1eEHXP0JYXrBrjH5c",
13
+ {"created_at"=>"2014-03-06T19:22:18.256643Z",
14
+ "href"=>"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR",
15
+ "id"=>"AK4Vt1mJyCtjdSiGgqAebarR",
16
16
  "links"=>{},
17
17
  "meta"=>{},
18
- "secret"=>"ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv"},
18
+ "secret"=>"ak-test-4bQUCg96rUwLV8FZXSTeq8WUSqROO9yT"},
19
19
  @hyperlinks={}>
20
20
 
21
21
  % endif
@@ -2,9 +2,9 @@
2
2
  Balanced::ApiKey.unstore
3
3
  % elif mode == 'request':
4
4
  require 'balanced'
5
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
5
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
- key = Balanced::ApiKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c')
7
+ key = Balanced::ApiKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR')
8
8
  key.unstore
9
9
 
10
10
  % elif mode == 'response':
@@ -2,27 +2,27 @@
2
2
  Balanced::ApiKey.all
3
3
  % elif mode == 'request':
4
4
  require 'balanced'
5
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
5
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
7
  card = Balanced::ApiKey.all
8
8
 
9
9
  % elif mode == 'response':
10
- [#<Balanced::ApiKey:0x007fdc9d2bcbc8
10
+ [#<Balanced::ApiKey:0x007ff2bd9c6398
11
11
  @attributes=
12
- {"created_at"=>"2014-01-27T22:56:01.641736Z",
13
- "href"=>"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c",
14
- "id"=>"AK1vqjn1eEHXP0JYXrBrjH5c",
12
+ {"created_at"=>"2014-03-06T19:22:18.256643Z",
13
+ "href"=>"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR",
14
+ "id"=>"AK4Vt1mJyCtjdSiGgqAebarR",
15
15
  "links"=>{},
16
16
  "meta"=>{}},
17
17
  @hyperlinks={}>,
18
- #<Balanced::ApiKey:0x007fdc9d2bc948
18
+ #<Balanced::ApiKey:0x007ff2bd9c60a0
19
19
  @attributes=
20
- {"created_at"=>"2014-01-27T22:55:46.698536Z",
21
- "href"=>"/api_keys/AK1eDKn7B8vK70hj70S1NMbu",
22
- "id"=>"AK1eDKn7B8vK70hj70S1NMbu",
20
+ {"created_at"=>"2014-03-06T19:22:11.872886Z",
21
+ "href"=>"/api_keys/AK4OhVZUPzjD3YSCWBjU1dHO",
22
+ "id"=>"AK4OhVZUPzjD3YSCWBjU1dHO",
23
23
  "links"=>{},
24
24
  "meta"=>{},
25
- "secret"=>"ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc"},
25
+ "secret"=>"ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul"},
26
26
  @hyperlinks={}>]
27
27
 
28
28
  % endif
@@ -2,15 +2,15 @@
2
2
  Balanced::ApiKey.fetch
3
3
  % elif mode == 'request':
4
4
  require 'balanced'
5
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
5
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
- card = Balanced::ApiKey.fetch('/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c')
7
+ card = Balanced::ApiKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR')
8
8
  % elif mode == 'response':
9
- #<Balanced::ApiKey:0x007fdc9d2d6e88
9
+ #<Balanced::ApiKey:0x007ff2bc1124f0
10
10
  @attributes=
11
- {"created_at"=>"2014-01-27T22:56:01.641736Z",
12
- "href"=>"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c",
13
- "id"=>"AK1vqjn1eEHXP0JYXrBrjH5c",
11
+ {"created_at"=>"2014-03-06T19:22:18.256643Z",
12
+ "href"=>"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR",
13
+ "id"=>"AK4Vt1mJyCtjdSiGgqAebarR",
14
14
  "links"=>{},
15
15
  "meta"=>{}},
16
16
  @hyperlinks={}>
@@ -3,13 +3,13 @@ Balanced::Customer.add_bank_account
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- customer = Balanced::Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg')
8
+ customer = Balanced::Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8')
9
9
  customer.add_bank_account("")
10
10
 
11
11
  % elif mode == 'response':
12
- #<Balanced::BankAccount:0x007fdc9d2e7f30
12
+ #<Balanced::BankAccount:0x007ff2bd9ac0d8
13
13
  @attributes=
14
14
  {"account_number"=>"xxxxxx0001",
15
15
  "account_type"=>"checking",
@@ -23,27 +23,27 @@ customer.add_bank_account("")
23
23
  "bank_name"=>"BANK OF AMERICA, N.A.",
24
24
  "can_credit"=>true,
25
25
  "can_debit"=>false,
26
- "created_at"=>"2014-01-27T22:57:47.772481Z",
26
+ "created_at"=>"2014-03-06T19:23:27.876147Z",
27
27
  "fingerprint"=>
28
28
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
29
- "href"=>"/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0",
30
- "id"=>"BA3qNbYRqFM0Q7MXn3IcjGl0",
29
+ "href"=>"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m",
30
+ "id"=>"BA6bLGpQZPOiTNRxF24rMd9m",
31
31
  "links"=>
32
- {"bank_account_verification"=>nil, "customer"=>"CU3eeasZ9yQ86uzzIYZkrPGg"},
32
+ {"bank_account_verification"=>nil, "customer"=>"CU64R7DS6DwuXYVg9RTskFK8"},
33
33
  "meta"=>{},
34
34
  "name"=>"Johann Bernoulli",
35
35
  "routing_number"=>"121000358",
36
- "updated_at"=>"2014-01-27T22:57:48.515195Z"},
36
+ "updated_at"=>"2014-03-06T19:23:28.930538Z"},
37
37
  @hyperlinks=
38
38
  {"bank_account_verification"=>
39
- #<Proc:0x007fdc9d2e6f40/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007ff2bd9a6bb0/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "bank_account_verifications"=>
41
- #<Proc:0x007fdc9d2e5000/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007ff2bd9a4630/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "credits"=>
43
- #<Proc:0x007fdc9d2ef000/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007ff2bd99df60/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "customer"=>
45
- #<Proc:0x007fdc9b0271a8/lib/balanced/resources/resource.rb:60 (lambda)>,
45
+ #<Proc:0x007ff2bd98bf18/lib/balanced/resources/resource.rb:60 (lambda)>,
46
46
  "debits"=>
47
- #<Proc:0x007fdc9b02e570/lib/balanced/utils.rb:6 (lambda)>}>
47
+ #<Proc:0x007ff2bd9897b8/lib/balanced/utils.rb:6 (lambda)>}>
48
48
 
49
49
  % endif
@@ -3,17 +3,17 @@ Balanced::BankAccount.new
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  bank_account = Balanced::BankAccount.new(
9
9
  :account_number => '9900000001',
10
+ :account_type => 'checking',
10
11
  :name => 'Johann Bernoulli',
11
- :routing_number => '121000358',
12
- :type => 'checking'
12
+ :routing_number => '121000358'
13
13
  ).save
14
14
 
15
15
  % elif mode == 'response':
16
- #<Balanced::BankAccount:0x007fdc9b08ca30
16
+ #<Balanced::BankAccount:0x007ff2bd9617b8
17
17
  @attributes=
18
18
  {"account_number"=>"xxxxxx0001",
19
19
  "account_type"=>"checking",
@@ -27,26 +27,26 @@ bank_account = Balanced::BankAccount.new(
27
27
  "bank_name"=>"BANK OF AMERICA, N.A.",
28
28
  "can_credit"=>true,
29
29
  "can_debit"=>false,
30
- "created_at"=>"2014-01-27T22:57:47.772481Z",
30
+ "created_at"=>"2014-03-06T19:23:27.876147Z",
31
31
  "fingerprint"=>
32
32
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
33
- "href"=>"/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0",
34
- "id"=>"BA3qNbYRqFM0Q7MXn3IcjGl0",
33
+ "href"=>"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m",
34
+ "id"=>"BA6bLGpQZPOiTNRxF24rMd9m",
35
35
  "links"=>{"bank_account_verification"=>nil, "customer"=>nil},
36
36
  "meta"=>{},
37
37
  "name"=>"Johann Bernoulli",
38
38
  "routing_number"=>"121000358",
39
- "updated_at"=>"2014-01-27T22:57:47.772483Z"},
39
+ "updated_at"=>"2014-03-06T19:23:27.876150Z"},
40
40
  @hyperlinks=
41
41
  {"bank_account_verification"=>
42
- #<Proc:0x007fdc9b09f630/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007ff2bd960570/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "bank_account_verifications"=>
44
- #<Proc:0x007fdc9b103db0/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007ff2bd959fb8/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "credits"=>
46
- #<Proc:0x007fdc9b120dc0/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007ff2bd953a00/lib/balanced/utils.rb:6 (lambda)>,
47
47
  "customer"=>
48
- #<Proc:0x007fdc9b12ae10/lib/balanced/utils.rb:6 (lambda)>,
48
+ #<Proc:0x007ff2bd952e98/lib/balanced/utils.rb:6 (lambda)>,
49
49
  "debits"=>
50
- #<Proc:0x007fdc9b130fe0/lib/balanced/utils.rb:6 (lambda)>}>
50
+ #<Proc:0x007ff2bd950bc0/lib/balanced/utils.rb:6 (lambda)>}>
51
51
 
52
52
  % endif
@@ -3,40 +3,40 @@ Balanced::BankAccount.credit
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m')
9
9
  bank_account.credit(:amount => 5000)
10
10
  % elif mode == 'response':
11
- #<Balanced::Credit:0x007fdc9b190878
11
+ #<Balanced::Credit:0x007ff2bd8c2a28
12
12
  @attributes=
13
13
  {"amount"=>5000,
14
14
  "appears_on_statement_as"=>"example.com",
15
- "created_at"=>"2014-01-27T22:58:19.422292Z",
15
+ "created_at"=>"2014-03-06T19:23:54.514782Z",
16
16
  "currency"=>"USD",
17
17
  "description"=>nil,
18
18
  "failure_reason"=>nil,
19
19
  "failure_reason_code"=>nil,
20
- "href"=>"/credits/CR40neytmVG2HDBp1opfF7sY",
21
- "id"=>"CR40neytmVG2HDBp1opfF7sY",
20
+ "href"=>"/credits/CR6NpuEtezCdLTYngDrSEODv",
21
+ "id"=>"CR6NpuEtezCdLTYngDrSEODv",
22
22
  "links"=>
23
- {"customer"=>"CU3eeasZ9yQ86uzzIYZkrPGg",
24
- "destination"=>"BA3qNbYRqFM0Q7MXn3IcjGl0",
23
+ {"customer"=>"CU64R7DS6DwuXYVg9RTskFK8",
24
+ "destination"=>"BA6bLGpQZPOiTNRxF24rMd9m",
25
25
  "order"=>nil},
26
26
  "meta"=>{},
27
27
  "status"=>"succeeded",
28
- "transaction_number"=>"CR816-868-3666",
29
- "updated_at"=>"2014-01-27T22:58:20.346871Z"},
28
+ "transaction_number"=>"CR855-415-1670",
29
+ "updated_at"=>"2014-03-06T19:23:55.019500Z"},
30
30
  @hyperlinks=
31
31
  {"customer"=>
32
- #<Proc:0x007fdc9b804d08/lib/balanced/resources/resource.rb:60 (lambda)>,
32
+ #<Proc:0x007ff2bc106ba0/lib/balanced/resources/resource.rb:60 (lambda)>,
33
33
  "destination"=>
34
- #<Proc:0x007fdc9b814960/lib/balanced/resources/resource.rb:60 (lambda)>,
34
+ #<Proc:0x007ff2be16a428/lib/balanced/resources/resource.rb:60 (lambda)>,
35
35
  "events"=>
36
- #<Proc:0x007fdc9b827ab0/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007ff2be149250/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "order"=>
38
- #<Proc:0x007fdc9b10fb60/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007ff2be141550/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "reversals"=>
40
- #<Proc:0x007fdc9b82e040/lib/balanced/utils.rb:6 (lambda)>}>
40
+ #<Proc:0x007ff2be110540/lib/balanced/utils.rb:6 (lambda)>}>
41
41
 
42
42
  % endif
@@ -3,9 +3,9 @@ Balanced::BankAccount.debit
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM')
9
9
  bank_account.debit(
10
10
  :amount => 5000,
11
11
  :appears_on_statement_as => 'Statement text',
@@ -13,38 +13,38 @@ bank_account.debit(
13
13
  )
14
14
 
15
15
  % elif mode == 'response':
16
- #<Balanced::Debit:0x007fdc9c014188
16
+ #<Balanced::Debit:0x007ff2bdb7ad60
17
17
  @attributes=
18
18
  {"amount"=>5000,
19
19
  "appears_on_statement_as"=>"BAL*Statement text",
20
- "created_at"=>"2014-01-27T22:56:28.702119Z",
20
+ "created_at"=>"2014-03-06T19:22:35.961050Z",
21
21
  "currency"=>"USD",
22
22
  "description"=>"Some descriptive text for the debit in the dashboard",
23
23
  "failure_reason"=>nil,
24
24
  "failure_reason_code"=>nil,
25
- "href"=>"/debits/WD1ZRRAZnFTryFdFaq7ijcPE",
26
- "id"=>"WD1ZRRAZnFTryFdFaq7ijcPE",
25
+ "href"=>"/debits/WD5qunOPeKdCnWXIg9EHyHge",
26
+ "id"=>"WD5qunOPeKdCnWXIg9EHyHge",
27
27
  "links"=>
28
28
  {"customer"=>nil,
29
29
  "dispute"=>nil,
30
30
  "order"=>nil,
31
- "source"=>"BA1D3vL3LjasB0kewMqRGI0S"},
31
+ "source"=>"BA50LpPrCTB63Ecm0wEgdOQM"},
32
32
  "meta"=>{},
33
33
  "status"=>"succeeded",
34
- "transaction_number"=>"W081-463-7557",
35
- "updated_at"=>"2014-01-27T22:56:29.235927Z"},
34
+ "transaction_number"=>"W051-293-0823",
35
+ "updated_at"=>"2014-03-06T19:22:36.418154Z"},
36
36
  @hyperlinks=
37
37
  {"customer"=>
38
- #<Proc:0x007fdc9c0267c0/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007ff2bdb79f28/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "dispute"=>
40
- #<Proc:0x007fdc9c025488/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007ff2bdb79578/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "events"=>
42
- #<Proc:0x007fdc9c02ce90/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007ff2bdb736a0/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "order"=>
44
- #<Proc:0x007fdc9c035798/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007ff2bdb72ca0/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "refunds"=>
46
- #<Proc:0x007fdc9c0457b0/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007ff2bdb70e28/lib/balanced/utils.rb:6 (lambda)>,
47
47
  "source"=>
48
- #<Proc:0x007fdc9c04cec0/lib/balanced/resources/resource.rb:60 (lambda)>}>
48
+ #<Proc:0x007ff2bdb6aa28/lib/balanced/resources/resource.rb:60 (lambda)>}>
49
49
 
50
50
  % endif
@@ -3,9 +3,9 @@ Balanced::BankAccount.unstore
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
9
9
  bank_account.unstore
10
10
 
11
11
  % elif mode == 'response':
@@ -3,12 +3,12 @@ Balanced::BankAccount.all
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  Balanced::BankAccount.all
9
9
 
10
10
  % elif mode == 'response':
11
- [#<Balanced::BankAccount:0x007fdc9c085090
11
+ [#<Balanced::BankAccount:0x007ff2bdb17710
12
12
  @attributes=
13
13
  {"account_number"=>"xxxxxx0001",
14
14
  "account_type"=>"checking",
@@ -22,28 +22,28 @@ Balanced::BankAccount.all
22
22
  "bank_name"=>"BANK OF AMERICA, N.A.",
23
23
  "can_credit"=>true,
24
24
  "can_debit"=>false,
25
- "created_at"=>"2014-01-27T22:56:20.540530Z",
25
+ "created_at"=>"2014-03-06T19:22:30.247406Z",
26
26
  "fingerprint"=>
27
27
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
28
- "href"=>"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy",
29
- "id"=>"BA1QFf0LmIxr8p41msqX46Oy",
28
+ "href"=>"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V",
29
+ "id"=>"BA58WYAEUMrEtAkW5KAvWo5V",
30
30
  "links"=>{"bank_account_verification"=>nil, "customer"=>nil},
31
31
  "meta"=>{},
32
32
  "name"=>"Johann Bernoulli",
33
33
  "routing_number"=>"121000358",
34
- "updated_at"=>"2014-01-27T22:56:20.540534Z"},
34
+ "updated_at"=>"2014-03-06T19:22:30.247410Z"},
35
35
  @hyperlinks=
36
36
  {"bank_account_verification"=>
37
- #<Proc:0x007fdc9c0840a0/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007ff2bdb166f8/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "bank_account_verifications"=>
39
- #<Proc:0x007fdc9c08dcb8/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007ff2bdb14678/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "credits"=>
41
- #<Proc:0x007fdc9c0979e8/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007ff2bdb0d8f0/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "customer"=>
43
- #<Proc:0x007fdc9c096f48/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007ff2bdb0c6a8/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "debits"=>
45
- #<Proc:0x007fdc9c094bd0/lib/balanced/utils.rb:6 (lambda)>}>,
46
- #<Balanced::BankAccount:0x007fdc9c094b80
45
+ #<Proc:0x007ff2bdb054e8/lib/balanced/utils.rb:6 (lambda)>}>,
46
+ #<Balanced::BankAccount:0x007ff2bdb05498
47
47
  @attributes=
48
48
  {"account_number"=>"xxxxxx0001",
49
49
  "account_type"=>"checking",
@@ -57,28 +57,28 @@ Balanced::BankAccount.all
57
57
  "bank_name"=>"BANK OF AMERICA, N.A.",
58
58
  "can_credit"=>true,
59
59
  "can_debit"=>true,
60
- "created_at"=>"2014-01-27T22:56:08.446352Z",
60
+ "created_at"=>"2014-03-06T19:22:22.966278Z",
61
61
  "fingerprint"=>
62
62
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
63
- "href"=>"/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S",
64
- "id"=>"BA1D3vL3LjasB0kewMqRGI0S",
63
+ "href"=>"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM",
64
+ "id"=>"BA50LpPrCTB63Ecm0wEgdOQM",
65
65
  "links"=>
66
- {"bank_account_verification"=>"BZ1FF2MHFH9upRu7C0QUwnby",
66
+ {"bank_account_verification"=>"BZ5alC0fajkuBOvOU7lVT7QJ",
67
67
  "customer"=>nil},
68
68
  "meta"=>{},
69
69
  "name"=>"Johann Bernoulli",
70
70
  "routing_number"=>"121000358",
71
- "updated_at"=>"2014-01-27T22:56:18.623674Z"},
71
+ "updated_at"=>"2014-03-06T19:22:27.888575Z"},
72
72
  @hyperlinks=
73
73
  {"bank_account_verification"=>
74
- #<Proc:0x007fdc9c09daa0/lib/balanced/resources/resource.rb:60 (lambda)>,
74
+ #<Proc:0x007ff2bdafe670/lib/balanced/resources/resource.rb:60 (lambda)>,
75
75
  "bank_account_verifications"=>
76
- #<Proc:0x007fdc9c0a5610/lib/balanced/utils.rb:6 (lambda)>,
76
+ #<Proc:0x007ff2bc0231e8/lib/balanced/utils.rb:6 (lambda)>,
77
77
  "credits"=>
78
- #<Proc:0x007fdc9c0b68e8/lib/balanced/utils.rb:6 (lambda)>,
78
+ #<Proc:0x007ff2bc0d9df8/lib/balanced/utils.rb:6 (lambda)>,
79
79
  "customer"=>
80
- #<Proc:0x007fdc9c0b5e48/lib/balanced/utils.rb:6 (lambda)>,
80
+ #<Proc:0x007ff2bc0d8e58/lib/balanced/utils.rb:6 (lambda)>,
81
81
  "debits"=>
82
- #<Proc:0x007fdc9c0bfc68/lib/balanced/utils.rb:6 (lambda)>}>]
82
+ #<Proc:0x007ff2bd823bf8/lib/balanced/utils.rb:6 (lambda)>}>]
83
83
 
84
84
  % endif
@@ -2,12 +2,12 @@
2
2
  Balanced::BankAccount.fetch
3
3
  % elif mode == 'request':
4
4
  require 'balanced'
5
- Balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
5
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy')
7
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
8
8
 
9
9
  % elif mode == 'response':
10
- #<Balanced::BankAccount:0x007fdc9c0f72a8
10
+ #<Balanced::BankAccount:0x007ff2be0f38a0
11
11
  @attributes=
12
12
  {"account_number"=>"xxxxxx0001",
13
13
  "account_type"=>"checking",
@@ -21,26 +21,26 @@ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX4
21
21
  "bank_name"=>"BANK OF AMERICA, N.A.",
22
22
  "can_credit"=>true,
23
23
  "can_debit"=>false,
24
- "created_at"=>"2014-01-27T22:56:20.540530Z",
24
+ "created_at"=>"2014-03-06T19:22:30.247406Z",
25
25
  "fingerprint"=>
26
26
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
27
- "href"=>"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy",
28
- "id"=>"BA1QFf0LmIxr8p41msqX46Oy",
27
+ "href"=>"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V",
28
+ "id"=>"BA58WYAEUMrEtAkW5KAvWo5V",
29
29
  "links"=>{"bank_account_verification"=>nil, "customer"=>nil},
30
30
  "meta"=>{},
31
31
  "name"=>"Johann Bernoulli",
32
32
  "routing_number"=>"121000358",
33
- "updated_at"=>"2014-01-27T22:56:20.540534Z"},
33
+ "updated_at"=>"2014-03-06T19:22:30.247410Z"},
34
34
  @hyperlinks=
35
35
  {"bank_account_verification"=>
36
- #<Proc:0x007fdc9c0f6150/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007ff2be0fb370/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "bank_account_verifications"=>
38
- #<Proc:0x007fdc9c107e28/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007ff2be101d38/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "credits"=>
40
- #<Proc:0x007fdc9c1059e8/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007ff2be110c70/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "customer"=>
42
- #<Proc:0x007fdc9c104f48/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007ff2be111c60/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007fdc9c10eb88/lib/balanced/utils.rb:6 (lambda)>}>
44
+ #<Proc:0x007ff2be123758/lib/balanced/utils.rb:6 (lambda)>}>
45
45
 
46
46
  % endif