recurly 0.4.5 → 0.4.6

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 (67) hide show
  1. data/lib/recurly/base.rb +11 -4
  2. data/lib/recurly/billing_info.rb +2 -1
  3. data/lib/recurly/charge.rb +3 -1
  4. data/lib/recurly/credit.rb +3 -1
  5. data/lib/recurly/subscription.rb +1 -1
  6. data/lib/recurly/version.rb +1 -1
  7. data/spec/config/recurly.yml +4 -4
  8. data/spec/unit/billing_info_spec.rb +1 -0
  9. data/spec/unit/charge_spec.rb +2 -0
  10. data/spec/unit/credit_spec.rb +2 -0
  11. data/spec/unit/subscription_spec.rb +1 -1
  12. data/spec/vcr/account/accept-language-account/1301979678.yml +14 -12
  13. data/spec/vcr/account/close/1301979678.yml +41 -35
  14. data/spec/vcr/account/create-blank/1301979678.yml +11 -9
  15. data/spec/vcr/account/create-duplicate/1301979678.yml +25 -21
  16. data/spec/vcr/account/create-min/1301979678.yml +14 -12
  17. data/spec/vcr/account/create/1301979678.yml +14 -12
  18. data/spec/vcr/account/find/1301979678.yml +40 -34
  19. data/spec/vcr/account/list/1301979678.yml +348 -341
  20. data/spec/vcr/account/update/1301979678.yml +61 -53
  21. data/spec/vcr/billing/create/1302025874.yml +42 -36
  22. data/spec/vcr/billing/destroy/1302025874.yml +65 -55
  23. data/spec/vcr/billing/errors/1302025874.yml +25 -21
  24. data/spec/vcr/billing/find/1302025874.yml +56 -48
  25. data/spec/vcr/billing/update/1302025874.yml +56 -48
  26. data/spec/vcr/charge/create/1297746103.yml +65 -53
  27. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +85 -69
  28. data/spec/vcr/charge/list-all/1297746103.yml +97 -75
  29. data/spec/vcr/charge/list-invoiced/1297746103.yml +143 -115
  30. data/spec/vcr/charge/list-pending/1297746103.yml +97 -75
  31. data/spec/vcr/charge/lookup/1297746103.yml +51 -41
  32. data/spec/vcr/coupon/create/1299714521.yml +28 -88
  33. data/spec/vcr/coupon/destroy/1299714521.yml +25 -107
  34. data/spec/vcr/credit/create/1299714599.yml +51 -41
  35. data/spec/vcr/credit/delete/1299714599.yml +74 -60
  36. data/spec/vcr/credit/list/1299714599.yml +97 -75
  37. data/spec/vcr/credit/lookup/1299714599.yml +51 -41
  38. data/spec/vcr/invoice/create-no-charges/1297746103.yml +39 -33
  39. data/spec/vcr/invoice/create/1297746103.yml +86 -72
  40. data/spec/vcr/invoice/list/1297746103.yml +121 -103
  41. data/spec/vcr/invoice/lookup/1297746103.yml +84 -72
  42. data/spec/vcr/plan/all.yml +108 -134
  43. data/spec/vcr/plan/find.yml +47 -95
  44. data/spec/vcr/plan/update.yml +152 -66
  45. data/spec/vcr/subscription/addons/add/1301885121.yml +48 -310
  46. data/spec/vcr/subscription/addons/create/1301885121.yml +48 -151
  47. data/spec/vcr/subscription/addons/remove/1301885121.yml +48 -279
  48. data/spec/vcr/subscription/cancel-with-code/1301881900.yml +132 -135
  49. data/spec/vcr/subscription/cancel/1301881900.yml +111 -117
  50. data/spec/vcr/subscription/change1/1301881900.yml +107 -113
  51. data/spec/vcr/subscription/change2/1301881900.yml +107 -113
  52. data/spec/vcr/subscription/create/1301881900.yml +50 -65
  53. data/spec/vcr/subscription/find/1301881900.yml +69 -81
  54. data/spec/vcr/subscription/reactivate/1301881900.yml +122 -126
  55. data/spec/vcr/subscription/refund-full/1301881900.yml +84 -153
  56. data/spec/vcr/subscription/refund-none/1301881900.yml +101 -108
  57. data/spec/vcr/subscription/refund-partial/1301881900.yml +84 -153
  58. data/spec/vcr/transaction/all/1301883347.yml +86 -84
  59. data/spec/vcr/transaction/create-no-account/1301883347.yml +15 -13
  60. data/spec/vcr/transaction/create-with-account/1301883347.yml +43 -37
  61. data/spec/vcr/transaction/list-filled/1301883347.yml +115 -101
  62. data/spec/vcr/transaction/list-initial/1301883347.yml +43 -37
  63. data/spec/vcr/transaction/lookup/1301883347.yml +118 -102
  64. data/spec/vcr/transaction/refund/1301883347.yml +58 -50
  65. data/spec/vcr/transaction/void/1301883347.yml +75 -82
  66. data/spec/vcr/transparent/post-url/1301879142.yml +29 -25
  67. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -16,36 +16,38 @@
16
16
 
17
17
  headers:
18
18
  authorization:
19
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
19
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
20
+ user-agent:
21
+ - Recurly Ruby Client v0.4.6
20
22
  content-type:
21
23
  - application/xml
22
24
  accept:
23
25
  - "*/*"
24
- user-agent:
25
- - Ruby
26
26
  connection:
27
27
  - close
28
28
  response: !ruby/struct:VCR::Response
29
29
  status: !ruby/struct:VCR::ResponseStatus
30
30
  code: 201
31
- message: Created
31
+ message: "Created "
32
32
  headers:
33
33
  cache-control:
34
34
  - no-cache
35
35
  location:
36
36
  - http://app.recurly.local:3000/accounts/d00d-1301979678
37
37
  x-runtime:
38
- - "381"
38
+ - "288"
39
39
  content-type:
40
40
  - application/xml; charset=utf-8
41
41
  content-length:
42
42
  - "522"
43
- set-cookie:
44
- - _recurly_session=d08e4ed31d98adee87b8dca95493a8aa; domain=.recurly.local; path=/; HttpOnly
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
45
+ date:
46
+ - Thu, 21 Apr 2011 17:56:58 GMT
45
47
  connection:
46
48
  - close
47
- server:
48
- - thin 1.2.7 codename No Hup
49
+ set-cookie:
50
+ - _recurly_session=c86b936034e69e6e761b41d9603be064; domain=.recurly.local; path=/; HttpOnly
49
51
  body: |
50
52
  <?xml version="1.0" encoding="UTF-8"?>
51
53
  <account>
@@ -58,8 +60,8 @@
58
60
  <company_name></company_name>
59
61
  <balance_in_cents type="integer">0</balance_in_cents>
60
62
  <closed type="boolean">false</closed>
61
- <hosted_login_token>7dbb7ce567384d84850c138f966a1b15</hosted_login_token>
62
- <created_at type="datetime">2011-04-05T19:37:28Z</created_at>
63
+ <hosted_login_token>da3a0843ebf04914b81a01b922eef2b7</hosted_login_token>
64
+ <created_at type="datetime">2011-04-21T17:56:57Z</created_at>
63
65
  <state>active</state>
64
66
  </account>
65
67
 
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-create-1301979678
41
41
  x-runtime:
42
- - "380"
42
+ - "287"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
- set-cookie:
48
- - _recurly_session=a6620e8995822e2d0fa1e86a8dd5a30b; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 17:56:55 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=0f0e7a3ca79ad6809468f759c26a6aa1; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>348c2a6404d541fca19f97711d25bd4d</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:37:25Z</created_at>
67
+ <hosted_login_token>fd0d5e490fe741fea7ed62f4ce5277f8</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:56:55Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-get-1301979678
41
41
  x-runtime:
42
- - "376"
42
+ - "265"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "577"
47
- set-cookie:
48
- - _recurly_session=66f382336b15626ead04ebb8f9ab5dfd; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 17:57:00 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=09c6fdcd4fad5d19c42882f714167436; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>de5c810d258047dea48bc9aeddc2ced0</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:37:30Z</created_at>
67
+ <hosted_login_token>b95ca2ce6dd84920b8528c44643a368a</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:56:59Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,40 +73,42 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :get
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-get-1301979678.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-get-1301979678.xml
75
77
  body:
76
78
  headers:
77
79
  authorization:
78
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
80
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
81
+ user-agent:
82
+ - Recurly Ruby Client v0.4.6
79
83
  accept:
80
84
  - application/xml
81
85
  accept-encoding:
82
86
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- user-agent:
84
- - Ruby
85
87
  connection:
86
88
  - close
87
89
  response: !ruby/struct:VCR::Response
88
90
  status: !ruby/struct:VCR::ResponseStatus
89
91
  code: 200
90
- message: OK
92
+ message: "OK "
91
93
  headers:
92
94
  x-runtime:
93
- - "354"
95
+ - "256"
94
96
  content-type:
95
97
  - application/xml; charset=utf-8
96
98
  etag:
97
- - "\"d7698bb87177b42e48b8f73733a6549a\""
99
+ - "\"05250b6666e4d9bcb4bdb8113188433d\""
98
100
  cache-control:
99
101
  - private, max-age=0, must-revalidate
100
102
  content-length:
101
103
  - "577"
102
- set-cookie:
103
- - _recurly_session=3d05c99afd16003e287668a94ab9c0fe; domain=.recurly.local; path=/; HttpOnly
104
+ server:
105
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
106
+ date:
107
+ - Thu, 21 Apr 2011 17:57:01 GMT
104
108
  connection:
105
109
  - close
106
- server:
107
- - thin 1.2.7 codename No Hup
110
+ set-cookie:
111
+ - _recurly_session=e423b329786fd77214547aa82e62c1a6; domain=.recurly.local; path=/; HttpOnly
108
112
  body: |
109
113
  <?xml version="1.0" encoding="UTF-8"?>
110
114
  <account>
@@ -117,8 +121,8 @@
117
121
  <company_name>Recurly Ruby Gem</company_name>
118
122
  <balance_in_cents type="integer">0</balance_in_cents>
119
123
  <closed type="boolean">false</closed>
120
- <hosted_login_token>de5c810d258047dea48bc9aeddc2ced0</hosted_login_token>
121
- <created_at type="datetime">2011-04-05T19:37:30Z</created_at>
124
+ <hosted_login_token>b95ca2ce6dd84920b8528c44643a368a</hosted_login_token>
125
+ <created_at type="datetime">2011-04-21T17:56:59Z</created_at>
122
126
  <state>active</state>
123
127
  </account>
124
128
 
@@ -126,23 +130,23 @@
126
130
  - !ruby/struct:VCR::HTTPInteraction
127
131
  request: !ruby/struct:VCR::Request
128
132
  method: :get
129
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
133
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-that-doesnt-exist.xml
130
134
  body:
131
135
  headers:
132
136
  authorization:
133
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
137
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
138
+ user-agent:
139
+ - Recurly Ruby Client v0.4.6
134
140
  accept:
135
141
  - application/xml
136
142
  accept-encoding:
137
143
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
138
- user-agent:
139
- - Ruby
140
144
  connection:
141
145
  - close
142
146
  response: !ruby/struct:VCR::Response
143
147
  status: !ruby/struct:VCR::ResponseStatus
144
148
  code: 404
145
- message: Not Found
149
+ message: "Not Found "
146
150
  headers:
147
151
  cache-control:
148
152
  - no-cache
@@ -150,12 +154,14 @@
150
154
  - application/xml; charset=utf-8
151
155
  content-length:
152
156
  - "93"
153
- set-cookie:
154
- - _recurly_session=e55def341fa4fd1bde228f64c5143b26; domain=.recurly.local; path=/; HttpOnly
157
+ server:
158
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
159
+ date:
160
+ - Thu, 21 Apr 2011 17:57:03 GMT
155
161
  connection:
156
162
  - close
157
- server:
158
- - thin 1.2.7 codename No Hup
163
+ set-cookie:
164
+ - _recurly_session=51786570724836b17c5edbcbc6067ffb; domain=.recurly.local; path=/; HttpOnly
159
165
  body: |
160
166
  <?xml version="1.0" encoding="UTF-8"?>
161
167
  <errors>
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
5
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
@@ -20,36 +20,38 @@
20
20
 
21
21
  headers:
22
22
  authorization:
23
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
23
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
+ user-agent:
25
+ - Recurly Ruby Client v0.4.6
24
26
  content-type:
25
27
  - application/xml
26
28
  accept:
27
29
  - "*/*"
28
- user-agent:
29
- - Ruby
30
30
  connection:
31
31
  - close
32
32
  response: !ruby/struct:VCR::Response
33
33
  status: !ruby/struct:VCR::ResponseStatus
34
34
  code: 201
35
- message: Created
35
+ message: "Created "
36
36
  headers:
37
37
  cache-control:
38
38
  - no-cache
39
39
  location:
40
40
  - http://app.recurly.local:3000/accounts/account-list-num-0-1301979678
41
41
  x-runtime:
42
- - "400"
42
+ - "420"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "591"
47
- set-cookie:
48
- - _recurly_session=0eaf10d5b040803cbdf40e86e7c1313d; domain=.recurly.local; path=/; HttpOnly
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
49
+ date:
50
+ - Thu, 21 Apr 2011 17:57:05 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=b305b153fa50eedb323688a22c2b91ff; domain=.recurly.local; path=/; HttpOnly
53
55
  body: |
54
56
  <?xml version="1.0" encoding="UTF-8"?>
55
57
  <account>
@@ -62,8 +64,8 @@
62
64
  <company_name>Recurly Ruby Gem</company_name>
63
65
  <balance_in_cents type="integer">0</balance_in_cents>
64
66
  <closed type="boolean">false</closed>
65
- <hosted_login_token>d99111f38b3045ba87096510c71524fc</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:37:38Z</created_at>
67
+ <hosted_login_token>3bdf1283ea03490187daea487f84a8d5</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:57:05Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :post
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <account>
@@ -89,36 +91,38 @@
89
91
 
90
92
  headers:
91
93
  authorization:
92
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
94
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
95
+ user-agent:
96
+ - Recurly Ruby Client v0.4.6
93
97
  content-type:
94
98
  - application/xml
95
99
  accept:
96
100
  - "*/*"
97
- user-agent:
98
- - Ruby
99
101
  connection:
100
102
  - close
101
103
  response: !ruby/struct:VCR::Response
102
104
  status: !ruby/struct:VCR::ResponseStatus
103
105
  code: 201
104
- message: Created
106
+ message: "Created "
105
107
  headers:
106
108
  cache-control:
107
109
  - no-cache
108
110
  location:
109
111
  - http://app.recurly.local:3000/accounts/account-list-num-1-1301979678
110
112
  x-runtime:
111
- - "381"
113
+ - "387"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  content-length:
115
117
  - "591"
116
- set-cookie:
117
- - _recurly_session=38095b8539c41961de5d8a55109783ee; domain=.recurly.local; path=/; HttpOnly
118
+ server:
119
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
120
+ date:
121
+ - Thu, 21 Apr 2011 17:57:07 GMT
118
122
  connection:
119
123
  - close
120
- server:
121
- - thin 1.2.7 codename No Hup
124
+ set-cookie:
125
+ - _recurly_session=a2062c664b6425e5fe58fac51ff67558; domain=.recurly.local; path=/; HttpOnly
122
126
  body: |
123
127
  <?xml version="1.0" encoding="UTF-8"?>
124
128
  <account>
@@ -131,8 +135,8 @@
131
135
  <company_name>Recurly Ruby Gem</company_name>
132
136
  <balance_in_cents type="integer">0</balance_in_cents>
133
137
  <closed type="boolean">false</closed>
134
- <hosted_login_token>b5a9d2dd1961419f9b5a3c138e5983bc</hosted_login_token>
135
- <created_at type="datetime">2011-04-05T19:37:41Z</created_at>
138
+ <hosted_login_token>711f7cf6bbed4dec9585fb31197070f5</hosted_login_token>
139
+ <created_at type="datetime">2011-04-21T17:57:07Z</created_at>
136
140
  <state>active</state>
137
141
  </account>
138
142
 
@@ -140,7 +144,7 @@
140
144
  - !ruby/struct:VCR::HTTPInteraction
141
145
  request: !ruby/struct:VCR::Request
142
146
  method: :post
143
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
147
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
144
148
  body: |
145
149
  <?xml version="1.0" encoding="UTF-8"?>
146
150
  <account>
@@ -158,36 +162,38 @@
158
162
 
159
163
  headers:
160
164
  authorization:
161
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
165
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
166
+ user-agent:
167
+ - Recurly Ruby Client v0.4.6
162
168
  content-type:
163
169
  - application/xml
164
170
  accept:
165
171
  - "*/*"
166
- user-agent:
167
- - Ruby
168
172
  connection:
169
173
  - close
170
174
  response: !ruby/struct:VCR::Response
171
175
  status: !ruby/struct:VCR::ResponseStatus
172
176
  code: 201
173
- message: Created
177
+ message: "Created "
174
178
  headers:
175
179
  cache-control:
176
180
  - no-cache
177
181
  location:
178
182
  - http://app.recurly.local:3000/accounts/account-list-num-2-1301979678
179
183
  x-runtime:
180
- - "389"
184
+ - "262"
181
185
  content-type:
182
186
  - application/xml; charset=utf-8
183
187
  content-length:
184
188
  - "591"
185
- set-cookie:
186
- - _recurly_session=6f0484595859f0e8a9a43572216edc2a; domain=.recurly.local; path=/; HttpOnly
189
+ server:
190
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
191
+ date:
192
+ - Thu, 21 Apr 2011 17:57:09 GMT
187
193
  connection:
188
194
  - close
189
- server:
190
- - thin 1.2.7 codename No Hup
195
+ set-cookie:
196
+ - _recurly_session=3d38ef65fddc1ce9fb05826d6cbbc9c2; domain=.recurly.local; path=/; HttpOnly
191
197
  body: |
192
198
  <?xml version="1.0" encoding="UTF-8"?>
193
199
  <account>
@@ -200,8 +206,8 @@
200
206
  <company_name>Recurly Ruby Gem</company_name>
201
207
  <balance_in_cents type="integer">0</balance_in_cents>
202
208
  <closed type="boolean">false</closed>
203
- <hosted_login_token>94fb5cd8f32d4f748da4f60ba2e9c0e4</hosted_login_token>
204
- <created_at type="datetime">2011-04-05T19:37:43Z</created_at>
209
+ <hosted_login_token>d1159d3e1b0d4bf5bf2f8db5c7f5776f</hosted_login_token>
210
+ <created_at type="datetime">2011-04-21T17:57:09Z</created_at>
205
211
  <state>active</state>
206
212
  </account>
207
213
 
@@ -209,7 +215,7 @@
209
215
  - !ruby/struct:VCR::HTTPInteraction
210
216
  request: !ruby/struct:VCR::Request
211
217
  method: :post
212
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
218
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
213
219
  body: |
214
220
  <?xml version="1.0" encoding="UTF-8"?>
215
221
  <account>
@@ -227,36 +233,38 @@
227
233
 
228
234
  headers:
229
235
  authorization:
230
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
236
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
237
+ user-agent:
238
+ - Recurly Ruby Client v0.4.6
231
239
  content-type:
232
240
  - application/xml
233
241
  accept:
234
242
  - "*/*"
235
- user-agent:
236
- - Ruby
237
243
  connection:
238
244
  - close
239
245
  response: !ruby/struct:VCR::Response
240
246
  status: !ruby/struct:VCR::ResponseStatus
241
247
  code: 201
242
- message: Created
248
+ message: "Created "
243
249
  headers:
244
250
  cache-control:
245
251
  - no-cache
246
252
  location:
247
253
  - http://app.recurly.local:3000/accounts/account-list-num-3-1301979678
248
254
  x-runtime:
249
- - "428"
255
+ - "273"
250
256
  content-type:
251
257
  - application/xml; charset=utf-8
252
258
  content-length:
253
259
  - "591"
254
- set-cookie:
255
- - _recurly_session=2968e3107adf0e2c5b2357d8690387d4; domain=.recurly.local; path=/; HttpOnly
260
+ server:
261
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
262
+ date:
263
+ - Thu, 21 Apr 2011 17:57:11 GMT
256
264
  connection:
257
265
  - close
258
- server:
259
- - thin 1.2.7 codename No Hup
266
+ set-cookie:
267
+ - _recurly_session=b875d589ae7e3daa18e78b6821e87e4e; domain=.recurly.local; path=/; HttpOnly
260
268
  body: |
261
269
  <?xml version="1.0" encoding="UTF-8"?>
262
270
  <account>
@@ -269,8 +277,8 @@
269
277
  <company_name>Recurly Ruby Gem</company_name>
270
278
  <balance_in_cents type="integer">0</balance_in_cents>
271
279
  <closed type="boolean">false</closed>
272
- <hosted_login_token>741a657c0d964154aed3907effb6e839</hosted_login_token>
273
- <created_at type="datetime">2011-04-05T19:37:46Z</created_at>
280
+ <hosted_login_token>54c3a0f555e34ee8bbe9c4e98b31bffa</hosted_login_token>
281
+ <created_at type="datetime">2011-04-21T17:57:11Z</created_at>
274
282
  <state>active</state>
275
283
  </account>
276
284
 
@@ -278,7 +286,7 @@
278
286
  - !ruby/struct:VCR::HTTPInteraction
279
287
  request: !ruby/struct:VCR::Request
280
288
  method: :post
281
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
289
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
282
290
  body: |
283
291
  <?xml version="1.0" encoding="UTF-8"?>
284
292
  <account>
@@ -296,36 +304,38 @@
296
304
 
297
305
  headers:
298
306
  authorization:
299
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
307
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
308
+ user-agent:
309
+ - Recurly Ruby Client v0.4.6
300
310
  content-type:
301
311
  - application/xml
302
312
  accept:
303
313
  - "*/*"
304
- user-agent:
305
- - Ruby
306
314
  connection:
307
315
  - close
308
316
  response: !ruby/struct:VCR::Response
309
317
  status: !ruby/struct:VCR::ResponseStatus
310
318
  code: 201
311
- message: Created
319
+ message: "Created "
312
320
  headers:
313
321
  cache-control:
314
322
  - no-cache
315
323
  location:
316
324
  - http://app.recurly.local:3000/accounts/account-list-num-4-1301979678
317
325
  x-runtime:
318
- - "385"
326
+ - "335"
319
327
  content-type:
320
328
  - application/xml; charset=utf-8
321
329
  content-length:
322
330
  - "591"
323
- set-cookie:
324
- - _recurly_session=ea122b8849444b04a6ed95ed0bd607fe; domain=.recurly.local; path=/; HttpOnly
331
+ server:
332
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
333
+ date:
334
+ - Thu, 21 Apr 2011 17:57:13 GMT
325
335
  connection:
326
336
  - close
327
- server:
328
- - thin 1.2.7 codename No Hup
337
+ set-cookie:
338
+ - _recurly_session=09b24a017ea689918df682eb78502c15; domain=.recurly.local; path=/; HttpOnly
329
339
  body: |
330
340
  <?xml version="1.0" encoding="UTF-8"?>
331
341
  <account>
@@ -338,8 +348,8 @@
338
348
  <company_name>Recurly Ruby Gem</company_name>
339
349
  <balance_in_cents type="integer">0</balance_in_cents>
340
350
  <closed type="boolean">false</closed>
341
- <hosted_login_token>43ffb11a8fe94e60bfb52e035064b982</hosted_login_token>
342
- <created_at type="datetime">2011-04-05T19:37:49Z</created_at>
351
+ <hosted_login_token>3404096c0f7a4e8ab85f486779ffc40a</hosted_login_token>
352
+ <created_at type="datetime">2011-04-21T17:57:13Z</created_at>
343
353
  <state>active</state>
344
354
  </account>
345
355
 
@@ -347,7 +357,7 @@
347
357
  - !ruby/struct:VCR::HTTPInteraction
348
358
  request: !ruby/struct:VCR::Request
349
359
  method: :post
350
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
360
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
351
361
  body: |
352
362
  <?xml version="1.0" encoding="UTF-8"?>
353
363
  <account>
@@ -365,36 +375,38 @@
365
375
 
366
376
  headers:
367
377
  authorization:
368
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
378
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
379
+ user-agent:
380
+ - Recurly Ruby Client v0.4.6
369
381
  content-type:
370
382
  - application/xml
371
383
  accept:
372
384
  - "*/*"
373
- user-agent:
374
- - Ruby
375
385
  connection:
376
386
  - close
377
387
  response: !ruby/struct:VCR::Response
378
388
  status: !ruby/struct:VCR::ResponseStatus
379
389
  code: 201
380
- message: Created
390
+ message: "Created "
381
391
  headers:
382
392
  cache-control:
383
393
  - no-cache
384
394
  location:
385
395
  - http://app.recurly.local:3000/accounts/account-list-num-5-1301979678
386
396
  x-runtime:
387
- - "664"
397
+ - "643"
388
398
  content-type:
389
399
  - application/xml; charset=utf-8
390
400
  content-length:
391
401
  - "591"
392
- set-cookie:
393
- - _recurly_session=e3a095020e25aa1e0d6e3bfa90f2ed6b; domain=.recurly.local; path=/; HttpOnly
402
+ server:
403
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
404
+ date:
405
+ - Thu, 21 Apr 2011 17:57:16 GMT
394
406
  connection:
395
407
  - close
396
- server:
397
- - thin 1.2.7 codename No Hup
408
+ set-cookie:
409
+ - _recurly_session=3b85e1baa6f003406d42ce58336e44ce; domain=.recurly.local; path=/; HttpOnly
398
410
  body: |
399
411
  <?xml version="1.0" encoding="UTF-8"?>
400
412
  <account>
@@ -407,8 +419,8 @@
407
419
  <company_name>Recurly Ruby Gem</company_name>
408
420
  <balance_in_cents type="integer">0</balance_in_cents>
409
421
  <closed type="boolean">false</closed>
410
- <hosted_login_token>27091f75f0b445af83efbc97b914e80c</hosted_login_token>
411
- <created_at type="datetime">2011-04-05T19:37:52Z</created_at>
422
+ <hosted_login_token>3b0e9ab037994112b76f9197065f6291</hosted_login_token>
423
+ <created_at type="datetime">2011-04-21T17:57:16Z</created_at>
412
424
  <state>active</state>
413
425
  </account>
414
426
 
@@ -416,7 +428,7 @@
416
428
  - !ruby/struct:VCR::HTTPInteraction
417
429
  request: !ruby/struct:VCR::Request
418
430
  method: :post
419
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
431
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
420
432
  body: |
421
433
  <?xml version="1.0" encoding="UTF-8"?>
422
434
  <account>
@@ -434,36 +446,38 @@
434
446
 
435
447
  headers:
436
448
  authorization:
437
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
449
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
450
+ user-agent:
451
+ - Recurly Ruby Client v0.4.6
438
452
  content-type:
439
453
  - application/xml
440
454
  accept:
441
455
  - "*/*"
442
- user-agent:
443
- - Ruby
444
456
  connection:
445
457
  - close
446
458
  response: !ruby/struct:VCR::Response
447
459
  status: !ruby/struct:VCR::ResponseStatus
448
460
  code: 201
449
- message: Created
461
+ message: "Created "
450
462
  headers:
451
463
  cache-control:
452
464
  - no-cache
453
465
  location:
454
466
  - http://app.recurly.local:3000/accounts/account-list-num-6-1301979678
455
467
  x-runtime:
456
- - "379"
468
+ - "666"
457
469
  content-type:
458
470
  - application/xml; charset=utf-8
459
471
  content-length:
460
472
  - "591"
461
- set-cookie:
462
- - _recurly_session=ea6b4727d4210dd41856df5cb450566a; domain=.recurly.local; path=/; HttpOnly
473
+ server:
474
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
475
+ date:
476
+ - Thu, 21 Apr 2011 17:57:21 GMT
463
477
  connection:
464
478
  - close
465
- server:
466
- - thin 1.2.7 codename No Hup
479
+ set-cookie:
480
+ - _recurly_session=3e907680ac358f7a428d313ea3d3dafe; domain=.recurly.local; path=/; HttpOnly
467
481
  body: |
468
482
  <?xml version="1.0" encoding="UTF-8"?>
469
483
  <account>
@@ -476,8 +490,8 @@
476
490
  <company_name>Recurly Ruby Gem</company_name>
477
491
  <balance_in_cents type="integer">0</balance_in_cents>
478
492
  <closed type="boolean">false</closed>
479
- <hosted_login_token>ac0b7335185944d0b919042b6b1174ab</hosted_login_token>
480
- <created_at type="datetime">2011-04-05T19:37:55Z</created_at>
493
+ <hosted_login_token>6d66c9e4d75146bc9200798bf165106d</hosted_login_token>
494
+ <created_at type="datetime">2011-04-21T17:57:21Z</created_at>
481
495
  <state>active</state>
482
496
  </account>
483
497
 
@@ -485,7 +499,7 @@
485
499
  - !ruby/struct:VCR::HTTPInteraction
486
500
  request: !ruby/struct:VCR::Request
487
501
  method: :post
488
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
502
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
489
503
  body: |
490
504
  <?xml version="1.0" encoding="UTF-8"?>
491
505
  <account>
@@ -503,36 +517,38 @@
503
517
 
504
518
  headers:
505
519
  authorization:
506
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
520
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
521
+ user-agent:
522
+ - Recurly Ruby Client v0.4.6
507
523
  content-type:
508
524
  - application/xml
509
525
  accept:
510
526
  - "*/*"
511
- user-agent:
512
- - Ruby
513
527
  connection:
514
528
  - close
515
529
  response: !ruby/struct:VCR::Response
516
530
  status: !ruby/struct:VCR::ResponseStatus
517
531
  code: 201
518
- message: Created
532
+ message: "Created "
519
533
  headers:
520
534
  cache-control:
521
535
  - no-cache
522
536
  location:
523
537
  - http://app.recurly.local:3000/accounts/account-list-num-7-1301979678
524
538
  x-runtime:
525
- - "379"
539
+ - "946"
526
540
  content-type:
527
541
  - application/xml; charset=utf-8
528
542
  content-length:
529
543
  - "591"
530
- set-cookie:
531
- - _recurly_session=e6ab1d4d555d64864c54c456432baeeb; domain=.recurly.local; path=/; HttpOnly
544
+ server:
545
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
546
+ date:
547
+ - Thu, 21 Apr 2011 17:57:25 GMT
532
548
  connection:
533
549
  - close
534
- server:
535
- - thin 1.2.7 codename No Hup
550
+ set-cookie:
551
+ - _recurly_session=a31419089ee13d61c912628f6f683d88; domain=.recurly.local; path=/; HttpOnly
536
552
  body: |
537
553
  <?xml version="1.0" encoding="UTF-8"?>
538
554
  <account>
@@ -545,8 +561,8 @@
545
561
  <company_name>Recurly Ruby Gem</company_name>
546
562
  <balance_in_cents type="integer">0</balance_in_cents>
547
563
  <closed type="boolean">false</closed>
548
- <hosted_login_token>dd8a60d174854d0e8c808b18487dac90</hosted_login_token>
549
- <created_at type="datetime">2011-04-05T19:37:57Z</created_at>
564
+ <hosted_login_token>1924c47a1bcb4c208fbcf1b10fbb7ca2</hosted_login_token>
565
+ <created_at type="datetime">2011-04-21T17:57:25Z</created_at>
550
566
  <state>active</state>
551
567
  </account>
552
568
 
@@ -554,40 +570,95 @@
554
570
  - !ruby/struct:VCR::HTTPInteraction
555
571
  request: !ruby/struct:VCR::Request
556
572
  method: :get
557
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
573
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
558
574
  body:
559
575
  headers:
560
576
  authorization:
561
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
577
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
578
+ user-agent:
579
+ - Recurly Ruby Client v0.4.6
562
580
  accept:
563
581
  - application/xml
564
582
  accept-encoding:
565
583
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
566
- user-agent:
567
- - Ruby
568
584
  connection:
569
585
  - close
570
586
  response: !ruby/struct:VCR::Response
571
587
  status: !ruby/struct:VCR::ResponseStatus
572
- code: 200
573
- message: OK
588
+ code: 404
589
+ message: "Not Found "
574
590
  headers:
575
- x-runtime:
576
- - "358"
591
+ cache-control:
592
+ - no-cache
577
593
  content-type:
578
594
  - application/xml; charset=utf-8
579
- etag:
580
- - "\"eea146faf9def8e0ad1bce0a43411f13\""
581
- cache-control:
582
- - private, max-age=0, must-revalidate
583
595
  content-length:
584
- - "1558"
596
+ - "90"
597
+ server:
598
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
599
+ date:
600
+ - Thu, 21 Apr 2011 17:57:30 GMT
601
+ connection:
602
+ - close
585
603
  set-cookie:
586
- - _recurly_session=00fd71064a66351df3d52414f9dd389b; domain=.recurly.local; path=/; HttpOnly
604
+ - _recurly_session=b7b3638325f24f8177f080168f3b06bb; domain=.recurly.local; path=/; HttpOnly
605
+ body: |
606
+ <?xml version="1.0" encoding="UTF-8"?>
607
+ <errors>
608
+ <error>Plan not found</error>
609
+ </errors>
610
+
611
+ http_version: "1.1"
612
+ - !ruby/struct:VCR::HTTPInteraction
613
+ request: !ruby/struct:VCR::Request
614
+ method: :post
615
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans.xml
616
+ body: |
617
+ <?xml version="1.0" encoding="UTF-8"?>
618
+ <plan>
619
+ <plan-code>paid</plan-code>
620
+ <name>Paid</name>
621
+ <amount-in-cents type="integer">1000</amount-in-cents>
622
+ <plan-interval-length type="integer">1</plan-interval-length>
623
+ <plan-interval-unit>months</plan-interval-unit>
624
+ <trial-interval-length type="integer">0</trial-interval-length>
625
+ <trial-interval-unit>months</trial-interval-unit>
626
+ </plan>
627
+
628
+ headers:
629
+ authorization:
630
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
631
+ user-agent:
632
+ - Recurly Ruby Client v0.4.6
633
+ content-type:
634
+ - application/xml
635
+ accept:
636
+ - "*/*"
587
637
  connection:
588
638
  - close
639
+ response: !ruby/struct:VCR::Response
640
+ status: !ruby/struct:VCR::ResponseStatus
641
+ code: 201
642
+ message: "Created "
643
+ headers:
644
+ cache-control:
645
+ - no-cache
646
+ location:
647
+ - http://app.recurly.local:3000/company/plans/paid
648
+ x-runtime:
649
+ - "843"
650
+ content-type:
651
+ - application/xml; charset=utf-8
652
+ content-length:
653
+ - "612"
589
654
  server:
590
- - thin 1.2.7 codename No Hup
655
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
656
+ date:
657
+ - Thu, 21 Apr 2011 17:57:33 GMT
658
+ connection:
659
+ - close
660
+ set-cookie:
661
+ - _recurly_session=6d95e67ae840f350004e607f36123828; domain=.recurly.local; path=/; HttpOnly
591
662
  body: |
592
663
  <?xml version="1.0" encoding="UTF-8"?>
593
664
  <plan>
@@ -596,42 +667,20 @@
596
667
  <description></description>
597
668
  <success_url></success_url>
598
669
  <cancel_url></cancel_url>
599
- <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
600
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
670
+ <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
671
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
601
672
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
602
673
  <plan_interval_length type="integer">1</plan_interval_length>
603
674
  <plan_interval_unit>months</plan_interval_unit>
604
675
  <trial_interval_length type="integer">0</trial_interval_length>
605
676
  <trial_interval_unit>months</trial_interval_unit>
606
- <latest_version depreciated="true">
607
- <version type="integer">1</version>
608
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
609
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
610
- <plan_interval_length type="integer">1</plan_interval_length>
611
- <plan_interval_unit>months</plan_interval_unit>
612
- <trial_interval_length type="integer">0</trial_interval_length>
613
- <trial_interval_unit>months</trial_interval_unit>
614
- <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
615
- </latest_version>
616
- <add_ons type="array">
617
- <add_on>
618
- <add_on_code>special</add_on_code>
619
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
620
- <default_quantity>1</default_quantity>
621
- </add_on>
622
- <add_on>
623
- <add_on_code>special2</add_on_code>
624
- <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
625
- <default_quantity>1</default_quantity>
626
- </add_on>
627
- </add_ons>
628
677
  </plan>
629
678
 
630
679
  http_version: "1.1"
631
680
  - !ruby/struct:VCR::HTTPInteraction
632
681
  request: !ruby/struct:VCR::Request
633
682
  method: :post
634
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-0-1301979678/subscription.xml
683
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-list-num-0-1301979678/subscription.xml
635
684
  body: |
636
685
  <?xml version="1.0" encoding="UTF-8"?>
637
686
  <subscription>
@@ -663,8 +712,8 @@
663
712
  <username type="yaml" nil="true"></username>
664
713
  <balance-in-cents type="integer">0</balance-in-cents>
665
714
  <closed type="boolean">false</closed>
666
- <hosted-login-token>d99111f38b3045ba87096510c71524fc</hosted-login-token>
667
- <created-at type="datetime">2011-04-05T19:37:38Z</created-at>
715
+ <hosted-login-token>3bdf1283ea03490187daea487f84a8d5</hosted-login-token>
716
+ <created-at type="datetime">2011-04-21T17:57:05Z</created-at>
668
717
  <state>active</state>
669
718
  </account>
670
719
  <addons type="array"/>
@@ -672,34 +721,36 @@
672
721
 
673
722
  headers:
674
723
  authorization:
675
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
724
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
725
+ user-agent:
726
+ - Recurly Ruby Client v0.4.6
676
727
  content-type:
677
728
  - application/xml
678
729
  accept:
679
730
  - "*/*"
680
- user-agent:
681
- - Ruby
682
731
  connection:
683
732
  - close
684
733
  response: !ruby/struct:VCR::Response
685
734
  status: !ruby/struct:VCR::ResponseStatus
686
735
  code: 201
687
- message: Created
736
+ message: "Created "
688
737
  headers:
689
738
  cache-control:
690
739
  - no-cache
691
740
  x-runtime:
692
- - "4205"
741
+ - "25451"
693
742
  content-type:
694
743
  - application/xml; charset=utf-8
695
744
  content-length:
696
- - "905"
697
- set-cookie:
698
- - _recurly_session=44f39de8d5993f04345185dc6394b414; domain=.recurly.local; path=/; HttpOnly
745
+ - "967"
746
+ server:
747
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
748
+ date:
749
+ - Thu, 21 Apr 2011 17:58:03 GMT
699
750
  connection:
700
751
  - close
701
- server:
702
- - thin 1.2.7 codename No Hup
752
+ set-cookie:
753
+ - _recurly_session=a0a848a0ed7f5bf6f01d0c5f39c1968b; domain=.recurly.local; path=/; HttpOnly
703
754
  body: |
704
755
  <?xml version="1.0" encoding="UTF-8"?>
705
756
  <subscription>
@@ -711,12 +762,13 @@
711
762
  </plan>
712
763
  <state>active</state>
713
764
  <quantity type="integer">1</quantity>
714
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
715
- <activated_at type="datetime">2011-04-05T19:38:03Z</activated_at>
765
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
766
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
767
+ <activated_at type="datetime">2011-04-21T17:57:40Z</activated_at>
716
768
  <canceled_at nil="true" type="datetime"></canceled_at>
717
769
  <expires_at nil="true" type="datetime"></expires_at>
718
- <current_period_started_at type="datetime">2011-04-05T19:38:03Z</current_period_started_at>
719
- <current_period_ends_at type="datetime">2011-05-05T19:38:03Z</current_period_ends_at>
770
+ <current_period_started_at type="datetime">2011-04-21T17:57:40Z</current_period_started_at>
771
+ <current_period_ends_at type="datetime">2011-05-21T17:57:40Z</current_period_ends_at>
720
772
  <trial_started_at nil="true" type="datetime"></trial_started_at>
721
773
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
722
774
  <add_ons type="array">
@@ -727,40 +779,42 @@
727
779
  - !ruby/struct:VCR::HTTPInteraction
728
780
  request: !ruby/struct:VCR::Request
729
781
  method: :get
730
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
782
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
731
783
  body:
732
784
  headers:
733
785
  authorization:
734
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
786
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
787
+ user-agent:
788
+ - Recurly Ruby Client v0.4.6
735
789
  accept:
736
790
  - application/xml
737
791
  accept-encoding:
738
792
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
739
- user-agent:
740
- - Ruby
741
793
  connection:
742
794
  - close
743
795
  response: !ruby/struct:VCR::Response
744
796
  status: !ruby/struct:VCR::ResponseStatus
745
797
  code: 200
746
- message: OK
798
+ message: "OK "
747
799
  headers:
748
800
  x-runtime:
749
- - "367"
801
+ - "257"
750
802
  content-type:
751
803
  - application/xml; charset=utf-8
752
804
  etag:
753
- - "\"eea146faf9def8e0ad1bce0a43411f13\""
805
+ - "\"3888306c167f105a4e165433ee427264\""
754
806
  cache-control:
755
807
  - private, max-age=0, must-revalidate
756
808
  content-length:
757
- - "1558"
758
- set-cookie:
759
- - _recurly_session=24f460d049e124532bec3a00a9d52a27; domain=.recurly.local; path=/; HttpOnly
809
+ - "612"
810
+ server:
811
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
812
+ date:
813
+ - Thu, 21 Apr 2011 17:58:05 GMT
760
814
  connection:
761
815
  - close
762
- server:
763
- - thin 1.2.7 codename No Hup
816
+ set-cookie:
817
+ - _recurly_session=55919ce0dd5d00ff098e60aa97ef4e57; domain=.recurly.local; path=/; HttpOnly
764
818
  body: |
765
819
  <?xml version="1.0" encoding="UTF-8"?>
766
820
  <plan>
@@ -769,42 +823,20 @@
769
823
  <description></description>
770
824
  <success_url></success_url>
771
825
  <cancel_url></cancel_url>
772
- <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
773
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
826
+ <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
827
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
774
828
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
775
829
  <plan_interval_length type="integer">1</plan_interval_length>
776
830
  <plan_interval_unit>months</plan_interval_unit>
777
831
  <trial_interval_length type="integer">0</trial_interval_length>
778
832
  <trial_interval_unit>months</trial_interval_unit>
779
- <latest_version depreciated="true">
780
- <version type="integer">1</version>
781
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
782
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
783
- <plan_interval_length type="integer">1</plan_interval_length>
784
- <plan_interval_unit>months</plan_interval_unit>
785
- <trial_interval_length type="integer">0</trial_interval_length>
786
- <trial_interval_unit>months</trial_interval_unit>
787
- <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
788
- </latest_version>
789
- <add_ons type="array">
790
- <add_on>
791
- <add_on_code>special</add_on_code>
792
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
793
- <default_quantity>1</default_quantity>
794
- </add_on>
795
- <add_on>
796
- <add_on_code>special2</add_on_code>
797
- <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
798
- <default_quantity>1</default_quantity>
799
- </add_on>
800
- </add_ons>
801
833
  </plan>
802
834
 
803
835
  http_version: "1.1"
804
836
  - !ruby/struct:VCR::HTTPInteraction
805
837
  request: !ruby/struct:VCR::Request
806
838
  method: :post
807
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-1-1301979678/subscription.xml
839
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-list-num-1-1301979678/subscription.xml
808
840
  body: |
809
841
  <?xml version="1.0" encoding="UTF-8"?>
810
842
  <subscription>
@@ -836,8 +868,8 @@
836
868
  <username type="yaml" nil="true"></username>
837
869
  <balance-in-cents type="integer">0</balance-in-cents>
838
870
  <closed type="boolean">false</closed>
839
- <hosted-login-token>b5a9d2dd1961419f9b5a3c138e5983bc</hosted-login-token>
840
- <created-at type="datetime">2011-04-05T19:37:41Z</created-at>
871
+ <hosted-login-token>711f7cf6bbed4dec9585fb31197070f5</hosted-login-token>
872
+ <created-at type="datetime">2011-04-21T17:57:07Z</created-at>
841
873
  <state>active</state>
842
874
  </account>
843
875
  <addons type="array"/>
@@ -845,34 +877,36 @@
845
877
 
846
878
  headers:
847
879
  authorization:
848
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
880
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
881
+ user-agent:
882
+ - Recurly Ruby Client v0.4.6
849
883
  content-type:
850
884
  - application/xml
851
885
  accept:
852
886
  - "*/*"
853
- user-agent:
854
- - Ruby
855
887
  connection:
856
888
  - close
857
889
  response: !ruby/struct:VCR::Response
858
890
  status: !ruby/struct:VCR::ResponseStatus
859
891
  code: 201
860
- message: Created
892
+ message: "Created "
861
893
  headers:
862
894
  cache-control:
863
895
  - no-cache
864
896
  x-runtime:
865
- - "3937"
897
+ - "2860"
866
898
  content-type:
867
899
  - application/xml; charset=utf-8
868
900
  content-length:
869
- - "905"
870
- set-cookie:
871
- - _recurly_session=4d7d2b7cbe37b9b3873c044115e03e14; domain=.recurly.local; path=/; HttpOnly
901
+ - "967"
902
+ server:
903
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
904
+ date:
905
+ - Thu, 21 Apr 2011 17:58:10 GMT
872
906
  connection:
873
907
  - close
874
- server:
875
- - thin 1.2.7 codename No Hup
908
+ set-cookie:
909
+ - _recurly_session=7f60ee05daaa70950b821337f6bf5bde; domain=.recurly.local; path=/; HttpOnly
876
910
  body: |
877
911
  <?xml version="1.0" encoding="UTF-8"?>
878
912
  <subscription>
@@ -884,12 +918,13 @@
884
918
  </plan>
885
919
  <state>active</state>
886
920
  <quantity type="integer">1</quantity>
887
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
888
- <activated_at type="datetime">2011-04-05T19:38:12Z</activated_at>
921
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
922
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
923
+ <activated_at type="datetime">2011-04-21T17:58:07Z</activated_at>
889
924
  <canceled_at nil="true" type="datetime"></canceled_at>
890
925
  <expires_at nil="true" type="datetime"></expires_at>
891
- <current_period_started_at type="datetime">2011-04-05T19:38:12Z</current_period_started_at>
892
- <current_period_ends_at type="datetime">2011-05-05T19:38:12Z</current_period_ends_at>
926
+ <current_period_started_at type="datetime">2011-04-21T17:58:07Z</current_period_started_at>
927
+ <current_period_ends_at type="datetime">2011-05-21T17:58:07Z</current_period_ends_at>
893
928
  <trial_started_at nil="true" type="datetime"></trial_started_at>
894
929
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
895
930
  <add_ons type="array">
@@ -900,40 +935,42 @@
900
935
  - !ruby/struct:VCR::HTTPInteraction
901
936
  request: !ruby/struct:VCR::Request
902
937
  method: :get
903
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
938
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
904
939
  body:
905
940
  headers:
906
941
  authorization:
907
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
942
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
943
+ user-agent:
944
+ - Recurly Ruby Client v0.4.6
908
945
  accept:
909
946
  - application/xml
910
947
  accept-encoding:
911
948
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
912
- user-agent:
913
- - Ruby
914
949
  connection:
915
950
  - close
916
951
  response: !ruby/struct:VCR::Response
917
952
  status: !ruby/struct:VCR::ResponseStatus
918
953
  code: 200
919
- message: OK
954
+ message: "OK "
920
955
  headers:
921
956
  x-runtime:
922
- - "434"
957
+ - "229"
923
958
  content-type:
924
959
  - application/xml; charset=utf-8
925
960
  etag:
926
- - "\"eea146faf9def8e0ad1bce0a43411f13\""
961
+ - "\"3888306c167f105a4e165433ee427264\""
927
962
  cache-control:
928
963
  - private, max-age=0, must-revalidate
929
964
  content-length:
930
- - "1558"
931
- set-cookie:
932
- - _recurly_session=120f3c96b848a3e3ae30d2ea27dcbaa6; domain=.recurly.local; path=/; HttpOnly
965
+ - "612"
966
+ server:
967
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
968
+ date:
969
+ - Thu, 21 Apr 2011 17:58:11 GMT
933
970
  connection:
934
971
  - close
935
- server:
936
- - thin 1.2.7 codename No Hup
972
+ set-cookie:
973
+ - _recurly_session=95d2ce6a0f255a7ee371a4e00b9e6c6b; domain=.recurly.local; path=/; HttpOnly
937
974
  body: |
938
975
  <?xml version="1.0" encoding="UTF-8"?>
939
976
  <plan>
@@ -942,42 +979,20 @@
942
979
  <description></description>
943
980
  <success_url></success_url>
944
981
  <cancel_url></cancel_url>
945
- <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
946
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
982
+ <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
983
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
947
984
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
948
985
  <plan_interval_length type="integer">1</plan_interval_length>
949
986
  <plan_interval_unit>months</plan_interval_unit>
950
987
  <trial_interval_length type="integer">0</trial_interval_length>
951
988
  <trial_interval_unit>months</trial_interval_unit>
952
- <latest_version depreciated="true">
953
- <version type="integer">1</version>
954
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
955
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
956
- <plan_interval_length type="integer">1</plan_interval_length>
957
- <plan_interval_unit>months</plan_interval_unit>
958
- <trial_interval_length type="integer">0</trial_interval_length>
959
- <trial_interval_unit>months</trial_interval_unit>
960
- <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
961
- </latest_version>
962
- <add_ons type="array">
963
- <add_on>
964
- <add_on_code>special</add_on_code>
965
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
966
- <default_quantity>1</default_quantity>
967
- </add_on>
968
- <add_on>
969
- <add_on_code>special2</add_on_code>
970
- <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
971
- <default_quantity>1</default_quantity>
972
- </add_on>
973
- </add_ons>
974
989
  </plan>
975
990
 
976
991
  http_version: "1.1"
977
992
  - !ruby/struct:VCR::HTTPInteraction
978
993
  request: !ruby/struct:VCR::Request
979
994
  method: :post
980
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-2-1301979678/subscription.xml
995
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-list-num-2-1301979678/subscription.xml
981
996
  body: |
982
997
  <?xml version="1.0" encoding="UTF-8"?>
983
998
  <subscription>
@@ -1009,8 +1024,8 @@
1009
1024
  <username type="yaml" nil="true"></username>
1010
1025
  <balance-in-cents type="integer">0</balance-in-cents>
1011
1026
  <closed type="boolean">false</closed>
1012
- <hosted-login-token>94fb5cd8f32d4f748da4f60ba2e9c0e4</hosted-login-token>
1013
- <created-at type="datetime">2011-04-05T19:37:43Z</created-at>
1027
+ <hosted-login-token>d1159d3e1b0d4bf5bf2f8db5c7f5776f</hosted-login-token>
1028
+ <created-at type="datetime">2011-04-21T17:57:09Z</created-at>
1014
1029
  <state>active</state>
1015
1030
  </account>
1016
1031
  <addons type="array"/>
@@ -1018,34 +1033,36 @@
1018
1033
 
1019
1034
  headers:
1020
1035
  authorization:
1021
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1036
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
1037
+ user-agent:
1038
+ - Recurly Ruby Client v0.4.6
1022
1039
  content-type:
1023
1040
  - application/xml
1024
1041
  accept:
1025
1042
  - "*/*"
1026
- user-agent:
1027
- - Ruby
1028
1043
  connection:
1029
1044
  - close
1030
1045
  response: !ruby/struct:VCR::Response
1031
1046
  status: !ruby/struct:VCR::ResponseStatus
1032
1047
  code: 201
1033
- message: Created
1048
+ message: "Created "
1034
1049
  headers:
1035
1050
  cache-control:
1036
1051
  - no-cache
1037
1052
  x-runtime:
1038
- - "3942"
1053
+ - "3653"
1039
1054
  content-type:
1040
1055
  - application/xml; charset=utf-8
1041
1056
  content-length:
1042
- - "905"
1043
- set-cookie:
1044
- - _recurly_session=ba65c683fcff77125b6de47e8211595d; domain=.recurly.local; path=/; HttpOnly
1057
+ - "967"
1058
+ server:
1059
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
1060
+ date:
1061
+ - Thu, 21 Apr 2011 17:58:17 GMT
1045
1062
  connection:
1046
1063
  - close
1047
- server:
1048
- - thin 1.2.7 codename No Hup
1064
+ set-cookie:
1065
+ - _recurly_session=a56ee6e5a66697600700f6eaed433b0e; domain=.recurly.local; path=/; HttpOnly
1049
1066
  body: |
1050
1067
  <?xml version="1.0" encoding="UTF-8"?>
1051
1068
  <subscription>
@@ -1057,12 +1074,13 @@
1057
1074
  </plan>
1058
1075
  <state>active</state>
1059
1076
  <quantity type="integer">1</quantity>
1060
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
1061
- <activated_at type="datetime">2011-04-05T19:38:20Z</activated_at>
1077
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
1078
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
1079
+ <activated_at type="datetime">2011-04-21T17:58:14Z</activated_at>
1062
1080
  <canceled_at nil="true" type="datetime"></canceled_at>
1063
1081
  <expires_at nil="true" type="datetime"></expires_at>
1064
- <current_period_started_at type="datetime">2011-04-05T19:38:20Z</current_period_started_at>
1065
- <current_period_ends_at type="datetime">2011-05-05T19:38:20Z</current_period_ends_at>
1082
+ <current_period_started_at type="datetime">2011-04-21T17:58:14Z</current_period_started_at>
1083
+ <current_period_ends_at type="datetime">2011-05-21T17:58:14Z</current_period_ends_at>
1066
1084
  <trial_started_at nil="true" type="datetime"></trial_started_at>
1067
1085
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
1068
1086
  <add_ons type="array">
@@ -1073,40 +1091,42 @@
1073
1091
  - !ruby/struct:VCR::HTTPInteraction
1074
1092
  request: !ruby/struct:VCR::Request
1075
1093
  method: :get
1076
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
1094
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
1077
1095
  body:
1078
1096
  headers:
1079
1097
  authorization:
1080
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1098
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
1099
+ user-agent:
1100
+ - Recurly Ruby Client v0.4.6
1081
1101
  accept:
1082
1102
  - application/xml
1083
1103
  accept-encoding:
1084
1104
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1085
- user-agent:
1086
- - Ruby
1087
1105
  connection:
1088
1106
  - close
1089
1107
  response: !ruby/struct:VCR::Response
1090
1108
  status: !ruby/struct:VCR::ResponseStatus
1091
1109
  code: 200
1092
- message: OK
1110
+ message: "OK "
1093
1111
  headers:
1094
1112
  x-runtime:
1095
- - "353"
1113
+ - "262"
1096
1114
  content-type:
1097
1115
  - application/xml; charset=utf-8
1098
1116
  etag:
1099
- - "\"eea146faf9def8e0ad1bce0a43411f13\""
1117
+ - "\"3888306c167f105a4e165433ee427264\""
1100
1118
  cache-control:
1101
1119
  - private, max-age=0, must-revalidate
1102
1120
  content-length:
1103
- - "1558"
1104
- set-cookie:
1105
- - _recurly_session=575a2265bdf5d09ef5b6f06e5e06314b; domain=.recurly.local; path=/; HttpOnly
1121
+ - "612"
1122
+ server:
1123
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
1124
+ date:
1125
+ - Thu, 21 Apr 2011 17:58:18 GMT
1106
1126
  connection:
1107
1127
  - close
1108
- server:
1109
- - thin 1.2.7 codename No Hup
1128
+ set-cookie:
1129
+ - _recurly_session=3a55db4019218423fae79db53a848c8e; domain=.recurly.local; path=/; HttpOnly
1110
1130
  body: |
1111
1131
  <?xml version="1.0" encoding="UTF-8"?>
1112
1132
  <plan>
@@ -1115,42 +1135,20 @@
1115
1135
  <description></description>
1116
1136
  <success_url></success_url>
1117
1137
  <cancel_url></cancel_url>
1118
- <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
1119
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
1138
+ <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
1139
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
1120
1140
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
1121
1141
  <plan_interval_length type="integer">1</plan_interval_length>
1122
1142
  <plan_interval_unit>months</plan_interval_unit>
1123
1143
  <trial_interval_length type="integer">0</trial_interval_length>
1124
1144
  <trial_interval_unit>months</trial_interval_unit>
1125
- <latest_version depreciated="true">
1126
- <version type="integer">1</version>
1127
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
1128
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
1129
- <plan_interval_length type="integer">1</plan_interval_length>
1130
- <plan_interval_unit>months</plan_interval_unit>
1131
- <trial_interval_length type="integer">0</trial_interval_length>
1132
- <trial_interval_unit>months</trial_interval_unit>
1133
- <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
1134
- </latest_version>
1135
- <add_ons type="array">
1136
- <add_on>
1137
- <add_on_code>special</add_on_code>
1138
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
1139
- <default_quantity>1</default_quantity>
1140
- </add_on>
1141
- <add_on>
1142
- <add_on_code>special2</add_on_code>
1143
- <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
1144
- <default_quantity>1</default_quantity>
1145
- </add_on>
1146
- </add_ons>
1147
1145
  </plan>
1148
1146
 
1149
1147
  http_version: "1.1"
1150
1148
  - !ruby/struct:VCR::HTTPInteraction
1151
1149
  request: !ruby/struct:VCR::Request
1152
1150
  method: :post
1153
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/account-list-num-3-1301979678/subscription.xml
1151
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/account-list-num-3-1301979678/subscription.xml
1154
1152
  body: |
1155
1153
  <?xml version="1.0" encoding="UTF-8"?>
1156
1154
  <subscription>
@@ -1182,8 +1180,8 @@
1182
1180
  <username type="yaml" nil="true"></username>
1183
1181
  <balance-in-cents type="integer">0</balance-in-cents>
1184
1182
  <closed type="boolean">false</closed>
1185
- <hosted-login-token>741a657c0d964154aed3907effb6e839</hosted-login-token>
1186
- <created-at type="datetime">2011-04-05T19:37:46Z</created-at>
1183
+ <hosted-login-token>54c3a0f555e34ee8bbe9c4e98b31bffa</hosted-login-token>
1184
+ <created-at type="datetime">2011-04-21T17:57:11Z</created-at>
1187
1185
  <state>active</state>
1188
1186
  </account>
1189
1187
  <addons type="array"/>
@@ -1191,34 +1189,36 @@
1191
1189
 
1192
1190
  headers:
1193
1191
  authorization:
1194
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1192
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
1193
+ user-agent:
1194
+ - Recurly Ruby Client v0.4.6
1195
1195
  content-type:
1196
1196
  - application/xml
1197
1197
  accept:
1198
1198
  - "*/*"
1199
- user-agent:
1200
- - Ruby
1201
1199
  connection:
1202
1200
  - close
1203
1201
  response: !ruby/struct:VCR::Response
1204
1202
  status: !ruby/struct:VCR::ResponseStatus
1205
1203
  code: 201
1206
- message: Created
1204
+ message: "Created "
1207
1205
  headers:
1208
1206
  cache-control:
1209
1207
  - no-cache
1210
1208
  x-runtime:
1211
- - "4079"
1209
+ - "4411"
1212
1210
  content-type:
1213
1211
  - application/xml; charset=utf-8
1214
1212
  content-length:
1215
- - "905"
1216
- set-cookie:
1217
- - _recurly_session=fbc91cd417a690db4dca5ee594371157; domain=.recurly.local; path=/; HttpOnly
1213
+ - "967"
1214
+ server:
1215
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
1216
+ date:
1217
+ - Thu, 21 Apr 2011 17:58:25 GMT
1218
1218
  connection:
1219
1219
  - close
1220
- server:
1221
- - thin 1.2.7 codename No Hup
1220
+ set-cookie:
1221
+ - _recurly_session=8e7d285a3cc2b6373e6faf5794752178; domain=.recurly.local; path=/; HttpOnly
1222
1222
  body: |
1223
1223
  <?xml version="1.0" encoding="UTF-8"?>
1224
1224
  <subscription>
@@ -1230,12 +1230,13 @@
1230
1230
  </plan>
1231
1231
  <state>active</state>
1232
1232
  <quantity type="integer">1</quantity>
1233
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
1234
- <activated_at type="datetime">2011-04-05T19:38:28Z</activated_at>
1233
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
1234
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
1235
+ <activated_at type="datetime">2011-04-21T17:58:22Z</activated_at>
1235
1236
  <canceled_at nil="true" type="datetime"></canceled_at>
1236
1237
  <expires_at nil="true" type="datetime"></expires_at>
1237
- <current_period_started_at type="datetime">2011-04-05T19:38:28Z</current_period_started_at>
1238
- <current_period_ends_at type="datetime">2011-05-05T19:38:28Z</current_period_ends_at>
1238
+ <current_period_started_at type="datetime">2011-04-21T17:58:22Z</current_period_started_at>
1239
+ <current_period_ends_at type="datetime">2011-05-21T17:58:22Z</current_period_ends_at>
1239
1240
  <trial_started_at nil="true" type="datetime"></trial_started_at>
1240
1241
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
1241
1242
  <add_ons type="array">
@@ -1246,26 +1247,26 @@
1246
1247
  - !ruby/struct:VCR::HTTPInteraction
1247
1248
  request: !ruby/struct:VCR::Request
1248
1249
  method: :get
1249
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml
1250
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
1250
1251
  body:
1251
1252
  headers:
1252
1253
  authorization:
1253
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1254
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
1255
+ user-agent:
1256
+ - Recurly Ruby Client v0.4.6
1254
1257
  accept:
1255
1258
  - application/xml
1256
1259
  accept-encoding:
1257
1260
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1258
- user-agent:
1259
- - Ruby
1260
1261
  connection:
1261
1262
  - close
1262
1263
  response: !ruby/struct:VCR::Response
1263
1264
  status: !ruby/struct:VCR::ResponseStatus
1264
1265
  code: 200
1265
- message: OK
1266
+ message: "OK "
1266
1267
  headers:
1267
1268
  x-runtime:
1268
- - "360"
1269
+ - "460"
1269
1270
  content-type:
1270
1271
  - application/xml; charset=utf-8
1271
1272
  etag:
@@ -1274,12 +1275,14 @@
1274
1275
  - private, max-age=0, must-revalidate
1275
1276
  content-length:
1276
1277
  - "3729"
1277
- set-cookie:
1278
- - _recurly_session=de6f076e9c5eb3f9fe835cfe44648514; domain=.recurly.local; path=/; HttpOnly
1278
+ server:
1279
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
1280
+ date:
1281
+ - Thu, 21 Apr 2011 17:58:27 GMT
1279
1282
  connection:
1280
1283
  - close
1281
- server:
1282
- - thin 1.2.7 codename No Hup
1284
+ set-cookie:
1285
+ - _recurly_session=e8894d2faf15913f4896d82a3fe1c077; domain=.recurly.local; path=/; HttpOnly
1283
1286
  body: |
1284
1287
  <?xml version="1.0" encoding="UTF-8"?>
1285
1288
  <accounts type="collection">
@@ -1391,26 +1394,26 @@
1391
1394
  - !ruby/struct:VCR::HTTPInteraction
1392
1395
  request: !ruby/struct:VCR::Request
1393
1396
  method: :get
1394
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml?show=active_subscribers
1397
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml?show=active_subscribers
1395
1398
  body:
1396
1399
  headers:
1397
1400
  authorization:
1398
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1401
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
1402
+ user-agent:
1403
+ - Recurly Ruby Client v0.4.6
1399
1404
  accept:
1400
1405
  - application/xml
1401
1406
  accept-encoding:
1402
1407
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1403
- user-agent:
1404
- - Ruby
1405
1408
  connection:
1406
1409
  - close
1407
1410
  response: !ruby/struct:VCR::Response
1408
1411
  status: !ruby/struct:VCR::ResponseStatus
1409
1412
  code: 200
1410
- message: OK
1413
+ message: "OK "
1411
1414
  headers:
1412
1415
  x-runtime:
1413
- - "86"
1416
+ - "379"
1414
1417
  content-type:
1415
1418
  - application/xml; charset=utf-8
1416
1419
  etag:
@@ -1419,12 +1422,14 @@
1419
1422
  - private, max-age=0, must-revalidate
1420
1423
  content-length:
1421
1424
  - "1519"
1422
- set-cookie:
1423
- - _recurly_session=b589ccb308973d05926421d3006a5dfd; domain=.recurly.local; path=/; HttpOnly
1425
+ server:
1426
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
1427
+ date:
1428
+ - Thu, 21 Apr 2011 17:58:29 GMT
1424
1429
  connection:
1425
1430
  - close
1426
- server:
1427
- - thin 1.2.7 codename No Hup
1431
+ set-cookie:
1432
+ - _recurly_session=cf191425dcd587a95cca75e92cc97580; domain=.recurly.local; path=/; HttpOnly
1428
1433
  body: |
1429
1434
  <?xml version="1.0" encoding="UTF-8"?>
1430
1435
  <accounts type="collection">
@@ -1473,26 +1478,26 @@
1473
1478
  - !ruby/struct:VCR::HTTPInteraction
1474
1479
  request: !ruby/struct:VCR::Request
1475
1480
  method: :get
1476
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts.xml?show=non_subscribers
1481
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml?show=non_subscribers
1477
1482
  body:
1478
1483
  headers:
1479
1484
  authorization:
1480
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
1485
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
1486
+ user-agent:
1487
+ - Recurly Ruby Client v0.4.6
1481
1488
  accept:
1482
1489
  - application/xml
1483
1490
  accept-encoding:
1484
1491
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1485
- user-agent:
1486
- - Ruby
1487
1492
  connection:
1488
1493
  - close
1489
1494
  response: !ruby/struct:VCR::Response
1490
1495
  status: !ruby/struct:VCR::ResponseStatus
1491
1496
  code: 200
1492
- message: OK
1497
+ message: "OK "
1493
1498
  headers:
1494
1499
  x-runtime:
1495
- - "76"
1500
+ - "231"
1496
1501
  content-type:
1497
1502
  - application/xml; charset=utf-8
1498
1503
  etag:
@@ -1501,12 +1506,14 @@
1501
1506
  - private, max-age=0, must-revalidate
1502
1507
  content-length:
1503
1508
  - "2428"
1504
- set-cookie:
1505
- - _recurly_session=af6528d77ac848ac7302cef27052ec62; domain=.recurly.local; path=/; HttpOnly
1509
+ server:
1510
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
1511
+ date:
1512
+ - Thu, 21 Apr 2011 17:58:32 GMT
1506
1513
  connection:
1507
1514
  - close
1508
- server:
1509
- - thin 1.2.7 codename No Hup
1515
+ set-cookie:
1516
+ - _recurly_session=5c06fc7821206c275f86c5fe8435ea4e; domain=.recurly.local; path=/; HttpOnly
1510
1517
  body: |
1511
1518
  <?xml version="1.0" encoding="UTF-8"?>
1512
1519
  <accounts type="collection">