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
@@ -2,37 +2,39 @@
|
|
2
2
|
Balanced::Card.hold
|
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::Card.fetch('/cards/
|
7
|
+
card = Balanced::Card.fetch('/cards/CC5nCSU0yFp3qxR4p6UZST7y')
|
8
8
|
card.hold(
|
9
9
|
:amount => 5000,
|
10
10
|
:description => 'Some descriptive text for the debit in the dashboard'
|
11
11
|
)
|
12
12
|
% elif mode == 'response':
|
13
|
-
#<Balanced::CardHold:
|
13
|
+
#<Balanced::CardHold:0x007ff2bc1a38b0
|
14
14
|
@attributes=
|
15
15
|
{"amount"=>5000,
|
16
|
-
"created_at"=>"2014-
|
16
|
+
"created_at"=>"2014-03-06T19:22:51.758438Z",
|
17
17
|
"currency"=>"USD",
|
18
18
|
"description"=>"Some descriptive text for the debit in the dashboard",
|
19
|
-
"expires_at"=>"2014-
|
19
|
+
"expires_at"=>"2014-03-13T19:22:52.154430Z",
|
20
20
|
"failure_reason"=>nil,
|
21
21
|
"failure_reason_code"=>nil,
|
22
|
-
"href"=>"/card_holds/
|
23
|
-
"id"=>"
|
24
|
-
"links"=>{"card"=>"
|
22
|
+
"href"=>"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m",
|
23
|
+
"id"=>"HL5Ig892KbmJyDqED5fYsJ8m",
|
24
|
+
"links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
|
25
25
|
"meta"=>{},
|
26
|
-
"
|
27
|
-
"
|
26
|
+
"status"=>"succeeded",
|
27
|
+
"transaction_number"=>"HL671-938-5651",
|
28
|
+
"updated_at"=>"2014-03-06T19:22:52.362482Z",
|
29
|
+
"voided_at"=>nil},
|
28
30
|
@hyperlinks=
|
29
31
|
{"card"=>
|
30
|
-
#<Proc:
|
32
|
+
#<Proc:0x007ff2bc1a0b10/lib/balanced/resources/resource.rb:60 (lambda)>,
|
31
33
|
"debit"=>
|
32
|
-
#<Proc:
|
34
|
+
#<Proc:0x007ff2bdaefee0/lib/balanced/utils.rb:6 (lambda)>,
|
33
35
|
"debits"=>
|
34
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2bdaedb90/lib/balanced/utils.rb:6 (lambda)>,
|
35
37
|
"events"=>
|
36
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2bc91adf0/lib/balanced/utils.rb:6 (lambda)>}>
|
37
39
|
|
38
40
|
% endif
|
@@ -3,58 +3,62 @@ Balanced::CardHold.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
|
holds = Balanced::CardHold.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::CardHold:
|
10
|
+
[#<Balanced::CardHold:0x007ff2bc930808
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
|
-
"created_at"=>"2014-
|
13
|
+
"created_at"=>"2014-03-06T19:22:44.421804Z",
|
14
14
|
"currency"=>"USD",
|
15
15
|
"description"=>"Some descriptive text for the debit in the dashboard",
|
16
|
-
"expires_at"=>"2014-
|
16
|
+
"expires_at"=>"2014-03-13T19:22:44.661981Z",
|
17
17
|
"failure_reason"=>nil,
|
18
18
|
"failure_reason_code"=>nil,
|
19
|
-
"href"=>"/card_holds/
|
20
|
-
"id"=>"
|
21
|
-
"links"=>{"card"=>"
|
19
|
+
"href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT",
|
20
|
+
"id"=>"HL5wAfv8JaMsEn9idXrLZZZT",
|
21
|
+
"links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
|
22
22
|
"meta"=>{},
|
23
|
-
"
|
24
|
-
"
|
23
|
+
"status"=>"succeeded",
|
24
|
+
"transaction_number"=>"HL116-606-6128",
|
25
|
+
"updated_at"=>"2014-03-06T19:22:44.816617Z",
|
26
|
+
"voided_at"=>nil},
|
25
27
|
@hyperlinks=
|
26
28
|
{"card"=>
|
27
|
-
#<Proc:
|
29
|
+
#<Proc:0x007ff2bc93cba8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
28
30
|
"debit"=>
|
29
|
-
#<Proc:
|
31
|
+
#<Proc:0x007ff2bdafbda8/lib/balanced/utils.rb:6 (lambda)>,
|
30
32
|
"debits"=>
|
31
|
-
#<Proc:
|
33
|
+
#<Proc:0x007ff2bdaf92d8/lib/balanced/utils.rb:6 (lambda)>,
|
32
34
|
"events"=>
|
33
|
-
#<Proc:
|
34
|
-
#<Balanced::CardHold:
|
35
|
+
#<Proc:0x007ff2bdaf2500/lib/balanced/utils.rb:6 (lambda)>}>,
|
36
|
+
#<Balanced::CardHold:0x007ff2bdaf2488
|
35
37
|
@attributes=
|
36
38
|
{"amount"=>10000000,
|
37
|
-
"created_at"=>"2014-
|
39
|
+
"created_at"=>"2014-03-06T19:22:16.137074Z",
|
38
40
|
"currency"=>"USD",
|
39
41
|
"description"=>nil,
|
40
|
-
"expires_at"=>"2014-
|
42
|
+
"expires_at"=>"2014-03-13T19:22:16.821934Z",
|
41
43
|
"failure_reason"=>nil,
|
42
44
|
"failure_reason_code"=>nil,
|
43
|
-
"href"=>"/card_holds/
|
44
|
-
"id"=>"
|
45
|
+
"href"=>"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD",
|
46
|
+
"id"=>"HL50LRASJbs8Kbcwqpu2TFdD",
|
45
47
|
"links"=>
|
46
|
-
{"card"=>"
|
48
|
+
{"card"=>"CC4SdMF0rukpL3XdVvpqoC4m", "debit"=>"WD50VxLKoVBNdkbovF4D56xX"},
|
47
49
|
"meta"=>{},
|
48
|
-
"
|
49
|
-
"
|
50
|
+
"status"=>"succeeded",
|
51
|
+
"transaction_number"=>"HL974-747-7939",
|
52
|
+
"updated_at"=>"2014-03-06T19:22:17.708358Z",
|
53
|
+
"voided_at"=>nil},
|
50
54
|
@hyperlinks=
|
51
55
|
{"card"=>
|
52
|
-
#<Proc:
|
56
|
+
#<Proc:0x007ff2bdafcac8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
53
57
|
"debit"=>
|
54
|
-
#<Proc:
|
58
|
+
#<Proc:0x007ff2bdafdfb8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
55
59
|
"debits"=>
|
56
|
-
#<Proc:
|
60
|
+
#<Proc:0x007ff2bdb06668/lib/balanced/utils.rb:6 (lambda)>,
|
57
61
|
"events"=>
|
58
|
-
#<Proc:
|
62
|
+
#<Proc:0x007ff2bdb0f948/lib/balanced/utils.rb:6 (lambda)>}>]
|
59
63
|
|
60
64
|
% endif
|
@@ -3,34 +3,36 @@ Balanced::CardHold.fetch
|
|
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
|
-
card_hold = Balanced::CardHold.fetch('/card_holds/
|
8
|
+
card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT')
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::CardHold:
|
11
|
+
#<Balanced::CardHold:0x007ff2bdb73e20
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>5000,
|
14
|
-
"created_at"=>"2014-
|
14
|
+
"created_at"=>"2014-03-06T19:22:44.421804Z",
|
15
15
|
"currency"=>"USD",
|
16
16
|
"description"=>"Some descriptive text for the debit in the dashboard",
|
17
|
-
"expires_at"=>"2014-
|
17
|
+
"expires_at"=>"2014-03-13T19:22:44.661981Z",
|
18
18
|
"failure_reason"=>nil,
|
19
19
|
"failure_reason_code"=>nil,
|
20
|
-
"href"=>"/card_holds/
|
21
|
-
"id"=>"
|
22
|
-
"links"=>{"card"=>"
|
20
|
+
"href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT",
|
21
|
+
"id"=>"HL5wAfv8JaMsEn9idXrLZZZT",
|
22
|
+
"links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
|
23
23
|
"meta"=>{},
|
24
|
-
"
|
25
|
-
"
|
24
|
+
"status"=>"succeeded",
|
25
|
+
"transaction_number"=>"HL116-606-6128",
|
26
|
+
"updated_at"=>"2014-03-06T19:22:44.816617Z",
|
27
|
+
"voided_at"=>nil},
|
26
28
|
@hyperlinks=
|
27
29
|
{"card"=>
|
28
|
-
#<Proc:
|
30
|
+
#<Proc:0x007ff2bdb71dc8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
29
31
|
"debit"=>
|
30
|
-
#<Proc:
|
32
|
+
#<Proc:0x007ff2bdb70c48/lib/balanced/utils.rb:6 (lambda)>,
|
31
33
|
"debits"=>
|
32
|
-
#<Proc:
|
34
|
+
#<Proc:0x007ff2bdb7a450/lib/balanced/utils.rb:6 (lambda)>,
|
33
35
|
"events"=>
|
34
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2bdb78da8/lib/balanced/utils.rb:6 (lambda)>}>
|
35
37
|
|
36
38
|
% endif
|
@@ -3,9 +3,9 @@ Balanced::CardHold.save
|
|
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
|
-
card_hold = Balanced::CardHold.fetch('/card_holds/
|
8
|
+
card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT')
|
9
9
|
card_hold.description = 'update this description'
|
10
10
|
card_hold.meta = {
|
11
11
|
'holding.for' => 'user1',
|
@@ -14,29 +14,31 @@ card_hold.meta = {
|
|
14
14
|
card_hold.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::CardHold:
|
17
|
+
#<Balanced::CardHold:0x007ff2bdb5a600
|
18
18
|
@attributes=
|
19
19
|
{"amount"=>5000,
|
20
|
-
"created_at"=>"2014-
|
20
|
+
"created_at"=>"2014-03-06T19:22:44.421804Z",
|
21
21
|
"currency"=>"USD",
|
22
22
|
"description"=>"update this description",
|
23
|
-
"expires_at"=>"2014-
|
23
|
+
"expires_at"=>"2014-03-13T19:22:44.661981Z",
|
24
24
|
"failure_reason"=>nil,
|
25
25
|
"failure_reason_code"=>nil,
|
26
|
-
"href"=>"/card_holds/
|
27
|
-
"id"=>"
|
28
|
-
"links"=>{"card"=>"
|
26
|
+
"href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT",
|
27
|
+
"id"=>"HL5wAfv8JaMsEn9idXrLZZZT",
|
28
|
+
"links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
|
29
29
|
"meta"=>{"holding.for"=>"user1", "meaningful.key"=>"some.value"},
|
30
|
-
"
|
31
|
-
"
|
30
|
+
"status"=>"succeeded",
|
31
|
+
"transaction_number"=>"HL116-606-6128",
|
32
|
+
"updated_at"=>"2014-03-06T19:22:48.496101Z",
|
33
|
+
"voided_at"=>nil},
|
32
34
|
@hyperlinks=
|
33
35
|
{"card"=>
|
34
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2bdb58058/lib/balanced/resources/resource.rb:60 (lambda)>,
|
35
37
|
"debit"=>
|
36
|
-
#<Proc:
|
38
|
+
#<Proc:0x007ff2bdb53e90/lib/balanced/utils.rb:6 (lambda)>,
|
37
39
|
"debits"=>
|
38
|
-
#<Proc:
|
40
|
+
#<Proc:0x007ff2bdb51820/lib/balanced/utils.rb:6 (lambda)>,
|
39
41
|
"events"=>
|
40
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2bdb4bb00/lib/balanced/utils.rb:6 (lambda)>}>
|
41
43
|
|
42
44
|
% endif
|
@@ -3,34 +3,36 @@ Balanced::CardHold.void
|
|
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
|
-
card_hold = Balanced::CardHold.fetch('/card_holds/
|
8
|
+
card_hold = Balanced::CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m')
|
9
9
|
card_hold.void
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::CardHold:
|
11
|
+
#<Balanced::CardHold:0x007ff2bdaffa98
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>5000,
|
14
|
-
"created_at"=>"2014-
|
14
|
+
"created_at"=>"2014-03-06T19:22:51.758438Z",
|
15
15
|
"currency"=>"USD",
|
16
16
|
"description"=>"Some descriptive text for the debit in the dashboard",
|
17
|
-
"expires_at"=>"2014-
|
17
|
+
"expires_at"=>"2014-03-13T19:22:52.154430Z",
|
18
18
|
"failure_reason"=>nil,
|
19
19
|
"failure_reason_code"=>nil,
|
20
|
-
"href"=>"/card_holds/
|
21
|
-
"id"=>"
|
22
|
-
"links"=>{"card"=>"
|
20
|
+
"href"=>"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m",
|
21
|
+
"id"=>"HL5Ig892KbmJyDqED5fYsJ8m",
|
22
|
+
"links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
|
23
23
|
"meta"=>{},
|
24
|
-
"
|
25
|
-
"
|
24
|
+
"status"=>"succeeded",
|
25
|
+
"transaction_number"=>"HL671-938-5651",
|
26
|
+
"updated_at"=>"2014-03-06T19:22:52.865612Z",
|
27
|
+
"voided_at"=>"2014-03-06T19:22:52.865616Z"},
|
26
28
|
@hyperlinks=
|
27
29
|
{"card"=>
|
28
|
-
#<Proc:
|
30
|
+
#<Proc:0x007ff2bdafcc30/lib/balanced/resources/resource.rb:60 (lambda)>,
|
29
31
|
"debit"=>
|
30
|
-
#<Proc:
|
32
|
+
#<Proc:0x007ff2bdaf07a0/lib/balanced/utils.rb:6 (lambda)>,
|
31
33
|
"debits"=>
|
32
|
-
#<Proc:
|
34
|
+
#<Proc:0x007ff2bdaf1ce0/lib/balanced/utils.rb:6 (lambda)>,
|
33
35
|
"events"=>
|
34
|
-
#<Proc:
|
36
|
+
#<Proc:0x007ff2bdafb150/lib/balanced/utils.rb:6 (lambda)>}>
|
35
37
|
|
36
38
|
% endif
|
@@ -2,11 +2,11 @@
|
|
2
2
|
Balanced::Card.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
|
cards = Balanced::Card.all
|
8
8
|
% elif mode == 'response':
|
9
|
-
[#<Balanced::Card:
|
9
|
+
[#<Balanced::Card:0x007ff2bc911160
|
10
10
|
@attributes=
|
11
11
|
{"address"=>
|
12
12
|
{"city"=>nil,
|
@@ -19,30 +19,30 @@ cards = Balanced::Card.all
|
|
19
19
|
"avs_result"=>nil,
|
20
20
|
"avs_street_match"=>nil,
|
21
21
|
"brand"=>"MasterCard",
|
22
|
-
"created_at"=>"2014-
|
23
|
-
"cvv"=>
|
24
|
-
"cvv_match"=>
|
25
|
-
"cvv_result"=>
|
22
|
+
"created_at"=>"2014-03-06T19:22:55.617351Z",
|
23
|
+
"cvv"=>"xxx",
|
24
|
+
"cvv_match"=>"yes",
|
25
|
+
"cvv_result"=>"Match",
|
26
26
|
"expiration_month"=>12,
|
27
27
|
"expiration_year"=>2020,
|
28
28
|
"fingerprint"=>
|
29
29
|
"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
|
30
|
-
"href"=>"/cards/
|
31
|
-
"id"=>"
|
30
|
+
"href"=>"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O",
|
31
|
+
"id"=>"CC5Buki6e4Kg4bDVZ3OSfQ8O",
|
32
32
|
"is_verified"=>true,
|
33
33
|
"links"=>{"customer"=>nil},
|
34
34
|
"meta"=>{},
|
35
35
|
"name"=>nil,
|
36
36
|
"number"=>"xxxxxxxxxxxx5100",
|
37
|
-
"updated_at"=>"2014-
|
37
|
+
"updated_at"=>"2014-03-06T19:22:55.617354Z"},
|
38
38
|
@hyperlinks=
|
39
39
|
{"card_holds"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007ff2bc91a238/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"customer"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007ff2bc9192c0/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
45
|
-
#<Balanced::Card:
|
44
|
+
#<Proc:0x007ff2bdaef620/lib/balanced/utils.rb:6 (lambda)>}>,
|
45
|
+
#<Balanced::Card:0x007ff2bdaef5d0
|
46
46
|
@attributes=
|
47
47
|
{"address"=>
|
48
48
|
{"city"=>nil,
|
@@ -55,28 +55,28 @@ cards = Balanced::Card.all
|
|
55
55
|
"avs_result"=>nil,
|
56
56
|
"avs_street_match"=>nil,
|
57
57
|
"brand"=>"MasterCard",
|
58
|
-
"created_at"=>"2014-
|
59
|
-
"cvv"=>
|
60
|
-
"cvv_match"=>
|
61
|
-
"cvv_result"=>
|
58
|
+
"created_at"=>"2014-03-06T19:22:43.295192Z",
|
59
|
+
"cvv"=>"xxx",
|
60
|
+
"cvv_match"=>"yes",
|
61
|
+
"cvv_result"=>"Match",
|
62
62
|
"expiration_month"=>12,
|
63
63
|
"expiration_year"=>2020,
|
64
64
|
"fingerprint"=>
|
65
65
|
"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
|
66
|
-
"href"=>"/cards/
|
67
|
-
"id"=>"
|
66
|
+
"href"=>"/cards/CC5nCSU0yFp3qxR4p6UZST7y",
|
67
|
+
"id"=>"CC5nCSU0yFp3qxR4p6UZST7y",
|
68
68
|
"is_verified"=>true,
|
69
|
-
"links"=>{"customer"=>"
|
69
|
+
"links"=>{"customer"=>"CU4Wt8xSbREzV2NWtdVAFGeR"},
|
70
70
|
"meta"=>{},
|
71
71
|
"name"=>nil,
|
72
72
|
"number"=>"xxxxxxxxxxxx5100",
|
73
|
-
"updated_at"=>"2014-
|
73
|
+
"updated_at"=>"2014-03-06T19:22:44.417128Z"},
|
74
74
|
@hyperlinks=
|
75
75
|
{"card_holds"=>
|
76
|
-
#<Proc:
|
76
|
+
#<Proc:0x007ff2bc1a18a8/lib/balanced/utils.rb:6 (lambda)>,
|
77
77
|
"customer"=>
|
78
|
-
#<Proc:
|
78
|
+
#<Proc:0x007ff2bc1a0a48/lib/balanced/resources/resource.rb:60 (lambda)>,
|
79
79
|
"debits"=>
|
80
|
-
#<Proc:
|
80
|
+
#<Proc:0x007ff2bc19a120/lib/balanced/utils.rb:6 (lambda)>}>]
|
81
81
|
|
82
82
|
% endif
|
@@ -3,11 +3,11 @@ Balanced::Card.fetch
|
|
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
|
-
card = Balanced::Card.fetch('/cards/
|
8
|
+
card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::Card:
|
10
|
+
#<Balanced::Card:0x007ff2bc8c7a38
|
11
11
|
@attributes=
|
12
12
|
{"address"=>
|
13
13
|
{"city"=>nil,
|
@@ -20,28 +20,28 @@ card = Balanced::Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI')
|
|
20
20
|
"avs_result"=>nil,
|
21
21
|
"avs_street_match"=>nil,
|
22
22
|
"brand"=>"MasterCard",
|
23
|
-
"created_at"=>"2014-
|
24
|
-
"cvv"=>
|
25
|
-
"cvv_match"=>
|
26
|
-
"cvv_result"=>
|
23
|
+
"created_at"=>"2014-03-06T19:22:55.617351Z",
|
24
|
+
"cvv"=>"xxx",
|
25
|
+
"cvv_match"=>"yes",
|
26
|
+
"cvv_result"=>"Match",
|
27
27
|
"expiration_month"=>12,
|
28
28
|
"expiration_year"=>2020,
|
29
29
|
"fingerprint"=>
|
30
30
|
"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
|
31
|
-
"href"=>"/cards/
|
32
|
-
"id"=>"
|
31
|
+
"href"=>"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O",
|
32
|
+
"id"=>"CC5Buki6e4Kg4bDVZ3OSfQ8O",
|
33
33
|
"is_verified"=>true,
|
34
34
|
"links"=>{"customer"=>nil},
|
35
35
|
"meta"=>{},
|
36
36
|
"name"=>nil,
|
37
37
|
"number"=>"xxxxxxxxxxxx5100",
|
38
|
-
"updated_at"=>"2014-
|
38
|
+
"updated_at"=>"2014-03-06T19:22:55.617354Z"},
|
39
39
|
@hyperlinks=
|
40
40
|
{"card_holds"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007ff2bc8c47e8/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"customer"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007ff2bc8be3c0/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"debits"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007ff2bc8bd880/lib/balanced/utils.rb:6 (lambda)>}>
|
46
46
|
|
47
47
|
% endif
|