recurly 0.2.3 → 0.2.4

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 (80) hide show
  1. data/lib/recurly.rb +1 -0
  2. data/lib/recurly/charge.rb +6 -0
  3. data/lib/recurly/subscription.rb +23 -5
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/charge_spec.rb +45 -0
  6. data/spec/integration/credit_spec.rb +19 -0
  7. data/spec/integration/subscription_spec.rb +62 -9
  8. data/spec/vcr/account/close/1287167046.yml +15 -15
  9. data/spec/vcr/account/create-blank/1287167046.yml +3 -3
  10. data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
  11. data/spec/vcr/account/create-min/1287167046.yml +6 -6
  12. data/spec/vcr/account/create/1287167046.yml +6 -6
  13. data/spec/vcr/account/find/1287167046.yml +14 -14
  14. data/spec/vcr/account/list/1287167046.yml +101 -101
  15. data/spec/vcr/account/update/1287167046.yml +26 -26
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +23 -23
  18. data/spec/vcr/billing/find/1286682213.yml +21 -21
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +24 -24
  21. data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
  22. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  23. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  24. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  25. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  26. data/spec/vcr/credit/create/1286681343.yml +20 -20
  27. data/spec/vcr/credit/create/1287460732.yml +171 -0
  28. data/spec/vcr/credit/create/1287461340.yml +171 -0
  29. data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
  30. data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
  31. data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
  32. data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
  33. data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
  34. data/spec/vcr/credit/list/1286681343.yml +36 -36
  35. data/spec/vcr/credit/list/1287460732.yml +299 -0
  36. data/spec/vcr/credit/list/1287461340.yml +299 -0
  37. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  38. data/spec/vcr/credit/lookup/1287460732.yml +171 -0
  39. data/spec/vcr/credit/lookup/1287461340.yml +171 -0
  40. data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
  41. data/spec/vcr/invoice/create/1287167121.yml +36 -36
  42. data/spec/vcr/invoice/list/1287167121.yml +52 -52
  43. data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
  44. data/spec/vcr/plan/all.yml +9 -9
  45. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  46. data/spec/vcr/plan/find.yml +9 -9
  47. data/spec/vcr/plan/update.yml +9 -9
  48. data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
  49. data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
  50. data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
  51. data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
  52. data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
  53. data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
  54. data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
  55. data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
  56. data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
  57. data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
  58. data/spec/vcr/transaction/all/1287186411.yml +80 -80
  59. data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
  60. data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
  61. data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
  62. data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
  63. data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
  64. data/spec/vcr/transaction/refund/1287186411.yml +24 -24
  65. data/spec/vcr/transaction/void/1287186411.yml +60 -60
  66. metadata +67 -56
  67. data/spec/vcr/subscription/change1/1287439446.yml +0 -409
  68. data/spec/vcr/subscription/change1/1287442108.yml +0 -409
  69. data/spec/vcr/subscription/change2/1287439446.yml +0 -409
  70. data/spec/vcr/subscription/change2/1287442108.yml +0 -409
  71. data/spec/vcr/subscription/create/1287439446.yml +0 -224
  72. data/spec/vcr/subscription/create/1287442108.yml +0 -224
  73. data/spec/vcr/subscription/find/1287439446.yml +0 -283
  74. data/spec/vcr/subscription/find/1287442352.yml +0 -283
  75. data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
  76. data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
  77. data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
  78. data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
  79. data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
  80. data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -36,15 +36,15 @@
36
36
  x-runtime:
37
37
  - "585"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:05:59 GMT
39
+ - Tue, 19 Oct 2010 03:19:54 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "579"
44
44
  set-cookie:
45
- - account_credentials=f2fe28f82fcc2b5fdda01e9ad1346c96ceff2d112cf36cd2b56660b744b9804d28c2b452e7bd0c17b16b6a1214d57ea9f34113ec526ad3997cecfa413aa52b2c%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=f8d50568ca4724f1bb8ce51b99c4734899990b9ebf9c084b1482066181b5792dfa4d454a28eb3de3f5f00e6fce361ed9079e3803641ab98658f949534ea19a73%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=ce6a2df39a07da8cbb1fca801e01ec9f; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=518af601a5317f1810f2df7f0e14eeab; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>d6c3f549826648f385983a0ac57c9284</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:05:59Z</created_at>
62
+ <hosted_login_token>00840f50067748b6a3c4e009b8625423</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:54Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -105,21 +105,21 @@
105
105
  x-ua-compatible:
106
106
  - IE=Edge
107
107
  etag:
108
- - "\"24bc675a1bf74f5905e3b781d2507289\""
108
+ - "\"92cf5c8fe63f1bc40334dd1894cfd04b\""
109
109
  connection:
110
110
  - close
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  x-runtime:
114
- - "57"
114
+ - "82"
115
115
  date:
116
- - Mon, 18 Oct 2010 22:06:00 GMT
116
+ - Tue, 19 Oct 2010 03:19:55 GMT
117
117
  server:
118
118
  - nginx/0.7.65
119
119
  content-length:
120
120
  - "637"
121
121
  set-cookie:
122
- - _recurly_session=6b6b4d142806ce15b338c320d0b531a4; domain=.recurly.com; path=/; Secure; HttpOnly
122
+ - _recurly_session=cd4b7a5b1d767eb90f7a3d6f6944ccb4; domain=.recurly.com; path=/; Secure; HttpOnly
123
123
  cache-control:
124
124
  - private, max-age=0, must-revalidate
125
125
  body: |
@@ -143,7 +143,7 @@
143
143
  <month type="integer">10</month>
144
144
  <year type="integer">2011</year>
145
145
  </credit_card>
146
- <updated_at type="datetime">2010-10-18T22:06:00Z</updated_at>
146
+ <updated_at type="datetime">2010-10-19T03:19:55Z</updated_at>
147
147
  </billing_info>
148
148
 
149
149
  http_version: "1.1"
@@ -177,27 +177,27 @@
177
177
  content-type:
178
178
  - application/xml; charset=utf-8
179
179
  x-runtime:
180
- - "66"
180
+ - "44"
181
181
  date:
182
- - Mon, 18 Oct 2010 22:06:01 GMT
182
+ - Tue, 19 Oct 2010 03:19:55 GMT
183
183
  server:
184
184
  - nginx/0.7.65
185
185
  content-length:
186
186
  - "454"
187
187
  set-cookie:
188
- - _recurly_session=070ed51b18a7f520112a80c0867d12bd; domain=.recurly.com; path=/; Secure; HttpOnly
188
+ - _recurly_session=bf119231da2c4aee08d16a8a588ca2e1; domain=.recurly.com; path=/; Secure; HttpOnly
189
189
  cache-control:
190
190
  - no-cache
191
191
  body: |
192
192
  <?xml version="1.0" encoding="UTF-8"?>
193
193
  <charge type="charge">
194
- <id>d9ee23a486be4fe2a7838c080803089b</id>
194
+ <id>c1c7a769cadd4cdb93aa9b8bc04694c9</id>
195
195
  <account_code>invoice-list-1287167121</account_code>
196
196
  <amount_in_cents type="integer">100</amount_in_cents>
197
- <start_date type="datetime">2010-10-18T22:06:01Z</start_date>
197
+ <start_date type="datetime">2010-10-19T03:19:55Z</start_date>
198
198
  <end_date nil="true" type="datetime"></end_date>
199
199
  <description>charge description</description>
200
- <created_at type="datetime">2010-10-18T22:06:01Z</created_at>
200
+ <created_at type="datetime">2010-10-19T03:19:55Z</created_at>
201
201
  </charge>
202
202
 
203
203
  http_version: "1.1"
@@ -225,30 +225,30 @@
225
225
  message: Created
226
226
  headers:
227
227
  location:
228
- - https://recurlytest3-test.recurly.com/invoices/e0e1ef8c4968482abfb89ec7fcc70fdd
228
+ - https://recurlytest3-test.recurly.com/invoices/b08ffa1cce634dc8a21ccad00ba16795
229
229
  connection:
230
230
  - close
231
231
  content-type:
232
232
  - application/xml; charset=utf-8
233
233
  x-runtime:
234
- - "65"
234
+ - "67"
235
235
  date:
236
- - Mon, 18 Oct 2010 22:06:02 GMT
236
+ - Tue, 19 Oct 2010 03:19:56 GMT
237
237
  server:
238
238
  - nginx/0.7.65
239
239
  content-length:
240
240
  - "1100"
241
241
  set-cookie:
242
- - _recurly_session=4d51bc5ff65235ff1564771387c71439; domain=.recurly.com; path=/; Secure; HttpOnly
242
+ - _recurly_session=8966af3ed2d54030618762570575759b; domain=.recurly.com; path=/; Secure; HttpOnly
243
243
  cache-control:
244
244
  - no-cache
245
245
  body: |
246
246
  <?xml version="1.0" encoding="UTF-8"?>
247
247
  <invoice>
248
- <id>e0e1ef8c4968482abfb89ec7fcc70fdd</id>
248
+ <id>b08ffa1cce634dc8a21ccad00ba16795</id>
249
249
  <account_code>invoice-list-1287167121</account_code>
250
- <date type="datetime">2010-10-18T22:06:01Z</date>
251
- <invoice_number type="integer">1867</invoice_number>
250
+ <date type="datetime">2010-10-19T03:19:56Z</date>
251
+ <invoice_number type="integer">1995</invoice_number>
252
252
  <vat_number></vat_number>
253
253
  <status>open</status>
254
254
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
@@ -258,13 +258,13 @@
258
258
  <total_due_in_cents type="integer">100</total_due_in_cents>
259
259
  <line_items type="array">
260
260
  <line_item>
261
- <id>d9ee23a486be4fe2a7838c080803089b</id>
261
+ <id>c1c7a769cadd4cdb93aa9b8bc04694c9</id>
262
262
  <type>charge</type>
263
263
  <amount_in_cents type="integer">100</amount_in_cents>
264
- <start_date type="datetime">2010-10-18T22:06:01Z</start_date>
264
+ <start_date type="datetime">2010-10-19T03:19:55Z</start_date>
265
265
  <end_date nil="true" type="datetime"></end_date>
266
266
  <description>charge description</description>
267
- <created_at type="datetime">2010-10-18T22:06:01Z</created_at>
267
+ <created_at type="datetime">2010-10-19T03:19:55Z</created_at>
268
268
  </line_item>
269
269
  </line_items>
270
270
  <payments type="array">
@@ -302,27 +302,27 @@
302
302
  content-type:
303
303
  - application/xml; charset=utf-8
304
304
  x-runtime:
305
- - "46"
305
+ - "65"
306
306
  date:
307
- - Mon, 18 Oct 2010 22:06:02 GMT
307
+ - Tue, 19 Oct 2010 03:19:57 GMT
308
308
  server:
309
309
  - nginx/0.7.65
310
310
  content-length:
311
311
  - "454"
312
312
  set-cookie:
313
- - _recurly_session=81d350dc68e0b5e1d6731a1522f3d82d; domain=.recurly.com; path=/; Secure; HttpOnly
313
+ - _recurly_session=3725daa8f99ef8abfaf498245c3e4ecc; domain=.recurly.com; path=/; Secure; HttpOnly
314
314
  cache-control:
315
315
  - no-cache
316
316
  body: |
317
317
  <?xml version="1.0" encoding="UTF-8"?>
318
318
  <charge type="charge">
319
- <id>c9e96cc99f764c6a93908bb88c655fc9</id>
319
+ <id>b48555a72dcd4f42890653cb4afafa3b</id>
320
320
  <account_code>invoice-list-1287167121</account_code>
321
321
  <amount_in_cents type="integer">300</amount_in_cents>
322
- <start_date type="datetime">2010-10-18T22:06:02Z</start_date>
322
+ <start_date type="datetime">2010-10-19T03:19:56Z</start_date>
323
323
  <end_date nil="true" type="datetime"></end_date>
324
324
  <description>charge description</description>
325
- <created_at type="datetime">2010-10-18T22:06:02Z</created_at>
325
+ <created_at type="datetime">2010-10-19T03:19:57Z</created_at>
326
326
  </charge>
327
327
 
328
328
  http_version: "1.1"
@@ -350,30 +350,30 @@
350
350
  message: Created
351
351
  headers:
352
352
  location:
353
- - https://recurlytest3-test.recurly.com/invoices/70cb8776120c41cf956991a4468b3ef9
353
+ - https://recurlytest3-test.recurly.com/invoices/2e08896ebd674b168d84746062edf23e
354
354
  connection:
355
355
  - close
356
356
  content-type:
357
357
  - application/xml; charset=utf-8
358
358
  x-runtime:
359
- - "93"
359
+ - "64"
360
360
  date:
361
- - Mon, 18 Oct 2010 22:06:03 GMT
361
+ - Tue, 19 Oct 2010 03:19:57 GMT
362
362
  server:
363
363
  - nginx/0.7.65
364
364
  content-length:
365
365
  - "1100"
366
366
  set-cookie:
367
- - _recurly_session=cab3de87f7d68f20b035e4de828c7945; domain=.recurly.com; path=/; Secure; HttpOnly
367
+ - _recurly_session=53ae1027b1d9bc7031ea25aa283e2c23; domain=.recurly.com; path=/; Secure; HttpOnly
368
368
  cache-control:
369
369
  - no-cache
370
370
  body: |
371
371
  <?xml version="1.0" encoding="UTF-8"?>
372
372
  <invoice>
373
- <id>70cb8776120c41cf956991a4468b3ef9</id>
373
+ <id>2e08896ebd674b168d84746062edf23e</id>
374
374
  <account_code>invoice-list-1287167121</account_code>
375
- <date type="datetime">2010-10-18T22:06:03Z</date>
376
- <invoice_number type="integer">1868</invoice_number>
375
+ <date type="datetime">2010-10-19T03:19:57Z</date>
376
+ <invoice_number type="integer">1996</invoice_number>
377
377
  <vat_number></vat_number>
378
378
  <status>open</status>
379
379
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
@@ -383,13 +383,13 @@
383
383
  <total_due_in_cents type="integer">300</total_due_in_cents>
384
384
  <line_items type="array">
385
385
  <line_item>
386
- <id>c9e96cc99f764c6a93908bb88c655fc9</id>
386
+ <id>b48555a72dcd4f42890653cb4afafa3b</id>
387
387
  <type>charge</type>
388
388
  <amount_in_cents type="integer">300</amount_in_cents>
389
- <start_date type="datetime">2010-10-18T22:06:02Z</start_date>
389
+ <start_date type="datetime">2010-10-19T03:19:56Z</start_date>
390
390
  <end_date nil="true" type="datetime"></end_date>
391
391
  <description>charge description</description>
392
- <created_at type="datetime">2010-10-18T22:06:02Z</created_at>
392
+ <created_at type="datetime">2010-10-19T03:19:57Z</created_at>
393
393
  </line_item>
394
394
  </line_items>
395
395
  <payments type="array">
@@ -417,39 +417,39 @@
417
417
  x-ua-compatible:
418
418
  - IE=Edge
419
419
  etag:
420
- - "\"8b693589722830db32a389ae180125d6\""
420
+ - "\"6d1fa6661ad771a5dbc2d12456890555\""
421
421
  connection:
422
422
  - close
423
423
  content-type:
424
424
  - application/xml; charset=utf-8
425
425
  x-runtime:
426
- - "17"
426
+ - "16"
427
427
  date:
428
- - Mon, 18 Oct 2010 22:06:03 GMT
428
+ - Tue, 19 Oct 2010 03:19:58 GMT
429
429
  server:
430
430
  - nginx/0.7.65
431
431
  content-length:
432
432
  - "789"
433
433
  set-cookie:
434
- - _recurly_session=e863ad44da4e1a0be7e63fcbcece272c; domain=.recurly.com; path=/; Secure; HttpOnly
434
+ - _recurly_session=a16ccfa7f51a2d312e638de3f5e5921b; domain=.recurly.com; path=/; Secure; HttpOnly
435
435
  cache-control:
436
436
  - private, max-age=0, must-revalidate
437
437
  body: |
438
438
  <?xml version="1.0" encoding="UTF-8"?>
439
439
  <invoices type="array">
440
440
  <invoice>
441
- <id>70cb8776120c41cf956991a4468b3ef9</id>
441
+ <id>2e08896ebd674b168d84746062edf23e</id>
442
442
  <account_code>invoice-list-1287167121</account_code>
443
- <date type="datetime">2010-10-18T22:06:03Z</date>
444
- <invoice_number type="integer">1868</invoice_number>
443
+ <date type="datetime">2010-10-19T03:19:57Z</date>
444
+ <invoice_number type="integer">1996</invoice_number>
445
445
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
446
446
  <total_in_cents type="integer">300</total_in_cents>
447
447
  </invoice>
448
448
  <invoice>
449
- <id>e0e1ef8c4968482abfb89ec7fcc70fdd</id>
449
+ <id>b08ffa1cce634dc8a21ccad00ba16795</id>
450
450
  <account_code>invoice-list-1287167121</account_code>
451
- <date type="datetime">2010-10-18T22:06:01Z</date>
452
- <invoice_number type="integer">1867</invoice_number>
451
+ <date type="datetime">2010-10-19T03:19:56Z</date>
452
+ <invoice_number type="integer">1995</invoice_number>
453
453
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
454
454
  <total_in_cents type="integer">100</total_in_cents>
455
455
  </invoice>
@@ -34,17 +34,17 @@
34
34
  content-type:
35
35
  - application/xml; charset=utf-8
36
36
  x-runtime:
37
- - "587"
37
+ - "614"
38
38
  date:
39
- - Mon, 18 Oct 2010 22:06:05 GMT
39
+ - Tue, 19 Oct 2010 03:19:59 GMT
40
40
  server:
41
41
  - nginx/0.7.65
42
42
  content-length:
43
43
  - "583"
44
44
  set-cookie:
45
- - account_credentials=5a06882ab4da91292d02b871f1bb6615ed53d818adb3ee5731e724b293ef6c40b1c48a6ee1266b84f1bf0817e6eb30078e0aab73649c8622f7495451fa5292d7%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
45
+ - account_credentials=1fa144602de862772f1a0515afae71068efc404972233c871bf4dfce04fc2bed3283b8587254cc376f48abb46982946fb35b81a55b4a30ac5dfabda2efa3257d%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
46
  - ""
47
- - _recurly_session=12391007c1381c03633749d6459f9e18; domain=.recurly.com; path=/; Secure; HttpOnly
47
+ - _recurly_session=7e8e4d988f46249d35b03068fe79220a; domain=.recurly.com; path=/; Secure; HttpOnly
48
48
  cache-control:
49
49
  - no-cache
50
50
  body: |
@@ -59,8 +59,8 @@
59
59
  <company_name>Recurly Ruby Gem</company_name>
60
60
  <balance_in_cents type="integer">0</balance_in_cents>
61
61
  <closed type="boolean">false</closed>
62
- <hosted_login_token>d1b39b3deb0f4d1f92e1abb2c04b3eac</hosted_login_token>
63
- <created_at type="datetime">2010-10-18T22:06:05Z</created_at>
62
+ <hosted_login_token>9f402687b7574b529ec3a1d23280e09e</hosted_login_token>
63
+ <created_at type="datetime">2010-10-19T03:19:59Z</created_at>
64
64
  <state>active</state>
65
65
  </account>
66
66
 
@@ -105,21 +105,21 @@
105
105
  x-ua-compatible:
106
106
  - IE=Edge
107
107
  etag:
108
- - "\"31555d301b4872e8c032320f307911c2\""
108
+ - "\"32d098de920b5b7a480808c230e51708\""
109
109
  connection:
110
110
  - close
111
111
  content-type:
112
112
  - application/xml; charset=utf-8
113
113
  x-runtime:
114
- - "247"
114
+ - "56"
115
115
  date:
116
- - Mon, 18 Oct 2010 22:06:05 GMT
116
+ - Tue, 19 Oct 2010 03:20:00 GMT
117
117
  server:
118
118
  - nginx/0.7.65
119
119
  content-length:
120
120
  - "639"
121
121
  set-cookie:
122
- - _recurly_session=34c38c6c3067cf7e2f9d43ac376fe286; domain=.recurly.com; path=/; Secure; HttpOnly
122
+ - _recurly_session=4e2d0c0ab31e956938da29e30daca31e; domain=.recurly.com; path=/; Secure; HttpOnly
123
123
  cache-control:
124
124
  - private, max-age=0, must-revalidate
125
125
  body: |
@@ -143,7 +143,7 @@
143
143
  <month type="integer">10</month>
144
144
  <year type="integer">2011</year>
145
145
  </credit_card>
146
- <updated_at type="datetime">2010-10-18T22:06:05Z</updated_at>
146
+ <updated_at type="datetime">2010-10-19T03:20:00Z</updated_at>
147
147
  </billing_info>
148
148
 
149
149
  http_version: "1.1"
@@ -177,27 +177,27 @@
177
177
  content-type:
178
178
  - application/xml; charset=utf-8
179
179
  x-runtime:
180
- - "79"
180
+ - "46"
181
181
  date:
182
- - Mon, 18 Oct 2010 22:06:06 GMT
182
+ - Tue, 19 Oct 2010 03:20:01 GMT
183
183
  server:
184
184
  - nginx/0.7.65
185
185
  content-length:
186
186
  - "457"
187
187
  set-cookie:
188
- - _recurly_session=79eacc2804df8cd8ea27ef6e22b1c041; domain=.recurly.com; path=/; Secure; HttpOnly
188
+ - _recurly_session=d8f21f88d5e16eb0b754cc5979a53c40; domain=.recurly.com; path=/; Secure; HttpOnly
189
189
  cache-control:
190
190
  - no-cache
191
191
  body: |
192
192
  <?xml version="1.0" encoding="UTF-8"?>
193
193
  <charge type="charge">
194
- <id>8852d71ae91341428dc4355e3cff1222</id>
194
+ <id>0dce890a3f4b47428a818b6330211b7c</id>
195
195
  <account_code>invoice-lookup-1287167121</account_code>
196
196
  <amount_in_cents type="integer">1500</amount_in_cents>
197
- <start_date type="datetime">2010-10-18T22:06:06Z</start_date>
197
+ <start_date type="datetime">2010-10-19T03:20:01Z</start_date>
198
198
  <end_date nil="true" type="datetime"></end_date>
199
199
  <description>charge description</description>
200
- <created_at type="datetime">2010-10-18T22:06:06Z</created_at>
200
+ <created_at type="datetime">2010-10-19T03:20:01Z</created_at>
201
201
  </charge>
202
202
 
203
203
  http_version: "1.1"
@@ -225,30 +225,30 @@
225
225
  message: Created
226
226
  headers:
227
227
  location:
228
- - https://recurlytest3-test.recurly.com/invoices/05c1063f3b5542cf980806d8f6cde6fd
228
+ - https://recurlytest3-test.recurly.com/invoices/00bf751c19a04b71ac063d54a7a98f82
229
229
  connection:
230
230
  - close
231
231
  content-type:
232
232
  - application/xml; charset=utf-8
233
233
  x-runtime:
234
- - "66"
234
+ - "91"
235
235
  date:
236
- - Mon, 18 Oct 2010 22:06:07 GMT
236
+ - Tue, 19 Oct 2010 03:20:01 GMT
237
237
  server:
238
238
  - nginx/0.7.65
239
239
  content-length:
240
240
  - "1106"
241
241
  set-cookie:
242
- - _recurly_session=708f3fe82f1bf83954a7912ffb6003c8; domain=.recurly.com; path=/; Secure; HttpOnly
242
+ - _recurly_session=b7b57396efb36d6288c11aad83dd846c; domain=.recurly.com; path=/; Secure; HttpOnly
243
243
  cache-control:
244
244
  - no-cache
245
245
  body: |
246
246
  <?xml version="1.0" encoding="UTF-8"?>
247
247
  <invoice>
248
- <id>05c1063f3b5542cf980806d8f6cde6fd</id>
248
+ <id>00bf751c19a04b71ac063d54a7a98f82</id>
249
249
  <account_code>invoice-lookup-1287167121</account_code>
250
- <date type="datetime">2010-10-18T22:06:07Z</date>
251
- <invoice_number type="integer">1869</invoice_number>
250
+ <date type="datetime">2010-10-19T03:20:01Z</date>
251
+ <invoice_number type="integer">1997</invoice_number>
252
252
  <vat_number></vat_number>
253
253
  <status>open</status>
254
254
  <subtotal_in_cents type="integer">1500</subtotal_in_cents>
@@ -258,13 +258,13 @@
258
258
  <total_due_in_cents type="integer">1500</total_due_in_cents>
259
259
  <line_items type="array">
260
260
  <line_item>
261
- <id>8852d71ae91341428dc4355e3cff1222</id>
261
+ <id>0dce890a3f4b47428a818b6330211b7c</id>
262
262
  <type>charge</type>
263
263
  <amount_in_cents type="integer">1500</amount_in_cents>
264
- <start_date type="datetime">2010-10-18T22:06:06Z</start_date>
264
+ <start_date type="datetime">2010-10-19T03:20:01Z</start_date>
265
265
  <end_date nil="true" type="datetime"></end_date>
266
266
  <description>charge description</description>
267
- <created_at type="datetime">2010-10-18T22:06:06Z</created_at>
267
+ <created_at type="datetime">2010-10-19T03:20:01Z</created_at>
268
268
  </line_item>
269
269
  </line_items>
270
270
  <payments type="array">
@@ -275,7 +275,7 @@
275
275
  - !ruby/struct:VCR::HTTPInteraction
276
276
  request: !ruby/struct:VCR::Request
277
277
  method: :get
278
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/invoices/05c1063f3b5542cf980806d8f6cde6fd.xml
278
+ uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/invoices/00bf751c19a04b71ac063d54a7a98f82.xml
279
279
  body:
280
280
  headers:
281
281
  accept:
@@ -292,30 +292,30 @@
292
292
  x-ua-compatible:
293
293
  - IE=Edge
294
294
  etag:
295
- - "\"f05075795d263549a78bb72a7457d7d2\""
295
+ - "\"a56f7e7e5fdd8094ac5fde99b28bc33e\""
296
296
  connection:
297
297
  - close
298
298
  content-type:
299
299
  - application/xml; charset=utf-8
300
300
  x-runtime:
301
- - "37"
301
+ - "22"
302
302
  date:
303
- - Mon, 18 Oct 2010 22:06:08 GMT
303
+ - Tue, 19 Oct 2010 03:20:02 GMT
304
304
  server:
305
305
  - nginx/0.7.65
306
306
  content-length:
307
307
  - "1106"
308
308
  set-cookie:
309
- - _recurly_session=1714cde40a663716d5ef9d7ce63ff65f; domain=.recurly.com; path=/; Secure; HttpOnly
309
+ - _recurly_session=24c7a266a200df4a0f11ff38ac3f9e32; domain=.recurly.com; path=/; Secure; HttpOnly
310
310
  cache-control:
311
311
  - private, max-age=0, must-revalidate
312
312
  body: |
313
313
  <?xml version="1.0" encoding="UTF-8"?>
314
314
  <invoice>
315
- <id>05c1063f3b5542cf980806d8f6cde6fd</id>
315
+ <id>00bf751c19a04b71ac063d54a7a98f82</id>
316
316
  <account_code>invoice-lookup-1287167121</account_code>
317
- <date type="datetime">2010-10-18T22:06:07Z</date>
318
- <invoice_number type="integer">1869</invoice_number>
317
+ <date type="datetime">2010-10-19T03:20:01Z</date>
318
+ <invoice_number type="integer">1997</invoice_number>
319
319
  <vat_number></vat_number>
320
320
  <status>open</status>
321
321
  <subtotal_in_cents type="integer">1500</subtotal_in_cents>
@@ -325,13 +325,13 @@
325
325
  <total_due_in_cents type="integer">1500</total_due_in_cents>
326
326
  <line_items type="array">
327
327
  <line_item>
328
- <id>8852d71ae91341428dc4355e3cff1222</id>
328
+ <id>0dce890a3f4b47428a818b6330211b7c</id>
329
329
  <type>charge</type>
330
330
  <amount_in_cents type="integer">1500</amount_in_cents>
331
- <start_date type="datetime">2010-10-18T22:06:06Z</start_date>
331
+ <start_date type="datetime">2010-10-19T03:20:01Z</start_date>
332
332
  <end_date nil="true" type="datetime"></end_date>
333
333
  <description>charge description</description>
334
- <created_at type="datetime">2010-10-18T22:06:06Z</created_at>
334
+ <created_at type="datetime">2010-10-19T03:20:01Z</created_at>
335
335
  </line_item>
336
336
  </line_items>
337
337
  <payments type="array">