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/billing-destroy-1302025874
41
41
  x-runtime:
42
- - "392"
42
+ - "243"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "585"
47
- set-cookie:
48
- - _recurly_session=dc638412e526a9457056455bb17d263a; 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 17:59:39 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=8d57f36844b0edd4b7671821f3b67d88; 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>36aec34152124afe9610381b2c19506c</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:40:46Z</created_at>
67
+ <hosted_login_token>9b5bb51c584241a2942793335934f128</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:59:39Z</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/billing-destroy-1302025874/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -92,36 +94,38 @@
92
94
 
93
95
  headers:
94
96
  authorization:
95
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
97
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
98
+ user-agent:
99
+ - Recurly Ruby Client v0.4.6
96
100
  content-type:
97
101
  - application/xml
98
102
  accept:
99
103
  - "*/*"
100
- user-agent:
101
- - Ruby
102
104
  connection:
103
105
  - close
104
106
  response: !ruby/struct:VCR::Response
105
107
  status: !ruby/struct:VCR::ResponseStatus
106
108
  code: 200
107
- message: OK
109
+ message: "OK "
108
110
  headers:
109
111
  x-runtime:
110
- - "1482"
112
+ - "1285"
111
113
  content-type:
112
114
  - application/xml; charset=utf-8
113
115
  etag:
114
- - "\"5da95a208d5dbc5e5fca560fbf0f3589\""
116
+ - "\"5dab41abcbfdabe8bf49798658c96102\""
115
117
  cache-control:
116
118
  - private, max-age=0, must-revalidate
117
119
  content-length:
118
120
  - "650"
119
- set-cookie:
120
- - _recurly_session=189370751a4f798845ae78b94a93f642; domain=.recurly.local; path=/; HttpOnly
121
+ server:
122
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
123
+ date:
124
+ - Thu, 21 Apr 2011 17:59:42 GMT
121
125
  connection:
122
126
  - close
123
- server:
124
- - thin 1.2.7 codename No Hup
127
+ set-cookie:
128
+ - _recurly_session=15d6b6789d88109d824218d25f8f384e; domain=.recurly.local; path=/; HttpOnly
125
129
  body: |
126
130
  <?xml version="1.0" encoding="UTF-8"?>
127
131
  <billing_info>
@@ -143,47 +147,49 @@
143
147
  <month type="integer">4</month>
144
148
  <year type="integer">2012</year>
145
149
  </credit_card>
146
- <updated_at type="datetime">2011-04-05T19:40:50Z</updated_at>
150
+ <updated_at type="datetime">2011-04-21T17:59:42Z</updated_at>
147
151
  </billing_info>
148
152
 
149
153
  http_version: "1.1"
150
154
  - !ruby/struct:VCR::HTTPInteraction
151
155
  request: !ruby/struct:VCR::Request
152
156
  method: :get
153
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
157
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
154
158
  body:
155
159
  headers:
156
160
  authorization:
157
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
161
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
162
+ user-agent:
163
+ - Recurly Ruby Client v0.4.6
158
164
  accept:
159
165
  - application/xml
160
166
  accept-encoding:
161
167
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
162
- user-agent:
163
- - Ruby
164
168
  connection:
165
169
  - close
166
170
  response: !ruby/struct:VCR::Response
167
171
  status: !ruby/struct:VCR::ResponseStatus
168
172
  code: 200
169
- message: OK
173
+ message: "OK "
170
174
  headers:
171
175
  x-runtime:
172
- - "364"
176
+ - "211"
173
177
  content-type:
174
178
  - application/xml; charset=utf-8
175
179
  etag:
176
- - "\"5da95a208d5dbc5e5fca560fbf0f3589\""
180
+ - "\"5dab41abcbfdabe8bf49798658c96102\""
177
181
  cache-control:
178
182
  - private, max-age=0, must-revalidate
179
183
  content-length:
180
184
  - "650"
181
- set-cookie:
182
- - _recurly_session=b9b348aed8506f97ba973c662ce904bb; domain=.recurly.local; path=/; HttpOnly
185
+ server:
186
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
187
+ date:
188
+ - Thu, 21 Apr 2011 17:59:44 GMT
183
189
  connection:
184
190
  - close
185
- server:
186
- - thin 1.2.7 codename No Hup
191
+ set-cookie:
192
+ - _recurly_session=f74b308160284f35a287945df8fdd790; domain=.recurly.local; path=/; HttpOnly
187
193
  body: |
188
194
  <?xml version="1.0" encoding="UTF-8"?>
189
195
  <billing_info>
@@ -205,65 +211,67 @@
205
211
  <month type="integer">4</month>
206
212
  <year type="integer">2012</year>
207
213
  </credit_card>
208
- <updated_at type="datetime">2011-04-05T19:40:50Z</updated_at>
214
+ <updated_at type="datetime">2011-04-21T17:59:42Z</updated_at>
209
215
  </billing_info>
210
216
 
211
217
  http_version: "1.1"
212
218
  - !ruby/struct:VCR::HTTPInteraction
213
219
  request: !ruby/struct:VCR::Request
214
220
  method: :delete
215
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
221
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
216
222
  body:
217
223
  headers:
218
224
  authorization:
219
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
225
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
226
+ user-agent:
227
+ - Recurly Ruby Client v0.4.6
220
228
  accept:
221
229
  - application/xml
222
- user-agent:
223
- - Ruby
224
230
  connection:
225
231
  - close
226
232
  response: !ruby/struct:VCR::Response
227
233
  status: !ruby/struct:VCR::ResponseStatus
228
234
  code: 200
229
- message: OK
235
+ message: "OK "
230
236
  headers:
231
237
  cache-control:
232
238
  - no-cache
233
239
  x-runtime:
234
- - "363"
240
+ - "214"
235
241
  content-type:
236
242
  - application/xml; charset=utf-8
237
243
  content-length:
238
244
  - "1"
239
- set-cookie:
240
- - _recurly_session=fc1b0f65a525c2a118dbe43a39d146f6; domain=.recurly.local; path=/; HttpOnly
245
+ server:
246
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
247
+ date:
248
+ - Thu, 21 Apr 2011 17:59:45 GMT
241
249
  connection:
242
250
  - close
243
- server:
244
- - thin 1.2.7 codename No Hup
251
+ set-cookie:
252
+ - _recurly_session=eec9027969faeeb78f2bda8a9a52ba03; domain=.recurly.local; path=/; HttpOnly
245
253
  body: " "
246
254
  http_version: "1.1"
247
255
  - !ruby/struct:VCR::HTTPInteraction
248
256
  request: !ruby/struct:VCR::Request
249
257
  method: :get
250
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
258
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-destroy-1302025874/billing_info.xml
251
259
  body:
252
260
  headers:
253
261
  authorization:
254
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
262
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
263
+ user-agent:
264
+ - Recurly Ruby Client v0.4.6
255
265
  accept:
256
266
  - application/xml
257
267
  accept-encoding:
258
268
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
259
- user-agent:
260
- - Ruby
261
269
  connection:
262
270
  - close
263
271
  response: !ruby/struct:VCR::Response
264
272
  status: !ruby/struct:VCR::ResponseStatus
265
273
  code: 404
266
- message: Not Found
274
+ message: "Not Found "
267
275
  headers:
268
276
  cache-control:
269
277
  - no-cache
@@ -271,12 +279,14 @@
271
279
  - application/xml; charset=utf-8
272
280
  content-length:
273
281
  - "98"
274
- set-cookie:
275
- - _recurly_session=3de5a5a98016f998ea45e0f46647b2b8; domain=.recurly.local; path=/; HttpOnly
282
+ server:
283
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
284
+ date:
285
+ - Thu, 21 Apr 2011 17:59:47 GMT
276
286
  connection:
277
287
  - close
278
- server:
279
- - thin 1.2.7 codename No Hup
288
+ set-cookie:
289
+ - _recurly_session=ba21f38036dafbbee3d300e3e64c051a; domain=.recurly.local; path=/; HttpOnly
280
290
  body: |
281
291
  <?xml version="1.0" encoding="UTF-8"?>
282
292
  <errors>
@@ -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/billing-errors-1302025874
41
41
  x-runtime:
42
- - "395"
42
+ - "297"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "583"
47
- set-cookie:
48
- - _recurly_session=54510a52a5c58e2dd01a0abe21ba6027; 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 17:59:49 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=c127cccf2611bbcb69f972db3401df7b; 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>aa2144bfc67f46d3a36c3adea8e2c12e</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:41:00Z</created_at>
67
+ <hosted_login_token>cbb57c9245254400b2e2027dca222baa</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:59:49Z</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/billing-errors-1302025874/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-errors-1302025874/billing_info.xml
75
77
  body: |
76
78
  <?xml version="1.0" encoding="UTF-8"?>
77
79
  <billing-info>
@@ -89,13 +91,13 @@
89
91
 
90
92
  headers:
91
93
  authorization:
92
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
94
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
95
+ user-agent:
96
+ - Recurly Ruby Client v0.4.6
93
97
  content-type:
94
98
  - application/xml
95
99
  accept:
96
100
  - "*/*"
97
- user-agent:
98
- - Ruby
99
101
  connection:
100
102
  - close
101
103
  response: !ruby/struct:VCR::Response
@@ -106,17 +108,19 @@
106
108
  cache-control:
107
109
  - no-cache
108
110
  x-runtime:
109
- - "737"
111
+ - "434"
110
112
  content-type:
111
113
  - application/xml; charset=utf-8
112
114
  content-length:
113
115
  - "183"
114
- set-cookie:
115
- - _recurly_session=accac18fba05be16b7f3ce81b05afb7f; domain=.recurly.local; path=/; HttpOnly
116
+ server:
117
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
118
+ date:
119
+ - Thu, 21 Apr 2011 17:59:51 GMT
116
120
  connection:
117
121
  - close
118
- server:
119
- - thin 1.2.7 codename No Hup
122
+ set-cookie:
123
+ - _recurly_session=da171d9bcbeb6ea36f727be867f4afaa; domain=.recurly.local; path=/; HttpOnly
120
124
  body: |
121
125
  <?xml version="1.0" encoding="UTF-8"?>
122
126
  <errors>
@@ -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/billing-find-1302025874
41
41
  x-runtime:
42
- - "404"
42
+ - "244"
43
43
  content-type:
44
44
  - application/xml; charset=utf-8
45
45
  content-length:
46
46
  - "579"
47
- set-cookie:
48
- - _recurly_session=42e4bf0e3c6488d307e3d610beaaae4a; 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 17:59:30 GMT
49
51
  connection:
50
52
  - close
51
- server:
52
- - thin 1.2.7 codename No Hup
53
+ set-cookie:
54
+ - _recurly_session=44ded577fe2f67bb1d7759e2023cfb8f; 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>4729c1ba137c4845bf45e1f80da8f949</hosted_login_token>
66
- <created_at type="datetime">2011-04-05T19:40:34Z</created_at>
67
+ <hosted_login_token>500f654abb934a948c62bc1641e50803</hosted_login_token>
68
+ <created_at type="datetime">2011-04-21T17:59:30Z</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/billing-find-1302025874/billing_info.xml
76
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-find-1302025874/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
- - "1760"
113
+ - "1512"
112
114
  content-type:
113
115
  - application/xml; charset=utf-8
114
116
  etag:
115
- - "\"4f4aa40795d59f5dbc7886c0d0e51074\""
117
+ - "\"d8e1fc69426bd98482aae6d9aef39936\""
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=5282ea3901fa742112ef2919d52a06b7; 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 17:59:33 GMT
122
126
  connection:
123
127
  - close
124
- server:
125
- - thin 1.2.7 codename No Hup
128
+ set-cookie:
129
+ - _recurly_session=37c521ced0582deab3111f42add15a51; domain=.recurly.local; path=/; HttpOnly
126
130
  body: |
127
131
  <?xml version="1.0" encoding="UTF-8"?>
128
132
  <billing_info>
@@ -144,47 +148,49 @@
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:40:38Z</updated_at>
151
+ <updated_at type="datetime">2011-04-21T17:59:33Z</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: :get
154
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
158
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
155
159
  body:
156
160
  headers:
157
161
  authorization:
158
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
162
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
163
+ user-agent:
164
+ - Recurly Ruby Client v0.4.6
159
165
  accept:
160
166
  - application/xml
161
167
  accept-encoding:
162
168
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
163
- user-agent:
164
- - Ruby
165
169
  connection:
166
170
  - close
167
171
  response: !ruby/struct:VCR::Response
168
172
  status: !ruby/struct:VCR::ResponseStatus
169
173
  code: 200
170
- message: OK
174
+ message: "OK "
171
175
  headers:
172
176
  x-runtime:
173
- - "360"
177
+ - "202"
174
178
  content-type:
175
179
  - application/xml; charset=utf-8
176
180
  etag:
177
- - "\"4f4aa40795d59f5dbc7886c0d0e51074\""
181
+ - "\"d8e1fc69426bd98482aae6d9aef39936\""
178
182
  cache-control:
179
183
  - private, max-age=0, must-revalidate
180
184
  content-length:
181
185
  - "638"
182
- set-cookie:
183
- - _recurly_session=02496d3138085654345bc5b75302b43f; domain=.recurly.local; path=/; HttpOnly
186
+ server:
187
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
188
+ date:
189
+ - Thu, 21 Apr 2011 17:59:35 GMT
184
190
  connection:
185
191
  - close
186
- server:
187
- - thin 1.2.7 codename No Hup
192
+ set-cookie:
193
+ - _recurly_session=09300481885cb9996a129e3b02532ead; domain=.recurly.local; path=/; HttpOnly
188
194
  body: |
189
195
  <?xml version="1.0" encoding="UTF-8"?>
190
196
  <billing_info>
@@ -206,47 +212,49 @@
206
212
  <month type="integer">4</month>
207
213
  <year type="integer">2012</year>
208
214
  </credit_card>
209
- <updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
215
+ <updated_at type="datetime">2011-04-21T17:59:33Z</updated_at>
210
216
  </billing_info>
211
217
 
212
218
  http_version: "1.1"
213
219
  - !ruby/struct:VCR::HTTPInteraction
214
220
  request: !ruby/struct:VCR::Request
215
221
  method: :get
216
- uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
222
+ uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/billing-find-1302025874/billing_info.xml
217
223
  body:
218
224
  headers:
219
225
  authorization:
220
- - Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
226
+ - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
227
+ user-agent:
228
+ - Recurly Ruby Client v0.4.6
221
229
  accept:
222
230
  - application/xml
223
231
  accept-encoding:
224
232
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
225
- user-agent:
226
- - Ruby
227
233
  connection:
228
234
  - close
229
235
  response: !ruby/struct:VCR::Response
230
236
  status: !ruby/struct:VCR::ResponseStatus
231
237
  code: 200
232
- message: OK
238
+ message: "OK "
233
239
  headers:
234
240
  x-runtime:
235
- - "358"
241
+ - "212"
236
242
  content-type:
237
243
  - application/xml; charset=utf-8
238
244
  etag:
239
- - "\"4f4aa40795d59f5dbc7886c0d0e51074\""
245
+ - "\"d8e1fc69426bd98482aae6d9aef39936\""
240
246
  cache-control:
241
247
  - private, max-age=0, must-revalidate
242
248
  content-length:
243
249
  - "638"
244
- set-cookie:
245
- - _recurly_session=8525b291edfb65c4aeae5282e04c39c8; domain=.recurly.local; path=/; HttpOnly
250
+ server:
251
+ - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
252
+ date:
253
+ - Thu, 21 Apr 2011 17:59:37 GMT
246
254
  connection:
247
255
  - close
248
- server:
249
- - thin 1.2.7 codename No Hup
256
+ set-cookie:
257
+ - _recurly_session=377cc82a3273f0c45c20193214634503; domain=.recurly.local; path=/; HttpOnly
250
258
  body: |
251
259
  <?xml version="1.0" encoding="UTF-8"?>
252
260
  <billing_info>
@@ -268,7 +276,7 @@
268
276
  <month type="integer">4</month>
269
277
  <year type="integer">2012</year>
270
278
  </credit_card>
271
- <updated_at type="datetime">2011-04-05T19:40:38Z</updated_at>
279
+ <updated_at type="datetime">2011-04-21T17:59:33Z</updated_at>
272
280
  </billing_info>
273
281
 
274
282
  http_version: "1.1"