balanced 1.0.beta1 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.ruby-version +1 -1
  4. data/LICENSE +2 -2
  5. data/balanced.gemspec +1 -1
  6. data/lib/balanced/resources.rb +1 -0
  7. data/lib/balanced/resources/customer.rb +0 -14
  8. data/lib/balanced/resources/dispute.rb +12 -0
  9. data/lib/balanced/version.rb +1 -1
  10. data/scenario.cache +142 -141
  11. data/scenarios/api_key_create/ruby.mako +6 -6
  12. data/scenarios/api_key_delete/ruby.mako +2 -2
  13. data/scenarios/api_key_list/ruby.mako +10 -10
  14. data/scenarios/api_key_show/ruby.mako +6 -6
  15. data/scenarios/bank_account_associate_to_customer/ruby.mako +13 -13
  16. data/scenarios/bank_account_create/ruby.mako +13 -13
  17. data/scenarios/bank_account_credit/ruby.mako +15 -15
  18. data/scenarios/bank_account_debit/ruby.mako +15 -15
  19. data/scenarios/bank_account_delete/ruby.mako +2 -2
  20. data/scenarios/bank_account_list/ruby.mako +22 -22
  21. data/scenarios/bank_account_show/ruby.mako +12 -12
  22. data/scenarios/bank_account_update/ruby.mako +12 -12
  23. data/scenarios/bank_account_verification_create/ruby.mako +9 -9
  24. data/scenarios/bank_account_verification_show/ruby.mako +9 -9
  25. data/scenarios/bank_account_verification_update/ruby.mako +9 -9
  26. data/scenarios/callback_create/ruby.mako +5 -4
  27. data/scenarios/callback_delete/ruby.mako +2 -2
  28. data/scenarios/callback_list/ruby.mako +4 -4
  29. data/scenarios/callback_show/ruby.mako +5 -5
  30. data/scenarios/card_associate_to_customer/ruby.mako +15 -15
  31. data/scenarios/card_create/ruby.mako +14 -14
  32. data/scenarios/card_debit/ruby.mako +16 -16
  33. data/scenarios/card_delete/ruby.mako +2 -2
  34. data/scenarios/card_hold_capture/ruby.mako +16 -16
  35. data/scenarios/card_hold_create/ruby.mako +16 -14
  36. data/scenarios/card_hold_list/ruby.mako +29 -25
  37. data/scenarios/card_hold_show/ruby.mako +16 -14
  38. data/scenarios/card_hold_update/ruby.mako +16 -14
  39. data/scenarios/card_hold_void/ruby.mako +16 -14
  40. data/scenarios/card_list/ruby.mako +24 -24
  41. data/scenarios/card_show/ruby.mako +13 -13
  42. data/scenarios/card_update/ruby.mako +13 -13
  43. data/scenarios/credit_list/ruby.mako +14 -14
  44. data/scenarios/credit_list_bank_account/ruby.mako +2 -2
  45. data/scenarios/credit_show/ruby.mako +15 -15
  46. data/scenarios/credit_update/ruby.mako +15 -15
  47. data/scenarios/customer_create/ruby.mako +19 -17
  48. data/scenarios/customer_delete/ruby.mako +1 -1
  49. data/scenarios/customer_list/ruby.mako +37 -33
  50. data/scenarios/customer_show/ruby.mako +20 -18
  51. data/scenarios/customer_update/ruby.mako +20 -18
  52. data/scenarios/debit_list/ruby.mako +28 -28
  53. data/scenarios/debit_show/ruby.mako +15 -15
  54. data/scenarios/debit_update/ruby.mako +15 -15
  55. data/scenarios/event_list/ruby.mako +67 -20
  56. data/scenarios/event_show/ruby.mako +23 -21
  57. data/scenarios/order_create/ruby.mako +14 -14
  58. data/scenarios/order_list/ruby.mako +13 -13
  59. data/scenarios/order_show/ruby.mako +14 -14
  60. data/scenarios/order_update/ruby.mako +14 -14
  61. data/scenarios/refund_create/ruby.mako +13 -13
  62. data/scenarios/refund_list/ruby.mako +12 -12
  63. data/scenarios/refund_show/ruby.mako +13 -13
  64. data/scenarios/refund_update/ruby.mako +13 -13
  65. data/scenarios/render_mako.rb +0 -1
  66. data/scenarios/reversal_create/ruby.mako +12 -12
  67. data/scenarios/reversal_list/ruby.mako +11 -11
  68. data/scenarios/reversal_show/ruby.mako +12 -12
  69. data/scenarios/reversal_update/ruby.mako +12 -12
  70. data/spec/balanced/resources/bank_account_spec.rb +0 -3
  71. data/spec/balanced/resources/debit_spec.rb +0 -13
  72. data/spec/balanced/resources/dispute_spec.rb +65 -0
  73. metadata +20 -18
  74. 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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
5
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
- card = Balanced::Card.fetch('/cards/CC2abDOQVm5aNFhHpcRvWS02')
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:0x007fdc9d1f3868
13
+ #<Balanced::CardHold:0x007ff2bc1a38b0
14
14
  @attributes=
15
15
  {"amount"=>5000,
16
- "created_at"=>"2014-01-27T22:56:49.446376Z",
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-02-03T22:56:50.793698Z",
19
+ "expires_at"=>"2014-03-13T19:22:52.154430Z",
20
20
  "failure_reason"=>nil,
21
21
  "failure_reason_code"=>nil,
22
- "href"=>"/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG",
23
- "id"=>"HL2ncCO5Bir2S0PCdsDHV3cG",
24
- "links"=>{"card"=>"CC2abDOQVm5aNFhHpcRvWS02", "debit"=>nil},
22
+ "href"=>"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m",
23
+ "id"=>"HL5Ig892KbmJyDqED5fYsJ8m",
24
+ "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
25
25
  "meta"=>{},
26
- "transaction_number"=>"HL102-313-8003",
27
- "updated_at"=>"2014-01-27T22:56:51.115729Z"},
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:0x007fdc9d1f1900/lib/balanced/resources/resource.rb:60 (lambda)>,
32
+ #<Proc:0x007ff2bc1a0b10/lib/balanced/resources/resource.rb:60 (lambda)>,
31
33
  "debit"=>
32
- #<Proc:0x007fdc9d1f0e38/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007ff2bdaefee0/lib/balanced/utils.rb:6 (lambda)>,
33
35
  "debits"=>
34
- #<Proc:0x007fdc9d1faa78/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007ff2bdaedb90/lib/balanced/utils.rb:6 (lambda)>,
35
37
  "events"=>
36
- #<Proc:0x007fdc9d1f88b8/lib/balanced/utils.rb:6 (lambda)>}>
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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
8
  holds = Balanced::CardHold.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::CardHold:0x007fdc9d223bf8
10
+ [#<Balanced::CardHold:0x007ff2bc930808
11
11
  @attributes=
12
12
  {"amount"=>5000,
13
- "created_at"=>"2014-01-27T22:56:39.379941Z",
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-02-03T22:56:39.876902Z",
16
+ "expires_at"=>"2014-03-13T19:22:44.661981Z",
17
17
  "failure_reason"=>nil,
18
18
  "failure_reason_code"=>nil,
19
- "href"=>"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S",
20
- "id"=>"HL2bT9uMRkTZkfSPmA2pBD9S",
21
- "links"=>{"card"=>"CC2abDOQVm5aNFhHpcRvWS02", "debit"=>nil},
19
+ "href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT",
20
+ "id"=>"HL5wAfv8JaMsEn9idXrLZZZT",
21
+ "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
22
22
  "meta"=>{},
23
- "transaction_number"=>"HL500-842-5492",
24
- "updated_at"=>"2014-01-27T22:56:40.238140Z"},
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:0x007fdc9d221d80/lib/balanced/resources/resource.rb:60 (lambda)>,
29
+ #<Proc:0x007ff2bc93cba8/lib/balanced/resources/resource.rb:60 (lambda)>,
28
30
  "debit"=>
29
- #<Proc:0x007fdc9d2213d0/lib/balanced/utils.rb:6 (lambda)>,
31
+ #<Proc:0x007ff2bdafbda8/lib/balanced/utils.rb:6 (lambda)>,
30
32
  "debits"=>
31
- #<Proc:0x007fdc9d22b330/lib/balanced/utils.rb:6 (lambda)>,
33
+ #<Proc:0x007ff2bdaf92d8/lib/balanced/utils.rb:6 (lambda)>,
32
34
  "events"=>
33
- #<Proc:0x007fdc9d229328/lib/balanced/utils.rb:6 (lambda)>}>,
34
- #<Balanced::CardHold:0x007fdc9d2292d8
35
+ #<Proc:0x007ff2bdaf2500/lib/balanced/utils.rb:6 (lambda)>}>,
36
+ #<Balanced::CardHold:0x007ff2bdaf2488
35
37
  @attributes=
36
38
  {"amount"=>10000000,
37
- "created_at"=>"2014-01-27T22:55:56.619097Z",
39
+ "created_at"=>"2014-03-06T19:22:16.137074Z",
38
40
  "currency"=>"USD",
39
41
  "description"=>nil,
40
- "expires_at"=>"2014-02-03T22:55:57.540880Z",
42
+ "expires_at"=>"2014-03-13T19:22:16.821934Z",
41
43
  "failure_reason"=>nil,
42
44
  "failure_reason_code"=>nil,
43
- "href"=>"/card_holds/HL1pMPzS1JEE4lMCBnKh32Oa",
44
- "id"=>"HL1pMPzS1JEE4lMCBnKh32Oa",
45
+ "href"=>"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD",
46
+ "id"=>"HL50LRASJbs8Kbcwqpu2TFdD",
45
47
  "links"=>
46
- {"card"=>"CC1nrXVKmfh0ouOS7zxI6X8q", "debit"=>"WD1pU48nHJzorOySkTaQGQ9U"},
48
+ {"card"=>"CC4SdMF0rukpL3XdVvpqoC4m", "debit"=>"WD50VxLKoVBNdkbovF4D56xX"},
47
49
  "meta"=>{},
48
- "transaction_number"=>"HL464-208-0908",
49
- "updated_at"=>"2014-01-27T22:56:00.845902Z"},
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:0x007fdc9d231e38/lib/balanced/resources/resource.rb:60 (lambda)>,
56
+ #<Proc:0x007ff2bdafcac8/lib/balanced/resources/resource.rb:60 (lambda)>,
53
57
  "debit"=>
54
- #<Proc:0x007fdc9d23b6e0/lib/balanced/resources/resource.rb:60 (lambda)>,
58
+ #<Proc:0x007ff2bdafdfb8/lib/balanced/resources/resource.rb:60 (lambda)>,
55
59
  "debits"=>
56
- #<Proc:0x007fdc9d239110/lib/balanced/utils.rb:6 (lambda)>,
60
+ #<Proc:0x007ff2bdb06668/lib/balanced/utils.rb:6 (lambda)>,
57
61
  "events"=>
58
- #<Proc:0x007fdc9d242c38/lib/balanced/utils.rb:6 (lambda)>}>]
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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- card_hold = Balanced::CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S')
8
+ card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT')
9
9
 
10
10
  % elif mode == 'response':
11
- #<Balanced::CardHold:0x007fdc9d271808
11
+ #<Balanced::CardHold:0x007ff2bdb73e20
12
12
  @attributes=
13
13
  {"amount"=>5000,
14
- "created_at"=>"2014-01-27T22:56:39.379941Z",
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-02-03T22:56:39.876902Z",
17
+ "expires_at"=>"2014-03-13T19:22:44.661981Z",
18
18
  "failure_reason"=>nil,
19
19
  "failure_reason_code"=>nil,
20
- "href"=>"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S",
21
- "id"=>"HL2bT9uMRkTZkfSPmA2pBD9S",
22
- "links"=>{"card"=>"CC2abDOQVm5aNFhHpcRvWS02", "debit"=>nil},
20
+ "href"=>"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT",
21
+ "id"=>"HL5wAfv8JaMsEn9idXrLZZZT",
22
+ "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
23
23
  "meta"=>{},
24
- "transaction_number"=>"HL500-842-5492",
25
- "updated_at"=>"2014-01-27T22:56:40.238140Z"},
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:0x007fdc9d27bb28/lib/balanced/resources/resource.rb:60 (lambda)>,
30
+ #<Proc:0x007ff2bdb71dc8/lib/balanced/resources/resource.rb:60 (lambda)>,
29
31
  "debit"=>
30
- #<Proc:0x007fdc9d27ab10/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007ff2bdb70c48/lib/balanced/utils.rb:6 (lambda)>,
31
33
  "debits"=>
32
- #<Proc:0x007fdc9d2b7dd0/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007ff2bdb7a450/lib/balanced/utils.rb:6 (lambda)>,
33
35
  "events"=>
34
- #<Proc:0x007fdc9d282180/lib/balanced/utils.rb:6 (lambda)>}>
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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- card_hold = Balanced::CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S')
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:0x007fdc9d2bc678
17
+ #<Balanced::CardHold:0x007ff2bdb5a600
18
18
  @attributes=
19
19
  {"amount"=>5000,
20
- "created_at"=>"2014-01-27T22:56:39.379941Z",
20
+ "created_at"=>"2014-03-06T19:22:44.421804Z",
21
21
  "currency"=>"USD",
22
22
  "description"=>"update this description",
23
- "expires_at"=>"2014-02-03T22:56:39.876902Z",
23
+ "expires_at"=>"2014-03-13T19:22:44.661981Z",
24
24
  "failure_reason"=>nil,
25
25
  "failure_reason_code"=>nil,
26
- "href"=>"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S",
27
- "id"=>"HL2bT9uMRkTZkfSPmA2pBD9S",
28
- "links"=>{"card"=>"CC2abDOQVm5aNFhHpcRvWS02", "debit"=>nil},
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
- "transaction_number"=>"HL500-842-5492",
31
- "updated_at"=>"2014-01-27T22:56:44.255042Z"},
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:0x007fdc9d2c6dd0/lib/balanced/resources/resource.rb:60 (lambda)>,
36
+ #<Proc:0x007ff2bdb58058/lib/balanced/resources/resource.rb:60 (lambda)>,
35
37
  "debit"=>
36
- #<Proc:0x007fdc9d2c62b8/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007ff2bdb53e90/lib/balanced/utils.rb:6 (lambda)>,
37
39
  "debits"=>
38
- #<Proc:0x007fdc9d2cd658/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007ff2bdb51820/lib/balanced/utils.rb:6 (lambda)>,
39
41
  "events"=>
40
- #<Proc:0x007fdc9d2ce210/lib/balanced/utils.rb:6 (lambda)>}>
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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- card_hold = Balanced::CardHold.fetch('/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG')
8
+ card_hold = Balanced::CardHold.fetch('/card_holds/HL5Ig892KbmJyDqED5fYsJ8m')
9
9
  card_hold.void
10
10
  % elif mode == 'response':
11
- #<Balanced::CardHold:0x007fdc9d2ee9c0
11
+ #<Balanced::CardHold:0x007ff2bdaffa98
12
12
  @attributes=
13
13
  {"amount"=>5000,
14
- "created_at"=>"2014-01-27T22:56:49.446376Z",
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-02-03T22:56:50.793698Z",
17
+ "expires_at"=>"2014-03-13T19:22:52.154430Z",
18
18
  "failure_reason"=>nil,
19
19
  "failure_reason_code"=>nil,
20
- "href"=>"/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG",
21
- "id"=>"HL2ncCO5Bir2S0PCdsDHV3cG",
22
- "links"=>{"card"=>"CC2abDOQVm5aNFhHpcRvWS02", "debit"=>nil},
20
+ "href"=>"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m",
21
+ "id"=>"HL5Ig892KbmJyDqED5fYsJ8m",
22
+ "links"=>{"card"=>"CC5nCSU0yFp3qxR4p6UZST7y", "debit"=>nil},
23
23
  "meta"=>{},
24
- "transaction_number"=>"HL102-313-8003",
25
- "updated_at"=>"2014-01-27T22:56:51.686616Z"},
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:0x007fdc9d2ec3a0/lib/balanced/resources/resource.rb:60 (lambda)>,
30
+ #<Proc:0x007ff2bdafcc30/lib/balanced/resources/resource.rb:60 (lambda)>,
29
31
  "debit"=>
30
- #<Proc:0x007fdc9c07f988/lib/balanced/utils.rb:6 (lambda)>,
32
+ #<Proc:0x007ff2bdaf07a0/lib/balanced/utils.rb:6 (lambda)>,
31
33
  "debits"=>
32
- #<Proc:0x007fdc9c07da20/lib/balanced/utils.rb:6 (lambda)>,
34
+ #<Proc:0x007ff2bdaf1ce0/lib/balanced/utils.rb:6 (lambda)>,
33
35
  "events"=>
34
- #<Proc:0x007fdc9c25ba18/lib/balanced/utils.rb:6 (lambda)>}>
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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
5
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
6
 
7
7
  cards = Balanced::Card.all
8
8
  % elif mode == 'response':
9
- [#<Balanced::Card:0x007fdc9c270a30
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-01-27T22:56:55.656375Z",
23
- "cvv"=>nil,
24
- "cvv_match"=>nil,
25
- "cvv_result"=>nil,
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/CC2uc8iPDjgyxOXHVtnZloyI",
31
- "id"=>"CC2uc8iPDjgyxOXHVtnZloyI",
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-01-27T22:56:55.656379Z"},
37
+ "updated_at"=>"2014-03-06T19:22:55.617354Z"},
38
38
  @hyperlinks=
39
39
  {"card_holds"=>
40
- #<Proc:0x007fdc9c27a4e0/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007ff2bc91a238/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "customer"=>
42
- #<Proc:0x007fdc9c279b08/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007ff2bc9192c0/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007fdc9c283c20/lib/balanced/utils.rb:6 (lambda)>}>,
45
- #<Balanced::Card:0x007fdc9c283bd0
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-01-27T22:56:37.869483Z",
59
- "cvv"=>nil,
60
- "cvv_match"=>nil,
61
- "cvv_result"=>nil,
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/CC2abDOQVm5aNFhHpcRvWS02",
67
- "id"=>"CC2abDOQVm5aNFhHpcRvWS02",
66
+ "href"=>"/cards/CC5nCSU0yFp3qxR4p6UZST7y",
67
+ "id"=>"CC5nCSU0yFp3qxR4p6UZST7y",
68
68
  "is_verified"=>true,
69
- "links"=>{"customer"=>"CU1f8Ygc4t0F2FKNcw235x9I"},
69
+ "links"=>{"customer"=>"CU4Wt8xSbREzV2NWtdVAFGeR"},
70
70
  "meta"=>{},
71
71
  "name"=>nil,
72
72
  "number"=>"xxxxxxxxxxxx5100",
73
- "updated_at"=>"2014-01-27T22:56:39.354525Z"},
73
+ "updated_at"=>"2014-03-06T19:22:44.417128Z"},
74
74
  @hyperlinks=
75
75
  {"card_holds"=>
76
- #<Proc:0x007fdc9c281718/lib/balanced/utils.rb:6 (lambda)>,
76
+ #<Proc:0x007ff2bc1a18a8/lib/balanced/utils.rb:6 (lambda)>,
77
77
  "customer"=>
78
- #<Proc:0x007fdc9c28bce0/lib/balanced/resources/resource.rb:60 (lambda)>,
78
+ #<Proc:0x007ff2bc1a0a48/lib/balanced/resources/resource.rb:60 (lambda)>,
79
79
  "debits"=>
80
- #<Proc:0x007fdc9c289e90/lib/balanced/utils.rb:6 (lambda)>}>]
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-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc')
6
+ Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
7
 
8
- card = Balanced::Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI')
8
+ card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
9
9
  % elif mode == 'response':
10
- #<Balanced::Card:0x007fdc9c2cab48
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-01-27T22:56:55.656375Z",
24
- "cvv"=>nil,
25
- "cvv_match"=>nil,
26
- "cvv_result"=>nil,
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/CC2uc8iPDjgyxOXHVtnZloyI",
32
- "id"=>"CC2uc8iPDjgyxOXHVtnZloyI",
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-01-27T22:56:55.656379Z"},
38
+ "updated_at"=>"2014-03-06T19:22:55.617354Z"},
39
39
  @hyperlinks=
40
40
  {"card_holds"=>
41
- #<Proc:0x007fdc9c2c8668/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007ff2bc8c47e8/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "customer"=>
43
- #<Proc:0x007fdc9c2d3c20/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007ff2bc8be3c0/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "debits"=>
45
- #<Proc:0x007fdc9c2d1da8/lib/balanced/utils.rb:6 (lambda)>}>
45
+ #<Proc:0x007ff2bc8bd880/lib/balanced/utils.rb:6 (lambda)>}>
46
46
 
47
47
  % endif