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>
@@ -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/subscription-cancel-with-code-1301881900
41
41
  x-runtime:
42
- - "431"
42
+ - "427"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "613"
47
- set-cookie:
48
- - _recurly_session=cecfdef162cbd934da09da8914f3334e; 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 18:03:57 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=f58f6c7bf2737f45c5d98261e2056419; 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>ee0ae6ea12a9423f90ab6c7f526adf83</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:46:47Z</created_at>
67
+ <hosted_login_token>32d66ed28c8f4ac39a534616c120cce2</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:03:57Z</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/company/plans/paid.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/company/plans/paid.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
- - "396"
95
+ - "231"
94
96
  content-type:
95
97
  - application/xml; charset=utf-8
96
98
  etag:
97
- - "\"eea146faf9def8e0ad1bce0a43411f13\""
99
+ - "\"3888306c167f105a4e165433ee427264\""
98
100
  cache-control:
99
101
  - private, max-age=0, must-revalidate
100
102
  content-length:
101
- - "1558"
102
- set-cookie:
103
- - _recurly_session=8703443b56fdb02f4ebab8c92501f2b9; domain=.recurly.local; path=/; HttpOnly
103
+ - "612"
104
+ server:
105
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
106
+ date:
107
+ - Thu, 21 Apr 2011 18:03:59 GMT
104
108
  connection:
105
109
  - close
106
- server:
107
- - thin 1.2.7 codename No Hup
110
+ set-cookie:
111
+ - _recurly_session=e2c7c1013924065359326cb2f4bb5770; domain=.recurly.local; path=/; HttpOnly
108
112
  body: |
109
113
  <?xml version="1.0" encoding="UTF-8"?>
110
114
  <plan>
@@ -113,42 +117,20 @@
113
117
  <description></description>
114
118
  <success_url></success_url>
115
119
  <cancel_url></cancel_url>
116
- <created_at type="datetime">2011-04-03T21:46:48Z</created_at>
117
- <unit_amount_in_cents type="integer">200</unit_amount_in_cents>
120
+ <created_at type="datetime">2011-04-21T17:57:33Z</created_at>
121
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
118
122
  <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
119
123
  <plan_interval_length type="integer">1</plan_interval_length>
120
124
  <plan_interval_unit>months</plan_interval_unit>
121
125
  <trial_interval_length type="integer">0</trial_interval_length>
122
126
  <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">200</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">0</trial_interval_length>
130
- <trial_interval_unit>months</trial_interval_unit>
131
- <created_at type="datetime">2011-04-04T02:15:00Z</created_at>
132
- </latest_version>
133
- <add_ons type="array">
134
- <add_on>
135
- <add_on_code>special</add_on_code>
136
- <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
137
- <default_quantity>1</default_quantity>
138
- </add_on>
139
- <add_on>
140
- <add_on_code>special2</add_on_code>
141
- <default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
142
- <default_quantity>1</default_quantity>
143
- </add_on>
144
- </add_ons>
145
127
  </plan>
146
128
 
147
129
  http_version: "1.1"
148
130
  - !ruby/struct:VCR::HTTPInteraction
149
131
  request: !ruby/struct:VCR::Request
150
132
  method: :post
151
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
133
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
152
134
  body: |
153
135
  <?xml version="1.0" encoding="UTF-8"?>
154
136
  <subscription>
@@ -180,8 +162,8 @@
180
162
  <username type="yaml" nil="true"></username>
181
163
  <balance-in-cents type="integer">0</balance-in-cents>
182
164
  <closed type="boolean">false</closed>
183
- <hosted-login-token>ee0ae6ea12a9423f90ab6c7f526adf83</hosted-login-token>
184
- <created-at type="datetime">2011-04-05T19:46:47Z</created-at>
165
+ <hosted-login-token>32d66ed28c8f4ac39a534616c120cce2</hosted-login-token>
166
+ <created-at type="datetime">2011-04-21T18:03:57Z</created-at>
185
167
  <state>active</state>
186
168
  </account>
187
169
  <addons type="array"/>
@@ -189,34 +171,36 @@
189
171
 
190
172
  headers:
191
173
  authorization:
192
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
174
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
175
+ user-agent:
176
+ - Recurly Ruby Client v0.4.6
193
177
  content-type:
194
178
  - application/xml
195
179
  accept:
196
180
  - "*/*"
197
- user-agent:
198
- - Ruby
199
181
  connection:
200
182
  - close
201
183
  response: !ruby/struct:VCR::Response
202
184
  status: !ruby/struct:VCR::ResponseStatus
203
185
  code: 201
204
- message: Created
186
+ message: "Created "
205
187
  headers:
206
188
  cache-control:
207
189
  - no-cache
208
190
  x-runtime:
209
- - "4185"
191
+ - "3000"
210
192
  content-type:
211
193
  - application/xml; charset=utf-8
212
194
  content-length:
213
- - "927"
214
- set-cookie:
215
- - _recurly_session=c65efb717783f0b04a82576821c8cd56; domain=.recurly.local; path=/; HttpOnly
195
+ - "989"
196
+ server:
197
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
198
+ date:
199
+ - Thu, 21 Apr 2011 18:04:03 GMT
216
200
  connection:
217
201
  - close
218
- server:
219
- - thin 1.2.7 codename No Hup
202
+ set-cookie:
203
+ - _recurly_session=f738d9b76af59b553ff6e7d991f232a1; domain=.recurly.local; path=/; HttpOnly
220
204
  body: |
221
205
  <?xml version="1.0" encoding="UTF-8"?>
222
206
  <subscription>
@@ -228,12 +212,13 @@
228
212
  </plan>
229
213
  <state>active</state>
230
214
  <quantity type="integer">1</quantity>
231
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
232
- <activated_at type="datetime">2011-04-05T19:46:53Z</activated_at>
215
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
216
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
217
+ <activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
233
218
  <canceled_at nil="true" type="datetime"></canceled_at>
234
219
  <expires_at nil="true" type="datetime"></expires_at>
235
- <current_period_started_at type="datetime">2011-04-05T19:46:53Z</current_period_started_at>
236
- <current_period_ends_at type="datetime">2011-05-05T19:46:53Z</current_period_ends_at>
220
+ <current_period_started_at type="datetime">2011-04-21T18:04:01Z</current_period_started_at>
221
+ <current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
237
222
  <trial_started_at nil="true" type="datetime"></trial_started_at>
238
223
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
239
224
  <add_ons type="array">
@@ -244,40 +229,42 @@
244
229
  - !ruby/struct:VCR::HTTPInteraction
245
230
  request: !ruby/struct:VCR::Request
246
231
  method: :get
247
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
232
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
248
233
  body:
249
234
  headers:
250
235
  authorization:
251
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
236
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
237
+ user-agent:
238
+ - Recurly Ruby Client v0.4.6
252
239
  accept:
253
240
  - application/xml
254
241
  accept-encoding:
255
242
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
256
- user-agent:
257
- - Ruby
258
243
  connection:
259
244
  - close
260
245
  response: !ruby/struct:VCR::Response
261
246
  status: !ruby/struct:VCR::ResponseStatus
262
247
  code: 200
263
- message: OK
248
+ message: "OK "
264
249
  headers:
265
250
  x-runtime:
266
- - "421"
251
+ - "257"
267
252
  content-type:
268
253
  - application/xml; charset=utf-8
269
254
  etag:
270
- - "\"fbd090532ebd54243fecabb7bf7ba71b\""
255
+ - "\"4b7c45cbe293149c779b894c727df70f\""
271
256
  cache-control:
272
257
  - private, max-age=0, must-revalidate
273
258
  content-length:
274
- - "927"
275
- set-cookie:
276
- - _recurly_session=9714fb349bc9b2dddc755d7a088b8237; domain=.recurly.local; path=/; HttpOnly
259
+ - "989"
260
+ server:
261
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
262
+ date:
263
+ - Thu, 21 Apr 2011 18:04:05 GMT
277
264
  connection:
278
265
  - close
279
- server:
280
- - thin 1.2.7 codename No Hup
266
+ set-cookie:
267
+ - _recurly_session=b275513cd3d65343be0c74dcff0d5203; domain=.recurly.local; path=/; HttpOnly
281
268
  body: |
282
269
  <?xml version="1.0" encoding="UTF-8"?>
283
270
  <subscription>
@@ -289,12 +276,13 @@
289
276
  </plan>
290
277
  <state>active</state>
291
278
  <quantity type="integer">1</quantity>
292
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
293
- <activated_at type="datetime">2011-04-05T19:46:53Z</activated_at>
279
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
280
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
281
+ <activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
294
282
  <canceled_at nil="true" type="datetime"></canceled_at>
295
283
  <expires_at nil="true" type="datetime"></expires_at>
296
- <current_period_started_at type="datetime">2011-04-05T19:46:53Z</current_period_started_at>
297
- <current_period_ends_at type="datetime">2011-05-05T19:46:53Z</current_period_ends_at>
284
+ <current_period_started_at type="datetime">2011-04-21T18:04:01Z</current_period_started_at>
285
+ <current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
298
286
  <trial_started_at nil="true" type="datetime"></trial_started_at>
299
287
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
300
288
  <add_ons type="array">
@@ -305,38 +293,40 @@
305
293
  - !ruby/struct:VCR::HTTPInteraction
306
294
  request: !ruby/struct:VCR::Request
307
295
  method: :delete
308
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
296
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
309
297
  body:
310
298
  headers:
311
299
  authorization:
312
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
300
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
301
+ user-agent:
302
+ - Recurly Ruby Client v0.4.6
313
303
  accept:
314
304
  - application/xml
315
- user-agent:
316
- - Ruby
317
305
  connection:
318
306
  - close
319
307
  response: !ruby/struct:VCR::Response
320
308
  status: !ruby/struct:VCR::ResponseStatus
321
309
  code: 200
322
- message: OK
310
+ message: "OK "
323
311
  headers:
324
312
  x-runtime:
325
- - "832"
313
+ - "499"
326
314
  content-type:
327
315
  - application/xml; charset=utf-8
328
316
  etag:
329
- - "\"de5cf5c04ce0f79f20cd95d79cce5512\""
317
+ - "\"ec260009864a3b29de431c87ffd9f72b\""
330
318
  cache-control:
331
319
  - private, max-age=0, must-revalidate
332
320
  content-length:
333
- - "947"
334
- set-cookie:
335
- - _recurly_session=cbb237394a16e2cf937f37d9f00bf21c; domain=.recurly.local; path=/; HttpOnly
321
+ - "1009"
322
+ server:
323
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
324
+ date:
325
+ - Thu, 21 Apr 2011 18:04:07 GMT
336
326
  connection:
337
327
  - close
338
- server:
339
- - thin 1.2.7 codename No Hup
328
+ set-cookie:
329
+ - _recurly_session=6b438cbe82e649d7119135347e770899; domain=.recurly.local; path=/; HttpOnly
340
330
  body: |
341
331
  <?xml version="1.0" encoding="UTF-8"?>
342
332
  <subscription>
@@ -348,12 +338,13 @@
348
338
  </plan>
349
339
  <state>canceled</state>
350
340
  <quantity type="integer">1</quantity>
351
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
352
- <activated_at type="datetime">2011-04-05T19:46:53Z</activated_at>
353
- <canceled_at type="datetime">2011-04-05T19:47:01Z</canceled_at>
354
- <expires_at type="datetime">2011-05-05T19:46:53Z</expires_at>
355
- <current_period_started_at type="datetime">2011-04-05T19:46:53Z</current_period_started_at>
356
- <current_period_ends_at type="datetime">2011-05-05T19:46:53Z</current_period_ends_at>
341
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
342
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
343
+ <activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
344
+ <canceled_at type="datetime">2011-04-21T18:04:07Z</canceled_at>
345
+ <expires_at type="datetime">2011-05-21T18:04:01Z</expires_at>
346
+ <current_period_started_at type="datetime">2011-04-21T18:04:01Z</current_period_started_at>
347
+ <current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
357
348
  <trial_started_at nil="true" type="datetime"></trial_started_at>
358
349
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
359
350
  <add_ons type="array">
@@ -364,40 +355,42 @@
364
355
  - !ruby/struct:VCR::HTTPInteraction
365
356
  request: !ruby/struct:VCR::Request
366
357
  method: :get
367
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
358
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
368
359
  body:
369
360
  headers:
370
361
  authorization:
371
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
362
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
363
+ user-agent:
364
+ - Recurly Ruby Client v0.4.6
372
365
  accept:
373
366
  - application/xml
374
367
  accept-encoding:
375
368
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
376
- user-agent:
377
- - Ruby
378
369
  connection:
379
370
  - close
380
371
  response: !ruby/struct:VCR::Response
381
372
  status: !ruby/struct:VCR::ResponseStatus
382
373
  code: 200
383
- message: OK
374
+ message: "OK "
384
375
  headers:
385
376
  x-runtime:
386
- - "425"
377
+ - "267"
387
378
  content-type:
388
379
  - application/xml; charset=utf-8
389
380
  etag:
390
- - "\"de5cf5c04ce0f79f20cd95d79cce5512\""
381
+ - "\"ec260009864a3b29de431c87ffd9f72b\""
391
382
  cache-control:
392
383
  - private, max-age=0, must-revalidate
393
384
  content-length:
394
- - "947"
395
- set-cookie:
396
- - _recurly_session=4e5c9b0f85ea2dfd33da934adfa7b0bb; domain=.recurly.local; path=/; HttpOnly
385
+ - "1009"
386
+ server:
387
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
388
+ date:
389
+ - Thu, 21 Apr 2011 18:04:09 GMT
397
390
  connection:
398
391
  - close
399
- server:
400
- - thin 1.2.7 codename No Hup
392
+ set-cookie:
393
+ - _recurly_session=6c0f4e548071f2abfd713fc1f84961b9; domain=.recurly.local; path=/; HttpOnly
401
394
  body: |
402
395
  <?xml version="1.0" encoding="UTF-8"?>
403
396
  <subscription>
@@ -409,12 +402,13 @@
409
402
  </plan>
410
403
  <state>canceled</state>
411
404
  <quantity type="integer">1</quantity>
412
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
413
- <activated_at type="datetime">2011-04-05T19:46:53Z</activated_at>
414
- <canceled_at type="datetime">2011-04-05T19:47:01Z</canceled_at>
415
- <expires_at type="datetime">2011-05-05T19:46:53Z</expires_at>
416
- <current_period_started_at type="datetime">2011-04-05T19:46:53Z</current_period_started_at>
417
- <current_period_ends_at type="datetime">2011-05-05T19:46:53Z</current_period_ends_at>
405
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
406
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
407
+ <activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
408
+ <canceled_at type="datetime">2011-04-21T18:04:07Z</canceled_at>
409
+ <expires_at type="datetime">2011-05-21T18:04:01Z</expires_at>
410
+ <current_period_started_at type="datetime">2011-04-21T18:04:01Z</current_period_started_at>
411
+ <current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
418
412
  <trial_started_at nil="true" type="datetime"></trial_started_at>
419
413
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
420
414
  <add_ons type="array">
@@ -425,40 +419,42 @@
425
419
  - !ruby/struct:VCR::HTTPInteraction
426
420
  request: !ruby/struct:VCR::Request
427
421
  method: :get
428
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
422
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/subscription-cancel-with-code-1301881900/subscription.xml
429
423
  body:
430
424
  headers:
431
425
  authorization:
432
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
426
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
427
+ user-agent:
428
+ - Recurly Ruby Client v0.4.6
433
429
  accept:
434
430
  - application/xml
435
431
  accept-encoding:
436
432
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
437
- user-agent:
438
- - Ruby
439
433
  connection:
440
434
  - close
441
435
  response: !ruby/struct:VCR::Response
442
436
  status: !ruby/struct:VCR::ResponseStatus
443
437
  code: 200
444
- message: OK
438
+ message: "OK "
445
439
  headers:
446
440
  x-runtime:
447
- - "423"
441
+ - "262"
448
442
  content-type:
449
443
  - application/xml; charset=utf-8
450
444
  etag:
451
- - "\"de5cf5c04ce0f79f20cd95d79cce5512\""
445
+ - "\"ec260009864a3b29de431c87ffd9f72b\""
452
446
  cache-control:
453
447
  - private, max-age=0, must-revalidate
454
448
  content-length:
455
- - "947"
456
- set-cookie:
457
- - _recurly_session=c758dd1c1ea825ae0f2149a515910a94; domain=.recurly.local; path=/; HttpOnly
449
+ - "1009"
450
+ server:
451
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
452
+ date:
453
+ - Thu, 21 Apr 2011 18:04:11 GMT
458
454
  connection:
459
455
  - close
460
- server:
461
- - thin 1.2.7 codename No Hup
456
+ set-cookie:
457
+ - _recurly_session=3273bdcfc55a8977cfde2cbb056b389c; domain=.recurly.local; path=/; HttpOnly
462
458
  body: |
463
459
  <?xml version="1.0" encoding="UTF-8"?>
464
460
  <subscription>
@@ -470,12 +466,13 @@
470
466
  </plan>
471
467
  <state>canceled</state>
472
468
  <quantity type="integer">1</quantity>
473
- <total_amount_in_cents type="integer">200</total_amount_in_cents>
474
- <activated_at type="datetime">2011-04-05T19:46:53Z</activated_at>
475
- <canceled_at type="datetime">2011-04-05T19:47:01Z</canceled_at>
476
- <expires_at type="datetime">2011-05-05T19:46:53Z</expires_at>
477
- <current_period_started_at type="datetime">2011-04-05T19:46:53Z</current_period_started_at>
478
- <current_period_ends_at type="datetime">2011-05-05T19:46:53Z</current_period_ends_at>
469
+ <unit_amount_in_cents type="integer">0</unit_amount_in_cents>
470
+ <total_amount_in_cents type="integer">0</total_amount_in_cents>
471
+ <activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
472
+ <canceled_at type="datetime">2011-04-21T18:04:07Z</canceled_at>
473
+ <expires_at type="datetime">2011-05-21T18:04:01Z</expires_at>
474
+ <current_period_started_at type="datetime">2011-04-21T18:04:01Z</current_period_started_at>
475
+ <current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
479
476
  <trial_started_at nil="true" type="datetime"></trial_started_at>
480
477
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
481
478
  <add_ons type="array">