balanced 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/CHANGELOG.md +5 -0
  4. data/lib/balanced/resources/credit.rb +2 -7
  5. data/lib/balanced/resources/debit.rb +2 -7
  6. data/lib/balanced/resources/order.rb +10 -9
  7. data/lib/balanced/version.rb +1 -1
  8. data/scenarios/api_key_create/ruby.mako +6 -6
  9. data/scenarios/api_key_delete/ruby.mako +2 -2
  10. data/scenarios/api_key_list/ruby.mako +10 -10
  11. data/scenarios/api_key_show/ruby.mako +6 -6
  12. data/scenarios/bank_account_associate_to_customer/definition.rb +1 -1
  13. data/scenarios/bank_account_associate_to_customer/request.rb +2 -2
  14. data/scenarios/bank_account_associate_to_customer/ruby.mako +15 -15
  15. data/scenarios/bank_account_create/ruby.mako +11 -11
  16. data/scenarios/bank_account_credit/ruby.mako +15 -15
  17. data/scenarios/bank_account_debit/ruby.mako +15 -15
  18. data/scenarios/bank_account_delete/ruby.mako +2 -2
  19. data/scenarios/bank_account_list/ruby.mako +22 -22
  20. data/scenarios/bank_account_show/ruby.mako +12 -12
  21. data/scenarios/bank_account_update/ruby.mako +12 -12
  22. data/scenarios/bank_account_verification_create/ruby.mako +9 -9
  23. data/scenarios/bank_account_verification_show/ruby.mako +9 -9
  24. data/scenarios/bank_account_verification_update/ruby.mako +9 -9
  25. data/scenarios/callback_create/ruby.mako +4 -4
  26. data/scenarios/callback_delete/ruby.mako +2 -2
  27. data/scenarios/callback_list/ruby.mako +4 -4
  28. data/scenarios/callback_show/ruby.mako +5 -5
  29. data/scenarios/card_associate_to_customer/definition.rb +1 -1
  30. data/scenarios/card_associate_to_customer/request.rb +1 -1
  31. data/scenarios/card_associate_to_customer/ruby.mako +13 -14
  32. data/scenarios/card_create/ruby.mako +9 -9
  33. data/scenarios/card_create_dispute/definition.rb +1 -0
  34. data/scenarios/card_create_dispute/request.rb +4 -0
  35. data/scenarios/card_create_dispute/ruby.mako +53 -0
  36. data/scenarios/card_debit/ruby.mako +16 -16
  37. data/scenarios/card_debit_dispute/definition.rb +1 -0
  38. data/scenarios/card_debit_dispute/request.rb +5 -0
  39. data/scenarios/card_debit_dispute/ruby.mako +49 -0
  40. data/scenarios/card_delete/ruby.mako +2 -2
  41. data/scenarios/card_hold_capture/ruby.mako +16 -16
  42. data/scenarios/card_hold_create/ruby.mako +14 -14
  43. data/scenarios/card_hold_list/ruby.mako +25 -25
  44. data/scenarios/card_hold_show/ruby.mako +14 -14
  45. data/scenarios/card_hold_update/ruby.mako +14 -14
  46. data/scenarios/card_hold_void/definition.rb +1 -1
  47. data/scenarios/card_hold_void/request.rb +1 -1
  48. data/scenarios/card_hold_void/ruby.mako +17 -17
  49. data/scenarios/card_list/ruby.mako +18 -18
  50. data/scenarios/card_show/ruby.mako +10 -10
  51. data/scenarios/card_update/ruby.mako +10 -10
  52. data/scenarios/credit_list/ruby.mako +14 -14
  53. data/scenarios/credit_list_bank_account/ruby.mako +2 -2
  54. data/scenarios/credit_show/ruby.mako +15 -15
  55. data/scenarios/credit_update/ruby.mako +15 -15
  56. data/scenarios/customer_create/ruby.mako +18 -18
  57. data/scenarios/customer_delete/ruby.mako +1 -1
  58. data/scenarios/customer_list/ruby.mako +35 -35
  59. data/scenarios/customer_show/ruby.mako +19 -19
  60. data/scenarios/customer_update/ruby.mako +19 -19
  61. data/scenarios/debit_dispute_show/definition.rb +1 -0
  62. data/scenarios/debit_dispute_show/request.rb +3 -0
  63. data/scenarios/debit_dispute_show/ruby.mako +31 -0
  64. data/scenarios/debit_list/ruby.mako +29 -29
  65. data/scenarios/debit_show/ruby.mako +16 -16
  66. data/scenarios/debit_update/ruby.mako +16 -16
  67. data/scenarios/dispute_list/definition.rb +1 -0
  68. data/scenarios/dispute_list/request.rb +2 -0
  69. data/scenarios/dispute_list/ruby.mako +29 -0
  70. data/scenarios/dispute_show/definition.rb +1 -0
  71. data/scenarios/dispute_show/request.rb +2 -0
  72. data/scenarios/dispute_show/ruby.mako +31 -0
  73. data/scenarios/event_list/ruby.mako +55 -55
  74. data/scenarios/event_show/ruby.mako +35 -40
  75. data/scenarios/order_create/ruby.mako +14 -14
  76. data/scenarios/order_list/ruby.mako +13 -13
  77. data/scenarios/order_show/ruby.mako +14 -14
  78. data/scenarios/order_update/ruby.mako +14 -14
  79. data/scenarios/refund_create/ruby.mako +13 -13
  80. data/scenarios/refund_list/ruby.mako +12 -12
  81. data/scenarios/refund_show/ruby.mako +13 -13
  82. data/scenarios/refund_update/ruby.mako +13 -13
  83. data/scenarios/render_mako.rb +15 -3
  84. data/scenarios/reversal_create/ruby.mako +12 -12
  85. data/scenarios/reversal_list/ruby.mako +11 -11
  86. data/scenarios/reversal_show/ruby.mako +12 -12
  87. data/scenarios/reversal_update/ruby.mako +12 -12
  88. data/spec/balanced/resources/credit_spec.rb +26 -5
  89. data/spec/balanced/resources/debit_spec.rb +7 -2
  90. data/spec/balanced/resources/order_spec.rb +25 -3
  91. metadata +17 -3
  92. data/scenario.cache +0 -619
@@ -3,9 +3,9 @@ Balanced::BankAccount.unstore
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl')
9
9
  bank_account.unstore
10
10
 
11
11
  % elif mode == 'response':
@@ -3,12 +3,12 @@ Balanced::BankAccount.all
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
8
  Balanced::BankAccount.all
9
9
 
10
10
  % elif mode == 'response':
11
- [#<Balanced::BankAccount:0x007fa4e48ecca0
11
+ [#<Balanced::BankAccount:0x007fa93ec0c3a0
12
12
  @attributes=
13
13
  {"account_number"=>"xxxxxx0001",
14
14
  "account_type"=>"checking",
@@ -22,28 +22,28 @@ Balanced::BankAccount.all
22
22
  "bank_name"=>"BANK OF AMERICA, N.A.",
23
23
  "can_credit"=>true,
24
24
  "can_debit"=>false,
25
- "created_at"=>"2014-03-06T19:22:30.247406Z",
25
+ "created_at"=>"2014-04-25T20:09:22.528624Z",
26
26
  "fingerprint"=>
27
27
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
28
- "href"=>"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V",
29
- "id"=>"BA58WYAEUMrEtAkW5KAvWo5V",
28
+ "href"=>"/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl",
29
+ "id"=>"BA3PDwDCkdeC4OgPtPNwoCWl",
30
30
  "links"=>{"bank_account_verification"=>nil, "customer"=>nil},
31
31
  "meta"=>{},
32
32
  "name"=>"Johann Bernoulli",
33
33
  "routing_number"=>"121000358",
34
- "updated_at"=>"2014-03-06T19:22:30.247410Z"},
34
+ "updated_at"=>"2014-04-25T20:09:22.528628Z"},
35
35
  @hyperlinks=
36
36
  {"bank_account_verification"=>
37
- #<Proc:0x007fa4e48d78f0/lib/balanced/utils.rb:6 (lambda)>,
37
+ #<Proc:0x007fa93ec177f0/lib/balanced/utils.rb:6 (lambda)>,
38
38
  "bank_account_verifications"=>
39
- #<Proc:0x007fa4e48e7bb0/lib/balanced/utils.rb:6 (lambda)>,
39
+ #<Proc:0x007fa93ec158d8/lib/balanced/utils.rb:6 (lambda)>,
40
40
  "credits"=>
41
- #<Proc:0x007fa4e48e5540/lib/balanced/utils.rb:6 (lambda)>,
41
+ #<Proc:0x007fa93ec1f900/lib/balanced/utils.rb:6 (lambda)>,
42
42
  "customer"=>
43
- #<Proc:0x007fa4e48e4988/lib/balanced/utils.rb:6 (lambda)>,
43
+ #<Proc:0x007fa93ec1ef50/lib/balanced/utils.rb:6 (lambda)>,
44
44
  "debits"=>
45
- #<Proc:0x007fa4e48d2148/lib/balanced/utils.rb:6 (lambda)>}>,
46
- #<Balanced::BankAccount:0x007fa4e48d20f8
45
+ #<Proc:0x007fa93ec1d010/lib/balanced/utils.rb:6 (lambda)>}>,
46
+ #<Balanced::BankAccount:0x007fa93ec1cfc0
47
47
  @attributes=
48
48
  {"account_number"=>"xxxxxx0001",
49
49
  "account_type"=>"checking",
@@ -57,28 +57,28 @@ Balanced::BankAccount.all
57
57
  "bank_name"=>"BANK OF AMERICA, N.A.",
58
58
  "can_credit"=>true,
59
59
  "can_debit"=>true,
60
- "created_at"=>"2014-03-06T19:22:22.966278Z",
60
+ "created_at"=>"2014-04-25T20:09:15.992626Z",
61
61
  "fingerprint"=>
62
62
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
63
- "href"=>"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM",
64
- "id"=>"BA50LpPrCTB63Ecm0wEgdOQM",
63
+ "href"=>"/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb",
64
+ "id"=>"BA3IhKG3bIN22cLHbaOIGtHb",
65
65
  "links"=>
66
- {"bank_account_verification"=>"BZ5alC0fajkuBOvOU7lVT7QJ",
66
+ {"bank_account_verification"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
67
67
  "customer"=>nil},
68
68
  "meta"=>{},
69
69
  "name"=>"Johann Bernoulli",
70
70
  "routing_number"=>"121000358",
71
- "updated_at"=>"2014-03-06T19:22:27.888575Z"},
71
+ "updated_at"=>"2014-04-25T20:09:20.850706Z"},
72
72
  @hyperlinks=
73
73
  {"bank_account_verification"=>
74
- #<Proc:0x007fa4e48df988/lib/balanced/resources/resource.rb:60 (lambda)>,
74
+ #<Proc:0x007fa93ec1f310/lib/balanced/resources/resource.rb:60 (lambda)>,
75
75
  "bank_account_verifications"=>
76
- #<Proc:0x007fa4e48dd430/lib/balanced/utils.rb:6 (lambda)>,
76
+ #<Proc:0x007fa93ec1d380/lib/balanced/utils.rb:6 (lambda)>,
77
77
  "credits"=>
78
- #<Proc:0x007fa4e48ced68/lib/balanced/utils.rb:6 (lambda)>,
78
+ #<Proc:0x007fa93ec169e0/lib/balanced/utils.rb:6 (lambda)>,
79
79
  "customer"=>
80
- #<Proc:0x007fa4e48ce0e8/lib/balanced/utils.rb:6 (lambda)>,
80
+ #<Proc:0x007fa93ec16030/lib/balanced/utils.rb:6 (lambda)>,
81
81
  "debits"=>
82
- #<Proc:0x007fa4e48cb780/lib/balanced/utils.rb:6 (lambda)>}>]
82
+ #<Proc:0x007fa93ec0ffa0/lib/balanced/utils.rb:6 (lambda)>}>]
83
83
 
84
84
  % endif
@@ -2,12 +2,12 @@
2
2
  Balanced::BankAccount.fetch
3
3
  % elif mode == 'request':
4
4
  require 'balanced'
5
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
5
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
6
6
 
7
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
7
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl')
8
8
 
9
9
  % elif mode == 'response':
10
- #<Balanced::BankAccount:0x007fa4e315c040
10
+ #<Balanced::BankAccount:0x007fa93eb44e18
11
11
  @attributes=
12
12
  {"account_number"=>"xxxxxx0001",
13
13
  "account_type"=>"checking",
@@ -21,26 +21,26 @@ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvW
21
21
  "bank_name"=>"BANK OF AMERICA, N.A.",
22
22
  "can_credit"=>true,
23
23
  "can_debit"=>false,
24
- "created_at"=>"2014-03-06T19:22:30.247406Z",
24
+ "created_at"=>"2014-04-25T20:09:22.528624Z",
25
25
  "fingerprint"=>
26
26
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
27
- "href"=>"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V",
28
- "id"=>"BA58WYAEUMrEtAkW5KAvWo5V",
27
+ "href"=>"/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl",
28
+ "id"=>"BA3PDwDCkdeC4OgPtPNwoCWl",
29
29
  "links"=>{"bank_account_verification"=>nil, "customer"=>nil},
30
30
  "meta"=>{},
31
31
  "name"=>"Johann Bernoulli",
32
32
  "routing_number"=>"121000358",
33
- "updated_at"=>"2014-03-06T19:22:30.247410Z"},
33
+ "updated_at"=>"2014-04-25T20:09:22.528628Z"},
34
34
  @hyperlinks=
35
35
  {"bank_account_verification"=>
36
- #<Proc:0x007fa4e314bf60/lib/balanced/utils.rb:6 (lambda)>,
36
+ #<Proc:0x007fa93eb442b0/lib/balanced/utils.rb:6 (lambda)>,
37
37
  "bank_account_verifications"=>
38
- #<Proc:0x007fa4e3130968/lib/balanced/utils.rb:6 (lambda)>,
38
+ #<Proc:0x007fa93eb36368/lib/balanced/utils.rb:6 (lambda)>,
39
39
  "credits"=>
40
- #<Proc:0x007fa4e31218a0/lib/balanced/utils.rb:6 (lambda)>,
40
+ #<Proc:0x007fa93eb34400/lib/balanced/utils.rb:6 (lambda)>,
41
41
  "customer"=>
42
- #<Proc:0x007fa4e31198f8/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa93eb279d0/lib/balanced/utils.rb:6 (lambda)>,
43
43
  "debits"=>
44
- #<Proc:0x007fa4e3102ce8/lib/balanced/utils.rb:6 (lambda)>}>
44
+ #<Proc:0x007fa93eb259f0/lib/balanced/utils.rb:6 (lambda)>}>
45
45
 
46
46
  % endif
@@ -3,9 +3,9 @@ Balanced::BankAccount.save
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl')
9
9
  bank_account.meta = {
10
10
  'facebook.user_id' => '0192837465',
11
11
  'my-own-customer-id' => '12345',
@@ -14,7 +14,7 @@ bank_account.meta = {
14
14
  bank_account.save
15
15
 
16
16
  % elif mode == 'response':
17
- #<Balanced::BankAccount:0x007fa4e303f310
17
+ #<Balanced::BankAccount:0x007fa93eae5a80
18
18
  @attributes=
19
19
  {"account_number"=>"xxxxxx0001",
20
20
  "account_type"=>"checking",
@@ -28,11 +28,11 @@ bank_account.save
28
28
  "bank_name"=>"BANK OF AMERICA, N.A.",
29
29
  "can_credit"=>true,
30
30
  "can_debit"=>false,
31
- "created_at"=>"2014-03-06T19:22:30.247406Z",
31
+ "created_at"=>"2014-04-25T20:09:22.528624Z",
32
32
  "fingerprint"=>
33
33
  "5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14",
34
- "href"=>"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V",
35
- "id"=>"BA58WYAEUMrEtAkW5KAvWo5V",
34
+ "href"=>"/bank_accounts/BA3PDwDCkdeC4OgPtPNwoCWl",
35
+ "id"=>"BA3PDwDCkdeC4OgPtPNwoCWl",
36
36
  "links"=>{"bank_account_verification"=>nil, "customer"=>nil},
37
37
  "meta"=>
38
38
  {"facebook.user_id"=>"0192837465",
@@ -40,17 +40,17 @@ bank_account.save
40
40
  "twitter.id"=>"1234987650"},
41
41
  "name"=>"Johann Bernoulli",
42
42
  "routing_number"=>"121000358",
43
- "updated_at"=>"2014-03-06T19:22:33.744499Z"},
43
+ "updated_at"=>"2014-04-25T20:09:25.975494Z"},
44
44
  @hyperlinks=
45
45
  {"bank_account_verification"=>
46
- #<Proc:0x007fa4e304b778/lib/balanced/utils.rb:6 (lambda)>,
46
+ #<Proc:0x007fa93eae4e00/lib/balanced/utils.rb:6 (lambda)>,
47
47
  "bank_account_verifications"=>
48
- #<Proc:0x007fa4e30399d8/lib/balanced/utils.rb:6 (lambda)>,
48
+ #<Proc:0x007fa93eadede8/lib/balanced/utils.rb:6 (lambda)>,
49
49
  "credits"=>
50
- #<Proc:0x007fa4e40a7248/lib/balanced/utils.rb:6 (lambda)>,
50
+ #<Proc:0x007fa93eadcae8/lib/balanced/utils.rb:6 (lambda)>,
51
51
  "customer"=>
52
- #<Proc:0x007fa4e2871570/lib/balanced/utils.rb:6 (lambda)>,
52
+ #<Proc:0x007fa93eadc0e8/lib/balanced/utils.rb:6 (lambda)>,
53
53
  "debits"=>
54
- #<Proc:0x007fa4e4a78e70/lib/balanced/utils.rb:6 (lambda)>}>
54
+ #<Proc:0x007fa93ead6350/lib/balanced/utils.rb:6 (lambda)>}>
55
55
 
56
56
  % endif
@@ -3,26 +3,26 @@
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM')
8
+ bank_account = Balanced::BankAccount.fetch('/bank_accounts/BA3IhKG3bIN22cLHbaOIGtHb')
9
9
  verification = bank_account.verify
10
10
 
11
11
  % elif mode == 'response':
12
- #<Balanced::BankAccountVerification:0x007fa4e4a48518
12
+ #<Balanced::BankAccountVerification:0x007fa93eab4ae8
13
13
  @attributes=
14
14
  {"attempts"=>0,
15
15
  "attempts_remaining"=>3,
16
- "created_at"=>"2014-03-06T19:22:24.651572Z",
16
+ "created_at"=>"2014-04-25T20:09:17.814785Z",
17
17
  "deposit_status"=>"succeeded",
18
- "href"=>"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ",
19
- "id"=>"BZ5alC0fajkuBOvOU7lVT7QJ",
20
- "links"=>{"bank_account"=>"BA50LpPrCTB63Ecm0wEgdOQM"},
18
+ "href"=>"/verifications/BZ3KkIZuSazKfqFrFIfsrhmB",
19
+ "id"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
20
+ "links"=>{"bank_account"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
21
21
  "meta"=>{},
22
- "updated_at"=>"2014-03-06T19:22:25.233126Z",
22
+ "updated_at"=>"2014-04-25T20:09:18.218504Z",
23
23
  "verification_status"=>"pending"},
24
24
  @hyperlinks=
25
25
  {"bank_account"=>
26
- #<Proc:0x007fa4e4a41f60/lib/balanced/resources/resource.rb:60 (lambda)>}>
26
+ #<Proc:0x007fa93eaae2b0/lib/balanced/resources/resource.rb:60 (lambda)>}>
27
27
 
28
28
  % endif
@@ -3,25 +3,25 @@ Balanced::Verification.fetch
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- verification = Balanced::Verification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ')
8
+ verification = Balanced::Verification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB')
9
9
 
10
10
  % elif mode == 'response':
11
- #<Balanced::BankAccountVerification:0x007fa4e41c2358
11
+ #<Balanced::BankAccountVerification:0x007fa93ea9c8d0
12
12
  @attributes=
13
13
  {"attempts"=>0,
14
14
  "attempts_remaining"=>3,
15
- "created_at"=>"2014-03-06T19:22:24.651572Z",
15
+ "created_at"=>"2014-04-25T20:09:17.814785Z",
16
16
  "deposit_status"=>"succeeded",
17
- "href"=>"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ",
18
- "id"=>"BZ5alC0fajkuBOvOU7lVT7QJ",
19
- "links"=>{"bank_account"=>"BA50LpPrCTB63Ecm0wEgdOQM"},
17
+ "href"=>"/verifications/BZ3KkIZuSazKfqFrFIfsrhmB",
18
+ "id"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
19
+ "links"=>{"bank_account"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
20
20
  "meta"=>{},
21
- "updated_at"=>"2014-03-06T19:22:25.233126Z",
21
+ "updated_at"=>"2014-04-25T20:09:18.218504Z",
22
22
  "verification_status"=>"pending"},
23
23
  @hyperlinks=
24
24
  {"bank_account"=>
25
- #<Proc:0x007fa4e41c0300/lib/balanced/resources/resource.rb:60 (lambda)>}>
25
+ #<Proc:0x007fa93ea96b88/lib/balanced/resources/resource.rb:60 (lambda)>}>
26
26
 
27
27
  % endif
@@ -3,9 +3,9 @@ Balanced::Verification.confirm
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- verification = Balanced::Verification.fetch('/verifications/BZ5alC0fajkuBOvOU7lVT7QJ')
8
+ verification = Balanced::Verification.fetch('/verifications/BZ3KkIZuSazKfqFrFIfsrhmB')
9
9
  verification.confirm(
10
10
  amount_1 = 1,
11
11
  amount_2 = 1
@@ -13,20 +13,20 @@ verification.confirm(
13
13
 
14
14
 
15
15
  % elif mode == 'response':
16
- #<Balanced::BankAccountVerification:0x007fa4e4a1ae60
16
+ #<Balanced::BankAccountVerification:0x007fa93ea84a78
17
17
  @attributes=
18
18
  {"attempts"=>1,
19
19
  "attempts_remaining"=>2,
20
- "created_at"=>"2014-03-06T19:22:24.651572Z",
20
+ "created_at"=>"2014-04-25T20:09:17.814785Z",
21
21
  "deposit_status"=>"succeeded",
22
- "href"=>"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ",
23
- "id"=>"BZ5alC0fajkuBOvOU7lVT7QJ",
24
- "links"=>{"bank_account"=>"BA50LpPrCTB63Ecm0wEgdOQM"},
22
+ "href"=>"/verifications/BZ3KkIZuSazKfqFrFIfsrhmB",
23
+ "id"=>"BZ3KkIZuSazKfqFrFIfsrhmB",
24
+ "links"=>{"bank_account"=>"BA3IhKG3bIN22cLHbaOIGtHb"},
25
25
  "meta"=>{},
26
- "updated_at"=>"2014-03-06T19:22:27.893114Z",
26
+ "updated_at"=>"2014-04-25T20:09:20.852682Z",
27
27
  "verification_status"=>"succeeded"},
28
28
  @hyperlinks=
29
29
  {"bank_account"=>
30
- #<Proc:0x007fa4e4a18070/lib/balanced/resources/resource.rb:60 (lambda)>}>
30
+ #<Proc:0x007fa93ea7ebf0/lib/balanced/resources/resource.rb:60 (lambda)>}>
31
31
 
32
32
  % endif
@@ -2,7 +2,7 @@
2
2
  Balanced::Callback.new
3
3
  % elif mode == 'request':
4
4
  require 'balanced'
5
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
5
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
6
6
 
7
7
  callback = Balanced::Callback.new(
8
8
  :method => 'post',
@@ -10,10 +10,10 @@ callback = Balanced::Callback.new(
10
10
  ).save
11
11
 
12
12
  % elif mode == 'response':
13
- #<Balanced::Callback:0x007fa4e327e810
13
+ #<Balanced::Callback:0x007fa93ea6c9c8
14
14
  @attributes=
15
- {"href"=>"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R",
16
- "id"=>"CB5pnz4XnaDpRFGlNMb6u50R",
15
+ {"href"=>"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx",
16
+ "id"=>"CB44XaMOcxsUnuQoA5A4VKCx",
17
17
  "links"=>{},
18
18
  "method"=>"post",
19
19
  "revision"=>"1.1",
@@ -3,9 +3,9 @@ Balanced::Callback.unstore
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- callback = Balanced::Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R')
8
+ callback = Balanced::Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx')
9
9
  callback.unstore
10
10
  % elif mode == 'response':
11
11
 
@@ -3,14 +3,14 @@ Balanced::Callback.all
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
8
  callbacks = Balanced::Callback.all
9
9
  % elif mode == 'response':
10
- [#<Balanced::Callback:0x007fa4e3266738
10
+ [#<Balanced::Callback:0x007fa93ea565b0
11
11
  @attributes=
12
- {"href"=>"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R",
13
- "id"=>"CB5pnz4XnaDpRFGlNMb6u50R",
12
+ {"href"=>"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx",
13
+ "id"=>"CB44XaMOcxsUnuQoA5A4VKCx",
14
14
  "links"=>{},
15
15
  "method"=>"post",
16
16
  "revision"=>"1.1",
@@ -3,14 +3,14 @@ Balanced::Callback.fetch
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
7
7
 
8
- callback = Balanced::Callback.fetch('/callbacks/CB5pnz4XnaDpRFGlNMb6u50R')
8
+ callback = Balanced::Callback.fetch('/callbacks/CB44XaMOcxsUnuQoA5A4VKCx')
9
9
  % elif mode == 'response':
10
- #<Balanced::Callback:0x007fa4e3255f78
10
+ #<Balanced::Callback:0x007fa93ea4c3f8
11
11
  @attributes=
12
- {"href"=>"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R",
13
- "id"=>"CB5pnz4XnaDpRFGlNMb6u50R",
12
+ {"href"=>"/callbacks/CB44XaMOcxsUnuQoA5A4VKCx",
13
+ "id"=>"CB44XaMOcxsUnuQoA5A4VKCx",
14
14
  "links"=>{},
15
15
  "method"=>"post",
16
16
  "revision"=>"1.1",
@@ -1 +1 @@
1
- Balanced::Customer.associate_to_customer
1
+ Balanced::Card.associate_to_customer
@@ -1,3 +1,3 @@
1
1
  <%= boiler_plate %>
2
2
  card = Balanced::Card.fetch('<%= request['uri'] %>')
3
- card.associate_to_customer('<%= payload['customer'] %>')
3
+ card.associate_to_customer('<%= payload['customer'] %>')
@@ -1,15 +1,14 @@
1
1
  % if mode == 'definition':
2
- Balanced::Customer.associate_to_customer
2
+ Balanced::Card.associate_to_customer
3
3
 
4
4
  % elif mode == 'request':
5
5
  require 'balanced'
6
- Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul')
7
-
8
- card = Balanced::Card.fetch('/cards/CC68IoCVpoFlkugB7xt52p8C')
9
- card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8')
6
+ Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV')
10
7
 
8
+ card = Balanced::Card.fetch('/cards/CC4tvKLTKXcBJAgkGvPEW58N')
9
+ card.associate_to_customer('/customers/CU3VYCUIfwngJsidJWdGw2W5')
11
10
  % elif mode == 'response':
12
- #<Balanced::Card:0x007fa4e49f12e0
11
+ #<Balanced::Card:0x007fa93ea3d100
13
12
  @attributes=
14
13
  {"address"=>
15
14
  {"city"=>nil,
@@ -22,7 +21,7 @@ card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8')
22
21
  "avs_result"=>nil,
23
22
  "avs_street_match"=>nil,
24
23
  "brand"=>"MasterCard",
25
- "created_at"=>"2014-03-06T19:23:25.159503Z",
24
+ "created_at"=>"2014-04-25T20:09:57.984444Z",
26
25
  "cvv"=>"xxx",
27
26
  "cvv_match"=>"yes",
28
27
  "cvv_result"=>"Match",
@@ -30,20 +29,20 @@ card.associate_to_customer('/customers/CU64R7DS6DwuXYVg9RTskFK8')
30
29
  "expiration_year"=>2020,
31
30
  "fingerprint"=>
32
31
  "fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788",
33
- "href"=>"/cards/CC68IoCVpoFlkugB7xt52p8C",
34
- "id"=>"CC68IoCVpoFlkugB7xt52p8C",
32
+ "href"=>"/cards/CC4tvKLTKXcBJAgkGvPEW58N",
33
+ "id"=>"CC4tvKLTKXcBJAgkGvPEW58N",
35
34
  "is_verified"=>true,
36
- "links"=>{"customer"=>"CU64R7DS6DwuXYVg9RTskFK8"},
35
+ "links"=>{"customer"=>"CU3VYCUIfwngJsidJWdGw2W5"},
37
36
  "meta"=>{},
38
37
  "name"=>nil,
39
38
  "number"=>"xxxxxxxxxxxx5100",
40
- "updated_at"=>"2014-03-06T19:23:25.633918Z"},
39
+ "updated_at"=>"2014-04-25T20:09:58.467948Z"},
41
40
  @hyperlinks=
42
41
  {"card_holds"=>
43
- #<Proc:0x007fa4e49e9810/lib/balanced/utils.rb:6 (lambda)>,
42
+ #<Proc:0x007fa93ea36788/lib/balanced/utils.rb:6 (lambda)>,
44
43
  "customer"=>
45
- #<Proc:0x007fa4e49e39d8/lib/balanced/resources/resource.rb:60 (lambda)>,
44
+ #<Proc:0x007fa93ea34190/lib/balanced/resources/resource.rb:60 (lambda)>,
46
45
  "debits"=>
47
- #<Proc:0x007fa4e49e1ac0/lib/balanced/utils.rb:6 (lambda)>}>
46
+ #<Proc:0x007fa93ea2e240/lib/balanced/utils.rb:6 (lambda)>}>
48
47
 
49
48
  % endif