recurly 0.3.2 → 0.3.3

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 (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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>
@@ -11,40 +11,42 @@
11
11
  </account>
12
12
 
13
13
  headers:
14
+ authorization:
15
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
16
+ content-type:
17
+ - application/xml
14
18
  accept:
15
19
  - "*/*"
20
+ user-agent:
21
+ - Ruby
16
22
  connection:
17
23
  - close
18
- content-type:
19
- - application/xml
20
- authorization:
21
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
22
24
  response: !ruby/struct:VCR::Response
23
25
  status: !ruby/struct:VCR::ResponseStatus
24
26
  code: 422
25
27
  message: ""
26
28
  headers:
27
- connection:
28
- - close
29
+ cache-control:
30
+ - no-cache
31
+ x-runtime:
32
+ - "243"
29
33
  content-type:
30
34
  - application/xml; charset=utf-8
31
- x-runtime:
32
- - "19"
33
- date:
34
- - Sat, 08 Jan 2011 08:03:24 GMT
35
- server:
36
- - nginx/0.8.53
37
35
  content-length:
38
36
  - "186"
37
+ server:
38
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
39
+ date:
40
+ - Thu, 03 Feb 2011 22:17:07 GMT
41
+ connection:
42
+ - close
39
43
  set-cookie:
40
- - _recurly_session=83935f90e5d9717a7857062791b0a7ef; domain=.recurly.com; path=/; secure; HttpOnly
41
- cache-control:
42
- - no-cache
44
+ - _recurly_session=649873ed76f39641cf1827cc0ddc1637; domain=.recurly.local; path=/; HttpOnly
43
45
  body: |
44
46
  <?xml version="1.0" encoding="UTF-8"?>
45
47
  <errors>
46
- <error field="account_code">Account code can't be blank</error>
47
- <error field="account_code">Account code is invalid</error>
48
+ <error field="account_code">account code can't be blank</error>
49
+ <error field="account_code">account code is invalid</error>
48
50
  </errors>
49
51
 
50
52
  http_version: "1.1"
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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>
@@ -11,39 +11,41 @@
11
11
  </account>
12
12
 
13
13
  headers:
14
+ authorization:
15
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
16
+ content-type:
17
+ - application/xml
14
18
  accept:
15
19
  - "*/*"
20
+ user-agent:
21
+ - Ruby
16
22
  connection:
17
23
  - close
18
- content-type:
19
- - application/xml
20
- authorization:
21
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
22
24
  response: !ruby/struct:VCR::Response
23
25
  status: !ruby/struct:VCR::ResponseStatus
24
26
  code: 201
25
- message: Created
27
+ message: "Created "
26
28
  headers:
29
+ cache-control:
30
+ - no-cache
27
31
  location:
28
- - https://recurlytest3-test.recurly.com/accounts/account-exists
29
- connection:
30
- - close
32
+ - http://litle-test.recurly.local:3000/accounts/account-exists
33
+ x-runtime:
34
+ - "624"
31
35
  content-type:
32
36
  - application/xml; charset=utf-8
33
- x-runtime:
34
- - "422"
35
- date:
36
- - Sat, 08 Jan 2011 08:03:25 GMT
37
- server:
38
- - nginx/0.8.53
39
37
  content-length:
40
38
  - "520"
39
+ server:
40
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
41
+ date:
42
+ - Thu, 03 Feb 2011 22:17:10 GMT
43
+ connection:
44
+ - close
41
45
  set-cookie:
42
- - account_credentials=20b2064648d897ee1e609d4f57cc96904d5a8d4b8adff3d19bc4080f9232c5f355f1ce8d3383f94d8ad3c7b40cc32f592fd97149245be93253ae01dc89478647%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=2dae3fbadf922ba54a1abda9d8a5eed9412b074f66caf3d75fe4d431df3206bc5e4aff674711cc28c09292b1b1cd1866cec2816d33d8b30a27c44e3f030b5899%3A%3A; domain=.recurly.local; path=/
43
47
  - ""
44
- - _recurly_session=7a5e714ee160474edd6d33d53623f6c8; domain=.recurly.com; path=/; secure; HttpOnly
45
- cache-control:
46
- - no-cache
48
+ - _recurly_session=03dbe587baefba6c6c2782d1fe738592; domain=.recurly.local; path=/; HttpOnly
47
49
  body: |
48
50
  <?xml version="1.0" encoding="UTF-8"?>
49
51
  <account>
@@ -56,8 +58,8 @@
56
58
  <company_name></company_name>
57
59
  <balance_in_cents type="integer">0</balance_in_cents>
58
60
  <closed type="boolean">false</closed>
59
- <hosted_login_token>aaef6e2a471b46208b1d061fc691015f</hosted_login_token>
60
- <created_at type="datetime">2011-01-08T08:03:25Z</created_at>
61
+ <hosted_login_token>7ae163c7be574c20b32a11fdb5f81d6f</hosted_login_token>
62
+ <created_at type="datetime">2011-02-03T22:17:09Z</created_at>
61
63
  <state>active</state>
62
64
  </account>
63
65
 
@@ -65,7 +67,7 @@
65
67
  - !ruby/struct:VCR::HTTPInteraction
66
68
  request: !ruby/struct:VCR::Request
67
69
  method: :post
68
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
70
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
69
71
  body: |
70
72
  <?xml version="1.0" encoding="UTF-8"?>
71
73
  <account>
@@ -74,39 +76,41 @@
74
76
  </account>
75
77
 
76
78
  headers:
79
+ authorization:
80
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
81
+ content-type:
82
+ - application/xml
77
83
  accept:
78
84
  - "*/*"
85
+ user-agent:
86
+ - Ruby
79
87
  connection:
80
88
  - close
81
- content-type:
82
- - application/xml
83
- authorization:
84
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
85
89
  response: !ruby/struct:VCR::Response
86
90
  status: !ruby/struct:VCR::ResponseStatus
87
91
  code: 422
88
92
  message: ""
89
93
  headers:
90
- connection:
91
- - close
94
+ cache-control:
95
+ - no-cache
96
+ x-runtime:
97
+ - "344"
92
98
  content-type:
93
99
  - application/xml; charset=utf-8
94
- x-runtime:
95
- - "19"
96
- date:
97
- - Sat, 08 Jan 2011 08:03:26 GMT
98
- server:
99
- - nginx/0.8.53
100
100
  content-length:
101
101
  - "132"
102
+ server:
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
+ date:
105
+ - Thu, 03 Feb 2011 22:17:12 GMT
106
+ connection:
107
+ - close
102
108
  set-cookie:
103
- - _recurly_session=d44b2ca9d73ab2bdbd31ed9f98639712; domain=.recurly.com; path=/; secure; HttpOnly
104
- cache-control:
105
- - no-cache
109
+ - _recurly_session=7b561d0ba4f22a602daf6c6d4c8c2713; domain=.recurly.local; path=/; HttpOnly
106
110
  body: |
107
111
  <?xml version="1.0" encoding="UTF-8"?>
108
112
  <errors>
109
- <error field="account_code">Account code has already been taken</error>
113
+ <error field="account_code">account code has already been taken</error>
110
114
  </errors>
111
115
 
112
116
  http_version: "1.1"
@@ -2,53 +2,55 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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-1294473761</account-code>
9
+ <account-code>d00d-1296674173</account-code>
10
10
  <accept-language type="yaml" nil="true"></accept-language>
11
11
  </account>
12
12
 
13
13
  headers:
14
+ authorization:
15
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
16
+ content-type:
17
+ - application/xml
14
18
  accept:
15
19
  - "*/*"
20
+ user-agent:
21
+ - Ruby
16
22
  connection:
17
23
  - close
18
- content-type:
19
- - application/xml
20
- authorization:
21
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
22
24
  response: !ruby/struct:VCR::Response
23
25
  status: !ruby/struct:VCR::ResponseStatus
24
26
  code: 201
25
- message: Created
27
+ message: "Created "
26
28
  headers:
29
+ cache-control:
30
+ - no-cache
27
31
  location:
28
- - https://recurlytest3-test.recurly.com/accounts/d00d-1294473761
29
- connection:
30
- - close
32
+ - http://litle-test.recurly.local:3000/accounts/d00d-1296674173
33
+ x-runtime:
34
+ - "528"
31
35
  content-type:
32
36
  - application/xml; charset=utf-8
33
- x-runtime:
34
- - "354"
35
- date:
36
- - Sat, 08 Jan 2011 08:02:49 GMT
37
- server:
38
- - nginx/0.8.53
39
37
  content-length:
40
38
  - "522"
39
+ server:
40
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
41
+ date:
42
+ - Thu, 03 Feb 2011 22:16:45 GMT
43
+ connection:
44
+ - close
41
45
  set-cookie:
42
- - account_credentials=ef789125be12e017d91e4648d1afcb13ea0d6b00012deccedbb5af4771d4b954be5c5a2fec20fbd4c314be1c98355492a76a95c212a5bc990a71505b67eab55a%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=10559a1cbfbba0fea366c4455adba56c3e5be9278dd028d7d8d4c0850f3ddb93064ee03f52d56a4a89b9bdf48f016b1f25e7bcd6fcc6f6eba8d43bfecd301d7b%3A%3A; domain=.recurly.local; path=/
43
47
  - ""
44
- - _recurly_session=d19aba13359d431507227187e3ea4678; domain=.recurly.com; path=/; secure; HttpOnly
45
- cache-control:
46
- - no-cache
48
+ - _recurly_session=26aaf5b1b093ce6ff49455da1ba2ceb5; domain=.recurly.local; path=/; HttpOnly
47
49
  body: |
48
50
  <?xml version="1.0" encoding="UTF-8"?>
49
51
  <account>
50
- <id>d00d-1294473761</id>
51
- <account_code>d00d-1294473761</account_code>
52
+ <id>d00d-1296674173</id>
53
+ <account_code>d00d-1296674173</account_code>
52
54
  <username></username>
53
55
  <email></email>
54
56
  <first_name></first_name>
@@ -56,8 +58,8 @@
56
58
  <company_name></company_name>
57
59
  <balance_in_cents type="integer">0</balance_in_cents>
58
60
  <closed type="boolean">false</closed>
59
- <hosted_login_token>6ffab820d54b4153ba13c01069d32943</hosted_login_token>
60
- <created_at type="datetime">2011-01-08T08:02:49Z</created_at>
61
+ <hosted_login_token>d0688c62f1de4ce396d7bbaed31d3e6e</hosted_login_token>
62
+ <created_at type="datetime">2011-02-03T22:16:45Z</created_at>
61
63
  <state>active</state>
62
64
  </account>
63
65
 
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>account-create-1294473761</account-code>
9
+ <account-code>account-create-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/account-create-1294473761
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/account-create-1296674173
37
+ x-runtime:
38
+ - "527"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "454"
39
- date:
40
- - Sat, 08 Jan 2011 08:02:46 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "583"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:16:43 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=0f99d095c38feb22ea3b31df000529183641583f23287c77695380802c63383bd98f300223bf78762d854a3da980f1256ca3ecfe1cc37663aaded29cd8e6ee39%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=c90c539b78ba26fac812fd274913c0f8b7d3a190780551074c921380f00aa22a0defef23b28f95e5db1a77a937acf580de443c1c98d4ebced05d867b30a44adc%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=4dc878db023909291b705bf15c9c7aad; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=bb1ea19d65b020bdf3d027c605137d06; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>account-create-1294473761</id>
55
- <account_code>account-create-1294473761</account_code>
56
+ <id>account-create-1296674173</id>
57
+ <account_code>account-create-1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>89b8c00b370b46e880b69dc6d5d60493</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:02:46Z</created_at>
65
+ <hosted_login_token>85817f8d3fba432b833dc8f36cb0e598</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:16:43Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>account-get-1294473761</account-code>
9
+ <account-code>account-get-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
- accept:
19
- - "*/*"
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
20
  content-type:
21
21
  - application/xml
22
+ accept:
23
+ - "*/*"
24
+ user-agent:
25
+ - Ruby
22
26
  connection:
23
27
  - close
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/account-get-1294473761
36
+ - http://litle-test.recurly.local:3000/accounts/account-get-1296674173
37
+ x-runtime:
38
+ - "532"
33
39
  content-type:
34
40
  - application/xml; charset=utf-8
35
- connection:
36
- - close
37
- server:
38
- - nginx/0.8.53
39
- date:
40
- - Sat, 08 Jan 2011 08:02:50 GMT
41
- x-runtime:
42
- - "349"
43
41
  content-length:
44
42
  - "577"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:16:47 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=0eaa961126a432078ede73ff4ac656aa78a4e915e339552724c545aa261e4516162cb5424cb81aa1b678701797a8c53d0626fac083cbffcf867253912fa90980%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=2ff5a40d04fa1a8439dbeb3b74c57dc3483985bec48eb2949034a3dd98b4a2bb09572b4557e4be91c254147c2831e07e637ab64b112041f44999d0c5e9c54de3%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=4ec5249453780a18c532bf124ce9a12e; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=4b577f9ab263dc3b045e2bc19d2f4d51; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>account-get-1294473761</id>
55
- <account_code>account-get-1294473761</account_code>
56
+ <id>account-get-1296674173</id>
57
+ <account_code>account-get-1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>fe8210afec3a463d93c13c377b256cb8</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:02:50Z</created_at>
65
+ <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,45 +71,47 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :get
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/account-get-1294473761.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-get-1296674173.xml
73
75
  body:
74
76
  headers:
77
+ authorization:
78
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
75
79
  accept:
76
80
  - application/xml
81
+ accept-encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ user-agent:
84
+ - Ruby
77
85
  connection:
78
86
  - close
79
- authorization:
80
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
81
87
  response: !ruby/struct:VCR::Response
82
88
  status: !ruby/struct:VCR::ResponseStatus
83
89
  code: 200
84
- message: OK
90
+ message: "OK "
85
91
  headers:
86
- x-ua-compatible:
87
- - IE=Edge
88
- etag:
89
- - "\"c4a43c689c3fcab3f8c0c1ec65fcd2c8\""
92
+ x-runtime:
93
+ - "170"
90
94
  content-type:
91
95
  - application/xml; charset=utf-8
92
- connection:
93
- - close
94
- server:
95
- - nginx/0.8.53
96
- date:
97
- - Sat, 08 Jan 2011 08:02:51 GMT
98
- x-runtime:
99
- - "31"
96
+ etag:
97
+ - "\"4a257ead827ac88446de7c9d9e451ba8\""
98
+ cache-control:
99
+ - private, max-age=0, must-revalidate
100
100
  content-length:
101
101
  - "577"
102
+ server:
103
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
104
+ date:
105
+ - Thu, 03 Feb 2011 22:16:48 GMT
106
+ connection:
107
+ - close
102
108
  set-cookie:
103
- - _recurly_session=0e8871c32884f6a65c609194343b2aa0; domain=.recurly.com; path=/; secure; HttpOnly
104
- cache-control:
105
- - private, max-age=0, must-revalidate
109
+ - _recurly_session=027e65ec933ac6c7f44f8cda56e82d15; domain=.recurly.local; path=/; HttpOnly
106
110
  body: |
107
111
  <?xml version="1.0" encoding="UTF-8"?>
108
112
  <account>
109
- <id>account-get-1294473761</id>
110
- <account_code>account-get-1294473761</account_code>
113
+ <id>account-get-1296674173</id>
114
+ <account_code>account-get-1296674173</account_code>
111
115
  <username></username>
112
116
  <email>verena@test.com</email>
113
117
  <first_name>Verena</first_name>
@@ -115,8 +119,8 @@
115
119
  <company_name>Recurly Ruby Gem</company_name>
116
120
  <balance_in_cents type="integer">0</balance_in_cents>
117
121
  <closed type="boolean">false</closed>
118
- <hosted_login_token>fe8210afec3a463d93c13c377b256cb8</hosted_login_token>
119
- <created_at type="datetime">2011-01-08T08:02:50Z</created_at>
122
+ <hosted_login_token>d8529c20adfc45cc8d944822474dd0be</hosted_login_token>
123
+ <created_at type="datetime">2011-02-03T22:16:47Z</created_at>
120
124
  <state>active</state>
121
125
  </account>
122
126
 
@@ -124,34 +128,38 @@
124
128
  - !ruby/struct:VCR::HTTPInteraction
125
129
  request: !ruby/struct:VCR::Request
126
130
  method: :get
127
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/account-that-doesnt-exist.xml
131
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/account-that-doesnt-exist.xml
128
132
  body:
129
133
  headers:
134
+ authorization:
135
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
130
136
  accept:
131
137
  - application/xml
138
+ accept-encoding:
139
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
140
+ user-agent:
141
+ - Ruby
132
142
  connection:
133
143
  - close
134
- authorization:
135
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
136
144
  response: !ruby/struct:VCR::Response
137
145
  status: !ruby/struct:VCR::ResponseStatus
138
146
  code: 404
139
- message: Not Found
147
+ message: "Not Found "
140
148
  headers:
141
- connection:
142
- - close
149
+ cache-control:
150
+ - no-cache
143
151
  content-type:
144
152
  - application/xml; charset=utf-8
145
- date:
146
- - Sat, 08 Jan 2011 08:02:52 GMT
147
- server:
148
- - nginx/0.8.53
149
153
  content-length:
150
154
  - "93"
155
+ server:
156
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
157
+ date:
158
+ - Thu, 03 Feb 2011 22:16:50 GMT
159
+ connection:
160
+ - close
151
161
  set-cookie:
152
- - _recurly_session=6f7441435a273c3d8b75004865b9ae47; domain=.recurly.com; path=/; secure; HttpOnly
153
- cache-control:
154
- - no-cache
162
+ - _recurly_session=278a0f7034fdbdec11da7be3757db09a; domain=.recurly.local; path=/; HttpOnly
155
163
  body: |
156
164
  <?xml version="1.0" encoding="UTF-8"?>
157
165
  <errors>