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/invoice-list-1297746103
41
41
  x-runtime:
42
- - "418"
42
+ - "262"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "579"
47
- set-cookie:
48
- - _recurly_session=265bc704a9d6621534af62dfccce895d; 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:01:45 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=d8702cb5d74bc17b702ff935ff3ccb75; 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>fc7ecaa8730b4ab9a554a1d6ee3fff69</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:43:54Z</created_at>
67
+ <hosted_login_token>66a458d1234a498a80637292f63b4a6f</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T18:01:45Z</created_at>
67
69
  <state>active</state>
68
70
  </account>
69
71
 
@@ -71,7 +73,7 @@
71
73
  - !ruby/struct:VCR::HTTPInteraction
72
74
  request: !ruby/struct:VCR::Request
73
75
  method: :put
74
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -93,36 +95,38 @@
93
95
 
94
96
  headers:
95
97
  authorization:
96
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
98
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
+ user-agent:
100
+ - Recurly Ruby Client v0.4.6
97
101
  content-type:
98
102
  - application/xml
99
103
  accept:
100
104
  - "*/*"
101
- user-agent:
102
- - Ruby
103
105
  connection:
104
106
  - close
105
107
  response: !ruby/struct:VCR::Response
106
108
  status: !ruby/struct:VCR::ResponseStatus
107
109
  code: 200
108
- message: OK
110
+ message: "OK "
109
111
  headers:
110
112
  x-runtime:
111
- - "1574"
113
+ - "1433"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"d3f362ecc659537ff5f6f6c3f23a2652\""
117
+ - "\"741d100de5960f30d086f7641364c903\""
116
118
  cache-control:
117
119
  - private, max-age=0, must-revalidate
118
120
  content-length:
119
121
  - "638"
120
- set-cookie:
121
- - _recurly_session=059fcb277c8a5ccc0a77bb83540f643f; domain=.recurly.local; path=/; HttpOnly
122
+ server:
123
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
124
+ date:
125
+ - Thu, 21 Apr 2011 18:01:48 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=b41f2a1a9f460eacb59dc3813bd84a21; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,14 +148,14 @@
144
148
  <month type="integer">4</month>
145
149
  <year type="integer">2012</year>
146
150
  </credit_card>
147
- <updated_at type="datetime">2011-04-05T19:43:58Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T18:01:48Z</updated_at>
148
152
  </billing_info>
149
153
 
150
154
  http_version: "1.1"
151
155
  - !ruby/struct:VCR::HTTPInteraction
152
156
  request: !ruby/struct:VCR::Request
153
157
  method: :post
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
155
159
  body: |
156
160
  <?xml version="1.0" encoding="UTF-8"?>
157
161
  <charge>
@@ -161,52 +165,56 @@
161
165
 
162
166
  headers:
163
167
  authorization:
164
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
168
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
169
+ user-agent:
170
+ - Recurly Ruby Client v0.4.6
165
171
  content-type:
166
172
  - application/xml
167
173
  accept:
168
174
  - "*/*"
169
- user-agent:
170
- - Ruby
171
175
  connection:
172
176
  - close
173
177
  response: !ruby/struct:VCR::Response
174
178
  status: !ruby/struct:VCR::ResponseStatus
175
179
  code: 201
176
- message: Created
180
+ message: "Created "
177
181
  headers:
178
182
  cache-control:
179
183
  - no-cache
180
184
  x-runtime:
181
- - "390"
185
+ - "241"
182
186
  content-type:
183
187
  - application/xml; charset=utf-8
184
188
  content-length:
185
- - "516"
186
- set-cookie:
187
- - _recurly_session=2c09e3901ba845d51a5da678cd40eefe; domain=.recurly.local; path=/; HttpOnly
189
+ - "622"
190
+ server:
191
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
192
+ date:
193
+ - Thu, 21 Apr 2011 18:01:50 GMT
188
194
  connection:
189
195
  - close
190
- server:
191
- - thin 1.2.7 codename No Hup
196
+ set-cookie:
197
+ - _recurly_session=031626953b2d37017d09eb9ce3c8c0f2; domain=.recurly.local; path=/; HttpOnly
192
198
  body: |
193
199
  <?xml version="1.0" encoding="UTF-8"?>
194
200
  <charge type="charge">
195
- <id>d9240af8718444b3aeaf6f52e3b224a7</id>
201
+ <id>387bc51bc35f40989d429239c5e3af7e</id>
196
202
  <account_code>invoice-list-1297746103</account_code>
203
+ <quantity type="integer">1</quantity>
204
+ <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
197
205
  <amount_in_cents type="integer">100</amount_in_cents>
198
- <start_date type="datetime">2011-04-05T19:44:01Z</start_date>
206
+ <start_date type="datetime">2011-04-21T18:01:50Z</start_date>
199
207
  <end_date nil="true" type="datetime"></end_date>
200
208
  <invoice_number nil="true" type="integer"></invoice_number>
201
209
  <description>charge description</description>
202
- <created_at type="datetime">2011-04-05T19:44:01Z</created_at>
210
+ <created_at type="datetime">2011-04-21T18:01:50Z</created_at>
203
211
  </charge>
204
212
 
205
213
  http_version: "1.1"
206
214
  - !ruby/struct:VCR::HTTPInteraction
207
215
  request: !ruby/struct:VCR::Request
208
216
  method: :post
209
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
217
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
210
218
  body: |
211
219
  <?xml version="1.0" encoding="UTF-8"?>
212
220
  <invoice>
@@ -214,43 +222,45 @@
214
222
 
215
223
  headers:
216
224
  authorization:
217
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
225
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
226
+ user-agent:
227
+ - Recurly Ruby Client v0.4.6
218
228
  content-type:
219
229
  - application/xml
220
230
  accept:
221
231
  - "*/*"
222
- user-agent:
223
- - Ruby
224
232
  connection:
225
233
  - close
226
234
  response: !ruby/struct:VCR::Response
227
235
  status: !ruby/struct:VCR::ResponseStatus
228
236
  code: 201
229
- message: Created
237
+ message: "Created "
230
238
  headers:
231
239
  cache-control:
232
240
  - no-cache
233
241
  location:
234
- - http://app.recurly.local:3000/invoices/aa26f745f0d840a0a10a1adce3883647
242
+ - http://app.recurly.local:3000/invoices/f285c90b9d0440ae94d578b5e7038637
235
243
  x-runtime:
236
- - "769"
244
+ - "508"
237
245
  content-type:
238
246
  - application/xml; charset=utf-8
239
247
  content-length:
240
248
  - "1208"
241
- set-cookie:
242
- - _recurly_session=8add5883c0800b3b255c83d907d8ed6d; domain=.recurly.local; path=/; HttpOnly
249
+ server:
250
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
251
+ date:
252
+ - Thu, 21 Apr 2011 18:01:52 GMT
243
253
  connection:
244
254
  - close
245
- server:
246
- - thin 1.2.7 codename No Hup
255
+ set-cookie:
256
+ - _recurly_session=474640c514028f929ec5f6f2f405dd6f; domain=.recurly.local; path=/; HttpOnly
247
257
  body: |
248
258
  <?xml version="1.0" encoding="UTF-8"?>
249
259
  <invoice>
250
- <id>aa26f745f0d840a0a10a1adce3883647</id>
260
+ <id>f285c90b9d0440ae94d578b5e7038637</id>
251
261
  <account_code>invoice-list-1297746103</account_code>
252
- <date type="datetime">2011-04-05T19:44:04Z</date>
253
- <invoice_number type="integer">1402</invoice_number>
262
+ <date type="datetime">2011-04-21T18:01:52Z</date>
263
+ <invoice_number type="integer">1013</invoice_number>
254
264
  <vat_number></vat_number>
255
265
  <status>open</status>
256
266
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
@@ -261,13 +271,13 @@
261
271
  <discount_in_cents type="integer">0</discount_in_cents>
262
272
  <line_items type="array">
263
273
  <line_item>
264
- <id>d9240af8718444b3aeaf6f52e3b224a7</id>
274
+ <id>387bc51bc35f40989d429239c5e3af7e</id>
265
275
  <type>charge</type>
266
276
  <amount_in_cents type="integer">100</amount_in_cents>
267
- <start_date type="datetime">2011-04-05T19:44:01Z</start_date>
277
+ <start_date type="datetime">2011-04-21T18:01:50Z</start_date>
268
278
  <end_date nil="true" type="datetime"></end_date>
269
279
  <description>charge description</description>
270
- <created_at type="datetime">2011-04-05T19:44:01Z</created_at>
280
+ <created_at type="datetime">2011-04-21T18:01:50Z</created_at>
271
281
  <applied_coupon_code></applied_coupon_code>
272
282
  </line_item>
273
283
  </line_items>
@@ -279,7 +289,7 @@
279
289
  - !ruby/struct:VCR::HTTPInteraction
280
290
  request: !ruby/struct:VCR::Request
281
291
  method: :post
282
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
292
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/charges.xml
283
293
  body: |
284
294
  <?xml version="1.0" encoding="UTF-8"?>
285
295
  <charge>
@@ -289,52 +299,56 @@
289
299
 
290
300
  headers:
291
301
  authorization:
292
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
302
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
303
+ user-agent:
304
+ - Recurly Ruby Client v0.4.6
293
305
  content-type:
294
306
  - application/xml
295
307
  accept:
296
308
  - "*/*"
297
- user-agent:
298
- - Ruby
299
309
  connection:
300
310
  - close
301
311
  response: !ruby/struct:VCR::Response
302
312
  status: !ruby/struct:VCR::ResponseStatus
303
313
  code: 201
304
- message: Created
314
+ message: "Created "
305
315
  headers:
306
316
  cache-control:
307
317
  - no-cache
308
318
  x-runtime:
309
- - "390"
319
+ - "236"
310
320
  content-type:
311
321
  - application/xml; charset=utf-8
312
322
  content-length:
313
- - "516"
314
- set-cookie:
315
- - _recurly_session=2e1e9b7ae3bbfe2e695fd5bb467ddab0; domain=.recurly.local; path=/; HttpOnly
323
+ - "622"
324
+ server:
325
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
326
+ date:
327
+ - Thu, 21 Apr 2011 18:01:54 GMT
316
328
  connection:
317
329
  - close
318
- server:
319
- - thin 1.2.7 codename No Hup
330
+ set-cookie:
331
+ - _recurly_session=aabdb2e0251643df1a28df302eb15a1d; domain=.recurly.local; path=/; HttpOnly
320
332
  body: |
321
333
  <?xml version="1.0" encoding="UTF-8"?>
322
334
  <charge type="charge">
323
- <id>d7a30da3f90d4d97b3979c4780606327</id>
335
+ <id>52499fa56f2f41c79929c2251b7e8376</id>
324
336
  <account_code>invoice-list-1297746103</account_code>
337
+ <quantity type="integer">1</quantity>
338
+ <unit_amount_in_cents type="integer">300</unit_amount_in_cents>
325
339
  <amount_in_cents type="integer">300</amount_in_cents>
326
- <start_date type="datetime">2011-04-05T19:44:07Z</start_date>
340
+ <start_date type="datetime">2011-04-21T18:01:54Z</start_date>
327
341
  <end_date nil="true" type="datetime"></end_date>
328
342
  <invoice_number nil="true" type="integer"></invoice_number>
329
343
  <description>charge description</description>
330
- <created_at type="datetime">2011-04-05T19:44:07Z</created_at>
344
+ <created_at type="datetime">2011-04-21T18:01:54Z</created_at>
331
345
  </charge>
332
346
 
333
347
  http_version: "1.1"
334
348
  - !ruby/struct:VCR::HTTPInteraction
335
349
  request: !ruby/struct:VCR::Request
336
350
  method: :post
337
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
351
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
338
352
  body: |
339
353
  <?xml version="1.0" encoding="UTF-8"?>
340
354
  <invoice>
@@ -342,43 +356,45 @@
342
356
 
343
357
  headers:
344
358
  authorization:
345
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
359
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
360
+ user-agent:
361
+ - Recurly Ruby Client v0.4.6
346
362
  content-type:
347
363
  - application/xml
348
364
  accept:
349
365
  - "*/*"
350
- user-agent:
351
- - Ruby
352
366
  connection:
353
367
  - close
354
368
  response: !ruby/struct:VCR::Response
355
369
  status: !ruby/struct:VCR::ResponseStatus
356
370
  code: 201
357
- message: Created
371
+ message: "Created "
358
372
  headers:
359
373
  cache-control:
360
374
  - no-cache
361
375
  location:
362
- - http://app.recurly.local:3000/invoices/c2da66bc161c49d1adaa26dfef95bee8
376
+ - http://app.recurly.local:3000/invoices/b5c683e31bc74d799b0459717e31c585
363
377
  x-runtime:
364
- - "768"
378
+ - "478"
365
379
  content-type:
366
380
  - application/xml; charset=utf-8
367
381
  content-length:
368
382
  - "1208"
369
- set-cookie:
370
- - _recurly_session=d422a73f78488454c681d48660044b00; domain=.recurly.local; path=/; HttpOnly
383
+ server:
384
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
385
+ date:
386
+ - Thu, 21 Apr 2011 18:01:57 GMT
371
387
  connection:
372
388
  - close
373
- server:
374
- - thin 1.2.7 codename No Hup
389
+ set-cookie:
390
+ - _recurly_session=70ce585759d8ffdd372e22c2930b9417; domain=.recurly.local; path=/; HttpOnly
375
391
  body: |
376
392
  <?xml version="1.0" encoding="UTF-8"?>
377
393
  <invoice>
378
- <id>c2da66bc161c49d1adaa26dfef95bee8</id>
394
+ <id>b5c683e31bc74d799b0459717e31c585</id>
379
395
  <account_code>invoice-list-1297746103</account_code>
380
- <date type="datetime">2011-04-05T19:44:09Z</date>
381
- <invoice_number type="integer">1403</invoice_number>
396
+ <date type="datetime">2011-04-21T18:01:56Z</date>
397
+ <invoice_number type="integer">1014</invoice_number>
382
398
  <vat_number></vat_number>
383
399
  <status>open</status>
384
400
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
@@ -389,13 +405,13 @@
389
405
  <discount_in_cents type="integer">0</discount_in_cents>
390
406
  <line_items type="array">
391
407
  <line_item>
392
- <id>d7a30da3f90d4d97b3979c4780606327</id>
408
+ <id>52499fa56f2f41c79929c2251b7e8376</id>
393
409
  <type>charge</type>
394
410
  <amount_in_cents type="integer">300</amount_in_cents>
395
- <start_date type="datetime">2011-04-05T19:44:07Z</start_date>
411
+ <start_date type="datetime">2011-04-21T18:01:54Z</start_date>
396
412
  <end_date nil="true" type="datetime"></end_date>
397
413
  <description>charge description</description>
398
- <created_at type="datetime">2011-04-05T19:44:07Z</created_at>
414
+ <created_at type="datetime">2011-04-21T18:01:54Z</created_at>
399
415
  <applied_coupon_code></applied_coupon_code>
400
416
  </line_item>
401
417
  </line_items>
@@ -407,56 +423,58 @@
407
423
  - !ruby/struct:VCR::HTTPInteraction
408
424
  request: !ruby/struct:VCR::Request
409
425
  method: :get
410
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
426
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/invoice-list-1297746103/invoices.xml
411
427
  body:
412
428
  headers:
413
429
  authorization:
414
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
430
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
431
+ user-agent:
432
+ - Recurly Ruby Client v0.4.6
415
433
  accept:
416
434
  - application/xml
417
435
  accept-encoding:
418
436
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
419
- user-agent:
420
- - Ruby
421
437
  connection:
422
438
  - close
423
439
  response: !ruby/struct:VCR::Response
424
440
  status: !ruby/struct:VCR::ResponseStatus
425
441
  code: 200
426
- message: OK
442
+ message: "OK "
427
443
  headers:
428
444
  x-runtime:
429
- - "371"
445
+ - "224"
430
446
  content-type:
431
447
  - application/xml; charset=utf-8
432
448
  etag:
433
- - "\"5111abac2ce11e49c4b34ae995693275\""
449
+ - "\"dcc35425876fd9774c8800daed1ad9a5\""
434
450
  cache-control:
435
451
  - private, max-age=0, must-revalidate
436
452
  content-length:
437
453
  - "789"
438
- set-cookie:
439
- - _recurly_session=e5757339632af011409ac3ca47e8e117; domain=.recurly.local; path=/; HttpOnly
454
+ server:
455
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
456
+ date:
457
+ - Thu, 21 Apr 2011 18:01:58 GMT
440
458
  connection:
441
459
  - close
442
- server:
443
- - thin 1.2.7 codename No Hup
460
+ set-cookie:
461
+ - _recurly_session=928ef2d90f17d60e917d489567a2b977; domain=.recurly.local; path=/; HttpOnly
444
462
  body: |
445
463
  <?xml version="1.0" encoding="UTF-8"?>
446
464
  <invoices type="array">
447
465
  <invoice>
448
- <id>c2da66bc161c49d1adaa26dfef95bee8</id>
466
+ <id>b5c683e31bc74d799b0459717e31c585</id>
449
467
  <account_code>invoice-list-1297746103</account_code>
450
- <date type="datetime">2011-04-05T19:44:09Z</date>
451
- <invoice_number type="integer">1403</invoice_number>
468
+ <date type="datetime">2011-04-21T18:01:56Z</date>
469
+ <invoice_number type="integer">1014</invoice_number>
452
470
  <subtotal_in_cents type="integer">300</subtotal_in_cents>
453
471
  <total_in_cents type="integer">300</total_in_cents>
454
472
  </invoice>
455
473
  <invoice>
456
- <id>aa26f745f0d840a0a10a1adce3883647</id>
474
+ <id>f285c90b9d0440ae94d578b5e7038637</id>
457
475
  <account_code>invoice-list-1297746103</account_code>
458
- <date type="datetime">2011-04-05T19:44:04Z</date>
459
- <invoice_number type="integer">1402</invoice_number>
476
+ <date type="datetime">2011-04-21T18:01:52Z</date>
477
+ <invoice_number type="integer">1013</invoice_number>
460
478
  <subtotal_in_cents type="integer">100</subtotal_in_cents>
461
479
  <total_in_cents type="integer">100</total_in_cents>
462
480
  </invoice>