recurly 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

Files changed (99) hide show
  1. data/README.md +15 -11
  2. data/lib/patches/active_resource/connection.rb +10 -0
  3. data/lib/recurly.rb +35 -9
  4. data/lib/recurly/account.rb +22 -1
  5. data/lib/recurly/account_base.rb +35 -0
  6. data/lib/recurly/base.rb +26 -39
  7. data/lib/recurly/billing_info.rb +40 -1
  8. data/lib/recurly/charge.rb +12 -1
  9. data/lib/recurly/coupon.rb +8 -0
  10. data/lib/recurly/credit.rb +12 -1
  11. data/lib/recurly/exceptions.rb +19 -0
  12. data/lib/recurly/invoice.rb +1 -1
  13. data/lib/recurly/plan.rb +13 -1
  14. data/lib/recurly/rails3/recurly.rake +5 -3
  15. data/lib/recurly/subscription.rb +21 -3
  16. data/lib/recurly/transaction.rb +29 -1
  17. data/lib/recurly/transparent.rb +140 -0
  18. data/lib/recurly/version.rb +1 -1
  19. data/spec/config/recurly.yml +12 -0
  20. data/spec/config/test1.yml +3 -1
  21. data/spec/config/test2.yml +4 -2
  22. data/spec/integration/credit_spec.rb +6 -6
  23. data/spec/integration/plan_spec.rb +2 -2
  24. data/spec/support/factory.rb +5 -3
  25. data/spec/unit/account_spec.rb +19 -0
  26. data/spec/unit/billing_info_spec.rb +38 -0
  27. data/spec/unit/charge_spec.rb +18 -0
  28. data/spec/unit/config_spec.rb +10 -6
  29. data/spec/unit/coupon_spec.rb +13 -0
  30. data/spec/unit/credit_spec.rb +18 -0
  31. data/spec/unit/plan_spec.rb +18 -0
  32. data/spec/unit/subscription_spec.rb +25 -0
  33. data/spec/unit/transaction_spec.rb +32 -0
  34. data/spec/unit/transparent_spec.rb +114 -0
  35. data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
  36. data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
  37. data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
  38. data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
  39. data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
  40. data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
  41. data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
  42. data/spec/vcr/account/list/1297746103.yml +1579 -0
  43. data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
  44. data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
  45. data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
  46. data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
  47. data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
  48. data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
  49. data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
  50. data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
  51. data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
  52. data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
  53. data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
  54. data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
  55. data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
  56. data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
  57. data/spec/vcr/credit/delete/1299714599.yml +262 -0
  58. data/spec/vcr/credit/list/1299714599.yml +319 -0
  59. data/spec/vcr/credit/lookup/1299714599.yml +183 -0
  60. data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
  61. data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
  62. data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
  63. data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
  64. data/spec/vcr/plan/all.yml +30 -30
  65. data/spec/vcr/plan/find.yml +25 -25
  66. data/spec/vcr/plan/update.yml +16 -15
  67. data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
  68. data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
  69. data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
  70. data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
  71. data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
  72. data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
  73. data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
  74. data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
  75. data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
  76. data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
  77. data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
  78. data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
  79. data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
  80. data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
  81. data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
  82. data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
  83. data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
  84. data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
  85. data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
  86. data/spec/vcr/transaction/refund/1297746103.yml +213 -0
  87. data/spec/vcr/transaction/void/1297746103.yml +213 -0
  88. metadata +146 -139
  89. data/spec/vcr/account/list/1296674173.yml +0 -55
  90. data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
  91. data/spec/vcr/credit/create/1296674173.yml +0 -121
  92. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  93. data/spec/vcr/credit/list/1296674173.yml +0 -121
  94. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  95. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  96. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  97. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  98. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  99. data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -2,17 +2,21 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
9
  <account-code></account-code>
10
+ <billing-info>
11
+ <credit-card>
12
+ </credit-card>
13
+ </billing-info>
10
14
  <accept-language type="yaml" nil="true"></accept-language>
11
15
  </account>
12
16
 
13
17
  headers:
14
18
  authorization:
15
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
19
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
16
20
  content-type:
17
21
  - application/xml
18
22
  accept:
@@ -29,7 +33,7 @@
29
33
  cache-control:
30
34
  - no-cache
31
35
  x-runtime:
32
- - "243"
36
+ - "364"
33
37
  content-type:
34
38
  - application/xml; charset=utf-8
35
39
  content-length:
@@ -37,11 +41,11 @@
37
41
  server:
38
42
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
39
43
  date:
40
- - Thu, 03 Feb 2011 22:17:07 GMT
44
+ - Fri, 11 Mar 2011 18:47:22 GMT
41
45
  connection:
42
46
  - close
43
47
  set-cookie:
44
- - _recurly_session=649873ed76f39641cf1827cc0ddc1637; domain=.recurly.local; path=/; HttpOnly
48
+ - _recurly_session=b91cf21d0aa96326375445710ef2f8af; domain=.recurly.local; path=/; HttpOnly
45
49
  body: |
46
50
  <?xml version="1.0" encoding="UTF-8"?>
47
51
  <errors>
@@ -2,17 +2,21 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
9
  <account-code>account-exists</account-code>
10
+ <billing-info>
11
+ <credit-card>
12
+ </credit-card>
13
+ </billing-info>
10
14
  <accept-language type="yaml" nil="true"></accept-language>
11
15
  </account>
12
16
 
13
17
  headers:
14
18
  authorization:
15
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
19
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
16
20
  content-type:
17
21
  - application/xml
18
22
  accept:
@@ -29,9 +33,9 @@
29
33
  cache-control:
30
34
  - no-cache
31
35
  location:
32
- - http://litle-test.recurly.local:3000/accounts/account-exists
36
+ - http://app.recurly.local:3000/accounts/account-exists
33
37
  x-runtime:
34
- - "624"
38
+ - "387"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
41
  content-length:
@@ -39,13 +43,12 @@
39
43
  server:
40
44
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
41
45
  date:
42
- - Thu, 03 Feb 2011 22:17:10 GMT
46
+ - Fri, 11 Mar 2011 18:47:24 GMT
43
47
  connection:
44
48
  - close
45
49
  set-cookie:
46
- - account_credentials=2dae3fbadf922ba54a1abda9d8a5eed9412b074f66caf3d75fe4d431df3206bc5e4aff674711cc28c09292b1b1cd1866cec2816d33d8b30a27c44e3f030b5899%3A%3A; domain=.recurly.local; path=/
47
- - ""
48
- - _recurly_session=03dbe587baefba6c6c2782d1fe738592; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=b664123bc55a78c30adefd77ead47380b5dfd751b045c31a71bef135c1e89ee2e50ba23d729343265442c5700855b890a61e92cb7e1d34fc2d4b56f738a09bc6%3A%3A; domain=.recurly.local; path=/
51
+ - _recurly_session=4bfcbd106c4f8f9a8722123aaeee014d; domain=.recurly.local; path=/; HttpOnly
49
52
  body: |
50
53
  <?xml version="1.0" encoding="UTF-8"?>
51
54
  <account>
@@ -58,8 +61,8 @@
58
61
  <company_name></company_name>
59
62
  <balance_in_cents type="integer">0</balance_in_cents>
60
63
  <closed type="boolean">false</closed>
61
- <hosted_login_token>7ae163c7be574c20b32a11fdb5f81d6f</hosted_login_token>
62
- <created_at type="datetime">2011-02-03T22:17:09Z</created_at>
64
+ <hosted_login_token>ee9df1b236504ebfa4b3efb716b13cb0</hosted_login_token>
65
+ <created_at type="datetime">2011-03-11T18:47:23Z</created_at>
63
66
  <state>active</state>
64
67
  </account>
65
68
 
@@ -67,17 +70,21 @@
67
70
  - !ruby/struct:VCR::HTTPInteraction
68
71
  request: !ruby/struct:VCR::Request
69
72
  method: :post
70
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
73
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
71
74
  body: |
72
75
  <?xml version="1.0" encoding="UTF-8"?>
73
76
  <account>
74
77
  <account-code>account-exists</account-code>
78
+ <billing-info>
79
+ <credit-card>
80
+ </credit-card>
81
+ </billing-info>
75
82
  <accept-language type="yaml" nil="true"></accept-language>
76
83
  </account>
77
84
 
78
85
  headers:
79
86
  authorization:
80
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
87
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
81
88
  content-type:
82
89
  - application/xml
83
90
  accept:
@@ -94,7 +101,7 @@
94
101
  cache-control:
95
102
  - no-cache
96
103
  x-runtime:
97
- - "344"
104
+ - "349"
98
105
  content-type:
99
106
  - application/xml; charset=utf-8
100
107
  content-length:
@@ -102,11 +109,11 @@
102
109
  server:
103
110
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
111
  date:
105
- - Thu, 03 Feb 2011 22:17:12 GMT
112
+ - Fri, 11 Mar 2011 18:47:26 GMT
106
113
  connection:
107
114
  - close
108
115
  set-cookie:
109
- - _recurly_session=7b561d0ba4f22a602daf6c6d4c8c2713; domain=.recurly.local; path=/; HttpOnly
116
+ - _recurly_session=fbf14194474f77a451b5c5b85dfec93e; domain=.recurly.local; path=/; HttpOnly
110
117
  body: |
111
118
  <?xml version="1.0" encoding="UTF-8"?>
112
119
  <errors>
@@ -2,17 +2,21 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>d00d-1296674173</account-code>
9
+ <account-code>d00d-1297746103</account-code>
10
+ <billing-info>
11
+ <credit-card>
12
+ </credit-card>
13
+ </billing-info>
10
14
  <accept-language type="yaml" nil="true"></accept-language>
11
15
  </account>
12
16
 
13
17
  headers:
14
18
  authorization:
15
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
19
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
16
20
  content-type:
17
21
  - application/xml
18
22
  accept:
@@ -29,9 +33,9 @@
29
33
  cache-control:
30
34
  - no-cache
31
35
  location:
32
- - http://litle-test.recurly.local:3000/accounts/d00d-1296674173
36
+ - http://app.recurly.local:3000/accounts/d00d-1297746103
33
37
  x-runtime:
34
- - "528"
38
+ - "341"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
41
  content-length:
@@ -39,18 +43,17 @@
39
43
  server:
40
44
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
41
45
  date:
42
- - Thu, 03 Feb 2011 22:16:45 GMT
46
+ - Fri, 11 Mar 2011 18:45:46 GMT
43
47
  connection:
44
48
  - close
45
49
  set-cookie:
46
- - account_credentials=10559a1cbfbba0fea366c4455adba56c3e5be9278dd028d7d8d4c0850f3ddb93064ee03f52d56a4a89b9bdf48f016b1f25e7bcd6fcc6f6eba8d43bfecd301d7b%3A%3A; domain=.recurly.local; path=/
47
- - ""
48
- - _recurly_session=26aaf5b1b093ce6ff49455da1ba2ceb5; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=e2fd86ca4d01f1dade5f277215c391bf5abecb34e117c47d4a6d0d92073c30627c628b94b12d5f8d3893deddfd0128dd053792ba6e565a986886b233cbd11cc4%3A%3A; domain=.recurly.local; path=/
51
+ - _recurly_session=50b68c0d6209378a114e224a005ecf38; domain=.recurly.local; path=/; HttpOnly
49
52
  body: |
50
53
  <?xml version="1.0" encoding="UTF-8"?>
51
54
  <account>
52
- <id>d00d-1296674173</id>
53
- <account_code>d00d-1296674173</account_code>
55
+ <id>d00d-1297746103</id>
56
+ <account_code>d00d-1297746103</account_code>
54
57
  <username></username>
55
58
  <email></email>
56
59
  <first_name></first_name>
@@ -58,8 +61,8 @@
58
61
  <company_name></company_name>
59
62
  <balance_in_cents type="integer">0</balance_in_cents>
60
63
  <closed type="boolean">false</closed>
61
- <hosted_login_token>d0688c62f1de4ce396d7bbaed31d3e6e</hosted_login_token>
62
- <created_at type="datetime">2011-02-03T22:16:45Z</created_at>
64
+ <hosted_login_token>65fd765641144b338700054678727154</hosted_login_token>
65
+ <created_at type="datetime">2011-03-11T18:45:46Z</created_at>
63
66
  <state>active</state>
64
67
  </account>
65
68
 
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>account-create-1296674173</account-code>
9
+ <account-code>account-create-1297746103</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/account-create-1296674173
40
+ - http://app.recurly.local:3000/accounts/account-create-1297746103
37
41
  x-runtime:
38
- - "527"
42
+ - "449"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:16:43 GMT
50
+ - Fri, 11 Mar 2011 18:45:45 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=c90c539b78ba26fac812fd274913c0f8b7d3a190780551074c921380f00aa22a0defef23b28f95e5db1a77a937acf580de443c1c98d4ebced05d867b30a44adc%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=bb1ea19d65b020bdf3d027c605137d06; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=bd0944dfe2017bbfd67692efb2354b46904c8f2c155207933c1c21f90e232bdebeda4b0a3e6934d272d7f12a3aea1b15af90efbfabcc068a0a14be912398f928%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=ba0113cf8727f3875945727b2d28a0ab; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>account-create-1296674173</id>
57
- <account_code>account-create-1296674173</account_code>
59
+ <id>account-create-1297746103</id>
60
+ <account_code>account-create-1297746103</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>85817f8d3fba432b833dc8f36cb0e598</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:16:43Z</created_at>
68
+ <hosted_login_token>44c14fd5c80347b9995d73178a593897</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:45:44Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -2,21 +2,25 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>account-get-1296674173</account-code>
9
+ <account-code>account-get-1297746103</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
14
18
  <accept-language type="yaml" nil="true"></accept-language>
15
19
  </account>
16
20
 
17
21
  headers:
18
22
  authorization:
19
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
20
24
  content-type:
21
25
  - application/xml
22
26
  accept:
@@ -33,9 +37,9 @@
33
37
  cache-control:
34
38
  - no-cache
35
39
  location:
36
- - http://litle-test.recurly.local:3000/accounts/account-get-1296674173
40
+ - http://app.recurly.local:3000/accounts/account-get-1297746103
37
41
  x-runtime:
38
- - "532"
42
+ - "357"
39
43
  content-type:
40
44
  - application/xml; charset=utf-8
41
45
  content-length:
@@ -43,18 +47,17 @@
43
47
  server:
44
48
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
49
  date:
46
- - Thu, 03 Feb 2011 22:16:47 GMT
50
+ - Fri, 11 Mar 2011 18:45:48 GMT
47
51
  connection:
48
52
  - close
49
53
  set-cookie:
50
- - account_credentials=2ff5a40d04fa1a8439dbeb3b74c57dc3483985bec48eb2949034a3dd98b4a2bb09572b4557e4be91c254147c2831e07e637ab64b112041f44999d0c5e9c54de3%3A%3A; domain=.recurly.local; path=/
51
- - ""
52
- - _recurly_session=4b577f9ab263dc3b045e2bc19d2f4d51; domain=.recurly.local; path=/; HttpOnly
54
+ - account_credentials=55f740f1b3305420116008519a23e0abbf5a465c7a9c4f16226e963f446e7cf813d6c25684d92fc2cf63454ab2419bfef58d307e8cc6e8f8f8a9ac4b79cd9338%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=d3819ca518bcaf03a30a3db01c26a410; domain=.recurly.local; path=/; HttpOnly
53
56
  body: |
54
57
  <?xml version="1.0" encoding="UTF-8"?>
55
58
  <account>
56
- <id>account-get-1296674173</id>
57
- <account_code>account-get-1296674173</account_code>
59
+ <id>account-get-1297746103</id>
60
+ <account_code>account-get-1297746103</account_code>
58
61
  <username></username>
59
62
  <email>verena@test.com</email>
60
63
  <first_name>Verena</first_name>
@@ -62,8 +65,8 @@
62
65
  <company_name>Recurly Ruby Gem</company_name>
63
66
  <balance_in_cents type="integer">0</balance_in_cents>
64
67
  <closed type="boolean">false</closed>
65
- <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
66
- <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
68
+ <hosted_login_token>aa928e42c7454ca987a4df3be71fe5fc</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:45:48Z</created_at>
67
70
  <state>active</state>
68
71
  </account>
69
72
 
@@ -71,11 +74,11 @@
71
74
  - !ruby/struct:VCR::HTTPInteraction
72
75
  request: !ruby/struct:VCR::Request
73
76
  method: :get
74
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-get-1296674173.xml
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-get-1297746103.xml
75
78
  body:
76
79
  headers:
77
80
  authorization:
78
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
81
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
79
82
  accept:
80
83
  - application/xml
81
84
  accept-encoding:
@@ -94,7 +97,7 @@
94
97
  content-type:
95
98
  - application/xml; charset=utf-8
96
99
  etag:
97
- - "\"4a257ead827ac88446de7c9d9e451ba8\""
100
+ - "\"f2e9d7bce54dde44753f9948996aafb6\""
98
101
  cache-control:
99
102
  - private, max-age=0, must-revalidate
100
103
  content-length:
@@ -102,16 +105,16 @@
102
105
  server:
103
106
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
107
  date:
105
- - Thu, 03 Feb 2011 22:16:48 GMT
108
+ - Fri, 11 Mar 2011 18:45:50 GMT
106
109
  connection:
107
110
  - close
108
111
  set-cookie:
109
- - _recurly_session=027e65ec933ac6c7f44f8cda56e82d15; domain=.recurly.local; path=/; HttpOnly
112
+ - _recurly_session=bdf4b64dc1409ce563773fa07283ea9d; domain=.recurly.local; path=/; HttpOnly
110
113
  body: |
111
114
  <?xml version="1.0" encoding="UTF-8"?>
112
115
  <account>
113
- <id>account-get-1296674173</id>
114
- <account_code>account-get-1296674173</account_code>
116
+ <id>account-get-1297746103</id>
117
+ <account_code>account-get-1297746103</account_code>
115
118
  <username></username>
116
119
  <email>verena@test.com</email>
117
120
  <first_name>Verena</first_name>
@@ -119,8 +122,8 @@
119
122
  <company_name>Recurly Ruby Gem</company_name>
120
123
  <balance_in_cents type="integer">0</balance_in_cents>
121
124
  <closed type="boolean">false</closed>
122
- <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
123
- <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
125
+ <hosted_login_token>aa928e42c7454ca987a4df3be71fe5fc</hosted_login_token>
126
+ <created_at type="datetime">2011-03-11T18:45:48Z</created_at>
124
127
  <state>active</state>
125
128
  </account>
126
129
 
@@ -128,11 +131,11 @@
128
131
  - !ruby/struct:VCR::HTTPInteraction
129
132
  request: !ruby/struct:VCR::Request
130
133
  method: :get
131
- uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-that-doesnt-exist.xml
134
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
132
135
  body:
133
136
  headers:
134
137
  authorization:
135
- - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
138
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
136
139
  accept:
137
140
  - application/xml
138
141
  accept-encoding:
@@ -155,11 +158,11 @@
155
158
  server:
156
159
  - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
157
160
  date:
158
- - Thu, 03 Feb 2011 22:16:50 GMT
161
+ - Fri, 11 Mar 2011 18:45:52 GMT
159
162
  connection:
160
163
  - close
161
164
  set-cookie:
162
- - _recurly_session=278a0f7034fdbdec11da7be3757db09a; domain=.recurly.local; path=/; HttpOnly
165
+ - _recurly_session=ebfd522fb528213931b1aadc4348e46d; domain=.recurly.local; path=/; HttpOnly
163
166
  body: |
164
167
  <?xml version="1.0" encoding="UTF-8"?>
165
168
  <errors>