balanced 1.0.beta1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/LICENSE +2 -2
- data/balanced.gemspec +1 -1
- data/lib/balanced/resources.rb +1 -0
- data/lib/balanced/resources/customer.rb +0 -14
- data/lib/balanced/resources/dispute.rb +12 -0
- data/lib/balanced/version.rb +1 -1
- data/scenario.cache +142 -141
- data/scenarios/api_key_create/ruby.mako +6 -6
- data/scenarios/api_key_delete/ruby.mako +2 -2
- data/scenarios/api_key_list/ruby.mako +10 -10
- data/scenarios/api_key_show/ruby.mako +6 -6
- data/scenarios/bank_account_associate_to_customer/ruby.mako +13 -13
- data/scenarios/bank_account_create/ruby.mako +13 -13
- data/scenarios/bank_account_credit/ruby.mako +15 -15
- data/scenarios/bank_account_debit/ruby.mako +15 -15
- data/scenarios/bank_account_delete/ruby.mako +2 -2
- data/scenarios/bank_account_list/ruby.mako +22 -22
- data/scenarios/bank_account_show/ruby.mako +12 -12
- data/scenarios/bank_account_update/ruby.mako +12 -12
- data/scenarios/bank_account_verification_create/ruby.mako +9 -9
- data/scenarios/bank_account_verification_show/ruby.mako +9 -9
- data/scenarios/bank_account_verification_update/ruby.mako +9 -9
- data/scenarios/callback_create/ruby.mako +5 -4
- data/scenarios/callback_delete/ruby.mako +2 -2
- data/scenarios/callback_list/ruby.mako +4 -4
- data/scenarios/callback_show/ruby.mako +5 -5
- data/scenarios/card_associate_to_customer/ruby.mako +15 -15
- data/scenarios/card_create/ruby.mako +14 -14
- data/scenarios/card_debit/ruby.mako +16 -16
- data/scenarios/card_delete/ruby.mako +2 -2
- data/scenarios/card_hold_capture/ruby.mako +16 -16
- data/scenarios/card_hold_create/ruby.mako +16 -14
- data/scenarios/card_hold_list/ruby.mako +29 -25
- data/scenarios/card_hold_show/ruby.mako +16 -14
- data/scenarios/card_hold_update/ruby.mako +16 -14
- data/scenarios/card_hold_void/ruby.mako +16 -14
- data/scenarios/card_list/ruby.mako +24 -24
- data/scenarios/card_show/ruby.mako +13 -13
- data/scenarios/card_update/ruby.mako +13 -13
- data/scenarios/credit_list/ruby.mako +14 -14
- data/scenarios/credit_list_bank_account/ruby.mako +2 -2
- data/scenarios/credit_show/ruby.mako +15 -15
- data/scenarios/credit_update/ruby.mako +15 -15
- data/scenarios/customer_create/ruby.mako +19 -17
- data/scenarios/customer_delete/ruby.mako +1 -1
- data/scenarios/customer_list/ruby.mako +37 -33
- data/scenarios/customer_show/ruby.mako +20 -18
- data/scenarios/customer_update/ruby.mako +20 -18
- data/scenarios/debit_list/ruby.mako +28 -28
- data/scenarios/debit_show/ruby.mako +15 -15
- data/scenarios/debit_update/ruby.mako +15 -15
- data/scenarios/event_list/ruby.mako +67 -20
- data/scenarios/event_show/ruby.mako +23 -21
- data/scenarios/order_create/ruby.mako +14 -14
- data/scenarios/order_list/ruby.mako +13 -13
- data/scenarios/order_show/ruby.mako +14 -14
- data/scenarios/order_update/ruby.mako +14 -14
- data/scenarios/refund_create/ruby.mako +13 -13
- data/scenarios/refund_list/ruby.mako +12 -12
- data/scenarios/refund_show/ruby.mako +13 -13
- data/scenarios/refund_update/ruby.mako +13 -13
- data/scenarios/render_mako.rb +0 -1
- data/scenarios/reversal_create/ruby.mako +12 -12
- data/scenarios/reversal_list/ruby.mako +11 -11
- data/scenarios/reversal_show/ruby.mako +12 -12
- data/scenarios/reversal_update/ruby.mako +12 -12
- data/spec/balanced/resources/bank_account_spec.rb +0 -3
- data/spec/balanced/resources/debit_spec.rb +0 -13
- data/spec/balanced/resources/dispute_spec.rb +65 -0
- metadata +20 -18
- 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-
|
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:
|
11
|
+
#<Balanced::ApiKey:0x007ff2bd9dc8a0
|
12
12
|
@attributes=
|
13
|
-
{"created_at"=>"2014-
|
14
|
-
"href"=>"/api_keys/
|
15
|
-
"id"=>"
|
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-
|
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-
|
5
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
6
6
|
|
7
|
-
key = Balanced::ApiKey.fetch('/api_keys/
|
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-
|
5
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
6
6
|
|
7
7
|
card = Balanced::ApiKey.all
|
8
8
|
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::ApiKey:
|
10
|
+
[#<Balanced::ApiKey:0x007ff2bd9c6398
|
11
11
|
@attributes=
|
12
|
-
{"created_at"=>"2014-
|
13
|
-
"href"=>"/api_keys/
|
14
|
-
"id"=>"
|
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:
|
18
|
+
#<Balanced::ApiKey:0x007ff2bd9c60a0
|
19
19
|
@attributes=
|
20
|
-
{"created_at"=>"2014-
|
21
|
-
"href"=>"/api_keys/
|
22
|
-
"id"=>"
|
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-
|
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-
|
5
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
6
6
|
|
7
|
-
card = Balanced::ApiKey.fetch('/api_keys/
|
7
|
+
card = Balanced::ApiKey.fetch('/api_keys/AK4Vt1mJyCtjdSiGgqAebarR')
|
8
8
|
% elif mode == 'response':
|
9
|
-
#<Balanced::ApiKey:
|
9
|
+
#<Balanced::ApiKey:0x007ff2bc1124f0
|
10
10
|
@attributes=
|
11
|
-
{"created_at"=>"2014-
|
12
|
-
"href"=>"/api_keys/
|
13
|
-
"id"=>"
|
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-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
customer = Balanced::Customer.fetch('/customers/
|
8
|
+
customer = Balanced::Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8')
|
9
9
|
customer.add_bank_account("")
|
10
10
|
|
11
11
|
% elif mode == 'response':
|
12
|
-
#<Balanced::BankAccount:
|
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-
|
26
|
+
"created_at"=>"2014-03-06T19:23:27.876147Z",
|
27
27
|
"fingerprint"=>
|
28
28
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
29
|
-
"href"=>"/bank_accounts/
|
30
|
-
"id"=>"
|
29
|
+
"href"=>"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m",
|
30
|
+
"id"=>"BA6bLGpQZPOiTNRxF24rMd9m",
|
31
31
|
"links"=>
|
32
|
-
{"bank_account_verification"=>nil, "customer"=>"
|
32
|
+
{"bank_account_verification"=>nil, "customer"=>"CU64R7DS6DwuXYVg9RTskFK8"},
|
33
33
|
"meta"=>{},
|
34
34
|
"name"=>"Johann Bernoulli",
|
35
35
|
"routing_number"=>"121000358",
|
36
|
-
"updated_at"=>"2014-
|
36
|
+
"updated_at"=>"2014-03-06T19:23:28.930538Z"},
|
37
37
|
@hyperlinks=
|
38
38
|
{"bank_account_verification"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007ff2bd9a6bb0/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"bank_account_verifications"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007ff2bd9a4630/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"credits"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007ff2bd99df60/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"customer"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007ff2bd98bf18/lib/balanced/resources/resource.rb:60 (lambda)>,
|
46
46
|
"debits"=>
|
47
|
-
#<Proc:
|
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-
|
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:
|
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-
|
30
|
+
"created_at"=>"2014-03-06T19:23:27.876147Z",
|
31
31
|
"fingerprint"=>
|
32
32
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
33
|
-
"href"=>"/bank_accounts/
|
34
|
-
"id"=>"
|
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-
|
39
|
+
"updated_at"=>"2014-03-06T19:23:27.876150Z"},
|
40
40
|
@hyperlinks=
|
41
41
|
{"bank_account_verification"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2bd960570/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"bank_account_verifications"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007ff2bd959fb8/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"credits"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007ff2bd953a00/lib/balanced/utils.rb:6 (lambda)>,
|
47
47
|
"customer"=>
|
48
|
-
#<Proc:
|
48
|
+
#<Proc:0x007ff2bd952e98/lib/balanced/utils.rb:6 (lambda)>,
|
49
49
|
"debits"=>
|
50
|
-
#<Proc:
|
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-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
8
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m')
|
9
9
|
bank_account.credit(:amount => 5000)
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::Credit:
|
11
|
+
#<Balanced::Credit:0x007ff2bd8c2a28
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>5000,
|
14
14
|
"appears_on_statement_as"=>"example.com",
|
15
|
-
"created_at"=>"2014-
|
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/
|
21
|
-
"id"=>"
|
20
|
+
"href"=>"/credits/CR6NpuEtezCdLTYngDrSEODv",
|
21
|
+
"id"=>"CR6NpuEtezCdLTYngDrSEODv",
|
22
22
|
"links"=>
|
23
|
-
{"customer"=>"
|
24
|
-
"destination"=>"
|
23
|
+
{"customer"=>"CU64R7DS6DwuXYVg9RTskFK8",
|
24
|
+
"destination"=>"BA6bLGpQZPOiTNRxF24rMd9m",
|
25
25
|
"order"=>nil},
|
26
26
|
"meta"=>{},
|
27
27
|
"status"=>"succeeded",
|
28
|
-
"transaction_number"=>"
|
29
|
-
"updated_at"=>"2014-
|
28
|
+
"transaction_number"=>"CR855-415-1670",
|
29
|
+
"updated_at"=>"2014-03-06T19:23:55.019500Z"},
|
30
30
|
@hyperlinks=
|
31
31
|
{"customer"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007ff2bc106ba0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
33
33
|
"destination"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007ff2be16a428/lib/balanced/resources/resource.rb:60 (lambda)>,
|
35
35
|
"events"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2be149250/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"order"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2be141550/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"reversals"=>
|
40
|
-
#<Proc:
|
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-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
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:
|
16
|
+
#<Balanced::Debit:0x007ff2bdb7ad60
|
17
17
|
@attributes=
|
18
18
|
{"amount"=>5000,
|
19
19
|
"appears_on_statement_as"=>"BAL*Statement text",
|
20
|
-
"created_at"=>"2014-
|
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/
|
26
|
-
"id"=>"
|
25
|
+
"href"=>"/debits/WD5qunOPeKdCnWXIg9EHyHge",
|
26
|
+
"id"=>"WD5qunOPeKdCnWXIg9EHyHge",
|
27
27
|
"links"=>
|
28
28
|
{"customer"=>nil,
|
29
29
|
"dispute"=>nil,
|
30
30
|
"order"=>nil,
|
31
|
-
"source"=>"
|
31
|
+
"source"=>"BA50LpPrCTB63Ecm0wEgdOQM"},
|
32
32
|
"meta"=>{},
|
33
33
|
"status"=>"succeeded",
|
34
|
-
"transaction_number"=>"
|
35
|
-
"updated_at"=>"2014-
|
34
|
+
"transaction_number"=>"W051-293-0823",
|
35
|
+
"updated_at"=>"2014-03-06T19:22:36.418154Z"},
|
36
36
|
@hyperlinks=
|
37
37
|
{"customer"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2bdb79f28/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"dispute"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007ff2bdb79578/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"events"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2bdb736a0/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"order"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007ff2bdb72ca0/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"refunds"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007ff2bdb70e28/lib/balanced/utils.rb:6 (lambda)>,
|
47
47
|
"source"=>
|
48
|
-
#<Proc:
|
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-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
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-
|
6
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
7
7
|
|
8
8
|
Balanced::BankAccount.all
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
[#<Balanced::BankAccount:
|
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-
|
25
|
+
"created_at"=>"2014-03-06T19:22:30.247406Z",
|
26
26
|
"fingerprint"=>
|
27
27
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
28
|
-
"href"=>"/bank_accounts/
|
29
|
-
"id"=>"
|
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-
|
34
|
+
"updated_at"=>"2014-03-06T19:22:30.247410Z"},
|
35
35
|
@hyperlinks=
|
36
36
|
{"bank_account_verification"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007ff2bdb166f8/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"bank_account_verifications"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007ff2bdb14678/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"credits"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007ff2bdb0d8f0/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"customer"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007ff2bdb0c6a8/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"debits"=>
|
45
|
-
#<Proc:
|
46
|
-
#<Balanced::BankAccount:
|
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-
|
60
|
+
"created_at"=>"2014-03-06T19:22:22.966278Z",
|
61
61
|
"fingerprint"=>
|
62
62
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
63
|
-
"href"=>"/bank_accounts/
|
64
|
-
"id"=>"
|
63
|
+
"href"=>"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM",
|
64
|
+
"id"=>"BA50LpPrCTB63Ecm0wEgdOQM",
|
65
65
|
"links"=>
|
66
|
-
{"bank_account_verification"=>"
|
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-
|
71
|
+
"updated_at"=>"2014-03-06T19:22:27.888575Z"},
|
72
72
|
@hyperlinks=
|
73
73
|
{"bank_account_verification"=>
|
74
|
-
#<Proc:
|
74
|
+
#<Proc:0x007ff2bdafe670/lib/balanced/resources/resource.rb:60 (lambda)>,
|
75
75
|
"bank_account_verifications"=>
|
76
|
-
#<Proc:
|
76
|
+
#<Proc:0x007ff2bc0231e8/lib/balanced/utils.rb:6 (lambda)>,
|
77
77
|
"credits"=>
|
78
|
-
#<Proc:
|
78
|
+
#<Proc:0x007ff2bc0d9df8/lib/balanced/utils.rb:6 (lambda)>,
|
79
79
|
"customer"=>
|
80
|
-
#<Proc:
|
80
|
+
#<Proc:0x007ff2bc0d8e58/lib/balanced/utils.rb:6 (lambda)>,
|
81
81
|
"debits"=>
|
82
|
-
#<Proc:
|
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-
|
5
|
+
Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
6
6
|
|
7
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
7
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
|
8
8
|
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::BankAccount:
|
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-
|
24
|
+
"created_at"=>"2014-03-06T19:22:30.247406Z",
|
25
25
|
"fingerprint"=>
|
26
26
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
27
|
-
"href"=>"/bank_accounts/
|
28
|
-
"id"=>"
|
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-
|
33
|
+
"updated_at"=>"2014-03-06T19:22:30.247410Z"},
|
34
34
|
@hyperlinks=
|
35
35
|
{"bank_account_verification"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2be0fb370/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"bank_account_verifications"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2be101d38/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"credits"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007ff2be110c70/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"customer"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2be111c60/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007ff2be123758/lib/balanced/utils.rb:6 (lambda)>}>
|
45
45
|
|
46
46
|
% endif
|