balanced 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +4 -0
- data/lib/balanced/error.rb +4 -2
- data/lib/balanced/resources/resource.rb +5 -0
- data/lib/balanced/version.rb +1 -1
- data/scenarios/api_key_create/ruby.mako +1 -1
- data/scenarios/api_key_list/ruby.mako +2 -2
- data/scenarios/api_key_show/ruby.mako +1 -1
- data/scenarios/bank_account_associate_to_customer/ruby.mako +6 -6
- data/scenarios/bank_account_create/ruby.mako +6 -6
- data/scenarios/bank_account_credit/ruby.mako +6 -6
- data/scenarios/bank_account_debit/ruby.mako +7 -7
- data/scenarios/bank_account_list/ruby.mako +12 -12
- data/scenarios/bank_account_show/ruby.mako +6 -6
- data/scenarios/bank_account_update/ruby.mako +6 -6
- data/scenarios/bank_account_verification_create/ruby.mako +2 -2
- data/scenarios/bank_account_verification_show/ruby.mako +2 -2
- data/scenarios/bank_account_verification_update/ruby.mako +2 -2
- data/scenarios/callback_create/ruby.mako +1 -1
- data/scenarios/callback_list/ruby.mako +1 -1
- data/scenarios/callback_show/ruby.mako +1 -1
- data/scenarios/card_associate_to_customer/definition.rb +1 -1
- data/scenarios/card_associate_to_customer/ruby.mako +5 -5
- data/scenarios/card_create/ruby.mako +4 -4
- data/scenarios/card_debit/ruby.mako +7 -7
- data/scenarios/card_hold_capture/ruby.mako +7 -7
- data/scenarios/card_hold_create/ruby.mako +5 -5
- data/scenarios/card_hold_list/ruby.mako +10 -10
- data/scenarios/card_hold_show/ruby.mako +5 -5
- data/scenarios/card_hold_update/ruby.mako +5 -5
- data/scenarios/card_hold_void/ruby.mako +5 -5
- data/scenarios/card_list/ruby.mako +8 -8
- data/scenarios/card_show/ruby.mako +4 -4
- data/scenarios/card_update/ruby.mako +4 -4
- data/scenarios/credit_list/ruby.mako +6 -6
- data/scenarios/credit_show/ruby.mako +6 -6
- data/scenarios/credit_update/ruby.mako +6 -6
- data/scenarios/customer_create/ruby.mako +13 -13
- data/scenarios/customer_list/ruby.mako +26 -26
- data/scenarios/customer_show/ruby.mako +13 -13
- data/scenarios/customer_update/ruby.mako +13 -13
- data/scenarios/debit_list/ruby.mako +14 -14
- data/scenarios/debit_show/ruby.mako +7 -7
- data/scenarios/debit_update/ruby.mako +7 -7
- data/scenarios/event_list/ruby.mako +4 -4
- data/scenarios/event_show/ruby.mako +2 -2
- data/scenarios/order_create/ruby.mako +7 -7
- data/scenarios/order_list/ruby.mako +7 -7
- data/scenarios/order_show/ruby.mako +7 -7
- data/scenarios/order_update/ruby.mako +7 -7
- data/scenarios/refund_create/ruby.mako +5 -5
- data/scenarios/refund_list/ruby.mako +5 -5
- data/scenarios/refund_show/ruby.mako +5 -5
- data/scenarios/refund_update/ruby.mako +5 -5
- data/scenarios/reversal_create/ruby.mako +4 -4
- data/scenarios/reversal_list/ruby.mako +4 -4
- data/scenarios/reversal_show/ruby.mako +4 -4
- data/scenarios/reversal_update/ruby.mako +4 -4
- data/spec/balanced/error_spec.rb +18 -0
- metadata +3 -2
@@ -13,7 +13,7 @@ card = Balanced::Card.new(
|
|
13
13
|
).save
|
14
14
|
|
15
15
|
% elif mode == 'response':
|
16
|
-
#<Balanced::Card:
|
16
|
+
#<Balanced::Card:0x007fa4e49bacb8
|
17
17
|
@attributes=
|
18
18
|
{"address"=>
|
19
19
|
{"city"=>nil,
|
@@ -44,10 +44,10 @@ card = Balanced::Card.new(
|
|
44
44
|
"updated_at"=>"2014-03-06T19:23:25.159506Z"},
|
45
45
|
@hyperlinks=
|
46
46
|
{"card_holds"=>
|
47
|
-
#<Proc:
|
47
|
+
#<Proc:0x007fa4e49b8198/lib/balanced/utils.rb:6 (lambda)>,
|
48
48
|
"customer"=>
|
49
|
-
#<Proc:
|
49
|
+
#<Proc:0x007fa4e49b3af8/lib/balanced/utils.rb:6 (lambda)>,
|
50
50
|
"debits"=>
|
51
|
-
#<Proc:
|
51
|
+
#<Proc:0x007fa4e49b0998/lib/balanced/utils.rb:6 (lambda)>}>
|
52
52
|
|
53
53
|
% endif
|
@@ -12,7 +12,7 @@ card.debit(
|
|
12
12
|
)
|
13
13
|
|
14
14
|
% elif mode == 'response':
|
15
|
-
#<Balanced::Debit:
|
15
|
+
#<Balanced::Debit:0x007fa4e2928cc0
|
16
16
|
@attributes=
|
17
17
|
{"amount"=>5000,
|
18
18
|
"appears_on_statement_as"=>"BAL*Statement text",
|
@@ -34,16 +34,16 @@ card.debit(
|
|
34
34
|
"updated_at"=>"2014-03-06T19:23:45.554127Z"},
|
35
35
|
@hyperlinks=
|
36
36
|
{"customer"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007fa4e2929e68/lib/balanced/resources/resource.rb:60 (lambda)>,
|
38
38
|
"dispute"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa4e29292d8/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"events"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007fa4e40a5e70/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"order"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007fa4e48467b0/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"refunds"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007fa4e3039758/lib/balanced/utils.rb:6 (lambda)>,
|
46
46
|
"source"=>
|
47
|
-
#<Proc:
|
47
|
+
#<Proc:0x007fa4e3049b80/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
48
48
|
|
49
49
|
% endif
|
@@ -12,7 +12,7 @@ debit = card_hold.capture(
|
|
12
12
|
)
|
13
13
|
|
14
14
|
% elif mode == 'response':
|
15
|
-
#<Balanced::Debit:
|
15
|
+
#<Balanced::Debit:0x007fa4e30d8150
|
16
16
|
@attributes=
|
17
17
|
{"amount"=>5000,
|
18
18
|
"appears_on_statement_as"=>"BAL*ShowsUpOnStmt",
|
@@ -34,16 +34,16 @@ debit = card_hold.capture(
|
|
34
34
|
"updated_at"=>"2014-03-06T19:22:50.608819Z"},
|
35
35
|
@hyperlinks=
|
36
36
|
{"customer"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007fa4e30f20c8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
38
38
|
"dispute"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa4e31024c8/lib/balanced/utils.rb:6 (lambda)>,
|
40
40
|
"events"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007fa4e310a830/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"order"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007fa4e3112f80/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"refunds"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007fa4e31201d0/lib/balanced/utils.rb:6 (lambda)>,
|
46
46
|
"source"=>
|
47
|
-
#<Proc:
|
47
|
+
#<Proc:0x007fa4e3131ea8/lib/balanced/resources/resource.rb:60 (lambda)>}>
|
48
48
|
|
49
49
|
% endif
|
@@ -10,7 +10,7 @@ card.hold(
|
|
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:0x007fa4e489f1a8
|
14
14
|
@attributes=
|
15
15
|
{"amount"=>5000,
|
16
16
|
"created_at"=>"2014-03-06T19:22:51.758438Z",
|
@@ -29,12 +29,12 @@ card.hold(
|
|
29
29
|
"voided_at"=>nil},
|
30
30
|
@hyperlinks=
|
31
31
|
{"card"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007fa4e48af148/lib/balanced/resources/resource.rb:60 (lambda)>,
|
33
33
|
"debit"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e48bf048/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"debits"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e31b2f58/lib/balanced/utils.rb:6 (lambda)>,
|
37
37
|
"events"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e31c80b0/lib/balanced/utils.rb:6 (lambda)>}>
|
39
39
|
|
40
40
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
holds = Balanced::CardHold.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::CardHold:
|
10
|
+
[#<Balanced::CardHold:0x007fa4e48dedf8
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
13
|
"created_at"=>"2014-03-06T19:22:44.421804Z",
|
@@ -26,14 +26,14 @@ holds = Balanced::CardHold.all
|
|
26
26
|
"voided_at"=>nil},
|
27
27
|
@hyperlinks=
|
28
28
|
{"card"=>
|
29
|
-
#<Proc:
|
29
|
+
#<Proc:0x007fa4e48d04d8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
30
30
|
"debit"=>
|
31
|
-
#<Proc:
|
31
|
+
#<Proc:0x007fa4e48d2e68/lib/balanced/utils.rb:6 (lambda)>,
|
32
32
|
"debits"=>
|
33
|
-
#<Proc:
|
33
|
+
#<Proc:0x007fa4e48d12c0/lib/balanced/utils.rb:6 (lambda)>,
|
34
34
|
"events"=>
|
35
|
-
#<Proc:
|
36
|
-
#<Balanced::CardHold:
|
35
|
+
#<Proc:0x007fa4e48e6d00/lib/balanced/utils.rb:6 (lambda)>}>,
|
36
|
+
#<Balanced::CardHold:0x007fa4e48e6cb0
|
37
37
|
@attributes=
|
38
38
|
{"amount"=>10000000,
|
39
39
|
"created_at"=>"2014-03-06T19:22:16.137074Z",
|
@@ -53,12 +53,12 @@ holds = Balanced::CardHold.all
|
|
53
53
|
"voided_at"=>nil},
|
54
54
|
@hyperlinks=
|
55
55
|
{"card"=>
|
56
|
-
#<Proc:
|
56
|
+
#<Proc:0x007fa4e48d4c90/lib/balanced/resources/resource.rb:60 (lambda)>,
|
57
57
|
"debit"=>
|
58
|
-
#<Proc:
|
58
|
+
#<Proc:0x007fa4e48d53c0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
59
59
|
"debits"=>
|
60
|
-
#<Proc:
|
60
|
+
#<Proc:0x007fa4e48edf60/lib/balanced/utils.rb:6 (lambda)>,
|
61
61
|
"events"=>
|
62
|
-
#<Proc:
|
62
|
+
#<Proc:0x007fa4e48f7510/lib/balanced/utils.rb:6 (lambda)>}>]
|
63
63
|
|
64
64
|
% endif
|
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
8
8
|
card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT')
|
9
9
|
|
10
10
|
% elif mode == 'response':
|
11
|
-
#<Balanced::CardHold:
|
11
|
+
#<Balanced::CardHold:0x007fa4e40e28e8
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>5000,
|
14
14
|
"created_at"=>"2014-03-06T19:22:44.421804Z",
|
@@ -27,12 +27,12 @@ card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT')
|
|
27
27
|
"voided_at"=>nil},
|
28
28
|
@hyperlinks=
|
29
29
|
{"card"=>
|
30
|
-
#<Proc:
|
30
|
+
#<Proc:0x007fa4e40e67e0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
31
31
|
"debit"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007fa4e40e49b8/lib/balanced/utils.rb:6 (lambda)>,
|
33
33
|
"debits"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e40ffdd0/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"events"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e40fc9c8/lib/balanced/utils.rb:6 (lambda)>}>
|
37
37
|
|
38
38
|
% endif
|
@@ -14,7 +14,7 @@ card_hold.meta = {
|
|
14
14
|
card_hold.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::CardHold:
|
17
|
+
#<Balanced::CardHold:0x007fa4e411dd08
|
18
18
|
@attributes=
|
19
19
|
{"amount"=>5000,
|
20
20
|
"created_at"=>"2014-03-06T19:22:44.421804Z",
|
@@ -33,12 +33,12 @@ card_hold.save
|
|
33
33
|
"voided_at"=>nil},
|
34
34
|
@hyperlinks=
|
35
35
|
{"card"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e4127088/lib/balanced/resources/resource.rb:60 (lambda)>,
|
37
37
|
"debit"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e4124478/lib/balanced/utils.rb:6 (lambda)>,
|
39
39
|
"debits"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e4935040/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"events"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e493e870/lib/balanced/utils.rb:6 (lambda)>}>
|
43
43
|
|
44
44
|
% endif
|
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
8
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:0x007fa4e4965d08
|
12
12
|
@attributes=
|
13
13
|
{"amount"=>5000,
|
14
14
|
"created_at"=>"2014-03-06T19:22:51.758438Z",
|
@@ -27,12 +27,12 @@ card_hold.void
|
|
27
27
|
"voided_at"=>"2014-03-06T19:22:52.865616Z"},
|
28
28
|
@hyperlinks=
|
29
29
|
{"card"=>
|
30
|
-
#<Proc:
|
30
|
+
#<Proc:0x007fa4e496e368/lib/balanced/resources/resource.rb:60 (lambda)>,
|
31
31
|
"debit"=>
|
32
|
-
#<Proc:
|
32
|
+
#<Proc:0x007fa4e496f628/lib/balanced/utils.rb:6 (lambda)>,
|
33
33
|
"debits"=>
|
34
|
-
#<Proc:
|
34
|
+
#<Proc:0x007fa4e496cb80/lib/balanced/utils.rb:6 (lambda)>,
|
35
35
|
"events"=>
|
36
|
-
#<Proc:
|
36
|
+
#<Proc:0x007fa4e4976928/lib/balanced/utils.rb:6 (lambda)>}>
|
37
37
|
|
38
38
|
% endif
|
@@ -6,7 +6,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
6
6
|
|
7
7
|
cards = Balanced::Card.all
|
8
8
|
% elif mode == 'response':
|
9
|
-
[#<Balanced::Card:
|
9
|
+
[#<Balanced::Card:0x007fa4e2932590
|
10
10
|
@attributes=
|
11
11
|
{"address"=>
|
12
12
|
{"city"=>nil,
|
@@ -37,12 +37,12 @@ cards = Balanced::Card.all
|
|
37
37
|
"updated_at"=>"2014-03-06T19:22:55.617354Z"},
|
38
38
|
@hyperlinks=
|
39
39
|
{"card_holds"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e2939840/lib/balanced/utils.rb:6 (lambda)>,
|
41
41
|
"customer"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e29387b0/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"debits"=>
|
44
|
-
#<Proc:
|
45
|
-
#<Balanced::Card:
|
44
|
+
#<Proc:0x007fa4e4992330/lib/balanced/utils.rb:6 (lambda)>}>,
|
45
|
+
#<Balanced::Card:0x007fa4e49922b8
|
46
46
|
@attributes=
|
47
47
|
{"address"=>
|
48
48
|
{"city"=>nil,
|
@@ -73,10 +73,10 @@ cards = Balanced::Card.all
|
|
73
73
|
"updated_at"=>"2014-03-06T19:22:44.417128Z"},
|
74
74
|
@hyperlinks=
|
75
75
|
{"card_holds"=>
|
76
|
-
#<Proc:
|
76
|
+
#<Proc:0x007fa4e499b250/lib/balanced/utils.rb:6 (lambda)>,
|
77
77
|
"customer"=>
|
78
|
-
#<Proc:
|
78
|
+
#<Proc:0x007fa4e4998c58/lib/balanced/resources/resource.rb:60 (lambda)>,
|
79
79
|
"debits"=>
|
80
|
-
#<Proc:
|
80
|
+
#<Proc:0x007fa4e49a2348/lib/balanced/utils.rb:6 (lambda)>}>]
|
81
81
|
|
82
82
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::Card:
|
10
|
+
#<Balanced::Card:0x007fa4e49e9680
|
11
11
|
@attributes=
|
12
12
|
{"address"=>
|
13
13
|
{"city"=>nil,
|
@@ -38,10 +38,10 @@ card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
|
|
38
38
|
"updated_at"=>"2014-03-06T19:22:55.617354Z"},
|
39
39
|
@hyperlinks=
|
40
40
|
{"card_holds"=>
|
41
|
-
#<Proc:
|
41
|
+
#<Proc:0x007fa4e49fad68/lib/balanced/utils.rb:6 (lambda)>,
|
42
42
|
"customer"=>
|
43
|
-
#<Proc:
|
43
|
+
#<Proc:0x007fa4e4a0b500/lib/balanced/utils.rb:6 (lambda)>,
|
44
44
|
"debits"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007fa4e3245c18/lib/balanced/utils.rb:6 (lambda)>}>
|
46
46
|
|
47
47
|
% endif
|
@@ -14,7 +14,7 @@ card.meta = {
|
|
14
14
|
card.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::Card:
|
17
|
+
#<Balanced::Card:0x007fa4e327e9a0
|
18
18
|
@attributes=
|
19
19
|
{"address"=>
|
20
20
|
{"city"=>nil,
|
@@ -48,10 +48,10 @@ card.save
|
|
48
48
|
"updated_at"=>"2014-03-06T19:22:59.186980Z"},
|
49
49
|
@hyperlinks=
|
50
50
|
{"card_holds"=>
|
51
|
-
#<Proc:
|
51
|
+
#<Proc:0x007fa4e3287668/lib/balanced/utils.rb:6 (lambda)>,
|
52
52
|
"customer"=>
|
53
|
-
#<Proc:
|
53
|
+
#<Proc:0x007fa4e3286998/lib/balanced/utils.rb:6 (lambda)>,
|
54
54
|
"debits"=>
|
55
|
-
#<Proc:
|
55
|
+
#<Proc:0x007fa4e328e508/lib/balanced/utils.rb:6 (lambda)>}>
|
56
56
|
|
57
57
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
credits = Balanced::Credit.all
|
9
9
|
% elif mode == 'response':
|
10
|
-
[#<Balanced::Credit:
|
10
|
+
[#<Balanced::Credit:0x007fa4e41c01c0
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
13
|
"appears_on_statement_as"=>"example.com",
|
@@ -28,14 +28,14 @@ credits = Balanced::Credit.all
|
|
28
28
|
"updated_at"=>"2014-03-06T19:23:09.525306Z"},
|
29
29
|
@hyperlinks=
|
30
30
|
{"customer"=>
|
31
|
-
#<Proc:
|
31
|
+
#<Proc:0x007fa4e41ca3a0/lib/balanced/resources/resource.rb:60 (lambda)>,
|
32
32
|
"destination"=>
|
33
|
-
#<Proc:
|
33
|
+
#<Proc:0x007fa4e41c82f8/lib/balanced/resources/resource.rb:60 (lambda)>,
|
34
34
|
"events"=>
|
35
|
-
#<Proc:
|
35
|
+
#<Proc:0x007fa4e4a395b8/lib/balanced/utils.rb:6 (lambda)>,
|
36
36
|
"order"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007fa4e4a38708/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"reversals"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa4e4a42578/lib/balanced/utils.rb:6 (lambda)>}>]
|
40
40
|
|
41
41
|
% endif
|
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
|
|
7
7
|
|
8
8
|
credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx')
|
9
9
|
% elif mode == 'response':
|
10
|
-
#<Balanced::Credit:
|
10
|
+
#<Balanced::Credit:0x007fa4e4a6ac30
|
11
11
|
@attributes=
|
12
12
|
{"amount"=>5000,
|
13
13
|
"appears_on_statement_as"=>"example.com",
|
@@ -28,14 +28,14 @@ credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx')
|
|
28
28
|
"updated_at"=>"2014-03-06T19:23:09.525306Z"},
|
29
29
|
@hyperlinks=
|
30
30
|
{"customer"=>
|
31
|
-
#<Proc:
|
31
|
+
#<Proc:0x007fa4e4a72048/lib/balanced/resources/resource.rb:60 (lambda)>,
|
32
32
|
"destination"=>
|
33
|
-
#<Proc:
|
33
|
+
#<Proc:0x007fa4e4a7b300/lib/balanced/resources/resource.rb:60 (lambda)>,
|
34
34
|
"events"=>
|
35
|
-
#<Proc:
|
35
|
+
#<Proc:0x007fa4e4a788f8/lib/balanced/utils.rb:6 (lambda)>,
|
36
36
|
"order"=>
|
37
|
-
#<Proc:
|
37
|
+
#<Proc:0x007fa4e4a7bc38/lib/balanced/utils.rb:6 (lambda)>,
|
38
38
|
"reversals"=>
|
39
|
-
#<Proc:
|
39
|
+
#<Proc:0x007fa4e4a72408/lib/balanced/utils.rb:6 (lambda)>}>
|
40
40
|
|
41
41
|
% endif
|
@@ -14,7 +14,7 @@ credit.meta = {
|
|
14
14
|
credit.save
|
15
15
|
|
16
16
|
% elif mode == 'response':
|
17
|
-
#<Balanced::Credit:
|
17
|
+
#<Balanced::Credit:0x007fa4e4a4a6b0
|
18
18
|
@attributes=
|
19
19
|
{"amount"=>5000,
|
20
20
|
"appears_on_statement_as"=>"example.com",
|
@@ -35,14 +35,14 @@ credit.save
|
|
35
35
|
"updated_at"=>"2014-03-06T19:23:14.259690Z"},
|
36
36
|
@hyperlinks=
|
37
37
|
{"customer"=>
|
38
|
-
#<Proc:
|
38
|
+
#<Proc:0x007fa4e4a43f18/lib/balanced/resources/resource.rb:60 (lambda)>,
|
39
39
|
"destination"=>
|
40
|
-
#<Proc:
|
40
|
+
#<Proc:0x007fa4e4a41f60/lib/balanced/resources/resource.rb:60 (lambda)>,
|
41
41
|
"events"=>
|
42
|
-
#<Proc:
|
42
|
+
#<Proc:0x007fa4e4a3ada0/lib/balanced/utils.rb:6 (lambda)>,
|
43
43
|
"order"=>
|
44
|
-
#<Proc:
|
44
|
+
#<Proc:0x007fa4e4a396a8/lib/balanced/utils.rb:6 (lambda)>,
|
45
45
|
"reversals"=>
|
46
|
-
#<Proc:
|
46
|
+
#<Proc:0x007fa4e41cb2c8/lib/balanced/utils.rb:6 (lambda)>}>
|
47
47
|
|
48
48
|
% endif
|
@@ -16,7 +16,7 @@ customer = Balanced::Customer.new(
|
|
16
16
|
customer.save
|
17
17
|
|
18
18
|
% elif mode == 'response':
|
19
|
-
#<Balanced::Customer:
|
19
|
+
#<Balanced::Customer:0x007fa4e4a197e0
|
20
20
|
@attributes=
|
21
21
|
{"address"=>
|
22
22
|
{"city"=>nil,
|
@@ -42,28 +42,28 @@ customer.save
|
|
42
42
|
"updated_at"=>"2014-03-06T19:23:22.907102Z"},
|
43
43
|
@hyperlinks=
|
44
44
|
{"bank_accounts"=>
|
45
|
-
#<Proc:
|
45
|
+
#<Proc:0x007fa4e4a12058/lib/balanced/utils.rb:6 (lambda)>,
|
46
46
|
"card_holds"=>
|
47
|
-
#<Proc:
|
47
|
+
#<Proc:0x007fa4e328f610/lib/balanced/utils.rb:6 (lambda)>,
|
48
48
|
"cards"=>
|
49
|
-
#<Proc:
|
49
|
+
#<Proc:0x007fa4e32844b8/lib/balanced/utils.rb:6 (lambda)>,
|
50
50
|
"credits"=>
|
51
|
-
#<Proc:
|
51
|
+
#<Proc:0x007fa4e32862b8/lib/balanced/utils.rb:6 (lambda)>,
|
52
52
|
"debits"=>
|
53
|
-
#<Proc:
|
53
|
+
#<Proc:0x007fa4e327e5e0/lib/balanced/utils.rb:6 (lambda)>,
|
54
54
|
"destination"=>
|
55
|
-
#<Proc:
|
55
|
+
#<Proc:0x007fa4e327d8e8/lib/balanced/utils.rb:6 (lambda)>,
|
56
56
|
"external_accounts"=>
|
57
|
-
#<Proc:
|
57
|
+
#<Proc:0x007fa4e32766b0/lib/balanced/utils.rb:6 (lambda)>,
|
58
58
|
"orders"=>
|
59
|
-
#<Proc:
|
59
|
+
#<Proc:0x007fa4e326f720/lib/balanced/utils.rb:6 (lambda)>,
|
60
60
|
"refunds"=>
|
61
|
-
#<Proc:
|
61
|
+
#<Proc:0x007fa4e326c2a0/lib/balanced/utils.rb:6 (lambda)>,
|
62
62
|
"reversals"=>
|
63
|
-
#<Proc:
|
63
|
+
#<Proc:0x007fa4e3265bd0/lib/balanced/utils.rb:6 (lambda)>,
|
64
64
|
"source"=>
|
65
|
-
#<Proc:
|
65
|
+
#<Proc:0x007fa4e3264640/lib/balanced/utils.rb:6 (lambda)>,
|
66
66
|
"transactions"=>
|
67
|
-
#<Proc:
|
67
|
+
#<Proc:0x007fa4e325e330/lib/balanced/utils.rb:6 (lambda)>}>
|
68
68
|
|
69
69
|
% endif
|