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/billing-find-1298594128
41
41
  x-runtime:
42
- - "504"
42
+ - "517"
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:48:10 GMT
47
+ set-cookie:
48
+ - _recurly_session=1505756d8c971b5a0b8062a34cae3e15; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=0b5ac3e51b25d65306e7dd1b57e81c76d44aa8a47f3836149ea24088eaf27ea5c5748212910109ffb548a7b732fd958e1260a2727bab78366679e2688e36396c%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=abab0e65ef84e6269c138a24726759e8; 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>1f518c0bc03b4121ab2df967f059374a</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:48:09Z</created_at>
65
+ <hosted_login_token>1d705101bab1441692800835bd1e2f3e</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:48:30Z</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
- - "2482"
111
+ - "6314"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"38b856336558c33a93ffd298a31af13b\""
115
+ - "\"e3b7134ae916e5e18a320c1034e0a2da\""
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:48:14 GMT
120
+ set-cookie:
121
+ - _recurly_session=cb8f5d44fac916fc5e5bf80fd461a944; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=eaf49675f163f18d7314a316b12b1ea6; 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:48:14Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:48:38Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -172,26 +167,24 @@
172
167
  response: !ruby/struct:VCR::Response
173
168
  status: !ruby/struct:VCR::ResponseStatus
174
169
  code: 200
175
- message: "OK "
170
+ message: OK
176
171
  headers:
177
172
  x-runtime:
178
- - "195"
173
+ - "296"
179
174
  content-type:
180
175
  - application/xml; charset=utf-8
181
176
  etag:
182
- - "\"38b856336558c33a93ffd298a31af13b\""
177
+ - "\"e3b7134ae916e5e18a320c1034e0a2da\""
183
178
  cache-control:
184
179
  - private, max-age=0, must-revalidate
185
180
  content-length:
186
181
  - "638"
187
- server:
188
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
189
- date:
190
- - Fri, 11 Mar 2011 18:48:16 GMT
182
+ set-cookie:
183
+ - _recurly_session=3204e1565e3e132e35cddd4ade53388d; domain=.recurly.local; path=/; HttpOnly
191
184
  connection:
192
185
  - close
193
- set-cookie:
194
- - _recurly_session=bff78a2dec5bf85762ec584359f2de7f; domain=.recurly.local; path=/; HttpOnly
186
+ server:
187
+ - thin 1.2.7 codename No Hup
195
188
  body: |
196
189
  <?xml version="1.0" encoding="UTF-8"?>
197
190
  <billing_info>
@@ -213,7 +206,7 @@
213
206
  <month type="integer">3</month>
214
207
  <year type="integer">2012</year>
215
208
  </credit_card>
216
- <updated_at type="datetime">2011-03-11T18:48:14Z</updated_at>
209
+ <updated_at type="datetime">2011-03-18T18:48:38Z</updated_at>
217
210
  </billing_info>
218
211
 
219
212
  http_version: "1.1"
@@ -236,26 +229,24 @@
236
229
  response: !ruby/struct:VCR::Response
237
230
  status: !ruby/struct:VCR::ResponseStatus
238
231
  code: 200
239
- message: "OK "
232
+ message: OK
240
233
  headers:
241
234
  x-runtime:
242
- - "201"
235
+ - "270"
243
236
  content-type:
244
237
  - application/xml; charset=utf-8
245
238
  etag:
246
- - "\"38b856336558c33a93ffd298a31af13b\""
239
+ - "\"e3b7134ae916e5e18a320c1034e0a2da\""
247
240
  cache-control:
248
241
  - private, max-age=0, must-revalidate
249
242
  content-length:
250
243
  - "638"
251
- server:
252
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
253
- date:
254
- - Fri, 11 Mar 2011 18:48:18 GMT
244
+ set-cookie:
245
+ - _recurly_session=b521f6c9c1c6af5a457459982d3598bd; domain=.recurly.local; path=/; HttpOnly
255
246
  connection:
256
247
  - close
257
- set-cookie:
258
- - _recurly_session=d045f7e01a2339a81fb7bd3757752033; domain=.recurly.local; path=/; HttpOnly
248
+ server:
249
+ - thin 1.2.7 codename No Hup
259
250
  body: |
260
251
  <?xml version="1.0" encoding="UTF-8"?>
261
252
  <billing_info>
@@ -277,7 +268,7 @@
277
268
  <month type="integer">3</month>
278
269
  <year type="integer">2012</year>
279
270
  </credit_card>
280
- <updated_at type="datetime">2011-03-11T18:48:14Z</updated_at>
271
+ <updated_at type="datetime">2011-03-18T18:48:38Z</updated_at>
281
272
  </billing_info>
282
273
 
283
274
  http_version: "1.1"
@@ -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/billing-update-1298594128
41
41
  x-runtime:
42
- - "502"
42
+ - "308"
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:47:57 GMT
47
+ set-cookie:
48
+ - _recurly_session=60da6540dc78c51d95100b7ef866f800; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=05498deb8a331a937fe0239569da1f210767c2211cc732c1cf54d66d9e629389741f0dabb7f5a9c3c57ca9290244e438874dc948439c36967b64aaa9e4b9f6f9%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=606480533b04b660cd8dd557f981e665; 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>8909514f1a804a559df06efb6d902ac6</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:47:56Z</created_at>
65
+ <hosted_login_token>f939a4e2313645b787685047e9a7a006</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:48:09Z</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
- - "1682"
111
+ - "6304"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"7cb57495c190002a1af95fbe534cabac\""
115
+ - "\"bad0320e0c2ce86084137cc852165cb8\""
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:48:00 GMT
120
+ set-cookie:
121
+ - _recurly_session=0324ad3080f8f38caa139860d7aa5f46; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=13f72d03f8ece37924b9e0e240e872b8; 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:48:00Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:48:17Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -189,26 +184,24 @@
189
184
  response: !ruby/struct:VCR::Response
190
185
  status: !ruby/struct:VCR::ResponseStatus
191
186
  code: 200
192
- message: "OK "
187
+ message: OK
193
188
  headers:
194
189
  x-runtime:
195
- - "2941"
190
+ - "7011"
196
191
  content-type:
197
192
  - application/xml; charset=utf-8
198
193
  etag:
199
- - "\"5e3185d5483730e89b9f8ba860662fe7\""
194
+ - "\"15984c324407ef4d9d148911bf6bd838\""
200
195
  cache-control:
201
196
  - private, max-age=0, must-revalidate
202
197
  content-length:
203
198
  - "652"
204
- server:
205
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
206
- date:
207
- - Fri, 11 Mar 2011 18:48:05 GMT
199
+ set-cookie:
200
+ - _recurly_session=fc39b02c6b80b4d9d89768bcc1356deb; domain=.recurly.local; path=/; HttpOnly
208
201
  connection:
209
202
  - close
210
- set-cookie:
211
- - _recurly_session=400690f4d8f5cf3062b02a62f03f6969; domain=.recurly.local; path=/; HttpOnly
203
+ server:
204
+ - thin 1.2.7 codename No Hup
212
205
  body: |
213
206
  <?xml version="1.0" encoding="UTF-8"?>
214
207
  <billing_info>
@@ -230,7 +223,7 @@
230
223
  <month type="integer">3</month>
231
224
  <year type="integer">2012</year>
232
225
  </credit_card>
233
- <updated_at type="datetime">2011-03-11T18:48:05Z</updated_at>
226
+ <updated_at type="datetime">2011-03-18T18:48:26Z</updated_at>
234
227
  </billing_info>
235
228
 
236
229
  http_version: "1.1"
@@ -253,26 +246,24 @@
253
246
  response: !ruby/struct:VCR::Response
254
247
  status: !ruby/struct:VCR::ResponseStatus
255
248
  code: 200
256
- message: "OK "
249
+ message: OK
257
250
  headers:
258
251
  x-runtime:
259
- - "190"
252
+ - "320"
260
253
  content-type:
261
254
  - application/xml; charset=utf-8
262
255
  etag:
263
- - "\"5e3185d5483730e89b9f8ba860662fe7\""
256
+ - "\"15984c324407ef4d9d148911bf6bd838\""
264
257
  cache-control:
265
258
  - private, max-age=0, must-revalidate
266
259
  content-length:
267
260
  - "652"
268
- server:
269
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
270
- date:
271
- - Fri, 11 Mar 2011 18:48:07 GMT
261
+ set-cookie:
262
+ - _recurly_session=f20807b1f99a177bad483c4ffe2b6496; domain=.recurly.local; path=/; HttpOnly
272
263
  connection:
273
264
  - close
274
- set-cookie:
275
- - _recurly_session=965a03b0eb78d470a9603f4186cfb98e; domain=.recurly.local; path=/; HttpOnly
265
+ server:
266
+ - thin 1.2.7 codename No Hup
276
267
  body: |
277
268
  <?xml version="1.0" encoding="UTF-8"?>
278
269
  <billing_info>
@@ -294,7 +285,7 @@
294
285
  <month type="integer">3</month>
295
286
  <year type="integer">2012</year>
296
287
  </credit_card>
297
- <updated_at type="datetime">2011-03-11T18:48:05Z</updated_at>
288
+ <updated_at type="datetime">2011-03-18T18:48:26Z</updated_at>
298
289
  </billing_info>
299
290
 
300
291
  http_version: "1.1"
@@ -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/charge-create-1297746103
41
41
  x-runtime:
42
- - "532"
42
+ - "314"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "581"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:49:11 GMT
47
+ set-cookie:
48
+ - _recurly_session=d2e0d7fe7583ce1d8aab83e47300fb3b; domain=.recurly.local; path=/; HttpOnly
51
49
  connection:
52
50
  - close
53
- set-cookie:
54
- - account_credentials=4758d98b8c9c52c633e90fa62ee7edc71f28b3fe8698dccc11ad1948236b9c3ffca89b63c971484ad88a48772fc5078064f564c8fd301db7b1c1a4d195d4a03c%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=bc95669aba8e3a7020146e38274086ba; 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>ca3b5ca6c6e541b48d81240fbc844c12</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:49:11Z</created_at>
65
+ <hosted_login_token>23f5a239eaef4f84883383301751c34c</hosted_login_token>
66
+ <created_at type="datetime">2011-03-18T18:49:35Z</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
- - "1670"
111
+ - "6477"
115
112
  content-type:
116
113
  - application/xml; charset=utf-8
117
114
  etag:
118
- - "\"7c0c7c8aea93c7a1728ecb4f4ab3ed1a\""
115
+ - "\"164f9d1e404e42e66fa1e50c5344e065\""
119
116
  cache-control:
120
117
  - private, max-age=0, must-revalidate
121
118
  content-length:
122
119
  - "639"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:49:15 GMT
120
+ set-cookie:
121
+ - _recurly_session=b8f3f3f6f8615269ead1be844183eee4; domain=.recurly.local; path=/; HttpOnly
127
122
  connection:
128
123
  - close
129
- set-cookie:
130
- - _recurly_session=b7242828a4949ac0e0047887475e4fea; 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:49:15Z</updated_at>
147
+ <updated_at type="datetime">2011-03-18T18:49:44Z</updated_at>
153
148
  </billing_info>
154
149
 
155
150
  http_version: "1.1"
@@ -178,42 +173,40 @@
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
- - "361"
181
+ - "292"
187
182
  content-type:
188
183
  - application/xml; charset=utf-8
189
184
  content-length:
190
185
  - "524"
191
- server:
192
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
193
- date:
194
- - Fri, 11 Mar 2011 18:49:17 GMT
186
+ set-cookie:
187
+ - _recurly_session=e04cbd83c46e4d24b830e28b17bb3e9c; domain=.recurly.local; path=/; HttpOnly
195
188
  connection:
196
189
  - close
197
- set-cookie:
198
- - _recurly_session=e8b24b62838d23eea041f73e5f916b99; 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>d2898fd133c0492684e40a953d5d904f</id>
195
+ <id>8172b73143634d32a25f17dba6ff66d7</id>
203
196
  <account_code>charge-create-1297746103</account_code>
204
197
  <amount_in_cents type="integer">250</amount_in_cents>
205
- <start_date type="datetime">2011-03-11T18:49:17Z</start_date>
198
+ <start_date type="datetime">2011-03-18T18:49:46Z</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>virtual cow maintence fee</description>
209
- <created_at type="datetime">2011-03-11T18:49:17Z</created_at>
202
+ <created_at type="datetime">2011-03-18T18:49:46Z</created_at>
210
203
  </charge>
211
204
 
212
205
  http_version: "1.1"
213
206
  - !ruby/struct:VCR::HTTPInteraction
214
207
  request: !ruby/struct:VCR::Request
215
208
  method: :get
216
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/charges/d2898fd133c0492684e40a953d5d904f.xml
209
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/charge-create-1297746103/charges/8172b73143634d32a25f17dba6ff66d7.xml
217
210
  body:
218
211
  headers:
219
212
  authorization:
@@ -229,37 +222,35 @@
229
222
  response: !ruby/struct:VCR::Response
230
223
  status: !ruby/struct:VCR::ResponseStatus
231
224
  code: 200
232
- message: "OK "
225
+ message: OK
233
226
  headers:
234
227
  x-runtime:
235
- - "192"
228
+ - "274"
236
229
  content-type:
237
230
  - application/xml; charset=utf-8
238
231
  etag:
239
- - "\"ea27652f26d2a3552336fc20cc644ff2\""
232
+ - "\"45bc773a376aa73da9ba5299920d3b47\""
240
233
  cache-control:
241
234
  - private, max-age=0, must-revalidate
242
235
  content-length:
243
236
  - "524"
244
- server:
245
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
246
- date:
247
- - Fri, 11 Mar 2011 18:49:19 GMT
237
+ set-cookie:
238
+ - _recurly_session=20981d0bca9ffcd99350d4edf15af3af; domain=.recurly.local; path=/; HttpOnly
248
239
  connection:
249
240
  - close
250
- set-cookie:
251
- - _recurly_session=34a7bdc7af8e4ac7142c367613c8efda; domain=.recurly.local; path=/; HttpOnly
241
+ server:
242
+ - thin 1.2.7 codename No Hup
252
243
  body: |
253
244
  <?xml version="1.0" encoding="UTF-8"?>
254
245
  <charge type="charge">
255
- <id>d2898fd133c0492684e40a953d5d904f</id>
246
+ <id>8172b73143634d32a25f17dba6ff66d7</id>
256
247
  <account_code>charge-create-1297746103</account_code>
257
248
  <amount_in_cents type="integer">250</amount_in_cents>
258
- <start_date type="datetime">2011-03-11T18:49:17Z</start_date>
249
+ <start_date type="datetime">2011-03-18T18:49:46Z</start_date>
259
250
  <end_date nil="true" type="datetime"></end_date>
260
251
  <invoice_number nil="true" type="integer"></invoice_number>
261
252
  <description>virtual cow maintence fee</description>
262
- <created_at type="datetime">2011-03-11T18:49:17Z</created_at>
253
+ <created_at type="datetime">2011-03-18T18:49:46Z</created_at>
263
254
  </charge>
264
255
 
265
256
  http_version: "1.1"