recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,27 +2,23 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.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>
14
10
  <accept-language type="yaml" nil="true"></accept-language>
15
11
  </account>
16
12
 
17
13
  headers:
18
14
  authorization:
19
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
20
- user-agent:
21
- - Recurly Ruby Client v0.4.6
15
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
22
16
  content-type:
23
17
  - application/xml
24
18
  accept:
25
19
  - "*/*"
20
+ user-agent:
21
+ - Ruby
26
22
  connection:
27
23
  - close
28
24
  response: !ruby/struct:VCR::Response
@@ -33,19 +29,19 @@
33
29
  cache-control:
34
30
  - no-cache
35
31
  x-runtime:
36
- - "289"
32
+ - "243"
37
33
  content-type:
38
34
  - application/xml; charset=utf-8
39
35
  content-length:
40
36
  - "186"
41
37
  server:
42
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
38
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
43
39
  date:
44
- - Thu, 21 Apr 2011 17:58:49 GMT
40
+ - Thu, 03 Feb 2011 22:17:07 GMT
45
41
  connection:
46
42
  - close
47
43
  set-cookie:
48
- - _recurly_session=76ff90799de7ce3e6d5a56edc9fea733; domain=.recurly.local; path=/; HttpOnly
44
+ - _recurly_session=649873ed76f39641cf1827cc0ddc1637; domain=.recurly.local; path=/; HttpOnly
49
45
  body: |
50
46
  <?xml version="1.0" encoding="UTF-8"?>
51
47
  <errors>
@@ -2,27 +2,23 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.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>
14
10
  <accept-language type="yaml" nil="true"></accept-language>
15
11
  </account>
16
12
 
17
13
  headers:
18
14
  authorization:
19
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
20
- user-agent:
21
- - Recurly Ruby Client v0.4.6
15
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
22
16
  content-type:
23
17
  - application/xml
24
18
  accept:
25
19
  - "*/*"
20
+ user-agent:
21
+ - Ruby
26
22
  connection:
27
23
  - close
28
24
  response: !ruby/struct:VCR::Response
@@ -33,21 +29,23 @@
33
29
  cache-control:
34
30
  - no-cache
35
31
  location:
36
- - http://app.recurly.local:3000/accounts/account-exists
32
+ - http://litle-test.recurly.local:3000/accounts/account-exists
37
33
  x-runtime:
38
- - "236"
34
+ - "624"
39
35
  content-type:
40
36
  - application/xml; charset=utf-8
41
37
  content-length:
42
38
  - "520"
43
39
  server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
40
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
41
  date:
46
- - Thu, 21 Apr 2011 17:58:51 GMT
42
+ - Thu, 03 Feb 2011 22:17:10 GMT
47
43
  connection:
48
44
  - close
49
45
  set-cookie:
50
- - _recurly_session=f9af84adfde49c441fb52f74ac02bdf3; domain=.recurly.local; path=/; HttpOnly
46
+ - account_credentials=2dae3fbadf922ba54a1abda9d8a5eed9412b074f66caf3d75fe4d431df3206bc5e4aff674711cc28c09292b1b1cd1866cec2816d33d8b30a27c44e3f030b5899%3A%3A; domain=.recurly.local; path=/
47
+ - ""
48
+ - _recurly_session=03dbe587baefba6c6c2782d1fe738592; domain=.recurly.local; path=/; HttpOnly
51
49
  body: |
52
50
  <?xml version="1.0" encoding="UTF-8"?>
53
51
  <account>
@@ -60,8 +58,8 @@
60
58
  <company_name></company_name>
61
59
  <balance_in_cents type="integer">0</balance_in_cents>
62
60
  <closed type="boolean">false</closed>
63
- <hosted_login_token>8fdd44c166d24cbdad17fcbc31968927</hosted_login_token>
64
- <created_at type="datetime">2011-04-21T17:58:51Z</created_at>
61
+ <hosted_login_token>7ae163c7be574c20b32a11fdb5f81d6f</hosted_login_token>
62
+ <created_at type="datetime">2011-02-03T22:17:09Z</created_at>
65
63
  <state>active</state>
66
64
  </account>
67
65
 
@@ -69,27 +67,23 @@
69
67
  - !ruby/struct:VCR::HTTPInteraction
70
68
  request: !ruby/struct:VCR::Request
71
69
  method: :post
72
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
70
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
73
71
  body: |
74
72
  <?xml version="1.0" encoding="UTF-8"?>
75
73
  <account>
76
74
  <account-code>account-exists</account-code>
77
- <billing-info>
78
- <credit-card>
79
- </credit-card>
80
- </billing-info>
81
75
  <accept-language type="yaml" nil="true"></accept-language>
82
76
  </account>
83
77
 
84
78
  headers:
85
79
  authorization:
86
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
87
- user-agent:
88
- - Recurly Ruby Client v0.4.6
80
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
89
81
  content-type:
90
82
  - application/xml
91
83
  accept:
92
84
  - "*/*"
85
+ user-agent:
86
+ - Ruby
93
87
  connection:
94
88
  - close
95
89
  response: !ruby/struct:VCR::Response
@@ -100,19 +94,19 @@
100
94
  cache-control:
101
95
  - no-cache
102
96
  x-runtime:
103
- - "264"
97
+ - "344"
104
98
  content-type:
105
99
  - application/xml; charset=utf-8
106
100
  content-length:
107
101
  - "132"
108
102
  server:
109
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
110
104
  date:
111
- - Thu, 21 Apr 2011 17:58:53 GMT
105
+ - Thu, 03 Feb 2011 22:17:12 GMT
112
106
  connection:
113
107
  - close
114
108
  set-cookie:
115
- - _recurly_session=5c5f8b3a22da2ddc5b1252d78ee7fb8f; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=7b561d0ba4f22a602daf6c6d4c8c2713; domain=.recurly.local; path=/; HttpOnly
116
110
  body: |
117
111
  <?xml version="1.0" encoding="UTF-8"?>
118
112
  <errors>
@@ -2,27 +2,23 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>d00d-1301979678</account-code>
10
- <billing-info>
11
- <credit-card>
12
- </credit-card>
13
- </billing-info>
9
+ <account-code>d00d-1296674173</account-code>
14
10
  <accept-language type="yaml" nil="true"></accept-language>
15
11
  </account>
16
12
 
17
13
  headers:
18
14
  authorization:
19
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
20
- user-agent:
21
- - Recurly Ruby Client v0.4.6
15
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
22
16
  content-type:
23
17
  - application/xml
24
18
  accept:
25
19
  - "*/*"
20
+ user-agent:
21
+ - Ruby
26
22
  connection:
27
23
  - close
28
24
  response: !ruby/struct:VCR::Response
@@ -33,26 +29,28 @@
33
29
  cache-control:
34
30
  - no-cache
35
31
  location:
36
- - http://app.recurly.local:3000/accounts/d00d-1301979678
32
+ - http://litle-test.recurly.local:3000/accounts/d00d-1296674173
37
33
  x-runtime:
38
- - "288"
34
+ - "528"
39
35
  content-type:
40
36
  - application/xml; charset=utf-8
41
37
  content-length:
42
38
  - "522"
43
39
  server:
44
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
40
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
41
  date:
46
- - Thu, 21 Apr 2011 17:56:58 GMT
42
+ - Thu, 03 Feb 2011 22:16:45 GMT
47
43
  connection:
48
44
  - close
49
45
  set-cookie:
50
- - _recurly_session=c86b936034e69e6e761b41d9603be064; domain=.recurly.local; path=/; HttpOnly
46
+ - account_credentials=10559a1cbfbba0fea366c4455adba56c3e5be9278dd028d7d8d4c0850f3ddb93064ee03f52d56a4a89b9bdf48f016b1f25e7bcd6fcc6f6eba8d43bfecd301d7b%3A%3A; domain=.recurly.local; path=/
47
+ - ""
48
+ - _recurly_session=26aaf5b1b093ce6ff49455da1ba2ceb5; domain=.recurly.local; path=/; HttpOnly
51
49
  body: |
52
50
  <?xml version="1.0" encoding="UTF-8"?>
53
51
  <account>
54
- <id>d00d-1301979678</id>
55
- <account_code>d00d-1301979678</account_code>
52
+ <id>d00d-1296674173</id>
53
+ <account_code>d00d-1296674173</account_code>
56
54
  <username></username>
57
55
  <email></email>
58
56
  <first_name></first_name>
@@ -60,8 +58,8 @@
60
58
  <company_name></company_name>
61
59
  <balance_in_cents type="integer">0</balance_in_cents>
62
60
  <closed type="boolean">false</closed>
63
- <hosted_login_token>da3a0843ebf04914b81a01b922eef2b7</hosted_login_token>
64
- <created_at type="datetime">2011-04-21T17:56:57Z</created_at>
61
+ <hosted_login_token>d0688c62f1de4ce396d7bbaed31d3e6e</hosted_login_token>
62
+ <created_at type="datetime">2011-02-03T22:16:45Z</created_at>
65
63
  <state>active</state>
66
64
  </account>
67
65
 
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.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-1301979678</account-code>
9
+ <account-code>account-create-1296674173</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>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/account-create-1301979678
36
+ - http://litle-test.recurly.local:3000/accounts/account-create-1296674173
41
37
  x-runtime:
42
- - "287"
38
+ - "527"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "583"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 17:56:55 GMT
46
+ - Thu, 03 Feb 2011 22:16:43 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=0f0e7a3ca79ad6809468f759c26a6aa1; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=c90c539b78ba26fac812fd274913c0f8b7d3a190780551074c921380f00aa22a0defef23b28f95e5db1a77a937acf580de443c1c98d4ebced05d867b30a44adc%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=bb1ea19d65b020bdf3d027c605137d06; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>account-create-1301979678</id>
59
- <account_code>account-create-1301979678</account_code>
56
+ <id>account-create-1296674173</id>
57
+ <account_code>account-create-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>fd0d5e490fe741fea7ed62f4ce5277f8</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:56:55Z</created_at>
65
+ <hosted_login_token>85817f8d3fba432b833dc8f36cb0e598</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:16:43Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.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-1301979678</account-code>
9
+ <account-code>account-get-1296674173</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>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/account-get-1301979678
36
+ - http://litle-test.recurly.local:3000/accounts/account-get-1296674173
41
37
  x-runtime:
42
- - "265"
38
+ - "532"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "577"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 17:57:00 GMT
46
+ - Thu, 03 Feb 2011 22:16:47 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=09c6fdcd4fad5d19c42882f714167436; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=2ff5a40d04fa1a8439dbeb3b74c57dc3483985bec48eb2949034a3dd98b4a2bb09572b4557e4be91c254147c2831e07e637ab64b112041f44999d0c5e9c54de3%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=4b577f9ab263dc3b045e2bc19d2f4d51; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>account-get-1301979678</id>
59
- <account_code>account-get-1301979678</account_code>
56
+ <id>account-get-1296674173</id>
57
+ <account_code>account-get-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>b95ca2ce6dd84920b8528c44643a368a</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T17:56:59Z</created_at>
65
+ <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,17 +71,17 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :get
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-get-1301979678.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-get-1296674173.xml
77
75
  body:
78
76
  headers:
79
77
  authorization:
80
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
- user-agent:
82
- - Recurly Ruby Client v0.4.6
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
83
79
  accept:
84
80
  - application/xml
85
81
  accept-encoding:
86
82
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
87
85
  connection:
88
86
  - close
89
87
  response: !ruby/struct:VCR::Response
@@ -92,28 +90,28 @@
92
90
  message: "OK "
93
91
  headers:
94
92
  x-runtime:
95
- - "256"
93
+ - "170"
96
94
  content-type:
97
95
  - application/xml; charset=utf-8
98
96
  etag:
99
- - "\"05250b6666e4d9bcb4bdb8113188433d\""
97
+ - "\"4a257ead827ac88446de7c9d9e451ba8\""
100
98
  cache-control:
101
99
  - private, max-age=0, must-revalidate
102
100
  content-length:
103
101
  - "577"
104
102
  server:
105
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
106
104
  date:
107
- - Thu, 21 Apr 2011 17:57:01 GMT
105
+ - Thu, 03 Feb 2011 22:16:48 GMT
108
106
  connection:
109
107
  - close
110
108
  set-cookie:
111
- - _recurly_session=e423b329786fd77214547aa82e62c1a6; domain=.recurly.local; path=/; HttpOnly
109
+ - _recurly_session=027e65ec933ac6c7f44f8cda56e82d15; domain=.recurly.local; path=/; HttpOnly
112
110
  body: |
113
111
  <?xml version="1.0" encoding="UTF-8"?>
114
112
  <account>
115
- <id>account-get-1301979678</id>
116
- <account_code>account-get-1301979678</account_code>
113
+ <id>account-get-1296674173</id>
114
+ <account_code>account-get-1296674173</account_code>
117
115
  <username></username>
118
116
  <email>verena@test.com</email>
119
117
  <first_name>Verena</first_name>
@@ -121,8 +119,8 @@
121
119
  <company_name>Recurly Ruby Gem</company_name>
122
120
  <balance_in_cents type="integer">0</balance_in_cents>
123
121
  <closed type="boolean">false</closed>
124
- <hosted_login_token>b95ca2ce6dd84920b8528c44643a368a</hosted_login_token>
125
- <created_at type="datetime">2011-04-21T17:56:59Z</created_at>
122
+ <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
123
+ <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
126
124
  <state>active</state>
127
125
  </account>
128
126
 
@@ -130,17 +128,17 @@
130
128
  - !ruby/struct:VCR::HTTPInteraction
131
129
  request: !ruby/struct:VCR::Request
132
130
  method: :get
133
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-that-doesnt-exist.xml
134
132
  body:
135
133
  headers:
136
134
  authorization:
137
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
138
- user-agent:
139
- - Recurly Ruby Client v0.4.6
135
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
140
136
  accept:
141
137
  - application/xml
142
138
  accept-encoding:
143
139
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
+ user-agent:
141
+ - Ruby
144
142
  connection:
145
143
  - close
146
144
  response: !ruby/struct:VCR::Response
@@ -155,13 +153,13 @@
155
153
  content-length:
156
154
  - "93"
157
155
  server:
158
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
156
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
159
157
  date:
160
- - Thu, 21 Apr 2011 17:57:03 GMT
158
+ - Thu, 03 Feb 2011 22:16:50 GMT
161
159
  connection:
162
160
  - close
163
161
  set-cookie:
164
- - _recurly_session=51786570724836b17c5edbcbc6067ffb; domain=.recurly.local; path=/; HttpOnly
162
+ - _recurly_session=278a0f7034fdbdec11da7be3757db09a; domain=.recurly.local; path=/; HttpOnly
165
163
  body: |
166
164
  <?xml version="1.0" encoding="UTF-8"?>
167
165
  <errors>