balanced 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/CHANGELOG.md +5 -0
- data/lib/balanced/resources/credit.rb +2 -7
- data/lib/balanced/resources/debit.rb +2 -7
- data/lib/balanced/resources/order.rb +10 -9
- data/lib/balanced/version.rb +1 -1
- 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/definition.rb +1 -1
- data/scenarios/bank_account_associate_to_customer/request.rb +2 -2
- data/scenarios/bank_account_associate_to_customer/ruby.mako +15 -15
- data/scenarios/bank_account_create/ruby.mako +11 -11
- 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 +4 -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/definition.rb +1 -1
- data/scenarios/card_associate_to_customer/request.rb +1 -1
- data/scenarios/card_associate_to_customer/ruby.mako +13 -14
- data/scenarios/card_create/ruby.mako +9 -9
- data/scenarios/card_create_dispute/definition.rb +1 -0
- data/scenarios/card_create_dispute/request.rb +4 -0
- data/scenarios/card_create_dispute/ruby.mako +53 -0
- data/scenarios/card_debit/ruby.mako +16 -16
- data/scenarios/card_debit_dispute/definition.rb +1 -0
- data/scenarios/card_debit_dispute/request.rb +5 -0
- data/scenarios/card_debit_dispute/ruby.mako +49 -0
- data/scenarios/card_delete/ruby.mako +2 -2
- data/scenarios/card_hold_capture/ruby.mako +16 -16
- data/scenarios/card_hold_create/ruby.mako +14 -14
- data/scenarios/card_hold_list/ruby.mako +25 -25
- data/scenarios/card_hold_show/ruby.mako +14 -14
- data/scenarios/card_hold_update/ruby.mako +14 -14
- data/scenarios/card_hold_void/definition.rb +1 -1
- data/scenarios/card_hold_void/request.rb +1 -1
- data/scenarios/card_hold_void/ruby.mako +17 -17
- data/scenarios/card_list/ruby.mako +18 -18
- data/scenarios/card_show/ruby.mako +10 -10
- data/scenarios/card_update/ruby.mako +10 -10
- 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 +18 -18
- data/scenarios/customer_delete/ruby.mako +1 -1
- data/scenarios/customer_list/ruby.mako +35 -35
- data/scenarios/customer_show/ruby.mako +19 -19
- data/scenarios/customer_update/ruby.mako +19 -19
- data/scenarios/debit_dispute_show/definition.rb +1 -0
- data/scenarios/debit_dispute_show/request.rb +3 -0
- data/scenarios/debit_dispute_show/ruby.mako +31 -0
- data/scenarios/debit_list/ruby.mako +29 -29
- data/scenarios/debit_show/ruby.mako +16 -16
- data/scenarios/debit_update/ruby.mako +16 -16
- data/scenarios/dispute_list/definition.rb +1 -0
- data/scenarios/dispute_list/request.rb +2 -0
- data/scenarios/dispute_list/ruby.mako +29 -0
- data/scenarios/dispute_show/definition.rb +1 -0
- data/scenarios/dispute_show/request.rb +2 -0
- data/scenarios/dispute_show/ruby.mako +31 -0
- data/scenarios/event_list/ruby.mako +55 -55
- data/scenarios/event_show/ruby.mako +35 -40
- 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 +15 -3
- 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/credit_spec.rb +26 -5
- data/spec/balanced/resources/debit_spec.rb +7 -2
- data/spec/balanced/resources/order_spec.rb +25 -3
- metadata +17 -3
- data/scenario.cache +0 -619
@@ -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-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
8
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl')
|
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-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
8
|
Balanced::BankAccount.all
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
[#<Balanced::BankAccount:
|
11
|
+
[#<Balanced::BankAccount:0x007fa93ec0c3a0
|
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-04-25T20:09:22.528624Z",
|
26
26
|
"fingerprint"=>
|
27
27
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
28
|
-
"href"=>"/bank_accounts/
|
29
|
-
"id"=>"
|
28
|
+
"href"=>"/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl",
|
29
|
+
"id"=>"BA3PDwDCkdeC4OgPtPNwoCWl",
|
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-04-25T20:09:22.528628Z"},
|
35
35
|
@hyperlinks=
|
36
36
|
{"bank_account_verification"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007fa93ec177f0/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"bank_account_verifications"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa93ec158d8/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"credits"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007fa93ec1f900/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"customer"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007fa93ec1ef50/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"debits"=>
|
45
|
-
#<Proc:
|
46
|
-
#<Balanced::BankAccount:
|
45
|
+
#<Proc:0x007fa93ec1d010/lib/balanced/utils.rb:6 (lambda)>}>,
|
46
|
+
#<Balanced::BankAccount:0x007fa93ec1cfc0
|
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-04-25T20:09:15.992626Z",
|
61
61
|
"fingerprint"=>
|
62
62
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
63
|
-
"href"=>"/bank_accounts/
|
64
|
-
"id"=>"
|
63
|
+
"href"=>"/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb",
|
64
|
+
"id"=>"BA3IhKG3bIN22cLHbaOIGtHb",
|
65
65
|
"links"=>
|
66
|
-
{"bank_account_verification"=>"
|
66
|
+
{"bank_account_verification"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
|
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-04-25T20:09:20.850706Z"},
|
72
72
|
@hyperlinks=
|
73
73
|
{"bank_account_verification"=>
|
74
|
-
#<Proc:
|
74
|
+
#<Proc:0x007fa93ec1f310/lib/balanced/resources/resource.rb:60 (lambda)>,
|
75
75
|
"bank_account_verifications"=>
|
76
|
-
#<Proc:
|
76
|
+
#<Proc:0x007fa93ec1d380/lib/balanced/utils.rb:6 (lambda)>,
|
77
77
|
"credits"=>
|
78
|
-
#<Proc:
|
78
|
+
#<Proc:0x007fa93ec169e0/lib/balanced/utils.rb:6 (lambda)>,
|
79
79
|
"customer"=>
|
80
|
-
#<Proc:
|
80
|
+
#<Proc:0x007fa93ec16030/lib/balanced/utils.rb:6 (lambda)>,
|
81
81
|
"debits"=>
|
82
|
-
#<Proc:
|
82
|
+
#<Proc:0x007fa93ec0ffa0/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-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
6
6
|
|
7
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
7
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl')
|
8
8
|
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::BankAccount:
|
10
|
+
#<Balanced::BankAccount:0x007fa93eb44e18
|
11
11
|
@attributes=
|
12
12
|
{"account_number"=>"xxxxxx0001",
|
13
13
|
"account_type"=>"checking",
|
@@ -21,26 +21,26 @@ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvW
|
|
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-04-25T20:09:22.528624Z",
|
25
25
|
"fingerprint"=>
|
26
26
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
27
|
-
"href"=>"/bank_accounts/
|
28
|
-
"id"=>"
|
27
|
+
"href"=>"/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl",
|
28
|
+
"id"=>"BA3PDwDCkdeC4OgPtPNwoCWl",
|
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-04-25T20:09:22.528628Z"},
|
34
34
|
@hyperlinks=
|
35
35
|
{"bank_account_verification"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa93eb442b0/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"bank_account_verifications"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa93eb36368/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"credits"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa93eb34400/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"customer"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa93eb279d0/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa93eb259f0/lib/balanced/utils.rb:6 (lambda)>}>
|
45
45
|
|
46
46
|
% endif
|
@@ -3,9 +3,9 @@ Balanced::BankAccount.save
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
8
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl')
|
9
9
|
bank_account.meta = {
|
10
10
|
'facebook.user_id' => '0192837465',
|
11
11
|
'my-own-customer-id' => '12345',
|
@@ -14,7 +14,7 @@ bank_account.meta = {
|
|
14
14
|
bank_account.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::BankAccount:
|
17
|
+
#<Balanced::BankAccount:0x007fa93eae5a80
|
18
18
|
@attributes=
|
19
19
|
{"account_number"=>"xxxxxx0001",
|
20
20
|
"account_type"=>"checking",
|
@@ -28,11 +28,11 @@ bank_account.save
|
|
28
28
|
"bank_name"=>"BANK OF AMERICA, N.A.",
|
29
29
|
"can_credit"=>true,
|
30
30
|
"can_debit"=>false,
|
31
|
-
"created_at"=>"2014-
|
31
|
+
"created_at"=>"2014-04-25T20:09:22.528624Z",
|
32
32
|
"fingerprint"=>
|
33
33
|
"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
|
34
|
-
"href"=>"/bank_accounts/
|
35
|
-
"id"=>"
|
34
|
+
"href"=>"/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl",
|
35
|
+
"id"=>"BA3PDwDCkdeC4OgPtPNwoCWl",
|
36
36
|
"links"=>{"bank_account_verification"=>nil, "customer"=>nil},
|
37
37
|
"meta"=>
|
38
38
|
{"facebook.user_id"=>"0192837465",
|
@@ -40,17 +40,17 @@ bank_account.save
|
|
40
40
|
"twitter.id"=>"1234987650"},
|
41
41
|
"name"=>"Johann Bernoulli",
|
42
42
|
"routing_number"=>"121000358",
|
43
|
-
"updated_at"=>"2014-
|
43
|
+
"updated_at"=>"2014-04-25T20:09:25.975494Z"},
|
44
44
|
@hyperlinks=
|
45
45
|
{"bank_account_verification"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007fa93eae4e00/lib/balanced/utils.rb:6 (lambda)>,
|
47
47
|
"bank_account_verifications"=>
|
48
|
-
#<Proc:
|
48
|
+
#<Proc:0x007fa93eadede8/lib/balanced/utils.rb:6 (lambda)>,
|
49
49
|
"credits"=>
|
50
|
-
#<Proc:
|
50
|
+
#<Proc:0x007fa93eadcae8/lib/balanced/utils.rb:6 (lambda)>,
|
51
51
|
"customer"=>
|
52
|
-
#<Proc:
|
52
|
+
#<Proc:0x007fa93eadc0e8/lib/balanced/utils.rb:6 (lambda)>,
|
53
53
|
"debits"=>
|
54
|
-
#<Proc:
|
54
|
+
#<Proc:0x007fa93ead6350/lib/balanced/utils.rb:6 (lambda)>}>
|
55
55
|
|
56
56
|
% endif
|
@@ -3,26 +3,26 @@
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
bank_account = Balanced::BankAccount.fetch('/bank_accounts/
|
8
|
+
bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb')
|
9
9
|
verification = bank_account.verify
|
10
10
|
|
11
11
|
% elif mode == 'response':
|
12
|
-
#<Balanced::BankAccountVerification:
|
12
|
+
#<Balanced::BankAccountVerification:0x007fa93eab4ae8
|
13
13
|
@attributes=
|
14
14
|
{"attempts"=>0,
|
15
15
|
"attempts_remaining"=>3,
|
16
|
-
"created_at"=>"2014-
|
16
|
+
"created_at"=>"2014-04-25T20:09:17.814785Z",
|
17
17
|
"deposit_status"=>"succeeded",
|
18
|
-
"href"=>"/verifications/
|
19
|
-
"id"=>"
|
20
|
-
"links"=>{"bank_account"=>"
|
18
|
+
"href"=>"/verifications/BZ3KkIZuSazKfqFrFIfsrhmB",
|
19
|
+
"id"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
|
20
|
+
"links"=>{"bank_account"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
|
21
21
|
"meta"=>{},
|
22
|
-
"updated_at"=>"2014-
|
22
|
+
"updated_at"=>"2014-04-25T20:09:18.218504Z",
|
23
23
|
"verification_status"=>"pending"},
|
24
24
|
@hyperlinks=
|
25
25
|
{"bank_account"=>
|
26
|
-
#<Proc:
|
26
|
+
#<Proc:0x007fa93eaae2b0/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
27
27
|
|
28
28
|
% endif
|
@@ -3,25 +3,25 @@ Balanced::Verification.fetch
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
verification = Balanced::Verification.fetch('/verifications/
|
8
|
+
verification = Balanced::Verification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB')
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::BankAccountVerification:
|
11
|
+
#<Balanced::BankAccountVerification:0x007fa93ea9c8d0
|
12
12
|
@attributes=
|
13
13
|
{"attempts"=>0,
|
14
14
|
"attempts_remaining"=>3,
|
15
|
-
"created_at"=>"2014-
|
15
|
+
"created_at"=>"2014-04-25T20:09:17.814785Z",
|
16
16
|
"deposit_status"=>"succeeded",
|
17
|
-
"href"=>"/verifications/
|
18
|
-
"id"=>"
|
19
|
-
"links"=>{"bank_account"=>"
|
17
|
+
"href"=>"/verifications/BZ3KkIZuSazKfqFrFIfsrhmB",
|
18
|
+
"id"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
|
19
|
+
"links"=>{"bank_account"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
|
20
20
|
"meta"=>{},
|
21
|
-
"updated_at"=>"2014-
|
21
|
+
"updated_at"=>"2014-04-25T20:09:18.218504Z",
|
22
22
|
"verification_status"=>"pending"},
|
23
23
|
@hyperlinks=
|
24
24
|
{"bank_account"=>
|
25
|
-
#<Proc:
|
25
|
+
#<Proc:0x007fa93ea96b88/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
26
26
|
|
27
27
|
% endif
|
@@ -3,9 +3,9 @@ Balanced::Verification.confirm
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
verification = Balanced::Verification.fetch('/verifications/
|
8
|
+
verification = Balanced::Verification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB')
|
9
9
|
verification.confirm(
|
10
10
|
amount_1 = 1,
|
11
11
|
amount_2 = 1
|
@@ -13,20 +13,20 @@ verification.confirm(
|
|
13
13
|
|
14
14
|
|
15
15
|
% elif mode == 'response':
|
16
|
-
#<Balanced::BankAccountVerification:
|
16
|
+
#<Balanced::BankAccountVerification:0x007fa93ea84a78
|
17
17
|
@attributes=
|
18
18
|
{"attempts"=>1,
|
19
19
|
"attempts_remaining"=>2,
|
20
|
-
"created_at"=>"2014-
|
20
|
+
"created_at"=>"2014-04-25T20:09:17.814785Z",
|
21
21
|
"deposit_status"=>"succeeded",
|
22
|
-
"href"=>"/verifications/
|
23
|
-
"id"=>"
|
24
|
-
"links"=>{"bank_account"=>"
|
22
|
+
"href"=>"/verifications/BZ3KkIZuSazKfqFrFIfsrhmB",
|
23
|
+
"id"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
|
24
|
+
"links"=>{"bank_account"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
|
25
25
|
"meta"=>{},
|
26
|
-
"updated_at"=>"2014-
|
26
|
+
"updated_at"=>"2014-04-25T20:09:20.852682Z",
|
27
27
|
"verification_status"=>"succeeded"},
|
28
28
|
@hyperlinks=
|
29
29
|
{"bank_account"=>
|
30
|
-
#<Proc:
|
30
|
+
#<Proc:0x007fa93ea7ebf0/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
31
31
|
|
32
32
|
% endif
|
@@ -2,7 +2,7 @@
|
|
2
2
|
Balanced::Callback.new
|
3
3
|
% elif mode == 'request':
|
4
4
|
require 'balanced'
|
5
|
-
Balanced.configure('ak-test-
|
5
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
6
6
|
|
7
7
|
callback = Balanced::Callback.new(
|
8
8
|
:method => 'post',
|
@@ -10,10 +10,10 @@ callback = Balanced::Callback.new(
|
|
10
10
|
).save
|
11
11
|
|
12
12
|
% elif mode == 'response':
|
13
|
-
#<Balanced::Callback:
|
13
|
+
#<Balanced::Callback:0x007fa93ea6c9c8
|
14
14
|
@attributes=
|
15
|
-
{"href"=>"/callbacks/
|
16
|
-
"id"=>"
|
15
|
+
{"href"=>"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx",
|
16
|
+
"id"=>"CB44XaMOcxsUnuQoA5A4VKCx",
|
17
17
|
"links"=>{},
|
18
18
|
"method"=>"post",
|
19
19
|
"revision"=>"1.1",
|
@@ -3,9 +3,9 @@ Balanced::Callback.unstore
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
callback = Balanced::Callback.fetch('/callbacks/
|
8
|
+
callback = Balanced::Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx')
|
9
9
|
callback.unstore
|
10
10
|
% elif mode == 'response':
|
11
11
|
|
@@ -3,14 +3,14 @@ Balanced::Callback.all
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
8
|
callbacks = Balanced::Callback.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Callback:
|
10
|
+
[#<Balanced::Callback:0x007fa93ea565b0
|
11
11
|
@attributes=
|
12
|
-
{"href"=>"/callbacks/
|
13
|
-
"id"=>"
|
12
|
+
{"href"=>"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx",
|
13
|
+
"id"=>"CB44XaMOcxsUnuQoA5A4VKCx",
|
14
14
|
"links"=>{},
|
15
15
|
"method"=>"post",
|
16
16
|
"revision"=>"1.1",
|
@@ -3,14 +3,14 @@ Balanced::Callback.fetch
|
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
7
7
|
|
8
|
-
callback = Balanced::Callback.fetch('/callbacks/
|
8
|
+
callback = Balanced::Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx')
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::Callback:
|
10
|
+
#<Balanced::Callback:0x007fa93ea4c3f8
|
11
11
|
@attributes=
|
12
|
-
{"href"=>"/callbacks/
|
13
|
-
"id"=>"
|
12
|
+
{"href"=>"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx",
|
13
|
+
"id"=>"CB44XaMOcxsUnuQoA5A4VKCx",
|
14
14
|
"links"=>{},
|
15
15
|
"method"=>"post",
|
16
16
|
"revision"=>"1.1",
|
@@ -1 +1 @@
|
|
1
|
-
Balanced::
|
1
|
+
Balanced::Card.associate_to_customer
|
@@ -1,15 +1,14 @@
|
|
1
1
|
% if mode == 'definition':
|
2
|
-
Balanced::
|
2
|
+
Balanced::Card.associate_to_customer
|
3
3
|
|
4
4
|
% elif mode == 'request':
|
5
5
|
require 'balanced'
|
6
|
-
Balanced.configure('ak-test-
|
7
|
-
|
8
|
-
card = Balanced::Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C')
|
9
|
-
card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8')
|
6
|
+
Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
|
10
7
|
|
8
|
+
card = Balanced::Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N')
|
9
|
+
card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5')
|
11
10
|
% elif mode == 'response':
|
12
|
-
#<Balanced::Card:
|
11
|
+
#<Balanced::Card:0x007fa93ea3d100
|
13
12
|
@attributes=
|
14
13
|
{"address"=>
|
15
14
|
{"city"=>nil,
|
@@ -22,7 +21,7 @@ card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8')
|
|
22
21
|
"avs_result"=>nil,
|
23
22
|
"avs_street_match"=>nil,
|
24
23
|
"brand"=>"MasterCard",
|
25
|
-
"created_at"=>"2014-
|
24
|
+
"created_at"=>"2014-04-25T20:09:57.984444Z",
|
26
25
|
"cvv"=>"xxx",
|
27
26
|
"cvv_match"=>"yes",
|
28
27
|
"cvv_result"=>"Match",
|
@@ -30,20 +29,20 @@ card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8')
|
|
30
29
|
"expiration_year"=>2020,
|
31
30
|
"fingerprint"=>
|
32
31
|
"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
|
33
|
-
"href"=>"/cards/
|
34
|
-
"id"=>"
|
32
|
+
"href"=>"/cards/CC4tvKLTKXcBJAgkGvPEW58N",
|
33
|
+
"id"=>"CC4tvKLTKXcBJAgkGvPEW58N",
|
35
34
|
"is_verified"=>true,
|
36
|
-
"links"=>{"customer"=>"
|
35
|
+
"links"=>{"customer"=>"CU3VYCUIfwngJsidJWdGw2W5"},
|
37
36
|
"meta"=>{},
|
38
37
|
"name"=>nil,
|
39
38
|
"number"=>"xxxxxxxxxxxx5100",
|
40
|
-
"updated_at"=>"2014-
|
39
|
+
"updated_at"=>"2014-04-25T20:09:58.467948Z"},
|
41
40
|
@hyperlinks=
|
42
41
|
{"card_holds"=>
|
43
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa93ea36788/lib/balanced/utils.rb:6 (lambda)>,
|
44
43
|
"customer"=>
|
45
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa93ea34190/lib/balanced/resources/resource.rb:60 (lambda)>,
|
46
45
|
"debits"=>
|
47
|
-
#<Proc:
|
46
|
+
#<Proc:0x007fa93ea2e240/lib/balanced/utils.rb:6 (lambda)>}>
|
48
47
|
|
49
48
|
% endif
|