balanced 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/README.md +4 -0
  4. data/lib/balanced/error.rb +4 -2
  5. data/lib/balanced/resources/resource.rb +5 -0
  6. data/lib/balanced/version.rb +1 -1
  7. data/scenarios/api_key_create/ruby.mako +1 -1
  8. data/scenarios/api_key_list/ruby.mako +2 -2
  9. data/scenarios/api_key_show/ruby.mako +1 -1
  10. data/scenarios/bank_account_associate_to_customer/ruby.mako +6 -6
  11. data/scenarios/bank_account_create/ruby.mako +6 -6
  12. data/scenarios/bank_account_credit/ruby.mako +6 -6
  13. data/scenarios/bank_account_debit/ruby.mako +7 -7
  14. data/scenarios/bank_account_list/ruby.mako +12 -12
  15. data/scenarios/bank_account_show/ruby.mako +6 -6
  16. data/scenarios/bank_account_update/ruby.mako +6 -6
  17. data/scenarios/bank_account_verification_create/ruby.mako +2 -2
  18. data/scenarios/bank_account_verification_show/ruby.mako +2 -2
  19. data/scenarios/bank_account_verification_update/ruby.mako +2 -2
  20. data/scenarios/callback_create/ruby.mako +1 -1
  21. data/scenarios/callback_list/ruby.mako +1 -1
  22. data/scenarios/callback_show/ruby.mako +1 -1
  23. data/scenarios/card_associate_to_customer/definition.rb +1 -1
  24. data/scenarios/card_associate_to_customer/ruby.mako +5 -5
  25. data/scenarios/card_create/ruby.mako +4 -4
  26. data/scenarios/card_debit/ruby.mako +7 -7
  27. data/scenarios/card_hold_capture/ruby.mako +7 -7
  28. data/scenarios/card_hold_create/ruby.mako +5 -5
  29. data/scenarios/card_hold_list/ruby.mako +10 -10
  30. data/scenarios/card_hold_show/ruby.mako +5 -5
  31. data/scenarios/card_hold_update/ruby.mako +5 -5
  32. data/scenarios/card_hold_void/ruby.mako +5 -5
  33. data/scenarios/card_list/ruby.mako +8 -8
  34. data/scenarios/card_show/ruby.mako +4 -4
  35. data/scenarios/card_update/ruby.mako +4 -4
  36. data/scenarios/credit_list/ruby.mako +6 -6
  37. data/scenarios/credit_show/ruby.mako +6 -6
  38. data/scenarios/credit_update/ruby.mako +6 -6
  39. data/scenarios/customer_create/ruby.mako +13 -13
  40. data/scenarios/customer_list/ruby.mako +26 -26
  41. data/scenarios/customer_show/ruby.mako +13 -13
  42. data/scenarios/customer_update/ruby.mako +13 -13
  43. data/scenarios/debit_list/ruby.mako +14 -14
  44. data/scenarios/debit_show/ruby.mako +7 -7
  45. data/scenarios/debit_update/ruby.mako +7 -7
  46. data/scenarios/event_list/ruby.mako +4 -4
  47. data/scenarios/event_show/ruby.mako +2 -2
  48. data/scenarios/order_create/ruby.mako +7 -7
  49. data/scenarios/order_list/ruby.mako +7 -7
  50. data/scenarios/order_show/ruby.mako +7 -7
  51. data/scenarios/order_update/ruby.mako +7 -7
  52. data/scenarios/refund_create/ruby.mako +5 -5
  53. data/scenarios/refund_list/ruby.mako +5 -5
  54. data/scenarios/refund_show/ruby.mako +5 -5
  55. data/scenarios/refund_update/ruby.mako +5 -5
  56. data/scenarios/reversal_create/ruby.mako +4 -4
  57. data/scenarios/reversal_list/ruby.mako +4 -4
  58. data/scenarios/reversal_show/ruby.mako +4 -4
  59. data/scenarios/reversal_update/ruby.mako +4 -4
  60. data/spec/balanced/error_spec.rb +18 -0
  61. metadata +3 -2
@@ -13,7 +13,7 @@ card = Balanced::Card.new(
13
13
  ).save
14
14
 
15
15
  % elif mode == 'response':
16
- #<Balanced::Card:0x007ff2bd9dc800
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:0x007ff2bc8ad0e8/lib/balanced/utils.rb:6 (lambda)>,
47
+ #<Proc:0x007fa4e49b8198/lib/balanced/utils.rb:6 (lambda)>,
48
48
  "customer"=>
49
- #<Proc:0x007ff2bc12a550/lib/balanced/utils.rb:6 (lambda)>,
49
+ #<Proc:0x007fa4e49b3af8/lib/balanced/utils.rb:6 (lambda)>,
50
50
  "debits"=>
51
- #<Proc:0x007ff2bd9febf8/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bda14cf0
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:0x007ff2bda1e958/lib/balanced/resources/resource.rb:60 (lambda)>,
37
+ #<Proc:0x007fa4e2929e68/lib/balanced/resources/resource.rb:60 (lambda)>,
38
38
  "dispute"=>
39
- #<Proc:0x007ff2bda1de68/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007fa4e29292d8/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "events"=>
41
- #<Proc:0x007ff2bc14b660/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007fa4e40a5e70/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "order"=>
43
- #<Proc:0x007ff2bc1495e0/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007fa4e48467b0/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "refunds"=>
45
- #<Proc:0x007ff2bc1528e8/lib/balanced/utils.rb:6 (lambda)>,
45
+ #<Proc:0x007fa4e3039758/lib/balanced/utils.rb:6 (lambda)>,
46
46
  "source"=>
47
- #<Proc:0x007ff2bc150b38/lib/balanced/resources/resource.rb:60 (lambda)>}>
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:0x007ff2bdaa68f8
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:0x007ff2bdaa40d0/lib/balanced/resources/resource.rb:60 (lambda)>,
37
+ #<Proc:0x007fa4e30f20c8/lib/balanced/resources/resource.rb:60 (lambda)>,
38
38
  "dispute"=>
39
- #<Proc:0x007ff2bdaaf5c0/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007fa4e31024c8/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "events"=>
41
- #<Proc:0x007ff2bdaad400/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007fa4e310a830/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "order"=>
43
- #<Proc:0x007ff2bdaac730/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007fa4e3112f80/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "refunds"=>
45
- #<Proc:0x007ff2bdab4f98/lib/balanced/utils.rb:6 (lambda)>,
45
+ #<Proc:0x007fa4e31201d0/lib/balanced/utils.rb:6 (lambda)>,
46
46
  "source"=>
47
- #<Proc:0x007ff2bdabd9e0/lib/balanced/resources/resource.rb:60 (lambda)>}>
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:0x007ff2bc1a38b0
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:0x007ff2bc1a0b10/lib/balanced/resources/resource.rb:60 (lambda)>,
32
+ #<Proc:0x007fa4e48af148/lib/balanced/resources/resource.rb:60 (lambda)>,
33
33
  "debit"=>
34
- #<Proc:0x007ff2bdaefee0/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e48bf048/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "debits"=>
36
- #<Proc:0x007ff2bdaedb90/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa4e31b2f58/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "events"=>
38
- #<Proc:0x007ff2bc91adf0/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bc930808
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:0x007ff2bc93cba8/lib/balanced/resources/resource.rb:60 (lambda)>,
29
+ #<Proc:0x007fa4e48d04d8/lib/balanced/resources/resource.rb:60 (lambda)>,
30
30
  "debit"=>
31
- #<Proc:0x007ff2bdafbda8/lib/balanced/utils.rb:6 (lambda)>,
31
+ #<Proc:0x007fa4e48d2e68/lib/balanced/utils.rb:6 (lambda)>,
32
32
  "debits"=>
33
- #<Proc:0x007ff2bdaf92d8/lib/balanced/utils.rb:6 (lambda)>,
33
+ #<Proc:0x007fa4e48d12c0/lib/balanced/utils.rb:6 (lambda)>,
34
34
  "events"=>
35
- #<Proc:0x007ff2bdaf2500/lib/balanced/utils.rb:6 (lambda)>}>,
36
- #<Balanced::CardHold:0x007ff2bdaf2488
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:0x007ff2bdafcac8/lib/balanced/resources/resource.rb:60 (lambda)>,
56
+ #<Proc:0x007fa4e48d4c90/lib/balanced/resources/resource.rb:60 (lambda)>,
57
57
  "debit"=>
58
- #<Proc:0x007ff2bdafdfb8/lib/balanced/resources/resource.rb:60 (lambda)>,
58
+ #<Proc:0x007fa4e48d53c0/lib/balanced/resources/resource.rb:60 (lambda)>,
59
59
  "debits"=>
60
- #<Proc:0x007ff2bdb06668/lib/balanced/utils.rb:6 (lambda)>,
60
+ #<Proc:0x007fa4e48edf60/lib/balanced/utils.rb:6 (lambda)>,
61
61
  "events"=>
62
- #<Proc:0x007ff2bdb0f948/lib/balanced/utils.rb:6 (lambda)>}>]
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:0x007ff2bdb73e20
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:0x007ff2bdb71dc8/lib/balanced/resources/resource.rb:60 (lambda)>,
30
+ #<Proc:0x007fa4e40e67e0/lib/balanced/resources/resource.rb:60 (lambda)>,
31
31
  "debit"=>
32
- #<Proc:0x007ff2bdb70c48/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007fa4e40e49b8/lib/balanced/utils.rb:6 (lambda)>,
33
33
  "debits"=>
34
- #<Proc:0x007ff2bdb7a450/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e40ffdd0/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "events"=>
36
- #<Proc:0x007ff2bdb78da8/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bdb5a600
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:0x007ff2bdb58058/lib/balanced/resources/resource.rb:60 (lambda)>,
36
+ #<Proc:0x007fa4e4127088/lib/balanced/resources/resource.rb:60 (lambda)>,
37
37
  "debit"=>
38
- #<Proc:0x007ff2bdb53e90/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa4e4124478/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "debits"=>
40
- #<Proc:0x007ff2bdb51820/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa4e4935040/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "events"=>
42
- #<Proc:0x007ff2bdb4bb00/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bdaffa98
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:0x007ff2bdafcc30/lib/balanced/resources/resource.rb:60 (lambda)>,
30
+ #<Proc:0x007fa4e496e368/lib/balanced/resources/resource.rb:60 (lambda)>,
31
31
  "debit"=>
32
- #<Proc:0x007ff2bdaf07a0/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007fa4e496f628/lib/balanced/utils.rb:6 (lambda)>,
33
33
  "debits"=>
34
- #<Proc:0x007ff2bdaf1ce0/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e496cb80/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "events"=>
36
- #<Proc:0x007ff2bdafb150/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bc911160
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:0x007ff2bc91a238/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa4e2939840/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "customer"=>
42
- #<Proc:0x007ff2bc9192c0/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa4e29387b0/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007ff2bdaef620/lib/balanced/utils.rb:6 (lambda)>}>,
45
- #<Balanced::Card:0x007ff2bdaef5d0
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:0x007ff2bc1a18a8/lib/balanced/utils.rb:6 (lambda)>,
76
+ #<Proc:0x007fa4e499b250/lib/balanced/utils.rb:6 (lambda)>,
77
77
  "customer"=>
78
- #<Proc:0x007ff2bc1a0a48/lib/balanced/resources/resource.rb:60 (lambda)>,
78
+ #<Proc:0x007fa4e4998c58/lib/balanced/resources/resource.rb:60 (lambda)>,
79
79
  "debits"=>
80
- #<Proc:0x007ff2bc19a120/lib/balanced/utils.rb:6 (lambda)>}>]
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:0x007ff2bc8c7a38
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:0x007ff2bc8c47e8/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007fa4e49fad68/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "customer"=>
43
- #<Proc:0x007ff2bc8be3c0/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007fa4e4a0b500/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "debits"=>
45
- #<Proc:0x007ff2bc8bd880/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bda0dd88
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:0x007ff2bda075a0/lib/balanced/utils.rb:6 (lambda)>,
51
+ #<Proc:0x007fa4e3287668/lib/balanced/utils.rb:6 (lambda)>,
52
52
  "customer"=>
53
- #<Proc:0x007ff2bda06628/lib/balanced/utils.rb:6 (lambda)>,
53
+ #<Proc:0x007fa4e3286998/lib/balanced/utils.rb:6 (lambda)>,
54
54
  "debits"=>
55
- #<Proc:0x007ff2bc142498/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bd9cf178
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:0x007ff2bd9cc608/lib/balanced/resources/resource.rb:60 (lambda)>,
31
+ #<Proc:0x007fa4e41ca3a0/lib/balanced/resources/resource.rb:60 (lambda)>,
32
32
  "destination"=>
33
- #<Proc:0x007ff2bd9c6be0/lib/balanced/resources/resource.rb:60 (lambda)>,
33
+ #<Proc:0x007fa4e41c82f8/lib/balanced/resources/resource.rb:60 (lambda)>,
34
34
  "events"=>
35
- #<Proc:0x007ff2bd9c4390/lib/balanced/utils.rb:6 (lambda)>,
35
+ #<Proc:0x007fa4e4a395b8/lib/balanced/utils.rb:6 (lambda)>,
36
36
  "order"=>
37
- #<Proc:0x007ff2bd9bfe08/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007fa4e4a38708/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "reversals"=>
39
- #<Proc:0x007ff2bd9bd2e8/lib/balanced/utils.rb:6 (lambda)>}>]
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:0x007ff2bd99fb08
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:0x007ff2bd99d150/lib/balanced/resources/resource.rb:60 (lambda)>,
31
+ #<Proc:0x007fa4e4a72048/lib/balanced/resources/resource.rb:60 (lambda)>,
32
32
  "destination"=>
33
- #<Proc:0x007ff2bd98b630/lib/balanced/resources/resource.rb:60 (lambda)>,
33
+ #<Proc:0x007fa4e4a7b300/lib/balanced/resources/resource.rb:60 (lambda)>,
34
34
  "events"=>
35
- #<Proc:0x007ff2bd988ae8/lib/balanced/utils.rb:6 (lambda)>,
35
+ #<Proc:0x007fa4e4a788f8/lib/balanced/utils.rb:6 (lambda)>,
36
36
  "order"=>
37
- #<Proc:0x007ff2bd995158/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007fa4e4a7bc38/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "reversals"=>
39
- #<Proc:0x007ff2bd994780/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bd960980
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:0x007ff2bd95aad0/lib/balanced/resources/resource.rb:60 (lambda)>,
38
+ #<Proc:0x007fa4e4a43f18/lib/balanced/resources/resource.rb:60 (lambda)>,
39
39
  "destination"=>
40
- #<Proc:0x007ff2bd958640/lib/balanced/resources/resource.rb:60 (lambda)>,
40
+ #<Proc:0x007fa4e4a41f60/lib/balanced/resources/resource.rb:60 (lambda)>,
41
41
  "events"=>
42
- #<Proc:0x007ff2bd952560/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa4e4a3ada0/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "order"=>
44
- #<Proc:0x007ff2bd951980/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007fa4e4a396a8/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "reversals"=>
46
- #<Proc:0x007ff2bd94be18/lib/balanced/utils.rb:6 (lambda)>}>
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:0x007ff2bc8a40b0
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:0x007ff2bd929750/lib/balanced/utils.rb:6 (lambda)>,
45
+ #<Proc:0x007fa4e4a12058/lib/balanced/utils.rb:6 (lambda)>,
46
46
  "card_holds"=>
47
- #<Proc:0x007ff2bd91f4f8/lib/balanced/utils.rb:6 (lambda)>,
47
+ #<Proc:0x007fa4e328f610/lib/balanced/utils.rb:6 (lambda)>,
48
48
  "cards"=>
49
- #<Proc:0x007ff2bd91cf28/lib/balanced/utils.rb:6 (lambda)>,
49
+ #<Proc:0x007fa4e32844b8/lib/balanced/utils.rb:6 (lambda)>,
50
50
  "credits"=>
51
- #<Proc:0x007ff2bd91a598/lib/balanced/utils.rb:6 (lambda)>,
51
+ #<Proc:0x007fa4e32862b8/lib/balanced/utils.rb:6 (lambda)>,
52
52
  "debits"=>
53
- #<Proc:0x007ff2bd910660/lib/balanced/utils.rb:6 (lambda)>,
53
+ #<Proc:0x007fa4e327e5e0/lib/balanced/utils.rb:6 (lambda)>,
54
54
  "destination"=>
55
- #<Proc:0x007ff2bd903ed8/lib/balanced/utils.rb:6 (lambda)>,
55
+ #<Proc:0x007fa4e327d8e8/lib/balanced/utils.rb:6 (lambda)>,
56
56
  "external_accounts"=>
57
- #<Proc:0x007ff2bd8f3010/lib/balanced/utils.rb:6 (lambda)>,
57
+ #<Proc:0x007fa4e32766b0/lib/balanced/utils.rb:6 (lambda)>,
58
58
  "orders"=>
59
- #<Proc:0x007ff2bc10da18/lib/balanced/utils.rb:6 (lambda)>,
59
+ #<Proc:0x007fa4e326f720/lib/balanced/utils.rb:6 (lambda)>,
60
60
  "refunds"=>
61
- #<Proc:0x007ff2bd8e11f8/lib/balanced/utils.rb:6 (lambda)>,
61
+ #<Proc:0x007fa4e326c2a0/lib/balanced/utils.rb:6 (lambda)>,
62
62
  "reversals"=>
63
- #<Proc:0x007ff2bd8c84a0/lib/balanced/utils.rb:6 (lambda)>,
63
+ #<Proc:0x007fa4e3265bd0/lib/balanced/utils.rb:6 (lambda)>,
64
64
  "source"=>
65
- #<Proc:0x007ff2bd8c37c0/lib/balanced/utils.rb:6 (lambda)>,
65
+ #<Proc:0x007fa4e3264640/lib/balanced/utils.rb:6 (lambda)>,
66
66
  "transactions"=>
67
- #<Proc:0x007ff2bd8bb570/lib/balanced/utils.rb:6 (lambda)>}>
67
+ #<Proc:0x007fa4e325e330/lib/balanced/utils.rb:6 (lambda)>}>
68
68
 
69
69
  % endif