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
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  customers = Balanced::Customer.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::Customer:0x007ff2be108840
10
+ [#<Balanced::Customer:0x007fa4e49cb388
11
11
  @attributes=
12
12
  {"address"=>
13
13
  {"city"=>nil,
@@ -33,30 +33,30 @@ customers = Balanced::Customer.all
33
33
  "updated_at"=>"2014-03-06T19:23:16.724050Z"},
34
34
  @hyperlinks=
35
35
  {"bank_accounts"=>
36
- #<Proc:0x007ff2be0fa740/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa4e49c84d0/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "card_holds"=>
38
- #<Proc:0x007ff2be0e98f0/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa4e49c2a58/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "cards"=>
40
- #<Proc:0x007ff2bd881348/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa4e49c0410/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "credits"=>
42
- #<Proc:0x007ff2bd864ba8/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa4e49ba8d0/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007ff2bd861fe8/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007fa4e49b8378/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "destination"=>
46
- #<Proc:0x007ff2bd8603a0/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007fa4e49b3e18/lib/balanced/utils.rb:6 (lambda)>,
47
47
  "external_accounts"=>
48
- #<Proc:0x007ff2bd850ba8/lib/balanced/utils.rb:6 (lambda)>,
48
+ #<Proc:0x007fa4e49b0bc8/lib/balanced/utils.rb:6 (lambda)>,
49
49
  "orders"=>
50
- #<Proc:0x007ff2bd8472d8/lib/balanced/utils.rb:6 (lambda)>,
50
+ #<Proc:0x007fa4e49aa728/lib/balanced/utils.rb:6 (lambda)>,
51
51
  "refunds"=>
52
- #<Proc:0x007ff2bc8a1d10/lib/balanced/utils.rb:6 (lambda)>,
52
+ #<Proc:0x007fa4e49a81d0/lib/balanced/utils.rb:6 (lambda)>,
53
53
  "reversals"=>
54
- #<Proc:0x007ff2bc89a9c0/lib/balanced/utils.rb:6 (lambda)>,
54
+ #<Proc:0x007fa4e49a0ea8/lib/balanced/utils.rb:6 (lambda)>,
55
55
  "source"=>
56
- #<Proc:0x007ff2bc899070/lib/balanced/utils.rb:6 (lambda)>,
56
+ #<Proc:0x007fa4e4998438/lib/balanced/utils.rb:6 (lambda)>,
57
57
  "transactions"=>
58
- #<Proc:0x007ff2bc890b00/lib/balanced/utils.rb:6 (lambda)>}>,
59
- #<Balanced::Customer:0x007ff2bc890a38
58
+ #<Proc:0x007fa4e499a1e8/lib/balanced/utils.rb:6 (lambda)>}>,
59
+ #<Balanced::Customer:0x007fa4e499a0a8
60
60
  @attributes=
61
61
  {"address"=>
62
62
  {"city"=>nil,
@@ -82,28 +82,28 @@ customers = Balanced::Customer.all
82
82
  "updated_at"=>"2014-03-06T19:23:05.747337Z"},
83
83
  @hyperlinks=
84
84
  {"bank_accounts"=>
85
- #<Proc:0x007ff2bc888ce8/lib/balanced/utils.rb:6 (lambda)>,
85
+ #<Proc:0x007fa4e4992cb8/lib/balanced/utils.rb:6 (lambda)>,
86
86
  "card_holds"=>
87
- #<Proc:0x007ff2bc881420/lib/balanced/utils.rb:6 (lambda)>,
87
+ #<Proc:0x007fa4e2938940/lib/balanced/utils.rb:6 (lambda)>,
88
88
  "cards"=>
89
- #<Proc:0x007ff2be0bb0b8/lib/balanced/utils.rb:6 (lambda)>,
89
+ #<Proc:0x007fa4e29385d0/lib/balanced/utils.rb:6 (lambda)>,
90
90
  "credits"=>
91
- #<Proc:0x007ff2bc848170/lib/balanced/utils.rb:6 (lambda)>,
91
+ #<Proc:0x007fa4e29324c8/lib/balanced/utils.rb:6 (lambda)>,
92
92
  "debits"=>
93
- #<Proc:0x007ff2be03f878/lib/balanced/utils.rb:6 (lambda)>,
93
+ #<Proc:0x007fa4e292bab0/lib/balanced/utils.rb:6 (lambda)>,
94
94
  "destination"=>
95
- #<Proc:0x007ff2bd833080/lib/balanced/utils.rb:6 (lambda)>,
95
+ #<Proc:0x007fa4e292afe8/lib/balanced/utils.rb:6 (lambda)>,
96
96
  "external_accounts"=>
97
- #<Proc:0x007ff2bc0e5ea0/lib/balanced/utils.rb:6 (lambda)>,
97
+ #<Proc:0x007fa4e2928c70/lib/balanced/utils.rb:6 (lambda)>,
98
98
  "orders"=>
99
- #<Proc:0x007ff2bc0db748/lib/balanced/utils.rb:6 (lambda)>,
99
+ #<Proc:0x007fa4e291ae18/lib/balanced/utils.rb:6 (lambda)>,
100
100
  "refunds"=>
101
- #<Proc:0x007ff2bc0082a8/lib/balanced/utils.rb:6 (lambda)>,
101
+ #<Proc:0x007fa4e2918780/lib/balanced/utils.rb:6 (lambda)>,
102
102
  "reversals"=>
103
- #<Proc:0x007ff2bdb7b9b8/lib/balanced/utils.rb:6 (lambda)>,
103
+ #<Proc:0x007fa4e41b1c38/lib/balanced/utils.rb:6 (lambda)>,
104
104
  "source"=>
105
- #<Proc:0x007ff2bdb7af18/lib/balanced/utils.rb:6 (lambda)>,
105
+ #<Proc:0x007fa4e41b0ba8/lib/balanced/utils.rb:6 (lambda)>,
106
106
  "transactions"=>
107
- #<Proc:0x007ff2bdb78bf0/lib/balanced/utils.rb:6 (lambda)>}>]
107
+ #<Proc:0x007fa4e497f550/lib/balanced/utils.rb:6 (lambda)>}>]
108
108
 
109
109
  % endif
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  customer = Balanced::Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT')
9
9
  % elif mode == 'response':
10
- #<Balanced::Customer:0x007ff2bdaf2028
10
+ #<Balanced::Customer:0x007fa4e4114f28
11
11
  @attributes=
12
12
  {"address"=>
13
13
  {"city"=>nil,
@@ -33,28 +33,28 @@ customer = Balanced::Customer.fetch('/customers/CU5YopHN07Ul5XQnILUifeQT')
33
33
  "updated_at"=>"2014-03-06T19:23:16.724050Z"},
34
34
  @hyperlinks=
35
35
  {"bank_accounts"=>
36
- #<Proc:0x007ff2bdafb858/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa4e410eb78/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "card_holds"=>
38
- #<Proc:0x007ff2bdaf81d0/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa4e410c3c8/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "cards"=>
40
- #<Proc:0x007ff2bc93c928/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa4e4106680/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "credits"=>
42
- #<Proc:0x007ff2bc932428/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa4e4104100/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007ff2bc92b588/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007fa4e40fe2c8/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "destination"=>
46
- #<Proc:0x007ff2bc92a840/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007fa4e40fcb08/lib/balanced/utils.rb:6 (lambda)>,
47
47
  "external_accounts"=>
48
- #<Proc:0x007ff2bc9232e8/lib/balanced/utils.rb:6 (lambda)>,
48
+ #<Proc:0x007fa4e40e6f38/lib/balanced/utils.rb:6 (lambda)>,
49
49
  "orders"=>
50
- #<Proc:0x007ff2bc921b78/lib/balanced/utils.rb:6 (lambda)>,
50
+ #<Proc:0x007fa4e40e3a68/lib/balanced/utils.rb:6 (lambda)>,
51
51
  "refunds"=>
52
- #<Proc:0x007ff2bc913be0/lib/balanced/utils.rb:6 (lambda)>,
52
+ #<Proc:0x007fa4e40dfdf0/lib/balanced/utils.rb:6 (lambda)>,
53
53
  "reversals"=>
54
- #<Proc:0x007ff2bc9113b8/lib/balanced/utils.rb:6 (lambda)>,
54
+ #<Proc:0x007fa4e40dce98/lib/balanced/utils.rb:6 (lambda)>,
55
55
  "source"=>
56
- #<Proc:0x007ff2bc9105d0/lib/balanced/utils.rb:6 (lambda)>,
56
+ #<Proc:0x007fa4e40d4d88/lib/balanced/utils.rb:6 (lambda)>,
57
57
  "transactions"=>
58
- #<Proc:0x007ff2bc919ea0/lib/balanced/utils.rb:6 (lambda)>}>
58
+ #<Proc:0x007fa4e40d6070/lib/balanced/utils.rb:6 (lambda)>}>
59
59
 
60
60
  % endif
@@ -13,7 +13,7 @@ customer.meta = {
13
13
  customer.save
14
14
 
15
15
  % elif mode == 'response':
16
- #<Balanced::Customer:0x007ff2bdac6e78
16
+ #<Balanced::Customer:0x007fa4e48eccc8
17
17
  @attributes=
18
18
  {"address"=>
19
19
  {"city"=>nil,
@@ -39,28 +39,28 @@ customer.save
39
39
  "updated_at"=>"2014-03-06T19:23:20.140160Z"},
40
40
  @hyperlinks=
41
41
  {"bank_accounts"=>
42
- #<Proc:0x007ff2bdabe8e0/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa4e48d4380/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "card_holds"=>
44
- #<Proc:0x007ff2bdab78b0/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007fa4e48e66c0/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "cards"=>
46
- #<Proc:0x007ff2bdaafd40/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007fa4e48d28a0/lib/balanced/utils.rb:6 (lambda)>,
47
47
  "credits"=>
48
- #<Proc:0x007ff2bdaad658/lib/balanced/utils.rb:6 (lambda)>,
48
+ #<Proc:0x007fa4e48d10b8/lib/balanced/utils.rb:6 (lambda)>,
49
49
  "debits"=>
50
- #<Proc:0x007ff2bdaa7370/lib/balanced/utils.rb:6 (lambda)>,
50
+ #<Proc:0x007fa4e48df500/lib/balanced/utils.rb:6 (lambda)>,
51
51
  "destination"=>
52
- #<Proc:0x007ff2bdaa65b0/lib/balanced/utils.rb:6 (lambda)>,
52
+ #<Proc:0x007fa4e48de6a0/lib/balanced/utils.rb:6 (lambda)>,
53
53
  "external_accounts"=>
54
- #<Proc:0x007ff2bda9e3b0/lib/balanced/utils.rb:6 (lambda)>,
54
+ #<Proc:0x007fa4e48cfc68/lib/balanced/utils.rb:6 (lambda)>,
55
55
  "orders"=>
56
- #<Proc:0x007ff2bda9da78/lib/balanced/utils.rb:6 (lambda)>,
56
+ #<Proc:0x007fa4e48cd3f0/lib/balanced/utils.rb:6 (lambda)>,
57
57
  "refunds"=>
58
- #<Proc:0x007ff2bda940b8/lib/balanced/utils.rb:6 (lambda)>,
58
+ #<Proc:0x007fa4e48cafd8/lib/balanced/utils.rb:6 (lambda)>,
59
59
  "reversals"=>
60
- #<Proc:0x007ff2bc8ccd30/lib/balanced/utils.rb:6 (lambda)>,
60
+ #<Proc:0x007fa4e48c01f0/lib/balanced/utils.rb:6 (lambda)>,
61
61
  "source"=>
62
- #<Proc:0x007ff2bc8c5440/lib/balanced/utils.rb:6 (lambda)>,
62
+ #<Proc:0x007fa4e48c2bd0/lib/balanced/utils.rb:6 (lambda)>,
63
63
  "transactions"=>
64
- #<Proc:0x007ff2bc8c5ff8/lib/balanced/utils.rb:6 (lambda)>}>
64
+ #<Proc:0x007fa4e3213df8/lib/balanced/utils.rb:6 (lambda)>}>
65
65
 
66
66
  % endif
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  debits = Balanced::Debit.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::Debit:0x007ff2bda070c8
10
+ [#<Balanced::Debit:0x007fa4e315f920
11
11
  @attributes=
12
12
  {"amount"=>5000,
13
13
  "appears_on_statement_as"=>"BAL*Statement text",
@@ -29,18 +29,18 @@ debits = Balanced::Debit.all
29
29
  "updated_at"=>"2014-03-06T19:23:02.987552Z"},
30
30
  @hyperlinks=
31
31
  {"customer"=>
32
- #<Proc:0x007ff2bda05c50/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007fa4e315a498/lib/balanced/utils.rb:6 (lambda)>,
33
33
  "dispute"=>
34
- #<Proc:0x007ff2bda04828/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e3151b90/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "events"=>
36
- #<Proc:0x007ff2bc140698/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa4e3132c68/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "order"=>
38
- #<Proc:0x007ff2bc13bda0/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa4e3129ed8/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "refunds"=>
40
- #<Proc:0x007ff2bc131a58/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa4e311b928/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "source"=>
42
- #<Proc:0x007ff2bc131eb8/lib/balanced/resources/resource.rb:60 (lambda)>}>,
43
- #<Balanced::Debit:0x007ff2bc131e40
42
+ #<Proc:0x007fa4e3109200/lib/balanced/resources/resource.rb:60 (lambda)>}>,
43
+ #<Balanced::Debit:0x007fa4e3108f08
44
44
  @attributes=
45
45
  {"amount"=>5000,
46
46
  "appears_on_statement_as"=>"BAL*ShowsUpOnStmt",
@@ -62,16 +62,16 @@ debits = Balanced::Debit.all
62
62
  "updated_at"=>"2014-03-06T19:22:50.608819Z"},
63
63
  @hyperlinks=
64
64
  {"customer"=>
65
- #<Proc:0x007ff2bd9fe4c8/lib/balanced/resources/resource.rb:60 (lambda)>,
65
+ #<Proc:0x007fa4e30fb510/lib/balanced/resources/resource.rb:60 (lambda)>,
66
66
  "dispute"=>
67
- #<Proc:0x007ff2bd9fc970/lib/balanced/utils.rb:6 (lambda)>,
67
+ #<Proc:0x007fa4e30e8708/lib/balanced/utils.rb:6 (lambda)>,
68
68
  "events"=>
69
- #<Proc:0x007ff2bc12a280/lib/balanced/utils.rb:6 (lambda)>,
69
+ #<Proc:0x007fa4e30dbaf8/lib/balanced/utils.rb:6 (lambda)>,
70
70
  "order"=>
71
- #<Proc:0x007ff2bc8aedf8/lib/balanced/utils.rb:6 (lambda)>,
71
+ #<Proc:0x007fa4e30d9988/lib/balanced/utils.rb:6 (lambda)>,
72
72
  "refunds"=>
73
- #<Proc:0x007ff2bd9e6058/lib/balanced/utils.rb:6 (lambda)>,
73
+ #<Proc:0x007fa4e30ca5a0/lib/balanced/utils.rb:6 (lambda)>,
74
74
  "source"=>
75
- #<Proc:0x007ff2bd9dd778/lib/balanced/resources/resource.rb:60 (lambda)>}>]
75
+ #<Proc:0x007fa4e30ba9e8/lib/balanced/resources/resource.rb:60 (lambda)>}>]
76
76
 
77
77
  % endif
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
8
8
  debit = Balanced::Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr')
9
9
 
10
10
  % elif mode == 'response':
11
- #<Balanced::Debit:0x007ff2bd9a5e18
11
+ #<Balanced::Debit:0x007fa4e4a580d0
12
12
  @attributes=
13
13
  {"amount"=>5000,
14
14
  "appears_on_statement_as"=>"BAL*Statement text",
@@ -30,16 +30,16 @@ debit = Balanced::Debit.fetch('/debits/WD5PTwr2bwJLIyJio1pEpYBr')
30
30
  "updated_at"=>"2014-03-06T19:23:02.987552Z"},
31
31
  @hyperlinks=
32
32
  {"customer"=>
33
- #<Proc:0x007ff2bd9a4bd0/lib/balanced/utils.rb:6 (lambda)>,
33
+ #<Proc:0x007fa4e4a5b780/lib/balanced/utils.rb:6 (lambda)>,
34
34
  "dispute"=>
35
- #<Proc:0x007ff2bd9a4040/lib/balanced/utils.rb:6 (lambda)>,
35
+ #<Proc:0x007fa4e4a5ab28/lib/balanced/utils.rb:6 (lambda)>,
36
36
  "events"=>
37
- #<Proc:0x007ff2bd99e758/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007fa4e4a58288/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "order"=>
39
- #<Proc:0x007ff2bd99d290/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007fa4e4a53c38/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "refunds"=>
41
- #<Proc:0x007ff2bd98b7c0/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007fa4e4a51460/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "source"=>
43
- #<Proc:0x007ff2bd988958/lib/balanced/resources/resource.rb:60 (lambda)>}>
43
+ #<Proc:0x007fa4e4a4a660/lib/balanced/resources/resource.rb:60 (lambda)>}>
44
44
 
45
45
  % endif
@@ -14,7 +14,7 @@ debit.meta = {
14
14
  debit.save
15
15
 
16
16
  % elif mode == 'response':
17
- #<Balanced::Debit:0x007ff2bd962960
17
+ #<Balanced::Debit:0x007fa4e41c0418
18
18
  @attributes=
19
19
  {"amount"=>5000,
20
20
  "appears_on_statement_as"=>"BAL*Statement text",
@@ -36,16 +36,16 @@ debit.save
36
36
  "updated_at"=>"2014-03-06T19:23:33.383170Z"},
37
37
  @hyperlinks=
38
38
  {"customer"=>
39
- #<Proc:0x007ff2bd961678/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007fa4e4a33b90/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "dispute"=>
41
- #<Proc:0x007ff2bd9608e0/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007fa4e4a32ec0/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "events"=>
43
- #<Proc:0x007ff2bd95ad50/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007fa4e4a308a0/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "order"=>
45
- #<Proc:0x007ff2bd95a030/lib/balanced/utils.rb:6 (lambda)>,
45
+ #<Proc:0x007fa4e4a2ab80/lib/balanced/utils.rb:6 (lambda)>,
46
46
  "refunds"=>
47
- #<Proc:0x007ff2bd9534d8/lib/balanced/utils.rb:6 (lambda)>,
47
+ #<Proc:0x007fa4e4a29c08/lib/balanced/utils.rb:6 (lambda)>,
48
48
  "source"=>
49
- #<Proc:0x007ff2bd951d90/lib/balanced/resources/resource.rb:60 (lambda)>}>
49
+ #<Proc:0x007fa4e4a22980/lib/balanced/resources/resource.rb:60 (lambda)>}>
50
50
 
51
51
  % endif
@@ -7,7 +7,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  events = Balanced::Event.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::Event:0x007ff2bd8c3798
10
+ [#<Balanced::Event:0x007fa4e49eb1d8
11
11
  @attributes=
12
12
  {"callback_statuses"=>
13
13
  {"failed"=>0, "pending"=>0, "retrying"=>0, "succeeded"=>0},
@@ -56,8 +56,8 @@ events = Balanced::Event.all
56
56
  "type"=>"account.created"},
57
57
  @hyperlinks=
58
58
  {"callbacks"=>
59
- #<Proc:0x007ff2bd8bb7f0/lib/balanced/utils.rb:6 (lambda)>}>,
60
- #<Balanced::Event:0x007ff2bd8bbde0
59
+ #<Proc:0x007fa4e49e9108/lib/balanced/utils.rb:6 (lambda)>}>,
60
+ #<Balanced::Event:0x007fa4e49e9068
61
61
  @attributes=
62
62
  {"callback_statuses"=>
63
63
  {"failed"=>0, "pending"=>0, "retrying"=>0, "succeeded"=>0},
@@ -101,6 +101,6 @@ events = Balanced::Event.all
101
101
  "type"=>"bank_account.created"},
102
102
  @hyperlinks=
103
103
  {"callbacks"=>
104
- #<Proc:0x007ff2bd8b0f30/lib/balanced/utils.rb:6 (lambda)>}>]
104
+ #<Proc:0x007fa4e49e3938/lib/balanced/utils.rb:6 (lambda)>}>]
105
105
 
106
106
  % endif
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
8
8
  event = Balanced::Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9')
9
9
 
10
10
  % elif mode == 'response':
11
- #<Balanced::Event:0x007ff2bc0edf10
11
+ #<Balanced::Event:0x007fa4e2919ba8
12
12
  @attributes=
13
13
  {"callback_statuses"=>
14
14
  {"failed"=>0, "pending"=>0, "retrying"=>0, "succeeded"=>0},
@@ -57,6 +57,6 @@ event = Balanced::Event.fetch('/events/EVa26caeeea56411e3838802219cc35fd9')
57
57
  "type"=>"account.created"},
58
58
  @hyperlinks=
59
59
  {"callbacks"=>
60
- #<Proc:0x007ff2bc869208/lib/balanced/utils.rb:6 (lambda)>}>
60
+ #<Proc:0x007fa4e291a1c0/lib/balanced/utils.rb:6 (lambda)>}>
61
61
 
62
62
  % endif
@@ -10,7 +10,7 @@ merchant_customer.create_order(
10
10
  :description => 'Order #12341234'
11
11
  )
12
12
  % elif mode == 'response':
13
- #<Balanced::Order:0x007ff2bdb5b0a0
13
+ #<Balanced::Order:0x007fa4e494d398
14
14
  @attributes=
15
15
  {"amount"=>0,
16
16
  "amount_escrowed"=>0,
@@ -31,16 +31,16 @@ merchant_customer.create_order(
31
31
  "updated_at"=>"2014-03-06T19:23:39.207294Z"},
32
32
  @hyperlinks=
33
33
  {"buyers"=>
34
- #<Proc:0x007ff2bdb58558/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e49466b0/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "credits"=>
36
- #<Proc:0x007ff2bdb529a0/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa4e493ef78/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "debits"=>
38
- #<Proc:0x007ff2bdb50498/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa4e493ce58/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "merchant"=>
40
- #<Proc:0x007ff2bdb4aed0/lib/balanced/resources/resource.rb:60 (lambda)>,
40
+ #<Proc:0x007fa4e4934af0/lib/balanced/resources/resource.rb:60 (lambda)>,
41
41
  "refunds"=>
42
- #<Proc:0x007ff2bdb48a90/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa4e4127d30/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "reversals"=>
44
- #<Proc:0x007ff2bdb42410/lib/balanced/utils.rb:6 (lambda)>}>
44
+ #<Proc:0x007fa4e411fe50/lib/balanced/utils.rb:6 (lambda)>}>
45
45
 
46
46
  % endif
@@ -6,7 +6,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
7
  orders = Balanced::Order.all
8
8
  % elif mode == 'response':
9
- [#<Balanced::Order:0x007ff2bdaf12e0
9
+ [#<Balanced::Order:0x007fa4e40fd5a8
10
10
  @attributes=
11
11
  {"amount"=>0,
12
12
  "amount_escrowed"=>0,
@@ -27,16 +27,16 @@ orders = Balanced::Order.all
27
27
  "updated_at"=>"2014-03-06T19:23:39.207294Z"},
28
28
  @hyperlinks=
29
29
  {"buyers"=>
30
- #<Proc:0x007ff2bdafafe8/lib/balanced/utils.rb:6 (lambda)>,
30
+ #<Proc:0x007fa4e40f41b0/lib/balanced/utils.rb:6 (lambda)>,
31
31
  "credits"=>
32
- #<Proc:0x007ff2bc93fda8/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007fa4e40e1628/lib/balanced/utils.rb:6 (lambda)>,
33
33
  "debits"=>
34
- #<Proc:0x007ff2bc933288/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e40dcec0/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "merchant"=>
36
- #<Proc:0x007ff2bc9317d0/lib/balanced/resources/resource.rb:60 (lambda)>,
36
+ #<Proc:0x007fa4e40de9c8/lib/balanced/resources/resource.rb:60 (lambda)>,
37
37
  "refunds"=>
38
- #<Proc:0x007ff2bc92b6f0/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa4e40d75b0/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "reversals"=>
40
- #<Proc:0x007ff2bc9284a0/lib/balanced/utils.rb:6 (lambda)>}>]
40
+ #<Proc:0x007fa4e40d5260/lib/balanced/utils.rb:6 (lambda)>}>]
41
41
 
42
42
  % endif
@@ -8,7 +8,7 @@ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
8
8
  order = Balanced::Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx')
9
9
 
10
10
  % elif mode == 'response':
11
- #<Balanced::Order:0x007ff2bc1a1998
11
+ #<Balanced::Order:0x007fa4e48f7e48
12
12
  @attributes=
13
13
  {"amount"=>0,
14
14
  "amount_escrowed"=>0,
@@ -29,16 +29,16 @@ order = Balanced::Order.fetch('/orders/OR6wcEVkOymvs4PairiGEcIx')
29
29
  "updated_at"=>"2014-03-06T19:23:39.207294Z"},
30
30
  @hyperlinks=
31
31
  {"buyers"=>
32
- #<Proc:0x007ff2bc19b098/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007fa4e48f4e78/lib/balanced/utils.rb:6 (lambda)>,
33
33
  "credits"=>
34
- #<Proc:0x007ff2bdae7f10/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007fa4e48eda60/lib/balanced/utils.rb:6 (lambda)>,
35
35
  "debits"=>
36
- #<Proc:0x007ff2bdae5850/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa4e48d76e8/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "merchant"=>
38
- #<Proc:0x007ff2bdadfbf8/lib/balanced/resources/resource.rb:60 (lambda)>,
38
+ #<Proc:0x007fa4e48e6e68/lib/balanced/resources/resource.rb:60 (lambda)>,
39
39
  "refunds"=>
40
- #<Proc:0x007ff2bdad5090/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa4e48e58b0/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "reversals"=>
42
- #<Proc:0x007ff2bdad4050/lib/balanced/utils.rb:6 (lambda)>}>
42
+ #<Proc:0x007fa4e48d3390/lib/balanced/utils.rb:6 (lambda)>}>
43
43
 
44
44
  % endif