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
@@ -3,9 +3,9 @@ Balanced::Card.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 = Balanced::Card.fetch('/cards/CC2uc8iPDjgyxOXHVtnZloyI')
8
+ card = Balanced::Card.fetch('/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O')
9
9
  card.meta = {
10
10
  'facebook.user_id' => '0192837465',
11
11
  'my-own-customer-id' => '12345',
@@ -14,7 +14,7 @@ card.meta = {
14
14
  card.save
15
15
 
16
16
  % elif mode == 'response':
17
- #<Balanced::Card:0x007fdc9c2f0438
17
+ #<Balanced::Card:0x007ff2bda0dd88
18
18
  @attributes=
19
19
  {"address"=>
20
20
  {"city"=>nil,
@@ -27,16 +27,16 @@ card.save
27
27
  "avs_result"=>nil,
28
28
  "avs_street_match"=>nil,
29
29
  "brand"=>"MasterCard",
30
- "created_at"=>"2014-01-27T22:56:55.656375Z",
31
- "cvv"=>nil,
32
- "cvv_match"=>nil,
33
- "cvv_result"=>nil,
30
+ "created_at"=>"2014-03-06T19:22:55.617351Z",
31
+ "cvv"=>"xxx",
32
+ "cvv_match"=>"yes",
33
+ "cvv_result"=>"Match",
34
34
  "expiration_month"=>12,
35
35
  "expiration_year"=>2020,
36
36
  "fingerprint"=>
37
37
  "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
38
- "href"=>"/cards/CC2uc8iPDjgyxOXHVtnZloyI",
39
- "id"=>"CC2uc8iPDjgyxOXHVtnZloyI",
38
+ "href"=>"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O",
39
+ "id"=>"CC5Buki6e4Kg4bDVZ3OSfQ8O",
40
40
  "is_verified"=>true,
41
41
  "links"=>{"customer"=>nil},
42
42
  "meta"=>
@@ -45,13 +45,13 @@ card.save
45
45
  "twitter.id"=>"1234987650"},
46
46
  "name"=>nil,
47
47
  "number"=>"xxxxxxxxxxxx5100",
48
- "updated_at"=>"2014-01-27T22:57:02.195769Z"},
48
+ "updated_at"=>"2014-03-06T19:22:59.186980Z"},
49
49
  @hyperlinks=
50
50
  {"card_holds"=>
51
- #<Proc:0x007fdc9c2f9e70/lib/balanced/utils.rb:6 (lambda)>,
51
+ #<Proc:0x007ff2bda075a0/lib/balanced/utils.rb:6 (lambda)>,
52
52
  "customer"=>
53
- #<Proc:0x007fdc9c2f9498/lib/balanced/utils.rb:6 (lambda)>,
53
+ #<Proc:0x007ff2bda06628/lib/balanced/utils.rb:6 (lambda)>,
54
54
  "debits"=>
55
- #<Proc:0x007fdc9c3035b0/lib/balanced/utils.rb:6 (lambda)>}>
55
+ #<Proc:0x007ff2bc142498/lib/balanced/utils.rb:6 (lambda)>}>
56
56
 
57
57
  % endif
@@ -3,39 +3,39 @@ Balanced::Credit.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
  credits = Balanced::Credit.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::Credit:0x007fdc9c32bcb8
10
+ [#<Balanced::Credit:0x007ff2bd9cf178
11
11
  @attributes=
12
12
  {"amount"=>5000,
13
13
  "appears_on_statement_as"=>"example.com",
14
- "created_at"=>"2014-01-27T22:57:19.073817Z",
14
+ "created_at"=>"2014-03-06T19:23:08.771807Z",
15
15
  "currency"=>"USD",
16
16
  "description"=>nil,
17
17
  "failure_reason"=>nil,
18
18
  "failure_reason_code"=>nil,
19
- "href"=>"/credits/CR2UtQgq6L3FPd1YoOc8eyOC",
20
- "id"=>"CR2UtQgq6L3FPd1YoOc8eyOC",
19
+ "href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx",
20
+ "id"=>"CR5XXPwA1ckaTDSIg3593sEx",
21
21
  "links"=>
22
- {"customer"=>"CU2N5goX8AQJE0CCPeapHUsM",
23
- "destination"=>"BA2QAksIxlLt60lqKc1wwgJy",
22
+ {"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa",
23
+ "destination"=>"BA5OqdmH8URGBYpilMITWsNW",
24
24
  "order"=>nil},
25
25
  "meta"=>{},
26
26
  "status"=>"succeeded",
27
- "transaction_number"=>"CR408-633-3169",
28
- "updated_at"=>"2014-01-27T22:57:20.208794Z"},
27
+ "transaction_number"=>"CR570-678-5174",
28
+ "updated_at"=>"2014-03-06T19:23:09.525306Z"},
29
29
  @hyperlinks=
30
30
  {"customer"=>
31
- #<Proc:0x007fdc9c329eb8/lib/balanced/resources/resource.rb:60 (lambda)>,
31
+ #<Proc:0x007ff2bd9cc608/lib/balanced/resources/resource.rb:60 (lambda)>,
32
32
  "destination"=>
33
- #<Proc:0x007fdc9c328540/lib/balanced/resources/resource.rb:60 (lambda)>,
33
+ #<Proc:0x007ff2bd9c6be0/lib/balanced/resources/resource.rb:60 (lambda)>,
34
34
  "events"=>
35
- #<Proc:0x007fdc9c332658/lib/balanced/utils.rb:6 (lambda)>,
35
+ #<Proc:0x007ff2bd9c4390/lib/balanced/utils.rb:6 (lambda)>,
36
36
  "order"=>
37
- #<Proc:0x007fdc9c331c58/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007ff2bd9bfe08/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "reversals"=>
39
- #<Proc:0x007fdc9c33bd70/lib/balanced/utils.rb:6 (lambda)>}>]
39
+ #<Proc:0x007ff2bd9bd2e8/lib/balanced/utils.rb:6 (lambda)>}>]
40
40
 
41
41
  % endif
@@ -3,9 +3,9 @@ Balanced::BankAccount.credits
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
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
9
9
  credits = bank_account.credits
10
10
  % elif mode == 'response':
11
11
  {}
@@ -3,39 +3,39 @@ Balanced::Credit.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
- credit = Balanced::Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC')
8
+ credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx')
9
9
  % elif mode == 'response':
10
- #<Balanced::Credit:0x007fdc9e80f7f0
10
+ #<Balanced::Credit:0x007ff2bd99fb08
11
11
  @attributes=
12
12
  {"amount"=>5000,
13
13
  "appears_on_statement_as"=>"example.com",
14
- "created_at"=>"2014-01-27T22:57:19.073817Z",
14
+ "created_at"=>"2014-03-06T19:23:08.771807Z",
15
15
  "currency"=>"USD",
16
16
  "description"=>nil,
17
17
  "failure_reason"=>nil,
18
18
  "failure_reason_code"=>nil,
19
- "href"=>"/credits/CR2UtQgq6L3FPd1YoOc8eyOC",
20
- "id"=>"CR2UtQgq6L3FPd1YoOc8eyOC",
19
+ "href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx",
20
+ "id"=>"CR5XXPwA1ckaTDSIg3593sEx",
21
21
  "links"=>
22
- {"customer"=>"CU2N5goX8AQJE0CCPeapHUsM",
23
- "destination"=>"BA2QAksIxlLt60lqKc1wwgJy",
22
+ {"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa",
23
+ "destination"=>"BA5OqdmH8URGBYpilMITWsNW",
24
24
  "order"=>nil},
25
25
  "meta"=>{},
26
26
  "status"=>"succeeded",
27
- "transaction_number"=>"CR408-633-3169",
28
- "updated_at"=>"2014-01-27T22:57:20.208794Z"},
27
+ "transaction_number"=>"CR570-678-5174",
28
+ "updated_at"=>"2014-03-06T19:23:09.525306Z"},
29
29
  @hyperlinks=
30
30
  {"customer"=>
31
- #<Proc:0x007fdc9e80d9f0/lib/balanced/resources/resource.rb:60 (lambda)>,
31
+ #<Proc:0x007ff2bd99d150/lib/balanced/resources/resource.rb:60 (lambda)>,
32
32
  "destination"=>
33
- #<Proc:0x007fdc9e80c078/lib/balanced/resources/resource.rb:60 (lambda)>,
33
+ #<Proc:0x007ff2bd98b630/lib/balanced/resources/resource.rb:60 (lambda)>,
34
34
  "events"=>
35
- #<Proc:0x007fdc9e816190/lib/balanced/utils.rb:6 (lambda)>,
35
+ #<Proc:0x007ff2bd988ae8/lib/balanced/utils.rb:6 (lambda)>,
36
36
  "order"=>
37
- #<Proc:0x007fdc9e815790/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007ff2bd995158/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "reversals"=>
39
- #<Proc:0x007fdc9e81f8a8/lib/balanced/utils.rb:6 (lambda)>}>
39
+ #<Proc:0x007ff2bd994780/lib/balanced/utils.rb:6 (lambda)>}>
40
40
 
41
41
  % endif
@@ -3,9 +3,9 @@ Balanced::Credit.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
- credit = Balanced::Credit.fetch('/credits/CR2UtQgq6L3FPd1YoOc8eyOC')
8
+ credit = Balanced::Credit.fetch('/credits/CR5XXPwA1ckaTDSIg3593sEx')
9
9
  credit.description = 'New description for credit'
10
10
  credit.meta = {
11
11
  'anykey' => 'valuegoeshere',
@@ -14,35 +14,35 @@ credit.meta = {
14
14
  credit.save
15
15
 
16
16
  % elif mode == 'response':
17
- #<Balanced::Credit:0x007fdc9e835310
17
+ #<Balanced::Credit:0x007ff2bd960980
18
18
  @attributes=
19
19
  {"amount"=>5000,
20
20
  "appears_on_statement_as"=>"example.com",
21
- "created_at"=>"2014-01-27T22:57:19.073817Z",
21
+ "created_at"=>"2014-03-06T19:23:08.771807Z",
22
22
  "currency"=>"USD",
23
23
  "description"=>"New description for credit",
24
24
  "failure_reason"=>nil,
25
25
  "failure_reason_code"=>nil,
26
- "href"=>"/credits/CR2UtQgq6L3FPd1YoOc8eyOC",
27
- "id"=>"CR2UtQgq6L3FPd1YoOc8eyOC",
26
+ "href"=>"/credits/CR5XXPwA1ckaTDSIg3593sEx",
27
+ "id"=>"CR5XXPwA1ckaTDSIg3593sEx",
28
28
  "links"=>
29
- {"customer"=>"CU2N5goX8AQJE0CCPeapHUsM",
30
- "destination"=>"BA2QAksIxlLt60lqKc1wwgJy",
29
+ {"customer"=>"CU5LVuaZG7gURfbA7TuMNoZa",
30
+ "destination"=>"BA5OqdmH8URGBYpilMITWsNW",
31
31
  "order"=>nil},
32
32
  "meta"=>{"anykey"=>"valuegoeshere", "facebook.id"=>"1234567890"},
33
33
  "status"=>"succeeded",
34
- "transaction_number"=>"CR408-633-3169",
35
- "updated_at"=>"2014-01-27T22:57:25.832930Z"},
34
+ "transaction_number"=>"CR570-678-5174",
35
+ "updated_at"=>"2014-03-06T19:23:14.259690Z"},
36
36
  @hyperlinks=
37
37
  {"customer"=>
38
- #<Proc:0x007fdc9e83f450/lib/balanced/resources/resource.rb:60 (lambda)>,
38
+ #<Proc:0x007ff2bd95aad0/lib/balanced/resources/resource.rb:60 (lambda)>,
39
39
  "destination"=>
40
- #<Proc:0x007fdc9e83dad8/lib/balanced/resources/resource.rb:60 (lambda)>,
40
+ #<Proc:0x007ff2bd958640/lib/balanced/resources/resource.rb:60 (lambda)>,
41
41
  "events"=>
42
- #<Proc:0x007fdc9e83c890/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007ff2bd952560/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "order"=>
44
- #<Proc:0x007fdc9e83ea78/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007ff2bd951980/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "reversals"=>
46
- #<Proc:0x007fdc9e83d880/lib/balanced/utils.rb:6 (lambda)>}>
46
+ #<Proc:0x007ff2bd94be18/lib/balanced/utils.rb:6 (lambda)>}>
47
47
 
48
48
  % endif
@@ -3,7 +3,7 @@ Balanced::Customer.new
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
  customer = Balanced::Customer.new(
9
9
  :address => {
@@ -16,7 +16,7 @@ customer = Balanced::Customer.new(
16
16
  customer.save
17
17
 
18
18
  % elif mode == 'response':
19
- #<Balanced::Customer:0x007fdc9e816a78
19
+ #<Balanced::Customer:0x007ff2bc8a40b0
20
20
  @attributes=
21
21
  {"address"=>
22
22
  {"city"=>nil,
@@ -26,42 +26,44 @@ customer.save
26
26
  "postal_code"=>"48120",
27
27
  "state"=>nil},
28
28
  "business_name"=>nil,
29
- "created_at"=>"2014-01-27T22:57:36.586782Z",
29
+ "created_at"=>"2014-03-06T19:23:21.728225Z",
30
30
  "dob_month"=>7,
31
31
  "dob_year"=>1963,
32
32
  "ein"=>nil,
33
33
  "email"=>nil,
34
- "href"=>"/customers/CU3eeasZ9yQ86uzzIYZkrPGg",
35
- "id"=>"CU3eeasZ9yQ86uzzIYZkrPGg",
34
+ "href"=>"/customers/CU64R7DS6DwuXYVg9RTskFK8",
35
+ "id"=>"CU64R7DS6DwuXYVg9RTskFK8",
36
36
  "links"=>{"destination"=>nil, "source"=>nil},
37
37
  "merchant_status"=>"underwritten",
38
38
  "meta"=>{},
39
39
  "name"=>"Henry Ford",
40
40
  "phone"=>nil,
41
41
  "ssn_last4"=>nil,
42
- "updated_at"=>"2014-01-27T22:57:37.740442Z"},
42
+ "updated_at"=>"2014-03-06T19:23:22.907102Z"},
43
43
  @hyperlinks=
44
44
  {"bank_accounts"=>
45
- #<Proc:0x007fdc9e815830/lib/balanced/utils.rb:6 (lambda)>,
45
+ #<Proc:0x007ff2bd929750/lib/balanced/utils.rb:6 (lambda)>,
46
46
  "card_holds"=>
47
- #<Proc:0x007fdc9e80e7b0/lib/balanced/utils.rb:6 (lambda)>,
47
+ #<Proc:0x007ff2bd91f4f8/lib/balanced/utils.rb:6 (lambda)>,
48
48
  "cards"=>
49
- #<Proc:0x007fdc9e80dbd0/lib/balanced/utils.rb:6 (lambda)>,
49
+ #<Proc:0x007ff2bd91cf28/lib/balanced/utils.rb:6 (lambda)>,
50
50
  "credits"=>
51
- #<Proc:0x007fdc9e807820/lib/balanced/utils.rb:6 (lambda)>,
51
+ #<Proc:0x007ff2bd91a598/lib/balanced/utils.rb:6 (lambda)>,
52
52
  "debits"=>
53
- #<Proc:0x007fdc9e8055c0/lib/balanced/utils.rb:6 (lambda)>,
53
+ #<Proc:0x007ff2bd910660/lib/balanced/utils.rb:6 (lambda)>,
54
54
  "destination"=>
55
- #<Proc:0x007fdc9e804bc0/lib/balanced/utils.rb:6 (lambda)>,
55
+ #<Proc:0x007ff2bd903ed8/lib/balanced/utils.rb:6 (lambda)>,
56
+ "external_accounts"=>
57
+ #<Proc:0x007ff2bd8f3010/lib/balanced/utils.rb:6 (lambda)>,
56
58
  "orders"=>
57
- #<Proc:0x007fdc9c34b310/lib/balanced/utils.rb:6 (lambda)>,
59
+ #<Proc:0x007ff2bc10da18/lib/balanced/utils.rb:6 (lambda)>,
58
60
  "refunds"=>
59
- #<Proc:0x007fdc9c348f70/lib/balanced/utils.rb:6 (lambda)>,
61
+ #<Proc:0x007ff2bd8e11f8/lib/balanced/utils.rb:6 (lambda)>,
60
62
  "reversals"=>
61
- #<Proc:0x007fdc9c3436d8/lib/balanced/utils.rb:6 (lambda)>,
63
+ #<Proc:0x007ff2bd8c84a0/lib/balanced/utils.rb:6 (lambda)>,
62
64
  "source"=>
63
- #<Proc:0x007fdc9c342b20/lib/balanced/utils.rb:6 (lambda)>,
65
+ #<Proc:0x007ff2bd8c37c0/lib/balanced/utils.rb:6 (lambda)>,
64
66
  "transactions"=>
65
- #<Proc:0x007fdc9c340758/lib/balanced/utils.rb:6 (lambda)>}>
67
+ #<Proc:0x007ff2bd8bb570/lib/balanced/utils.rb:6 (lambda)>}>
66
68
 
67
69
  % endif
@@ -2,7 +2,7 @@
2
2
  Balanced::Customer.unstore
3
3
 
4
4
  % elif mode == 'request':
5
- customer = Balanced::Customer.fetch('/customers/CU3eeasZ9yQ86uzzIYZkrPGg')
5
+ customer = Balanced::Customer.fetch('/customers/CU64R7DS6DwuXYVg9RTskFK8')
6
6
  customer.unstore
7
7
 
8
8
  % elif mode == 'response':
@@ -3,11 +3,11 @@ Balanced::Customer.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
  customers = Balanced::Customer.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::Customer:0x007fdc9c30b530
10
+ [#<Balanced::Customer:0x007ff2be108840
11
11
  @attributes=
12
12
  {"address"=>
13
13
  {"city"=>nil,
@@ -17,44 +17,46 @@ customers = Balanced::Customer.all
17
17
  "postal_code"=>"48120",
18
18
  "state"=>nil},
19
19
  "business_name"=>nil,
20
- "created_at"=>"2014-01-27T22:57:27.459187Z",
20
+ "created_at"=>"2014-03-06T19:23:15.982885Z",
21
21
  "dob_month"=>7,
22
22
  "dob_year"=>1963,
23
23
  "ein"=>nil,
24
24
  "email"=>nil,
25
- "href"=>"/customers/CU33Y4cut21qu1d1lGYDBseQ",
26
- "id"=>"CU33Y4cut21qu1d1lGYDBseQ",
25
+ "href"=>"/customers/CU5YopHN07Ul5XQnILUifeQT",
26
+ "id"=>"CU5YopHN07Ul5XQnILUifeQT",
27
27
  "links"=>{"destination"=>nil, "source"=>nil},
28
28
  "merchant_status"=>"underwritten",
29
29
  "meta"=>{},
30
30
  "name"=>"Henry Ford",
31
31
  "phone"=>nil,
32
32
  "ssn_last4"=>nil,
33
- "updated_at"=>"2014-01-27T22:57:29.488272Z"},
33
+ "updated_at"=>"2014-03-06T19:23:16.724050Z"},
34
34
  @hyperlinks=
35
35
  {"bank_accounts"=>
36
- #<Proc:0x007fdc9c308ab0/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007ff2be0fa740/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "card_holds"=>
38
- #<Proc:0x007fdc9c303178/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007ff2be0e98f0/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "cards"=>
40
- #<Proc:0x007fdc9c300d88/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007ff2bd881348/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "credits"=>
42
- #<Proc:0x007fdc9c2fb9f0/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007ff2bd864ba8/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007fdc9c2f92e0/lib/balanced/utils.rb:6 (lambda)>,
44
+ #<Proc:0x007ff2bd861fe8/lib/balanced/utils.rb:6 (lambda)>,
45
45
  "destination"=>
46
- #<Proc:0x007fdc9c2f8908/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007ff2bd8603a0/lib/balanced/utils.rb:6 (lambda)>,
47
+ "external_accounts"=>
48
+ #<Proc:0x007ff2bd850ba8/lib/balanced/utils.rb:6 (lambda)>,
47
49
  "orders"=>
48
- #<Proc:0x007fdc9c2f27d8/lib/balanced/utils.rb:6 (lambda)>,
50
+ #<Proc:0x007ff2bd8472d8/lib/balanced/utils.rb:6 (lambda)>,
49
51
  "refunds"=>
50
- #<Proc:0x007fdc9c2f0730/lib/balanced/utils.rb:6 (lambda)>,
52
+ #<Proc:0x007ff2bc8a1d10/lib/balanced/utils.rb:6 (lambda)>,
51
53
  "reversals"=>
52
- #<Proc:0x007fdc9c2eadf8/lib/balanced/utils.rb:6 (lambda)>,
54
+ #<Proc:0x007ff2bc89a9c0/lib/balanced/utils.rb:6 (lambda)>,
53
55
  "source"=>
54
- #<Proc:0x007fdc9c2ea1f0/lib/balanced/utils.rb:6 (lambda)>,
56
+ #<Proc:0x007ff2bc899070/lib/balanced/utils.rb:6 (lambda)>,
55
57
  "transactions"=>
56
- #<Proc:0x007fdc9c2e0998/lib/balanced/utils.rb:6 (lambda)>}>,
57
- #<Balanced::Customer:0x007fdc9c2e09e8
58
+ #<Proc:0x007ff2bc890b00/lib/balanced/utils.rb:6 (lambda)>}>,
59
+ #<Balanced::Customer:0x007ff2bc890a38
58
60
  @attributes=
59
61
  {"address"=>
60
62
  {"city"=>nil,
@@ -64,42 +66,44 @@ customers = Balanced::Customer.all
64
66
  "postal_code"=>"48120",
65
67
  "state"=>nil},
66
68
  "business_name"=>nil,
67
- "created_at"=>"2014-01-27T22:57:12.447565Z",
69
+ "created_at"=>"2014-03-06T19:23:04.895882Z",
68
70
  "dob_month"=>7,
69
71
  "dob_year"=>1963,
70
72
  "ein"=>nil,
71
73
  "email"=>nil,
72
- "href"=>"/customers/CU2N5goX8AQJE0CCPeapHUsM",
73
- "id"=>"CU2N5goX8AQJE0CCPeapHUsM",
74
+ "href"=>"/customers/CU5LVuaZG7gURfbA7TuMNoZa",
75
+ "id"=>"CU5LVuaZG7gURfbA7TuMNoZa",
74
76
  "links"=>{"destination"=>nil, "source"=>nil},
75
77
  "merchant_status"=>"underwritten",
76
78
  "meta"=>{},
77
79
  "name"=>"Henry Ford",
78
80
  "phone"=>nil,
79
81
  "ssn_last4"=>nil,
80
- "updated_at"=>"2014-01-27T22:57:13.581358Z"},
82
+ "updated_at"=>"2014-03-06T19:23:05.747337Z"},
81
83
  @hyperlinks=
82
84
  {"bank_accounts"=>
83
- #<Proc:0x007fdc9c2e1dc0/lib/balanced/utils.rb:6 (lambda)>,
85
+ #<Proc:0x007ff2bc888ce8/lib/balanced/utils.rb:6 (lambda)>,
84
86
  "card_holds"=>
85
- #<Proc:0x007fdc9c2d9cd8/lib/balanced/utils.rb:6 (lambda)>,
87
+ #<Proc:0x007ff2bc881420/lib/balanced/utils.rb:6 (lambda)>,
86
88
  "cards"=>
87
- #<Proc:0x007fdc9c2da160/lib/balanced/utils.rb:6 (lambda)>,
89
+ #<Proc:0x007ff2be0bb0b8/lib/balanced/utils.rb:6 (lambda)>,
88
90
  "credits"=>
89
- #<Proc:0x007fdc9c2d0cf0/lib/balanced/utils.rb:6 (lambda)>,
91
+ #<Proc:0x007ff2bc848170/lib/balanced/utils.rb:6 (lambda)>,
90
92
  "debits"=>
91
- #<Proc:0x007fdc9c2d24d8/lib/balanced/utils.rb:6 (lambda)>,
93
+ #<Proc:0x007ff2be03f878/lib/balanced/utils.rb:6 (lambda)>,
92
94
  "destination"=>
93
- #<Proc:0x007fdc9c2d1948/lib/balanced/utils.rb:6 (lambda)>,
95
+ #<Proc:0x007ff2bd833080/lib/balanced/utils.rb:6 (lambda)>,
96
+ "external_accounts"=>
97
+ #<Proc:0x007ff2bc0e5ea0/lib/balanced/utils.rb:6 (lambda)>,
94
98
  "orders"=>
95
- #<Proc:0x007fdc9c2caa58/lib/balanced/utils.rb:6 (lambda)>,
99
+ #<Proc:0x007ff2bc0db748/lib/balanced/utils.rb:6 (lambda)>,
96
100
  "refunds"=>
97
- #<Proc:0x007fdc9c2c9fe0/lib/balanced/utils.rb:6 (lambda)>,
101
+ #<Proc:0x007ff2bc0082a8/lib/balanced/utils.rb:6 (lambda)>,
98
102
  "reversals"=>
99
- #<Proc:0x007fdc9c2c3aa0/lib/balanced/utils.rb:6 (lambda)>,
103
+ #<Proc:0x007ff2bdb7b9b8/lib/balanced/utils.rb:6 (lambda)>,
100
104
  "source"=>
101
- #<Proc:0x007fdc9c2c3500/lib/balanced/utils.rb:6 (lambda)>,
105
+ #<Proc:0x007ff2bdb7af18/lib/balanced/utils.rb:6 (lambda)>,
102
106
  "transactions"=>
103
- #<Proc:0x007fdc9c2c11b0/lib/balanced/utils.rb:6 (lambda)>}>]
107
+ #<Proc:0x007ff2bdb78bf0/lib/balanced/utils.rb:6 (lambda)>}>]
104
108
 
105
109
  % endif