recurly 0.4.0 → 0.4.1

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 (65) hide show
  1. data/lib/patches/rails2/active_resource/connection.rb +10 -0
  2. data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
  3. data/lib/recurly.rb +7 -2
  4. data/lib/recurly/transparent.rb +4 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/transaction_spec.rb +5 -2
  7. data/spec/unit/transparent_spec.rb +59 -1
  8. data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
  9. data/spec/vcr/account/close/1297746103.yml +23 -30
  10. data/spec/vcr/account/create-blank/1297746103.yml +5 -7
  11. data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
  12. data/spec/vcr/account/create-min/1297746103.yml +8 -11
  13. data/spec/vcr/account/create/1297746103.yml +8 -11
  14. data/spec/vcr/account/find/1297746103.yml +22 -29
  15. data/spec/vcr/account/list/1297746103.yml +150 -196
  16. data/spec/vcr/account/update/1297746103.yml +37 -46
  17. data/spec/vcr/billing/create/1298594128.yml +24 -31
  18. data/spec/vcr/billing/destroy/1298594128.yml +35 -46
  19. data/spec/vcr/billing/find/1298594128.yml +32 -41
  20. data/spec/vcr/billing/update/1298594128.yml +32 -41
  21. data/spec/vcr/charge/create/1297746103.yml +36 -45
  22. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
  23. data/spec/vcr/charge/list-all/1297746103.yml +51 -62
  24. data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
  25. data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
  26. data/spec/vcr/charge/lookup/1297746103.yml +28 -35
  27. data/spec/vcr/coupon/create/1299714521.yml +23 -30
  28. data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
  29. data/spec/vcr/credit/create/1299714599.yml +28 -35
  30. data/spec/vcr/credit/delete/1299714599.yml +41 -52
  31. data/spec/vcr/credit/list/1299714599.yml +51 -62
  32. data/spec/vcr/credit/lookup/1299714599.yml +28 -35
  33. data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
  34. data/spec/vcr/invoice/create/1297746103.yml +50 -61
  35. data/spec/vcr/invoice/list/1297746103.yml +73 -88
  36. data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
  37. data/spec/vcr/plan/all.yml +18 -24
  38. data/spec/vcr/plan/find.yml +18 -24
  39. data/spec/vcr/plan/update.yml +18 -24
  40. data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
  42. data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
  43. data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
  44. data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
  45. data/spec/vcr/subscription/change1/1297746103.yml +55 -68
  46. data/spec/vcr/subscription/change2/1297746103.yml +55 -68
  47. data/spec/vcr/subscription/create/1297746103.yml +25 -32
  48. data/spec/vcr/subscription/find/1297746103.yml +35 -44
  49. data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
  50. data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
  51. data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
  52. data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
  53. data/spec/vcr/transaction/all/1300473500.yml +387 -0
  54. data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
  55. data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
  56. data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
  57. data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
  58. data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
  59. data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
  60. data/spec/vcr/transaction/void/1300473500.yml +620 -0
  61. metadata +21 -20
  62. data/spec/vcr/transaction/all/1297746103.yml +0 -389
  63. data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
  64. data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
  65. data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -32,27 +32,24 @@
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-1297746103
41
41
  x-runtime:
42
- - "520"
42
+ - "352"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "613"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:53:59 GMT
47
+ set-cookie:
48
+ - _recurly_session=ae9b2f78d61ee26cfad4091921d4fd52; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=e6d3493636a9a441d08772ba08365de49cfa4ccda2a126065e5a55881b853f7d67c1bec2f1f6d56ced8d931749606c86571b0c2c55cdd910837af03c7ab23dbd%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=2505b496756fba00c7faa60270f54518; domain=.recurly.local; path=/; HttpOnly
51
+ server:
52
+ - thin 1.2.7 codename No Hup
56
53
  body: |
57
54
  <?xml version="1.0" encoding="UTF-8"?>
58
55
  <account>
@@ -65,8 +62,8 @@
65
62
  <company_name>Recurly Ruby Gem</company_name>
66
63
  <balance_in_cents type="integer">0</balance_in_cents>
67
64
  <closed type="boolean">false</closed>
68
- <hosted_login_token>6135baba6b7f4914a6a54d4753a87627</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:53:59Z</created_at>
65
+ <hosted_login_token>3a8a5ad46cb6452db6d772a9f3716179</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:54:24Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -90,10 +87,10 @@
90
87
  response: !ruby/struct:VCR::Response
91
88
  status: !ruby/struct:VCR::ResponseStatus
92
89
  code: 200
93
- message: "OK "
90
+ message: OK
94
91
  headers:
95
92
  x-runtime:
96
- - "235"
93
+ - "311"
97
94
  content-type:
98
95
  - application/xml; charset=utf-8
99
96
  etag:
@@ -102,14 +99,12 @@
102
99
  - private, max-age=0, must-revalidate
103
100
  content-length:
104
101
  - "1146"
105
- server:
106
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
107
- date:
108
- - Fri, 11 Mar 2011 18:54:01 GMT
102
+ set-cookie:
103
+ - _recurly_session=3f75bc31176ffb869ab49ff9c931a4f4; domain=.recurly.local; path=/; HttpOnly
109
104
  connection:
110
105
  - close
111
- set-cookie:
112
- - _recurly_session=f002290aa2ffa4a128b96076ca2bdb08; domain=.recurly.local; path=/; HttpOnly
106
+ server:
107
+ - thin 1.2.7 codename No Hup
113
108
  body: |
114
109
  <?xml version="1.0" encoding="UTF-8"?>
115
110
  <plan>
@@ -173,8 +168,8 @@
173
168
  <username type="yaml" nil="true"></username>
174
169
  <balance-in-cents type="integer">0</balance-in-cents>
175
170
  <closed type="boolean">false</closed>
176
- <hosted-login-token>6135baba6b7f4914a6a54d4753a87627</hosted-login-token>
177
- <created-at type="datetime">2011-03-11T18:53:59Z</created-at>
171
+ <hosted-login-token>3a8a5ad46cb6452db6d772a9f3716179</hosted-login-token>
172
+ <created-at type="datetime">2011-03-18T18:54:24Z</created-at>
178
173
  <state>active</state>
179
174
  </account>
180
175
  <addons type="array"/>
@@ -194,24 +189,22 @@
194
189
  response: !ruby/struct:VCR::Response
195
190
  status: !ruby/struct:VCR::ResponseStatus
196
191
  code: 201
197
- message: "Created "
192
+ message: Created
198
193
  headers:
199
194
  cache-control:
200
195
  - no-cache
201
196
  x-runtime:
202
- - "5135"
197
+ - "6964"
203
198
  content-type:
204
199
  - application/xml; charset=utf-8
205
200
  content-length:
206
201
  - "928"
207
- server:
208
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
209
- date:
210
- - Fri, 11 Mar 2011 18:54:09 GMT
202
+ set-cookie:
203
+ - _recurly_session=5b896b9ee9fa2b85f90456567538d738; domain=.recurly.local; path=/; HttpOnly
211
204
  connection:
212
205
  - close
213
- set-cookie:
214
- - _recurly_session=24bc67280da525f539d0c4b2114a673c; domain=.recurly.local; path=/; HttpOnly
206
+ server:
207
+ - thin 1.2.7 codename No Hup
215
208
  body: |
216
209
  <?xml version="1.0" encoding="UTF-8"?>
217
210
  <subscription>
@@ -224,11 +217,11 @@
224
217
  <state>active</state>
225
218
  <quantity type="integer">1</quantity>
226
219
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
227
- <activated_at type="datetime">2011-03-11T18:54:04Z</activated_at>
220
+ <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
228
221
  <canceled_at nil="true" type="datetime"></canceled_at>
229
222
  <expires_at nil="true" type="datetime"></expires_at>
230
- <current_period_started_at type="datetime">2011-03-11T18:54:04Z</current_period_started_at>
231
- <current_period_ends_at type="datetime">2011-03-12T18:54:04Z</current_period_ends_at>
223
+ <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
224
+ <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
232
225
  <trial_started_at nil="true" type="datetime"></trial_started_at>
233
226
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
234
227
  <add_ons type="array">
@@ -255,26 +248,24 @@
255
248
  response: !ruby/struct:VCR::Response
256
249
  status: !ruby/struct:VCR::ResponseStatus
257
250
  code: 200
258
- message: "OK "
251
+ message: OK
259
252
  headers:
260
253
  x-runtime:
261
- - "426"
254
+ - "335"
262
255
  content-type:
263
256
  - application/xml; charset=utf-8
264
257
  etag:
265
- - "\"d7d0b13462ec7a2f7c4da04ae24b8f44\""
258
+ - "\"3e8fdaa8eafe2ee73726625b769635cb\""
266
259
  cache-control:
267
260
  - private, max-age=0, must-revalidate
268
261
  content-length:
269
262
  - "928"
270
- server:
271
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
272
- date:
273
- - Fri, 11 Mar 2011 18:54:12 GMT
263
+ set-cookie:
264
+ - _recurly_session=3ab8de4a801c7180bd07f1c230e10f26; domain=.recurly.local; path=/; HttpOnly
274
265
  connection:
275
266
  - close
276
- set-cookie:
277
- - _recurly_session=a0b5633c7e7cf9c22a3235c704b377a0; domain=.recurly.local; path=/; HttpOnly
267
+ server:
268
+ - thin 1.2.7 codename No Hup
278
269
  body: |
279
270
  <?xml version="1.0" encoding="UTF-8"?>
280
271
  <subscription>
@@ -287,11 +278,11 @@
287
278
  <state>active</state>
288
279
  <quantity type="integer">1</quantity>
289
280
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
290
- <activated_at type="datetime">2011-03-11T18:54:04Z</activated_at>
281
+ <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
291
282
  <canceled_at nil="true" type="datetime"></canceled_at>
292
283
  <expires_at nil="true" type="datetime"></expires_at>
293
- <current_period_started_at type="datetime">2011-03-11T18:54:04Z</current_period_started_at>
294
- <current_period_ends_at type="datetime">2011-03-12T18:54:04Z</current_period_ends_at>
284
+ <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
285
+ <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
295
286
  <trial_started_at nil="true" type="datetime"></trial_started_at>
296
287
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
297
288
  <add_ons type="array">
@@ -316,26 +307,24 @@
316
307
  response: !ruby/struct:VCR::Response
317
308
  status: !ruby/struct:VCR::ResponseStatus
318
309
  code: 200
319
- message: "OK "
310
+ message: OK
320
311
  headers:
321
312
  x-runtime:
322
- - "3056"
313
+ - "2498"
323
314
  content-type:
324
315
  - application/xml; charset=utf-8
325
316
  etag:
326
- - "\"2ac975189984f0beff5d3af31657eb7d\""
317
+ - "\"be8725ac7176842518dd770c4d17c21c\""
327
318
  cache-control:
328
319
  - private, max-age=0, must-revalidate
329
320
  content-length:
330
321
  - "948"
331
- server:
332
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
333
- date:
334
- - Fri, 11 Mar 2011 18:54:17 GMT
322
+ set-cookie:
323
+ - _recurly_session=43b47d3974fb2486a0bb870efb5a12f1; domain=.recurly.local; path=/; HttpOnly
335
324
  connection:
336
325
  - close
337
- set-cookie:
338
- - _recurly_session=a2b2905ebd7adf8c7707a0ac793b9a01; domain=.recurly.local; path=/; HttpOnly
326
+ server:
327
+ - thin 1.2.7 codename No Hup
339
328
  body: |
340
329
  <?xml version="1.0" encoding="UTF-8"?>
341
330
  <subscription>
@@ -348,11 +337,11 @@
348
337
  <state>canceled</state>
349
338
  <quantity type="integer">1</quantity>
350
339
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
351
- <activated_at type="datetime">2011-03-11T18:54:04Z</activated_at>
352
- <canceled_at type="datetime">2011-03-11T18:54:14Z</canceled_at>
353
- <expires_at type="datetime">2011-03-12T18:54:04Z</expires_at>
354
- <current_period_started_at type="datetime">2011-03-11T18:54:04Z</current_period_started_at>
355
- <current_period_ends_at type="datetime">2011-03-12T18:54:04Z</current_period_ends_at>
340
+ <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
341
+ <canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
342
+ <expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
343
+ <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
344
+ <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
356
345
  <trial_started_at nil="true" type="datetime"></trial_started_at>
357
346
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
358
347
  <add_ons type="array">
@@ -379,26 +368,24 @@
379
368
  response: !ruby/struct:VCR::Response
380
369
  status: !ruby/struct:VCR::ResponseStatus
381
370
  code: 200
382
- message: "OK "
371
+ message: OK
383
372
  headers:
384
373
  x-runtime:
385
- - "278"
374
+ - "336"
386
375
  content-type:
387
376
  - application/xml; charset=utf-8
388
377
  etag:
389
- - "\"2ac975189984f0beff5d3af31657eb7d\""
378
+ - "\"be8725ac7176842518dd770c4d17c21c\""
390
379
  cache-control:
391
380
  - private, max-age=0, must-revalidate
392
381
  content-length:
393
382
  - "948"
394
- server:
395
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
396
- date:
397
- - Fri, 11 Mar 2011 18:54:20 GMT
383
+ set-cookie:
384
+ - _recurly_session=19cdbda3f1f4f4c77b8aec94d9f95f5b; domain=.recurly.local; path=/; HttpOnly
398
385
  connection:
399
386
  - close
400
- set-cookie:
401
- - _recurly_session=e222ac5a06053c59119800c27e9e4adb; domain=.recurly.local; path=/; HttpOnly
387
+ server:
388
+ - thin 1.2.7 codename No Hup
402
389
  body: |
403
390
  <?xml version="1.0" encoding="UTF-8"?>
404
391
  <subscription>
@@ -411,11 +398,11 @@
411
398
  <state>canceled</state>
412
399
  <quantity type="integer">1</quantity>
413
400
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
414
- <activated_at type="datetime">2011-03-11T18:54:04Z</activated_at>
415
- <canceled_at type="datetime">2011-03-11T18:54:14Z</canceled_at>
416
- <expires_at type="datetime">2011-03-12T18:54:04Z</expires_at>
417
- <current_period_started_at type="datetime">2011-03-11T18:54:04Z</current_period_started_at>
418
- <current_period_ends_at type="datetime">2011-03-12T18:54:04Z</current_period_ends_at>
401
+ <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
402
+ <canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
403
+ <expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
404
+ <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
405
+ <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
419
406
  <trial_started_at nil="true" type="datetime"></trial_started_at>
420
407
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
421
408
  <add_ons type="array">
@@ -442,26 +429,24 @@
442
429
  response: !ruby/struct:VCR::Response
443
430
  status: !ruby/struct:VCR::ResponseStatus
444
431
  code: 200
445
- message: "OK "
432
+ message: OK
446
433
  headers:
447
434
  x-runtime:
448
- - "295"
435
+ - "341"
449
436
  content-type:
450
437
  - application/xml; charset=utf-8
451
438
  etag:
452
- - "\"2ac975189984f0beff5d3af31657eb7d\""
439
+ - "\"be8725ac7176842518dd770c4d17c21c\""
453
440
  cache-control:
454
441
  - private, max-age=0, must-revalidate
455
442
  content-length:
456
443
  - "948"
457
- server:
458
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
459
- date:
460
- - Fri, 11 Mar 2011 18:54:23 GMT
444
+ set-cookie:
445
+ - _recurly_session=e1063062f010b2306fc2ea0a592c2382; domain=.recurly.local; path=/; HttpOnly
461
446
  connection:
462
447
  - close
463
- set-cookie:
464
- - _recurly_session=c5447a1dc1ec557a22164a57f7503725; domain=.recurly.local; path=/; HttpOnly
448
+ server:
449
+ - thin 1.2.7 codename No Hup
465
450
  body: |
466
451
  <?xml version="1.0" encoding="UTF-8"?>
467
452
  <subscription>
@@ -474,11 +459,11 @@
474
459
  <state>canceled</state>
475
460
  <quantity type="integer">1</quantity>
476
461
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
477
- <activated_at type="datetime">2011-03-11T18:54:04Z</activated_at>
478
- <canceled_at type="datetime">2011-03-11T18:54:14Z</canceled_at>
479
- <expires_at type="datetime">2011-03-12T18:54:04Z</expires_at>
480
- <current_period_started_at type="datetime">2011-03-11T18:54:04Z</current_period_started_at>
481
- <current_period_ends_at type="datetime">2011-03-12T18:54:04Z</current_period_ends_at>
462
+ <activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
463
+ <canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
464
+ <expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
465
+ <current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
466
+ <current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
482
467
  <trial_started_at nil="true" type="datetime"></trial_started_at>
483
468
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
484
469
  <add_ons type="array">
@@ -32,27 +32,24 @@
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-1297746103
41
41
  x-runtime:
42
- - "784"
42
+ - "336"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "593"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:53:37 GMT
47
+ set-cookie:
48
+ - _recurly_session=a1e5bc2cb61c25c597d352a9b337e0af; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=0e509fd5f0b8c27fec1f8c31fc3b944426df712608940e026ab53912b99c54f85725797e59990a064656cd414d9e57d8fb2f0276cb76c296430d91f343718010%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=ec7aee7e41baddbd704e6241d0110551; domain=.recurly.local; path=/; HttpOnly
51
+ server:
52
+ - thin 1.2.7 codename No Hup
56
53
  body: |
57
54
  <?xml version="1.0" encoding="UTF-8"?>
58
55
  <account>
@@ -65,8 +62,8 @@
65
62
  <company_name>Recurly Ruby Gem</company_name>
66
63
  <balance_in_cents type="integer">0</balance_in_cents>
67
64
  <closed type="boolean">false</closed>
68
- <hosted_login_token>456bfc125d2545af815dcd391b3ef2ce</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:53:36Z</created_at>
65
+ <hosted_login_token>60cb7e4aabb74e2ea324f0da790859fc</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:54:03Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -90,10 +87,10 @@
90
87
  response: !ruby/struct:VCR::Response
91
88
  status: !ruby/struct:VCR::ResponseStatus
92
89
  code: 200
93
- message: "OK "
90
+ message: OK
94
91
  headers:
95
92
  x-runtime:
96
- - "231"
93
+ - "305"
97
94
  content-type:
98
95
  - application/xml; charset=utf-8
99
96
  etag:
@@ -102,14 +99,12 @@
102
99
  - private, max-age=0, must-revalidate
103
100
  content-length:
104
101
  - "1146"
105
- server:
106
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
107
- date:
108
- - Fri, 11 Mar 2011 18:53:39 GMT
102
+ set-cookie:
103
+ - _recurly_session=72b605a983978984689076bb0b595d82; domain=.recurly.local; path=/; HttpOnly
109
104
  connection:
110
105
  - close
111
- set-cookie:
112
- - _recurly_session=492f1c08c06f88b8d665c404d4184db8; domain=.recurly.local; path=/; HttpOnly
106
+ server:
107
+ - thin 1.2.7 codename No Hup
113
108
  body: |
114
109
  <?xml version="1.0" encoding="UTF-8"?>
115
110
  <plan>
@@ -173,8 +168,8 @@
173
168
  <username type="yaml" nil="true"></username>
174
169
  <balance-in-cents type="integer">0</balance-in-cents>
175
170
  <closed type="boolean">false</closed>
176
- <hosted-login-token>456bfc125d2545af815dcd391b3ef2ce</hosted-login-token>
177
- <created-at type="datetime">2011-03-11T18:53:36Z</created-at>
171
+ <hosted-login-token>60cb7e4aabb74e2ea324f0da790859fc</hosted-login-token>
172
+ <created-at type="datetime">2011-03-18T18:54:03Z</created-at>
178
173
  <state>active</state>
179
174
  </account>
180
175
  <addons type="array"/>
@@ -194,24 +189,22 @@
194
189
  response: !ruby/struct:VCR::Response
195
190
  status: !ruby/struct:VCR::ResponseStatus
196
191
  code: 201
197
- message: "Created "
192
+ message: Created
198
193
  headers:
199
194
  cache-control:
200
195
  - no-cache
201
196
  x-runtime:
202
- - "5622"
197
+ - "7771"
203
198
  content-type:
204
199
  - application/xml; charset=utf-8
205
200
  content-length:
206
201
  - "908"
207
- server:
208
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
209
- date:
210
- - Fri, 11 Mar 2011 18:53:46 GMT
202
+ set-cookie:
203
+ - _recurly_session=06a26f1810ad572035fa6ec1c1252313; domain=.recurly.local; path=/; HttpOnly
211
204
  connection:
212
205
  - close
213
- set-cookie:
214
- - _recurly_session=dd9dc762a45f69f358c59b68273dd613; domain=.recurly.local; path=/; HttpOnly
206
+ server:
207
+ - thin 1.2.7 codename No Hup
215
208
  body: |
216
209
  <?xml version="1.0" encoding="UTF-8"?>
217
210
  <subscription>
@@ -224,11 +217,11 @@
224
217
  <state>active</state>
225
218
  <quantity type="integer">1</quantity>
226
219
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
227
- <activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
220
+ <activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
228
221
  <canceled_at nil="true" type="datetime"></canceled_at>
229
222
  <expires_at nil="true" type="datetime"></expires_at>
230
- <current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
231
- <current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
223
+ <current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
224
+ <current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
232
225
  <trial_started_at nil="true" type="datetime"></trial_started_at>
233
226
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
234
227
  <add_ons type="array">
@@ -255,26 +248,24 @@
255
248
  response: !ruby/struct:VCR::Response
256
249
  status: !ruby/struct:VCR::ResponseStatus
257
250
  code: 200
258
- message: "OK "
251
+ message: OK
259
252
  headers:
260
253
  x-runtime:
261
- - "265"
254
+ - "342"
262
255
  content-type:
263
256
  - application/xml; charset=utf-8
264
257
  etag:
265
- - "\"216304dc6001c7a6b08f4acc233dd8e2\""
258
+ - "\"3dcd5b989f9965811c924fb35a9ad6c0\""
266
259
  cache-control:
267
260
  - private, max-age=0, must-revalidate
268
261
  content-length:
269
262
  - "908"
270
- server:
271
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
272
- date:
273
- - Fri, 11 Mar 2011 18:53:49 GMT
263
+ set-cookie:
264
+ - _recurly_session=9d4739ef3ff2c3e1969f08724d9beb90; domain=.recurly.local; path=/; HttpOnly
274
265
  connection:
275
266
  - close
276
- set-cookie:
277
- - _recurly_session=ddbdd2230a25eeba7c65a40dd8070c64; domain=.recurly.local; path=/; HttpOnly
267
+ server:
268
+ - thin 1.2.7 codename No Hup
278
269
  body: |
279
270
  <?xml version="1.0" encoding="UTF-8"?>
280
271
  <subscription>
@@ -287,11 +278,11 @@
287
278
  <state>active</state>
288
279
  <quantity type="integer">1</quantity>
289
280
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
290
- <activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
281
+ <activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
291
282
  <canceled_at nil="true" type="datetime"></canceled_at>
292
283
  <expires_at nil="true" type="datetime"></expires_at>
293
- <current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
294
- <current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
284
+ <current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
285
+ <current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
295
286
  <trial_started_at nil="true" type="datetime"></trial_started_at>
296
287
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
297
288
  <add_ons type="array">
@@ -316,26 +307,24 @@
316
307
  response: !ruby/struct:VCR::Response
317
308
  status: !ruby/struct:VCR::ResponseStatus
318
309
  code: 200
319
- message: "OK "
310
+ message: OK
320
311
  headers:
321
312
  x-runtime:
322
- - "2869"
313
+ - "2150"
323
314
  content-type:
324
315
  - application/xml; charset=utf-8
325
316
  etag:
326
- - "\"ba8e7e48e0613bf8197b5064dd8c2630\""
317
+ - "\"f4fc2f22312e3c4d738d5d7f7d89d021\""
327
318
  cache-control:
328
319
  - private, max-age=0, must-revalidate
329
320
  content-length:
330
321
  - "928"
331
- server:
332
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
333
- date:
334
- - Fri, 11 Mar 2011 18:53:54 GMT
322
+ set-cookie:
323
+ - _recurly_session=fa16f69538785432ce9fb678a2b8c768; domain=.recurly.local; path=/; HttpOnly
335
324
  connection:
336
325
  - close
337
- set-cookie:
338
- - _recurly_session=d57f2c57835333bca6c3ef1c4e35a883; domain=.recurly.local; path=/; HttpOnly
326
+ server:
327
+ - thin 1.2.7 codename No Hup
339
328
  body: |
340
329
  <?xml version="1.0" encoding="UTF-8"?>
341
330
  <subscription>
@@ -348,11 +337,11 @@
348
337
  <state>canceled</state>
349
338
  <quantity type="integer">1</quantity>
350
339
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
351
- <activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
352
- <canceled_at type="datetime">2011-03-11T18:53:52Z</canceled_at>
353
- <expires_at type="datetime">2011-03-12T18:53:41Z</expires_at>
354
- <current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
355
- <current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
340
+ <activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
341
+ <canceled_at type="datetime">2011-03-18T18:54:18Z</canceled_at>
342
+ <expires_at type="datetime">2011-03-19T18:54:07Z</expires_at>
343
+ <current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
344
+ <current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
356
345
  <trial_started_at nil="true" type="datetime"></trial_started_at>
357
346
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
358
347
  <add_ons type="array">
@@ -379,26 +368,24 @@
379
368
  response: !ruby/struct:VCR::Response
380
369
  status: !ruby/struct:VCR::ResponseStatus
381
370
  code: 200
382
- message: "OK "
371
+ message: OK
383
372
  headers:
384
373
  x-runtime:
385
- - "416"
374
+ - "331"
386
375
  content-type:
387
376
  - application/xml; charset=utf-8
388
377
  etag:
389
- - "\"ba8e7e48e0613bf8197b5064dd8c2630\""
378
+ - "\"f4fc2f22312e3c4d738d5d7f7d89d021\""
390
379
  cache-control:
391
380
  - private, max-age=0, must-revalidate
392
381
  content-length:
393
382
  - "928"
394
- server:
395
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
396
- date:
397
- - Fri, 11 Mar 2011 18:53:57 GMT
383
+ set-cookie:
384
+ - _recurly_session=b52f4c385c14b40a150515b123672ca3; domain=.recurly.local; path=/; HttpOnly
398
385
  connection:
399
386
  - close
400
- set-cookie:
401
- - _recurly_session=c84911138195c2cd3fbb588734027abc; domain=.recurly.local; path=/; HttpOnly
387
+ server:
388
+ - thin 1.2.7 codename No Hup
402
389
  body: |
403
390
  <?xml version="1.0" encoding="UTF-8"?>
404
391
  <subscription>
@@ -411,11 +398,11 @@
411
398
  <state>canceled</state>
412
399
  <quantity type="integer">1</quantity>
413
400
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
414
- <activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
415
- <canceled_at type="datetime">2011-03-11T18:53:52Z</canceled_at>
416
- <expires_at type="datetime">2011-03-12T18:53:41Z</expires_at>
417
- <current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
418
- <current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
401
+ <activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
402
+ <canceled_at type="datetime">2011-03-18T18:54:18Z</canceled_at>
403
+ <expires_at type="datetime">2011-03-19T18:54:07Z</expires_at>
404
+ <current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
405
+ <current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
419
406
  <trial_started_at nil="true" type="datetime"></trial_started_at>
420
407
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
421
408
  <add_ons type="array">