recurly 0.4.7 → 0.4.8

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

Potentially problematic release.


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

Files changed (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -0,0 +1,225 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <plan>
9
+ <plan-code>test_1296674173</plan-code>
10
+ <name>Test Plan 1296674173</name>
11
+ <unit-amount-in-cents type="integer">100</unit-amount-in-cents>
12
+ <plan-interval-length type="integer">1</plan-interval-length>
13
+ <plan-interval-unit>months</plan-interval-unit>
14
+ <trial-interval-length type="integer">0</trial-interval-length>
15
+ <trial-interval-unit>months</trial-interval-unit>
16
+ </plan>
17
+
18
+ headers:
19
+ authorization:
20
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
21
+ content-type:
22
+ - application/xml
23
+ accept:
24
+ - "*/*"
25
+ user-agent:
26
+ - Ruby
27
+ connection:
28
+ - close
29
+ response: !ruby/struct:VCR::Response
30
+ status: !ruby/struct:VCR::ResponseStatus
31
+ code: 201
32
+ message: "Created "
33
+ headers:
34
+ cache-control:
35
+ - no-cache
36
+ location:
37
+ - http://litle-test.recurly.local:3000/company/plans/test_1296674173
38
+ x-runtime:
39
+ - "241"
40
+ content-type:
41
+ - application/xml; charset=utf-8
42
+ content-length:
43
+ - "1175"
44
+ server:
45
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
46
+ date:
47
+ - Thu, 03 Feb 2011 22:21:01 GMT
48
+ connection:
49
+ - close
50
+ set-cookie:
51
+ - _recurly_session=78095201d25b7997c5a4f115c528d8b9; domain=.recurly.local; path=/; HttpOnly
52
+ body: |
53
+ <?xml version="1.0" encoding="UTF-8"?>
54
+ <plan>
55
+ <plan_code>test_1296674173</plan_code>
56
+ <name>Test Plan 1296674173</name>
57
+ <description></description>
58
+ <success_url></success_url>
59
+ <cancel_url></cancel_url>
60
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
61
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
62
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
63
+ <plan_interval_length type="integer">1</plan_interval_length>
64
+ <plan_interval_unit>months</plan_interval_unit>
65
+ <trial_interval_length type="integer">0</trial_interval_length>
66
+ <trial_interval_unit>months</trial_interval_unit>
67
+ <latest_version depreciated="true">
68
+ <version type="integer">1</version>
69
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
70
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
71
+ <plan_interval_length type="integer">1</plan_interval_length>
72
+ <plan_interval_unit>months</plan_interval_unit>
73
+ <trial_interval_length type="integer">0</trial_interval_length>
74
+ <trial_interval_unit>months</trial_interval_unit>
75
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
76
+ </latest_version>
77
+ </plan>
78
+
79
+ http_version: "1.1"
80
+ - !ruby/struct:VCR::HTTPInteraction
81
+ request: !ruby/struct:VCR::Request
82
+ method: :get
83
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
84
+ body:
85
+ headers:
86
+ authorization:
87
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
88
+ accept:
89
+ - application/xml
90
+ accept-encoding:
91
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
92
+ user-agent:
93
+ - Ruby
94
+ connection:
95
+ - close
96
+ response: !ruby/struct:VCR::Response
97
+ status: !ruby/struct:VCR::ResponseStatus
98
+ code: 200
99
+ message: "OK "
100
+ headers:
101
+ x-runtime:
102
+ - "204"
103
+ content-type:
104
+ - application/xml; charset=utf-8
105
+ etag:
106
+ - "\"849df91f38a22728cb40a45a0e77cddd\""
107
+ cache-control:
108
+ - private, max-age=0, must-revalidate
109
+ content-length:
110
+ - "1175"
111
+ server:
112
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
113
+ date:
114
+ - Thu, 03 Feb 2011 22:21:03 GMT
115
+ connection:
116
+ - close
117
+ set-cookie:
118
+ - _recurly_session=c677cb9861276bca2f1797f643394bc0; domain=.recurly.local; path=/; HttpOnly
119
+ body: |
120
+ <?xml version="1.0" encoding="UTF-8"?>
121
+ <plan>
122
+ <plan_code>test_1296674173</plan_code>
123
+ <name>Test Plan 1296674173</name>
124
+ <description></description>
125
+ <success_url></success_url>
126
+ <cancel_url></cancel_url>
127
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
128
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
129
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
130
+ <plan_interval_length type="integer">1</plan_interval_length>
131
+ <plan_interval_unit>months</plan_interval_unit>
132
+ <trial_interval_length type="integer">0</trial_interval_length>
133
+ <trial_interval_unit>months</trial_interval_unit>
134
+ <latest_version depreciated="true">
135
+ <version type="integer">1</version>
136
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
137
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
138
+ <plan_interval_length type="integer">1</plan_interval_length>
139
+ <plan_interval_unit>months</plan_interval_unit>
140
+ <trial_interval_length type="integer">0</trial_interval_length>
141
+ <trial_interval_unit>months</trial_interval_unit>
142
+ <created_at type="datetime">2011-02-03T22:21:01Z</created_at>
143
+ </latest_version>
144
+ </plan>
145
+
146
+ http_version: "1.1"
147
+ - !ruby/struct:VCR::HTTPInteraction
148
+ request: !ruby/struct:VCR::Request
149
+ method: :delete
150
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
151
+ body:
152
+ headers:
153
+ authorization:
154
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
155
+ accept:
156
+ - application/xml
157
+ user-agent:
158
+ - Ruby
159
+ connection:
160
+ - close
161
+ response: !ruby/struct:VCR::Response
162
+ status: !ruby/struct:VCR::ResponseStatus
163
+ code: 200
164
+ message: "OK "
165
+ headers:
166
+ cache-control:
167
+ - no-cache
168
+ x-runtime:
169
+ - "263"
170
+ content-type:
171
+ - application/xml; charset=utf-8
172
+ content-length:
173
+ - "1"
174
+ server:
175
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
176
+ date:
177
+ - Thu, 03 Feb 2011 22:21:05 GMT
178
+ connection:
179
+ - close
180
+ set-cookie:
181
+ - _recurly_session=234ace3f7cbd18aa9ce06a3c30a08685; domain=.recurly.local; path=/; HttpOnly
182
+ body: " "
183
+ http_version: "1.1"
184
+ - !ruby/struct:VCR::HTTPInteraction
185
+ request: !ruby/struct:VCR::Request
186
+ method: :get
187
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/test_1296674173.xml
188
+ body:
189
+ headers:
190
+ authorization:
191
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
192
+ accept:
193
+ - application/xml
194
+ accept-encoding:
195
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
196
+ user-agent:
197
+ - Ruby
198
+ connection:
199
+ - close
200
+ response: !ruby/struct:VCR::Response
201
+ status: !ruby/struct:VCR::ResponseStatus
202
+ code: 404
203
+ message: "Not Found "
204
+ headers:
205
+ cache-control:
206
+ - no-cache
207
+ content-type:
208
+ - application/xml; charset=utf-8
209
+ content-length:
210
+ - "90"
211
+ server:
212
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
213
+ date:
214
+ - Thu, 03 Feb 2011 22:21:07 GMT
215
+ connection:
216
+ - close
217
+ set-cookie:
218
+ - _recurly_session=f3e2b534bf89931ddddb9c231594c4b6; domain=.recurly.local; path=/; HttpOnly
219
+ body: |
220
+ <?xml version="1.0" encoding="UTF-8"?>
221
+ <errors>
222
+ <error>Plan not found</error>
223
+ </errors>
224
+
225
+ http_version: "1.1"
@@ -2,17 +2,17 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
6
6
  body:
7
7
  headers:
8
8
  authorization:
9
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
10
- user-agent:
11
- - Recurly Ruby Client v0.4.6
9
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
12
10
  accept:
13
11
  - application/xml
14
12
  accept-encoding:
15
13
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ user-agent:
15
+ - Ruby
16
16
  connection:
17
17
  - close
18
18
  response: !ruby/struct:VCR::Response
@@ -21,23 +21,23 @@
21
21
  message: "OK "
22
22
  headers:
23
23
  x-runtime:
24
- - "119"
24
+ - "70"
25
25
  content-type:
26
26
  - application/xml; charset=utf-8
27
27
  etag:
28
- - "\"3888306c167f105a4e165433ee427264\""
28
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
29
29
  cache-control:
30
30
  - private, max-age=0, must-revalidate
31
31
  content-length:
32
- - "612"
32
+ - "1150"
33
33
  server:
34
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
34
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
35
35
  date:
36
- - Thu, 21 Apr 2011 18:02:18 GMT
36
+ - Thu, 03 Feb 2011 22:20:48 GMT
37
37
  connection:
38
38
  - close
39
39
  set-cookie:
40
- - _recurly_session=c9bce4e0b5b64ca8158fb52d7f78586c; domain=.recurly.local; path=/; HttpOnly
40
+ - _recurly_session=06b515611cfae5c612449ba7b7c063b1; domain=.recurly.local; path=/; HttpOnly
41
41
  body: |
42
42
  <?xml version="1.0" encoding="UTF-8"?>
43
43
  <plan>
@@ -46,30 +46,40 @@
46
46
  <description></description>
47
47
  <success_url></success_url>
48
48
  <cancel_url></cancel_url>
49
- <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
50
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
49
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
50
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
51
51
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
52
52
  <plan_interval_length type="integer">1</plan_interval_length>
53
53
  <plan_interval_unit>months</plan_interval_unit>
54
54
  <trial_interval_length type="integer">0</trial_interval_length>
55
55
  <trial_interval_unit>months</trial_interval_unit>
56
+ <latest_version depreciated="true">
57
+ <version type="integer">1</version>
58
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
59
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
60
+ <plan_interval_length type="integer">1</plan_interval_length>
61
+ <plan_interval_unit>months</plan_interval_unit>
62
+ <trial_interval_length type="integer">0</trial_interval_length>
63
+ <trial_interval_unit>months</trial_interval_unit>
64
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
65
+ </latest_version>
56
66
  </plan>
57
67
 
58
68
  http_version: "1.1"
59
69
  - !ruby/struct:VCR::HTTPInteraction
60
70
  request: !ruby/struct:VCR::Request
61
71
  method: :get
62
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/trial.xml
72
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/trial.xml
63
73
  body:
64
74
  headers:
65
75
  authorization:
66
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
67
- user-agent:
68
- - Recurly Ruby Client v0.4.6
76
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
69
77
  accept:
70
78
  - application/xml
71
79
  accept-encoding:
72
80
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
81
+ user-agent:
82
+ - Ruby
73
83
  connection:
74
84
  - close
75
85
  response: !ruby/struct:VCR::Response
@@ -78,23 +88,23 @@
78
88
  message: "OK "
79
89
  headers:
80
90
  x-runtime:
81
- - "237"
91
+ - "268"
82
92
  content-type:
83
93
  - application/xml; charset=utf-8
84
94
  etag:
85
- - "\"5ff014c14e985410c6f77ef565d7553b\""
95
+ - "\"1c3543a74edbf6c1e0257022eb26ce10\""
86
96
  cache-control:
87
97
  - private, max-age=0, must-revalidate
88
98
  content-length:
89
- - "614"
99
+ - "1152"
90
100
  server:
91
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
101
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
92
102
  date:
93
- - Thu, 21 Apr 2011 18:02:20 GMT
103
+ - Thu, 03 Feb 2011 22:20:50 GMT
94
104
  connection:
95
105
  - close
96
106
  set-cookie:
97
- - _recurly_session=ae938c7b01bdbb998b399e21e81868f6; domain=.recurly.local; path=/; HttpOnly
107
+ - _recurly_session=38c960e386b133aa9b7a5c20c91bc2d3; domain=.recurly.local; path=/; HttpOnly
98
108
  body: |
99
109
  <?xml version="1.0" encoding="UTF-8"?>
100
110
  <plan>
@@ -103,30 +113,40 @@
103
113
  <description></description>
104
114
  <success_url></success_url>
105
115
  <cancel_url></cancel_url>
106
- <created_at type="datetime">2011-04-21T18:02:14Z</created_at>
107
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
116
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
117
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
108
118
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
109
119
  <plan_interval_length type="integer">1</plan_interval_length>
110
120
  <plan_interval_unit>months</plan_interval_unit>
111
121
  <trial_interval_length type="integer">1</trial_interval_length>
112
122
  <trial_interval_unit>months</trial_interval_unit>
123
+ <latest_version depreciated="true">
124
+ <version type="integer">1</version>
125
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
126
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
127
+ <plan_interval_length type="integer">1</plan_interval_length>
128
+ <plan_interval_unit>months</plan_interval_unit>
129
+ <trial_interval_length type="integer">1</trial_interval_length>
130
+ <trial_interval_unit>months</trial_interval_unit>
131
+ <created_at type="datetime">2011-02-02T21:10:36Z</created_at>
132
+ </latest_version>
113
133
  </plan>
114
134
 
115
135
  http_version: "1.1"
116
136
  - !ruby/struct:VCR::HTTPInteraction
117
137
  request: !ruby/struct:VCR::Request
118
138
  method: :get
119
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.xml
139
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
120
140
  body:
121
141
  headers:
122
142
  authorization:
123
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
124
- user-agent:
125
- - Recurly Ruby Client v0.4.6
143
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
126
144
  accept:
127
145
  - application/xml
128
146
  accept-encoding:
129
147
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
148
+ user-agent:
149
+ - Ruby
130
150
  connection:
131
151
  - close
132
152
  response: !ruby/struct:VCR::Response
@@ -135,23 +155,23 @@
135
155
  message: "OK "
136
156
  headers:
137
157
  x-runtime:
138
- - "81"
158
+ - "207"
139
159
  content-type:
140
160
  - application/xml; charset=utf-8
141
161
  etag:
142
- - "\"3888306c167f105a4e165433ee427264\""
162
+ - "\"70b5c605373b1a4346a2d7ed46048dc4\""
143
163
  cache-control:
144
164
  - private, max-age=0, must-revalidate
145
165
  content-length:
146
- - "612"
166
+ - "1150"
147
167
  server:
148
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
168
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
149
169
  date:
150
- - Thu, 21 Apr 2011 18:02:22 GMT
170
+ - Thu, 03 Feb 2011 22:20:52 GMT
151
171
  connection:
152
172
  - close
153
173
  set-cookie:
154
- - _recurly_session=c12af1990d39f2cda10e43fa5cc5ad60; domain=.recurly.local; path=/; HttpOnly
174
+ - _recurly_session=cfc756e17d3299cdd0822df8960ea032; domain=.recurly.local; path=/; HttpOnly
155
175
  body: |
156
176
  <?xml version="1.0" encoding="UTF-8"?>
157
177
  <plan>
@@ -160,13 +180,23 @@
160
180
  <description></description>
161
181
  <success_url></success_url>
162
182
  <cancel_url></cancel_url>
163
- <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
164
- <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
183
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
184
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
165
185
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
166
186
  <plan_interval_length type="integer">1</plan_interval_length>
167
187
  <plan_interval_unit>months</plan_interval_unit>
168
188
  <trial_interval_length type="integer">0</trial_interval_length>
169
189
  <trial_interval_unit>months</trial_interval_unit>
190
+ <latest_version depreciated="true">
191
+ <version type="integer">1</version>
192
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
193
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
194
+ <plan_interval_length type="integer">1</plan_interval_length>
195
+ <plan_interval_unit>months</plan_interval_unit>
196
+ <trial_interval_length type="integer">0</trial_interval_length>
197
+ <trial_interval_unit>months</trial_interval_unit>
198
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
199
+ </latest_version>
170
200
  </plan>
171
201
 
172
202
  http_version: "1.1"