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/invoice-list-1297746103
41
41
  x-runtime:
42
- - "651"
42
+ - "329"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "579"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:50:56 GMT
47
+ set-cookie:
48
+ - _recurly_session=9127b0750c3199cf0d35d1f079f76973; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=dfb9e0c11accf8e91dc78fbdbe6f2a99ab0accde899e1b4d0239c22639a0f00025f5c40ac06b439201115ec9b89e896579ed8c8b8540e46724341c65eccf2ca9%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=53376b44bfe2e43dcddbb0b9fd7365c4; 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>300c928d7ffb459db493c9b1eac0df16</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:50:56Z</created_at>
65
+ <hosted_login_token>18f3b394cbef4f598855d5967e4e8c85</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:51:26Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -108,26 +105,24 @@
108
105
  response: !ruby/struct:VCR::Response
109
106
  status: !ruby/struct:VCR::ResponseStatus
110
107
  code: 200
111
- message: "OK "
108
+ message: OK
112
109
  headers:
113
110
  x-runtime:
114
- - "2203"
111
+ - "7232"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"8208f09a3e18fa8ca4c00768c9e2f05c\""
115
+ - "\"7f9f210d38150817355b3a71d47cc5aa\""
119
116
  cache-control:
120
117
  - private, max-age=0, must-revalidate
121
118
  content-length:
122
119
  - "638"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:51:00 GMT
120
+ set-cookie:
121
+ - _recurly_session=803a84d0989525a8b8758da606bd9c0f; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=f082bc04f5a627abf6b8dbf48c287686; domain=.recurly.local; path=/; HttpOnly
124
+ server:
125
+ - thin 1.2.7 codename No Hup
131
126
  body: |
132
127
  <?xml version="1.0" encoding="UTF-8"?>
133
128
  <billing_info>
@@ -149,7 +144,7 @@
149
144
  <month type="integer">3</month>
150
145
  <year type="integer">2012</year>
151
146
  </credit_card>
152
- <updated_at type="datetime">2011-03-11T18:51:00Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:51:36Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -178,35 +173,33 @@
178
173
  response: !ruby/struct:VCR::Response
179
174
  status: !ruby/struct:VCR::ResponseStatus
180
175
  code: 201
181
- message: "Created "
176
+ message: Created
182
177
  headers:
183
178
  cache-control:
184
179
  - no-cache
185
180
  x-runtime:
186
- - "231"
181
+ - "299"
187
182
  content-type:
188
183
  - application/xml; charset=utf-8
189
184
  content-length:
190
185
  - "516"
191
- server:
192
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
193
- date:
194
- - Fri, 11 Mar 2011 18:51:03 GMT
186
+ set-cookie:
187
+ - _recurly_session=79bea07bca996d4e97f06c543a569f2b; domain=.recurly.local; path=/; HttpOnly
195
188
  connection:
196
189
  - close
197
- set-cookie:
198
- - _recurly_session=071ed9c4ba885eef67a272476764a992; domain=.recurly.local; path=/; HttpOnly
190
+ server:
191
+ - thin 1.2.7 codename No Hup
199
192
  body: |
200
193
  <?xml version="1.0" encoding="UTF-8"?>
201
194
  <charge type="charge">
202
- <id>1fbe689bb9574d7997b47bf6c1237ff0</id>
195
+ <id>658d3d1a02844356a9c267bc7f9f3574</id>
203
196
  <account_code>invoice-list-1297746103</account_code>
204
197
  <amount_in_cents type="integer">100</amount_in_cents>
205
- <start_date type="datetime">2011-03-11T18:51:03Z</start_date>
198
+ <start_date type="datetime">2011-03-18T18:51:38Z</start_date>
206
199
  <end_date nil="true" type="datetime"></end_date>
207
200
  <invoice_number nil="true" type="integer"></invoice_number>
208
201
  <description>charge description</description>
209
- <created_at type="datetime">2011-03-11T18:51:03Z</created_at>
202
+ <created_at type="datetime">2011-03-18T18:51:38Z</created_at>
210
203
  </charge>
211
204
 
212
205
  http_version: "1.1"
@@ -233,33 +226,31 @@
233
226
  response: !ruby/struct:VCR::Response
234
227
  status: !ruby/struct:VCR::ResponseStatus
235
228
  code: 201
236
- message: "Created "
229
+ message: Created
237
230
  headers:
238
231
  cache-control:
239
232
  - no-cache
240
233
  location:
241
- - http://app.recurly.local:3000/invoices/55a7947c9f73471e94e4512db1d7b990
234
+ - http://app.recurly.local:3000/invoices/ea99d72698c74368b8e1a97d52311952
242
235
  x-runtime:
243
- - "574"
236
+ - "589"
244
237
  content-type:
245
238
  - application/xml; charset=utf-8
246
239
  content-length:
247
240
  - "1208"
248
- server:
249
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
250
- date:
251
- - Fri, 11 Mar 2011 18:51:05 GMT
241
+ set-cookie:
242
+ - _recurly_session=b9ebda2cd55bf789e6ee139336534726; domain=.recurly.local; path=/; HttpOnly
252
243
  connection:
253
244
  - close
254
- set-cookie:
255
- - _recurly_session=58edb5ca918e993fd8c048f10a5c2adf; domain=.recurly.local; path=/; HttpOnly
245
+ server:
246
+ - thin 1.2.7 codename No Hup
256
247
  body: |
257
248
  <?xml version="1.0" encoding="UTF-8"?>
258
249
  <invoice>
259
- <id>55a7947c9f73471e94e4512db1d7b990</id>
250
+ <id>ea99d72698c74368b8e1a97d52311952</id>
260
251
  <account_code>invoice-list-1297746103</account_code>
261
- <date type="datetime">2011-03-11T18:51:05Z</date>
262
- <invoice_number type="integer">1528</invoice_number>
252
+ <date type="datetime">2011-03-18T18:51:40Z</date>
253
+ <invoice_number type="integer">2061</invoice_number>
263
254
  <vat_number></vat_number>
264
255
  <status>open</status>
265
256
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
@@ -270,13 +261,13 @@
270
261
  <discount_in_cents type="integer">0</discount_in_cents>
271
262
  <line_items type="array">
272
263
  <line_item>
273
- <id>1fbe689bb9574d7997b47bf6c1237ff0</id>
264
+ <id>658d3d1a02844356a9c267bc7f9f3574</id>
274
265
  <type>charge</type>
275
266
  <amount_in_cents type="integer">100</amount_in_cents>
276
- <start_date type="datetime">2011-03-11T18:51:03Z</start_date>
267
+ <start_date type="datetime">2011-03-18T18:51:38Z</start_date>
277
268
  <end_date nil="true" type="datetime"></end_date>
278
269
  <description>charge description</description>
279
- <created_at type="datetime">2011-03-11T18:51:03Z</created_at>
270
+ <created_at type="datetime">2011-03-18T18:51:38Z</created_at>
280
271
  <applied_coupon_code></applied_coupon_code>
281
272
  </line_item>
282
273
  </line_items>
@@ -310,35 +301,33 @@
310
301
  response: !ruby/struct:VCR::Response
311
302
  status: !ruby/struct:VCR::ResponseStatus
312
303
  code: 201
313
- message: "Created "
304
+ message: Created
314
305
  headers:
315
306
  cache-control:
316
307
  - no-cache
317
308
  x-runtime:
318
- - "227"
309
+ - "303"
319
310
  content-type:
320
311
  - application/xml; charset=utf-8
321
312
  content-length:
322
313
  - "516"
323
- server:
324
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
325
- date:
326
- - Fri, 11 Mar 2011 18:51:08 GMT
314
+ set-cookie:
315
+ - _recurly_session=56bd50321047f8a010fe4218085aa661; domain=.recurly.local; path=/; HttpOnly
327
316
  connection:
328
317
  - close
329
- set-cookie:
330
- - _recurly_session=14eb0a9c5d4b90c485071a74f2d0ff88; domain=.recurly.local; path=/; HttpOnly
318
+ server:
319
+ - thin 1.2.7 codename No Hup
331
320
  body: |
332
321
  <?xml version="1.0" encoding="UTF-8"?>
333
322
  <charge type="charge">
334
- <id>014931c0c5334098bdb0c9e49d3291dd</id>
323
+ <id>8d3896ffa48d4701ac8b250a24f47c4e</id>
335
324
  <account_code>invoice-list-1297746103</account_code>
336
325
  <amount_in_cents type="integer">300</amount_in_cents>
337
- <start_date type="datetime">2011-03-11T18:51:07Z</start_date>
326
+ <start_date type="datetime">2011-03-18T18:51:42Z</start_date>
338
327
  <end_date nil="true" type="datetime"></end_date>
339
328
  <invoice_number nil="true" type="integer"></invoice_number>
340
329
  <description>charge description</description>
341
- <created_at type="datetime">2011-03-11T18:51:08Z</created_at>
330
+ <created_at type="datetime">2011-03-18T18:51:42Z</created_at>
342
331
  </charge>
343
332
 
344
333
  http_version: "1.1"
@@ -365,33 +354,31 @@
365
354
  response: !ruby/struct:VCR::Response
366
355
  status: !ruby/struct:VCR::ResponseStatus
367
356
  code: 201
368
- message: "Created "
357
+ message: Created
369
358
  headers:
370
359
  cache-control:
371
360
  - no-cache
372
361
  location:
373
- - http://app.recurly.local:3000/invoices/f852ed503f4b449cbb3c0a6b2fceb494
362
+ - http://app.recurly.local:3000/invoices/3b38eddc07034808b6013e7f8ebaafbc
374
363
  x-runtime:
375
- - "579"
364
+ - "620"
376
365
  content-type:
377
366
  - application/xml; charset=utf-8
378
367
  content-length:
379
368
  - "1208"
380
- server:
381
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
382
- date:
383
- - Fri, 11 Mar 2011 18:51:10 GMT
369
+ set-cookie:
370
+ - _recurly_session=5f01c8d0acc85f429e2c4649e1d22681; domain=.recurly.local; path=/; HttpOnly
384
371
  connection:
385
372
  - close
386
- set-cookie:
387
- - _recurly_session=f5b2fbfe5196598e8445ba5b25ea99db; domain=.recurly.local; path=/; HttpOnly
373
+ server:
374
+ - thin 1.2.7 codename No Hup
388
375
  body: |
389
376
  <?xml version="1.0" encoding="UTF-8"?>
390
377
  <invoice>
391
- <id>f852ed503f4b449cbb3c0a6b2fceb494</id>
378
+ <id>3b38eddc07034808b6013e7f8ebaafbc</id>
392
379
  <account_code>invoice-list-1297746103</account_code>
393
- <date type="datetime">2011-03-11T18:51:10Z</date>
394
- <invoice_number type="integer">1529</invoice_number>
380
+ <date type="datetime">2011-03-18T18:51:44Z</date>
381
+ <invoice_number type="integer">2062</invoice_number>
395
382
  <vat_number></vat_number>
396
383
  <status>open</status>
397
384
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
@@ -402,13 +389,13 @@
402
389
  <discount_in_cents type="integer">0</discount_in_cents>
403
390
  <line_items type="array">
404
391
  <line_item>
405
- <id>014931c0c5334098bdb0c9e49d3291dd</id>
392
+ <id>8d3896ffa48d4701ac8b250a24f47c4e</id>
406
393
  <type>charge</type>
407
394
  <amount_in_cents type="integer">300</amount_in_cents>
408
- <start_date type="datetime">2011-03-11T18:51:07Z</start_date>
395
+ <start_date type="datetime">2011-03-18T18:51:42Z</start_date>
409
396
  <end_date nil="true" type="datetime"></end_date>
410
397
  <description>charge description</description>
411
- <created_at type="datetime">2011-03-11T18:51:08Z</created_at>
398
+ <created_at type="datetime">2011-03-18T18:51:42Z</created_at>
412
399
  <applied_coupon_code></applied_coupon_code>
413
400
  </line_item>
414
401
  </line_items>
@@ -436,42 +423,40 @@
436
423
  response: !ruby/struct:VCR::Response
437
424
  status: !ruby/struct:VCR::ResponseStatus
438
425
  code: 200
439
- message: "OK "
426
+ message: OK
440
427
  headers:
441
428
  x-runtime:
442
- - "232"
429
+ - "88"
443
430
  content-type:
444
431
  - application/xml; charset=utf-8
445
432
  etag:
446
- - "\"094ed33274e5508f46421b6c8128c4ae\""
433
+ - "\"25064374673b3a227c7a323b93caab88\""
447
434
  cache-control:
448
435
  - private, max-age=0, must-revalidate
449
436
  content-length:
450
437
  - "789"
451
- server:
452
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
453
- date:
454
- - Fri, 11 Mar 2011 18:51:13 GMT
438
+ set-cookie:
439
+ - _recurly_session=0af4280b959f1a328b67af0b0c343db6; domain=.recurly.local; path=/; HttpOnly
455
440
  connection:
456
441
  - close
457
- set-cookie:
458
- - _recurly_session=4c0c1fbb94879dafb80187fba3085ad2; domain=.recurly.local; path=/; HttpOnly
442
+ server:
443
+ - thin 1.2.7 codename No Hup
459
444
  body: |
460
445
  <?xml version="1.0" encoding="UTF-8"?>
461
446
  <invoices type="array">
462
447
  <invoice>
463
- <id>f852ed503f4b449cbb3c0a6b2fceb494</id>
448
+ <id>3b38eddc07034808b6013e7f8ebaafbc</id>
464
449
  <account_code>invoice-list-1297746103</account_code>
465
- <date type="datetime">2011-03-11T18:51:10Z</date>
466
- <invoice_number type="integer">1529</invoice_number>
450
+ <date type="datetime">2011-03-18T18:51:44Z</date>
451
+ <invoice_number type="integer">2062</invoice_number>
467
452
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
468
453
  <total_in_cents type="integer">300</total_in_cents>
469
454
  </invoice>
470
455
  <invoice>
471
- <id>55a7947c9f73471e94e4512db1d7b990</id>
456
+ <id>ea99d72698c74368b8e1a97d52311952</id>
472
457
  <account_code>invoice-list-1297746103</account_code>
473
- <date type="datetime">2011-03-11T18:51:05Z</date>
474
- <invoice_number type="integer">1528</invoice_number>
458
+ <date type="datetime">2011-03-18T18:51:40Z</date>
459
+ <invoice_number type="integer">2061</invoice_number>
475
460
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
476
461
  <total_in_cents type="integer">100</total_in_cents>
477
462
  </invoice>
@@ -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/invoice-lookup-1297746103
41
41
  x-runtime:
42
- - "465"
42
+ - "328"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:51:15 GMT
47
+ set-cookie:
48
+ - _recurly_session=ac6325d48a952583e1c5a30d12944b30; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=dc4f71bbcf9c2a30ec3fea02e7c35d57f60b3fd9e5330c72d1d17236cb6a7245631e5612ca0036613ad7ce2ea27135cec8d3c556baea1de9778a8f2ab6128aad%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=4585aa5ba31fb276909ef2272bb04da0; 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>6e5fcc3c0d5b4953be000903abfb62cb</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:51:15Z</created_at>
65
+ <hosted_login_token>1ca19d28068646d6b969cf28ce907e65</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:51:49Z</created_at>
70
67
  <state>active</state>
71
68
  </account>
72
69
 
@@ -108,26 +105,24 @@
108
105
  response: !ruby/struct:VCR::Response
109
106
  status: !ruby/struct:VCR::ResponseStatus
110
107
  code: 200
111
- message: "OK "
108
+ message: OK
112
109
  headers:
113
110
  x-runtime:
114
- - "2416"
111
+ - "6107"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"65edf419b99011212dec178e83bc06bc\""
115
+ - "\"ce0985d544d3e9115cb1c35e66cf741f\""
119
116
  cache-control:
120
117
  - private, max-age=0, must-revalidate
121
118
  content-length:
122
119
  - "640"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:51:20 GMT
120
+ set-cookie:
121
+ - _recurly_session=ad6502566a4cf100358fdeb809eb6b3d; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=4b67400061dbcd2f456bd7e8ea8e3886; domain=.recurly.local; path=/; HttpOnly
124
+ server:
125
+ - thin 1.2.7 codename No Hup
131
126
  body: |
132
127
  <?xml version="1.0" encoding="UTF-8"?>
133
128
  <billing_info>
@@ -149,7 +144,7 @@
149
144
  <month type="integer">3</month>
150
145
  <year type="integer">2012</year>
151
146
  </credit_card>
152
- <updated_at type="datetime">2011-03-11T18:51:20Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:51:57Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -178,35 +173,33 @@
178
173
  response: !ruby/struct:VCR::Response
179
174
  status: !ruby/struct:VCR::ResponseStatus
180
175
  code: 201
181
- message: "Created "
176
+ message: Created
182
177
  headers:
183
178
  cache-control:
184
179
  - no-cache
185
180
  x-runtime:
186
- - "285"
181
+ - "303"
187
182
  content-type:
188
183
  - application/xml; charset=utf-8
189
184
  content-length:
190
185
  - "519"
191
- server:
192
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
193
- date:
194
- - Fri, 11 Mar 2011 18:51:22 GMT
186
+ set-cookie:
187
+ - _recurly_session=560de0ef1b2ecfafb930885dc6e8ed8b; domain=.recurly.local; path=/; HttpOnly
195
188
  connection:
196
189
  - close
197
- set-cookie:
198
- - _recurly_session=249fc58f756f44791be1ac9a46eef6ed; domain=.recurly.local; path=/; HttpOnly
190
+ server:
191
+ - thin 1.2.7 codename No Hup
199
192
  body: |
200
193
  <?xml version="1.0" encoding="UTF-8"?>
201
194
  <charge type="charge">
202
- <id>6a1d0181135341a2a36480a53cde75b6</id>
195
+ <id>a9cb1d4ea7854fd5959f3b1add3078da</id>
203
196
  <account_code>invoice-lookup-1297746103</account_code>
204
197
  <amount_in_cents type="integer">1500</amount_in_cents>
205
- <start_date type="datetime">2011-03-11T18:51:22Z</start_date>
198
+ <start_date type="datetime">2011-03-18T18:51:59Z</start_date>
206
199
  <end_date nil="true" type="datetime"></end_date>
207
200
  <invoice_number nil="true" type="integer"></invoice_number>
208
201
  <description>charge description</description>
209
- <created_at type="datetime">2011-03-11T18:51:22Z</created_at>
202
+ <created_at type="datetime">2011-03-18T18:51:59Z</created_at>
210
203
  </charge>
211
204
 
212
205
  http_version: "1.1"
@@ -233,33 +226,31 @@
233
226
  response: !ruby/struct:VCR::Response
234
227
  status: !ruby/struct:VCR::ResponseStatus
235
228
  code: 201
236
- message: "Created "
229
+ message: Created
237
230
  headers:
238
231
  cache-control:
239
232
  - no-cache
240
233
  location:
241
- - http://app.recurly.local:3000/invoices/c613ae619a224e28a65d47de10fdc215
234
+ - http://app.recurly.local:3000/invoices/1a5cbf96d7914e24ab2741c9c692f0e9
242
235
  x-runtime:
243
- - "570"
236
+ - "380"
244
237
  content-type:
245
238
  - application/xml; charset=utf-8
246
239
  content-length:
247
240
  - "1214"
248
- server:
249
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
250
- date:
251
- - Fri, 11 Mar 2011 18:51:24 GMT
241
+ set-cookie:
242
+ - _recurly_session=2dff0d035f1a6c447803cdc0b409a988; domain=.recurly.local; path=/; HttpOnly
252
243
  connection:
253
244
  - close
254
- set-cookie:
255
- - _recurly_session=a20490342d605d0ae3e393cca9f12173; domain=.recurly.local; path=/; HttpOnly
245
+ server:
246
+ - thin 1.2.7 codename No Hup
256
247
  body: |
257
248
  <?xml version="1.0" encoding="UTF-8"?>
258
249
  <invoice>
259
- <id>c613ae619a224e28a65d47de10fdc215</id>
250
+ <id>1a5cbf96d7914e24ab2741c9c692f0e9</id>
260
251
  <account_code>invoice-lookup-1297746103</account_code>
261
- <date type="datetime">2011-03-11T18:51:24Z</date>
262
- <invoice_number type="integer">1530</invoice_number>
252
+ <date type="datetime">2011-03-18T18:52:01Z</date>
253
+ <invoice_number type="integer">2063</invoice_number>
263
254
  <vat_number></vat_number>
264
255
  <status>open</status>
265
256
  <subtotal_in_cents type="integer">1500</subtotal_in_cents>
@@ -270,13 +261,13 @@
270
261
  <discount_in_cents type="integer">0</discount_in_cents>
271
262
  <line_items type="array">
272
263
  <line_item>
273
- <id>6a1d0181135341a2a36480a53cde75b6</id>
264
+ <id>a9cb1d4ea7854fd5959f3b1add3078da</id>
274
265
  <type>charge</type>
275
266
  <amount_in_cents type="integer">1500</amount_in_cents>
276
- <start_date type="datetime">2011-03-11T18:51:22Z</start_date>
267
+ <start_date type="datetime">2011-03-18T18:51:59Z</start_date>
277
268
  <end_date nil="true" type="datetime"></end_date>
278
269
  <description>charge description</description>
279
- <created_at type="datetime">2011-03-11T18:51:22Z</created_at>
270
+ <created_at type="datetime">2011-03-18T18:51:59Z</created_at>
280
271
  <applied_coupon_code></applied_coupon_code>
281
272
  </line_item>
282
273
  </line_items>
@@ -288,7 +279,7 @@
288
279
  - !ruby/struct:VCR::HTTPInteraction
289
280
  request: !ruby/struct:VCR::Request
290
281
  method: :get
291
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/invoices/c613ae619a224e28a65d47de10fdc215.xml
282
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/invoices/1a5cbf96d7914e24ab2741c9c692f0e9.xml
292
283
  body:
293
284
  headers:
294
285
  authorization:
@@ -304,33 +295,31 @@
304
295
  response: !ruby/struct:VCR::Response
305
296
  status: !ruby/struct:VCR::ResponseStatus
306
297
  code: 200
307
- message: "OK "
298
+ message: OK
308
299
  headers:
309
300
  x-runtime:
310
- - "220"
301
+ - "293"
311
302
  content-type:
312
303
  - application/xml; charset=utf-8
313
304
  etag:
314
- - "\"d25363df0e1fb6ee7dde2c074f3b44cb\""
305
+ - "\"4690d684fe910b7b8962385465fe0aa3\""
315
306
  cache-control:
316
307
  - private, max-age=0, must-revalidate
317
308
  content-length:
318
309
  - "1214"
319
- server:
320
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
321
- date:
322
- - Fri, 11 Mar 2011 18:51:26 GMT
310
+ set-cookie:
311
+ - _recurly_session=890b5a9b2b220153626be93cb31e9025; domain=.recurly.local; path=/; HttpOnly
323
312
  connection:
324
313
  - close
325
- set-cookie:
326
- - _recurly_session=f5fe4aedf5d888b5180da79be14ac5f7; domain=.recurly.local; path=/; HttpOnly
314
+ server:
315
+ - thin 1.2.7 codename No Hup
327
316
  body: |
328
317
  <?xml version="1.0" encoding="UTF-8"?>
329
318
  <invoice>
330
- <id>c613ae619a224e28a65d47de10fdc215</id>
319
+ <id>1a5cbf96d7914e24ab2741c9c692f0e9</id>
331
320
  <account_code>invoice-lookup-1297746103</account_code>
332
- <date type="datetime">2011-03-11T18:51:24Z</date>
333
- <invoice_number type="integer">1530</invoice_number>
321
+ <date type="datetime">2011-03-18T18:52:01Z</date>
322
+ <invoice_number type="integer">2063</invoice_number>
334
323
  <vat_number></vat_number>
335
324
  <status>open</status>
336
325
  <subtotal_in_cents type="integer">1500</subtotal_in_cents>
@@ -341,13 +330,13 @@
341
330
  <discount_in_cents type="integer">0</discount_in_cents>
342
331
  <line_items type="array">
343
332
  <line_item>
344
- <id>6a1d0181135341a2a36480a53cde75b6</id>
333
+ <id>a9cb1d4ea7854fd5959f3b1add3078da</id>
345
334
  <type>charge</type>
346
335
  <amount_in_cents type="integer">1500</amount_in_cents>
347
- <start_date type="datetime">2011-03-11T18:51:22Z</start_date>
336
+ <start_date type="datetime">2011-03-18T18:51:59Z</start_date>
348
337
  <end_date nil="true" type="datetime"></end_date>
349
338
  <description>charge description</description>
350
- <created_at type="datetime">2011-03-11T18:51:22Z</created_at>
339
+ <created_at type="datetime">2011-03-18T18:51:59Z</created_at>
351
340
  <applied_coupon_code></applied_coupon_code>
352
341
  </line_item>
353
342
  </line_items>