recurly 0.3.3 → 0.3.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 (99) hide show
  1. data/README.md +15 -11
  2. data/lib/patches/active_resource/connection.rb +10 -0
  3. data/lib/recurly.rb +35 -9
  4. data/lib/recurly/account.rb +22 -1
  5. data/lib/recurly/account_base.rb +35 -0
  6. data/lib/recurly/base.rb +26 -39
  7. data/lib/recurly/billing_info.rb +40 -1
  8. data/lib/recurly/charge.rb +12 -1
  9. data/lib/recurly/coupon.rb +8 -0
  10. data/lib/recurly/credit.rb +12 -1
  11. data/lib/recurly/exceptions.rb +19 -0
  12. data/lib/recurly/invoice.rb +1 -1
  13. data/lib/recurly/plan.rb +13 -1
  14. data/lib/recurly/rails3/recurly.rake +5 -3
  15. data/lib/recurly/subscription.rb +21 -3
  16. data/lib/recurly/transaction.rb +29 -1
  17. data/lib/recurly/transparent.rb +140 -0
  18. data/lib/recurly/version.rb +1 -1
  19. data/spec/config/recurly.yml +12 -0
  20. data/spec/config/test1.yml +3 -1
  21. data/spec/config/test2.yml +4 -2
  22. data/spec/integration/credit_spec.rb +6 -6
  23. data/spec/integration/plan_spec.rb +2 -2
  24. data/spec/support/factory.rb +5 -3
  25. data/spec/unit/account_spec.rb +19 -0
  26. data/spec/unit/billing_info_spec.rb +38 -0
  27. data/spec/unit/charge_spec.rb +18 -0
  28. data/spec/unit/config_spec.rb +10 -6
  29. data/spec/unit/coupon_spec.rb +13 -0
  30. data/spec/unit/credit_spec.rb +18 -0
  31. data/spec/unit/plan_spec.rb +18 -0
  32. data/spec/unit/subscription_spec.rb +25 -0
  33. data/spec/unit/transaction_spec.rb +32 -0
  34. data/spec/unit/transparent_spec.rb +114 -0
  35. data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
  36. data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
  37. data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
  38. data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
  39. data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
  40. data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
  41. data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
  42. data/spec/vcr/account/list/1297746103.yml +1579 -0
  43. data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
  44. data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
  45. data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
  46. data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
  47. data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
  48. data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
  49. data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
  50. data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
  51. data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
  52. data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
  53. data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
  54. data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
  55. data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
  56. data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
  57. data/spec/vcr/credit/delete/1299714599.yml +262 -0
  58. data/spec/vcr/credit/list/1299714599.yml +319 -0
  59. data/spec/vcr/credit/lookup/1299714599.yml +183 -0
  60. data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
  61. data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
  62. data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
  63. data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
  64. data/spec/vcr/plan/all.yml +30 -30
  65. data/spec/vcr/plan/find.yml +25 -25
  66. data/spec/vcr/plan/update.yml +16 -15
  67. data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
  68. data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
  69. data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
  70. data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
  71. data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
  72. data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
  73. data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
  74. data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
  75. data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
  76. data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
  77. data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
  78. data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
  79. data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
  80. data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
  81. data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
  82. data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
  83. data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
  84. data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
  85. data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
  86. data/spec/vcr/transaction/refund/1297746103.yml +213 -0
  87. data/spec/vcr/transaction/void/1297746103.yml +213 -0
  88. metadata +146 -139
  89. data/spec/vcr/account/list/1296674173.yml +0 -55
  90. data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
  91. data/spec/vcr/credit/create/1296674173.yml +0 -121
  92. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  93. data/spec/vcr/credit/list/1296674173.yml +0 -121
  94. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  95. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  96. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  97. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  98. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  99. data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -0,0 +1,1579 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :post
5
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>account-list-num-0-1297746103</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language type="yaml" nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ authorization:
23
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
24
+ content-type:
25
+ - application/xml
26
+ accept:
27
+ - "*/*"
28
+ user-agent:
29
+ - Ruby
30
+ connection:
31
+ - close
32
+ response: !ruby/struct:VCR::Response
33
+ status: !ruby/struct:VCR::ResponseStatus
34
+ code: 201
35
+ message: "Created "
36
+ headers:
37
+ cache-control:
38
+ - no-cache
39
+ location:
40
+ - http://app.recurly.local:3000/accounts/account-list-num-0-1297746103
41
+ x-runtime:
42
+ - "415"
43
+ content-type:
44
+ - application/xml; charset=utf-8
45
+ content-length:
46
+ - "591"
47
+ server:
48
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
+ date:
50
+ - Fri, 11 Mar 2011 18:45:54 GMT
51
+ connection:
52
+ - close
53
+ set-cookie:
54
+ - account_credentials=fe84280687cff55f891d7dc2981ac8719cfb4c4b6f9a2505e47948359350a384bbfdcb88840d134245d22d57a7072034bdcb60dbee2766899e68da4ab08cfb39%3A%3A; domain=.recurly.local; path=/
55
+ - _recurly_session=ab773a146c823348dd27672fff6ffc73; domain=.recurly.local; path=/; HttpOnly
56
+ body: |
57
+ <?xml version="1.0" encoding="UTF-8"?>
58
+ <account>
59
+ <id>account-list-num-0-1297746103</id>
60
+ <account_code>account-list-num-0-1297746103</account_code>
61
+ <username></username>
62
+ <email>verena@test.com</email>
63
+ <first_name>Verena</first_name>
64
+ <last_name>Test</last_name>
65
+ <company_name>Recurly Ruby Gem</company_name>
66
+ <balance_in_cents type="integer">0</balance_in_cents>
67
+ <closed type="boolean">false</closed>
68
+ <hosted_login_token>52a23c6e2c9e4539b4a28c956e84f673</hosted_login_token>
69
+ <created_at type="datetime">2011-03-11T18:45:54Z</created_at>
70
+ <state>active</state>
71
+ </account>
72
+
73
+ http_version: "1.1"
74
+ - !ruby/struct:VCR::HTTPInteraction
75
+ request: !ruby/struct:VCR::Request
76
+ method: :post
77
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
78
+ body: |
79
+ <?xml version="1.0" encoding="UTF-8"?>
80
+ <account>
81
+ <account-code>account-list-num-1-1297746103</account-code>
82
+ <first-name>Verena</first-name>
83
+ <last-name>Test</last-name>
84
+ <email>verena@test.com</email>
85
+ <company-name>Recurly Ruby Gem</company-name>
86
+ <billing-info>
87
+ <credit-card>
88
+ </credit-card>
89
+ </billing-info>
90
+ <accept-language type="yaml" nil="true"></accept-language>
91
+ </account>
92
+
93
+ headers:
94
+ authorization:
95
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
96
+ content-type:
97
+ - application/xml
98
+ accept:
99
+ - "*/*"
100
+ user-agent:
101
+ - Ruby
102
+ connection:
103
+ - close
104
+ response: !ruby/struct:VCR::Response
105
+ status: !ruby/struct:VCR::ResponseStatus
106
+ code: 201
107
+ message: "Created "
108
+ headers:
109
+ cache-control:
110
+ - no-cache
111
+ location:
112
+ - http://app.recurly.local:3000/accounts/account-list-num-1-1297746103
113
+ x-runtime:
114
+ - "355"
115
+ content-type:
116
+ - application/xml; charset=utf-8
117
+ content-length:
118
+ - "591"
119
+ server:
120
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
121
+ date:
122
+ - Fri, 11 Mar 2011 18:45:55 GMT
123
+ connection:
124
+ - close
125
+ set-cookie:
126
+ - account_credentials=c2c3d8abd77114d86d9b1621ad671bf30b02cbd3a07cf51dd48b2f3b614fcfe802e8128a2299433ae0745ba4a648d8c8aceb82dbf3b7580a34055e3a9063fee1%3A%3A; domain=.recurly.local; path=/
127
+ - _recurly_session=fdfa1369f7f7a12c8ed33dd487814a22; domain=.recurly.local; path=/; HttpOnly
128
+ body: |
129
+ <?xml version="1.0" encoding="UTF-8"?>
130
+ <account>
131
+ <id>account-list-num-1-1297746103</id>
132
+ <account_code>account-list-num-1-1297746103</account_code>
133
+ <username></username>
134
+ <email>verena@test.com</email>
135
+ <first_name>Verena</first_name>
136
+ <last_name>Test</last_name>
137
+ <company_name>Recurly Ruby Gem</company_name>
138
+ <balance_in_cents type="integer">0</balance_in_cents>
139
+ <closed type="boolean">false</closed>
140
+ <hosted_login_token>5733ead32c3f48b4b1ff9872eb904b85</hosted_login_token>
141
+ <created_at type="datetime">2011-03-11T18:45:55Z</created_at>
142
+ <state>active</state>
143
+ </account>
144
+
145
+ http_version: "1.1"
146
+ - !ruby/struct:VCR::HTTPInteraction
147
+ request: !ruby/struct:VCR::Request
148
+ method: :post
149
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
150
+ body: |
151
+ <?xml version="1.0" encoding="UTF-8"?>
152
+ <account>
153
+ <account-code>account-list-num-2-1297746103</account-code>
154
+ <first-name>Verena</first-name>
155
+ <last-name>Test</last-name>
156
+ <email>verena@test.com</email>
157
+ <company-name>Recurly Ruby Gem</company-name>
158
+ <billing-info>
159
+ <credit-card>
160
+ </credit-card>
161
+ </billing-info>
162
+ <accept-language type="yaml" nil="true"></accept-language>
163
+ </account>
164
+
165
+ headers:
166
+ authorization:
167
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
168
+ content-type:
169
+ - application/xml
170
+ accept:
171
+ - "*/*"
172
+ user-agent:
173
+ - Ruby
174
+ connection:
175
+ - close
176
+ response: !ruby/struct:VCR::Response
177
+ status: !ruby/struct:VCR::ResponseStatus
178
+ code: 201
179
+ message: "Created "
180
+ headers:
181
+ cache-control:
182
+ - no-cache
183
+ location:
184
+ - http://app.recurly.local:3000/accounts/account-list-num-2-1297746103
185
+ x-runtime:
186
+ - "362"
187
+ content-type:
188
+ - application/xml; charset=utf-8
189
+ content-length:
190
+ - "591"
191
+ server:
192
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
193
+ date:
194
+ - Fri, 11 Mar 2011 18:45:57 GMT
195
+ connection:
196
+ - close
197
+ set-cookie:
198
+ - account_credentials=4b429b8df59ef9896c25014765354e50329ed970c9e374bd1180016276ca9d224546db1dad622ef4d2ee2ec228de67139db8bc186cbfa29c07b3b25fb15902e1%3A%3A; domain=.recurly.local; path=/
199
+ - _recurly_session=ccbb477bbd4e6b78392e732bfb6cb754; domain=.recurly.local; path=/; HttpOnly
200
+ body: |
201
+ <?xml version="1.0" encoding="UTF-8"?>
202
+ <account>
203
+ <id>account-list-num-2-1297746103</id>
204
+ <account_code>account-list-num-2-1297746103</account_code>
205
+ <username></username>
206
+ <email>verena@test.com</email>
207
+ <first_name>Verena</first_name>
208
+ <last_name>Test</last_name>
209
+ <company_name>Recurly Ruby Gem</company_name>
210
+ <balance_in_cents type="integer">0</balance_in_cents>
211
+ <closed type="boolean">false</closed>
212
+ <hosted_login_token>1c94344ec3e6433fab6f547a09b08704</hosted_login_token>
213
+ <created_at type="datetime">2011-03-11T18:45:57Z</created_at>
214
+ <state>active</state>
215
+ </account>
216
+
217
+ http_version: "1.1"
218
+ - !ruby/struct:VCR::HTTPInteraction
219
+ request: !ruby/struct:VCR::Request
220
+ method: :post
221
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
222
+ body: |
223
+ <?xml version="1.0" encoding="UTF-8"?>
224
+ <account>
225
+ <account-code>account-list-num-3-1297746103</account-code>
226
+ <first-name>Verena</first-name>
227
+ <last-name>Test</last-name>
228
+ <email>verena@test.com</email>
229
+ <company-name>Recurly Ruby Gem</company-name>
230
+ <billing-info>
231
+ <credit-card>
232
+ </credit-card>
233
+ </billing-info>
234
+ <accept-language type="yaml" nil="true"></accept-language>
235
+ </account>
236
+
237
+ headers:
238
+ authorization:
239
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
240
+ content-type:
241
+ - application/xml
242
+ accept:
243
+ - "*/*"
244
+ user-agent:
245
+ - Ruby
246
+ connection:
247
+ - close
248
+ response: !ruby/struct:VCR::Response
249
+ status: !ruby/struct:VCR::ResponseStatus
250
+ code: 201
251
+ message: "Created "
252
+ headers:
253
+ cache-control:
254
+ - no-cache
255
+ location:
256
+ - http://app.recurly.local:3000/accounts/account-list-num-3-1297746103
257
+ x-runtime:
258
+ - "352"
259
+ content-type:
260
+ - application/xml; charset=utf-8
261
+ content-length:
262
+ - "591"
263
+ server:
264
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
265
+ date:
266
+ - Fri, 11 Mar 2011 18:45:59 GMT
267
+ connection:
268
+ - close
269
+ set-cookie:
270
+ - account_credentials=13cb12e2521f6604b5dbd5fcdb4f1194f21e2071ab06625ae3e87b2f9d63a1ca4addde3db1655331f3132232d809807374e53dae3aacddd36705d1a527979fe3%3A%3A; domain=.recurly.local; path=/
271
+ - _recurly_session=e5408d7168f7763324771892dae1e407; domain=.recurly.local; path=/; HttpOnly
272
+ body: |
273
+ <?xml version="1.0" encoding="UTF-8"?>
274
+ <account>
275
+ <id>account-list-num-3-1297746103</id>
276
+ <account_code>account-list-num-3-1297746103</account_code>
277
+ <username></username>
278
+ <email>verena@test.com</email>
279
+ <first_name>Verena</first_name>
280
+ <last_name>Test</last_name>
281
+ <company_name>Recurly Ruby Gem</company_name>
282
+ <balance_in_cents type="integer">0</balance_in_cents>
283
+ <closed type="boolean">false</closed>
284
+ <hosted_login_token>042288523a014f008bb96d29ea579bcf</hosted_login_token>
285
+ <created_at type="datetime">2011-03-11T18:45:59Z</created_at>
286
+ <state>active</state>
287
+ </account>
288
+
289
+ http_version: "1.1"
290
+ - !ruby/struct:VCR::HTTPInteraction
291
+ request: !ruby/struct:VCR::Request
292
+ method: :post
293
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
294
+ body: |
295
+ <?xml version="1.0" encoding="UTF-8"?>
296
+ <account>
297
+ <account-code>account-list-num-4-1297746103</account-code>
298
+ <first-name>Verena</first-name>
299
+ <last-name>Test</last-name>
300
+ <email>verena@test.com</email>
301
+ <company-name>Recurly Ruby Gem</company-name>
302
+ <billing-info>
303
+ <credit-card>
304
+ </credit-card>
305
+ </billing-info>
306
+ <accept-language type="yaml" nil="true"></accept-language>
307
+ </account>
308
+
309
+ headers:
310
+ authorization:
311
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
312
+ content-type:
313
+ - application/xml
314
+ accept:
315
+ - "*/*"
316
+ user-agent:
317
+ - Ruby
318
+ connection:
319
+ - close
320
+ response: !ruby/struct:VCR::Response
321
+ status: !ruby/struct:VCR::ResponseStatus
322
+ code: 201
323
+ message: "Created "
324
+ headers:
325
+ cache-control:
326
+ - no-cache
327
+ location:
328
+ - http://app.recurly.local:3000/accounts/account-list-num-4-1297746103
329
+ x-runtime:
330
+ - "386"
331
+ content-type:
332
+ - application/xml; charset=utf-8
333
+ content-length:
334
+ - "591"
335
+ server:
336
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
337
+ date:
338
+ - Fri, 11 Mar 2011 18:46:01 GMT
339
+ connection:
340
+ - close
341
+ set-cookie:
342
+ - account_credentials=0efc6b2d77aaa566596beefd353352c63675762954e0a9a20f35dd629e8aaeaa19c66ef0193cbfdeb6ca029dd459a11acc048914613c9163d43041c404958b5e%3A%3A; domain=.recurly.local; path=/
343
+ - _recurly_session=9ff0f31e9558be34db29f44bba4e78ad; domain=.recurly.local; path=/; HttpOnly
344
+ body: |
345
+ <?xml version="1.0" encoding="UTF-8"?>
346
+ <account>
347
+ <id>account-list-num-4-1297746103</id>
348
+ <account_code>account-list-num-4-1297746103</account_code>
349
+ <username></username>
350
+ <email>verena@test.com</email>
351
+ <first_name>Verena</first_name>
352
+ <last_name>Test</last_name>
353
+ <company_name>Recurly Ruby Gem</company_name>
354
+ <balance_in_cents type="integer">0</balance_in_cents>
355
+ <closed type="boolean">false</closed>
356
+ <hosted_login_token>c547b68f2d8746d39b611a6a08a6e758</hosted_login_token>
357
+ <created_at type="datetime">2011-03-11T18:46:01Z</created_at>
358
+ <state>active</state>
359
+ </account>
360
+
361
+ http_version: "1.1"
362
+ - !ruby/struct:VCR::HTTPInteraction
363
+ request: !ruby/struct:VCR::Request
364
+ method: :post
365
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
366
+ body: |
367
+ <?xml version="1.0" encoding="UTF-8"?>
368
+ <account>
369
+ <account-code>account-list-num-5-1297746103</account-code>
370
+ <first-name>Verena</first-name>
371
+ <last-name>Test</last-name>
372
+ <email>verena@test.com</email>
373
+ <company-name>Recurly Ruby Gem</company-name>
374
+ <billing-info>
375
+ <credit-card>
376
+ </credit-card>
377
+ </billing-info>
378
+ <accept-language type="yaml" nil="true"></accept-language>
379
+ </account>
380
+
381
+ headers:
382
+ authorization:
383
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
384
+ content-type:
385
+ - application/xml
386
+ accept:
387
+ - "*/*"
388
+ user-agent:
389
+ - Ruby
390
+ connection:
391
+ - close
392
+ response: !ruby/struct:VCR::Response
393
+ status: !ruby/struct:VCR::ResponseStatus
394
+ code: 201
395
+ message: "Created "
396
+ headers:
397
+ cache-control:
398
+ - no-cache
399
+ location:
400
+ - http://app.recurly.local:3000/accounts/account-list-num-5-1297746103
401
+ x-runtime:
402
+ - "365"
403
+ content-type:
404
+ - application/xml; charset=utf-8
405
+ content-length:
406
+ - "591"
407
+ server:
408
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
409
+ date:
410
+ - Fri, 11 Mar 2011 18:46:03 GMT
411
+ connection:
412
+ - close
413
+ set-cookie:
414
+ - account_credentials=bfcacd2b57a908110b5f32d6a9977b0b400f0c1831a86d961ac7537fb36e2a7ec014fb63edc149bd878eb546517106be51794bd045e41c08d2bec6552d3419b2%3A%3A; domain=.recurly.local; path=/
415
+ - _recurly_session=4b89ef03461ddbf86ebf93ddd9d71a0a; domain=.recurly.local; path=/; HttpOnly
416
+ body: |
417
+ <?xml version="1.0" encoding="UTF-8"?>
418
+ <account>
419
+ <id>account-list-num-5-1297746103</id>
420
+ <account_code>account-list-num-5-1297746103</account_code>
421
+ <username></username>
422
+ <email>verena@test.com</email>
423
+ <first_name>Verena</first_name>
424
+ <last_name>Test</last_name>
425
+ <company_name>Recurly Ruby Gem</company_name>
426
+ <balance_in_cents type="integer">0</balance_in_cents>
427
+ <closed type="boolean">false</closed>
428
+ <hosted_login_token>011ab21fb8994e2382e7fb52bf7ab637</hosted_login_token>
429
+ <created_at type="datetime">2011-03-11T18:46:03Z</created_at>
430
+ <state>active</state>
431
+ </account>
432
+
433
+ http_version: "1.1"
434
+ - !ruby/struct:VCR::HTTPInteraction
435
+ request: !ruby/struct:VCR::Request
436
+ method: :post
437
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
438
+ body: |
439
+ <?xml version="1.0" encoding="UTF-8"?>
440
+ <account>
441
+ <account-code>account-list-num-6-1297746103</account-code>
442
+ <first-name>Verena</first-name>
443
+ <last-name>Test</last-name>
444
+ <email>verena@test.com</email>
445
+ <company-name>Recurly Ruby Gem</company-name>
446
+ <billing-info>
447
+ <credit-card>
448
+ </credit-card>
449
+ </billing-info>
450
+ <accept-language type="yaml" nil="true"></accept-language>
451
+ </account>
452
+
453
+ headers:
454
+ authorization:
455
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
456
+ content-type:
457
+ - application/xml
458
+ accept:
459
+ - "*/*"
460
+ user-agent:
461
+ - Ruby
462
+ connection:
463
+ - close
464
+ response: !ruby/struct:VCR::Response
465
+ status: !ruby/struct:VCR::ResponseStatus
466
+ code: 201
467
+ message: "Created "
468
+ headers:
469
+ cache-control:
470
+ - no-cache
471
+ location:
472
+ - http://app.recurly.local:3000/accounts/account-list-num-6-1297746103
473
+ x-runtime:
474
+ - "358"
475
+ content-type:
476
+ - application/xml; charset=utf-8
477
+ content-length:
478
+ - "591"
479
+ server:
480
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
481
+ date:
482
+ - Fri, 11 Mar 2011 18:46:05 GMT
483
+ connection:
484
+ - close
485
+ set-cookie:
486
+ - account_credentials=6f6dc077b88d5a4c14e8705301a0faf815e871f187b2a9faebb0f78bdffe469314a44ca326c185a9253094dca9c7ff96f10059bbe8541c6118b51bfa5fd2da9d%3A%3A; domain=.recurly.local; path=/
487
+ - _recurly_session=4b7b7602d3ac7fc769cab6e289d9e04a; domain=.recurly.local; path=/; HttpOnly
488
+ body: |
489
+ <?xml version="1.0" encoding="UTF-8"?>
490
+ <account>
491
+ <id>account-list-num-6-1297746103</id>
492
+ <account_code>account-list-num-6-1297746103</account_code>
493
+ <username></username>
494
+ <email>verena@test.com</email>
495
+ <first_name>Verena</first_name>
496
+ <last_name>Test</last_name>
497
+ <company_name>Recurly Ruby Gem</company_name>
498
+ <balance_in_cents type="integer">0</balance_in_cents>
499
+ <closed type="boolean">false</closed>
500
+ <hosted_login_token>9653028a0b354081928b03ea882f122e</hosted_login_token>
501
+ <created_at type="datetime">2011-03-11T18:46:05Z</created_at>
502
+ <state>active</state>
503
+ </account>
504
+
505
+ http_version: "1.1"
506
+ - !ruby/struct:VCR::HTTPInteraction
507
+ request: !ruby/struct:VCR::Request
508
+ method: :post
509
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
510
+ body: |
511
+ <?xml version="1.0" encoding="UTF-8"?>
512
+ <account>
513
+ <account-code>account-list-num-7-1297746103</account-code>
514
+ <first-name>Verena</first-name>
515
+ <last-name>Test</last-name>
516
+ <email>verena@test.com</email>
517
+ <company-name>Recurly Ruby Gem</company-name>
518
+ <billing-info>
519
+ <credit-card>
520
+ </credit-card>
521
+ </billing-info>
522
+ <accept-language type="yaml" nil="true"></accept-language>
523
+ </account>
524
+
525
+ headers:
526
+ authorization:
527
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
528
+ content-type:
529
+ - application/xml
530
+ accept:
531
+ - "*/*"
532
+ user-agent:
533
+ - Ruby
534
+ connection:
535
+ - close
536
+ response: !ruby/struct:VCR::Response
537
+ status: !ruby/struct:VCR::ResponseStatus
538
+ code: 201
539
+ message: "Created "
540
+ headers:
541
+ cache-control:
542
+ - no-cache
543
+ location:
544
+ - http://app.recurly.local:3000/accounts/account-list-num-7-1297746103
545
+ x-runtime:
546
+ - "357"
547
+ content-type:
548
+ - application/xml; charset=utf-8
549
+ content-length:
550
+ - "591"
551
+ server:
552
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
553
+ date:
554
+ - Fri, 11 Mar 2011 18:46:07 GMT
555
+ connection:
556
+ - close
557
+ set-cookie:
558
+ - account_credentials=470d459a2432eccf6af06ba3c648b2e16acf7677adad97586f6eadfcaca8902d1aec36b6a43875b0d504dc46029d69f1016cd9383d7421bbf7e5ac3904f465a3%3A%3A; domain=.recurly.local; path=/
559
+ - _recurly_session=eb001c9d5602976502fde144c14f0356; domain=.recurly.local; path=/; HttpOnly
560
+ body: |
561
+ <?xml version="1.0" encoding="UTF-8"?>
562
+ <account>
563
+ <id>account-list-num-7-1297746103</id>
564
+ <account_code>account-list-num-7-1297746103</account_code>
565
+ <username></username>
566
+ <email>verena@test.com</email>
567
+ <first_name>Verena</first_name>
568
+ <last_name>Test</last_name>
569
+ <company_name>Recurly Ruby Gem</company_name>
570
+ <balance_in_cents type="integer">0</balance_in_cents>
571
+ <closed type="boolean">false</closed>
572
+ <hosted_login_token>affa62a9fd2144bd805291df763a2629</hosted_login_token>
573
+ <created_at type="datetime">2011-03-11T18:46:07Z</created_at>
574
+ <state>active</state>
575
+ </account>
576
+
577
+ http_version: "1.1"
578
+ - !ruby/struct:VCR::HTTPInteraction
579
+ request: !ruby/struct:VCR::Request
580
+ method: :get
581
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
582
+ body:
583
+ headers:
584
+ authorization:
585
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
586
+ accept:
587
+ - application/xml
588
+ accept-encoding:
589
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
590
+ user-agent:
591
+ - Ruby
592
+ connection:
593
+ - close
594
+ response: !ruby/struct:VCR::Response
595
+ status: !ruby/struct:VCR::ResponseStatus
596
+ code: 200
597
+ message: "OK "
598
+ headers:
599
+ x-runtime:
600
+ - "164"
601
+ content-type:
602
+ - application/xml; charset=utf-8
603
+ etag:
604
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
605
+ cache-control:
606
+ - private, max-age=0, must-revalidate
607
+ content-length:
608
+ - "1146"
609
+ server:
610
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
611
+ date:
612
+ - Fri, 11 Mar 2011 18:46:09 GMT
613
+ connection:
614
+ - close
615
+ set-cookie:
616
+ - _recurly_session=423a898cde7d6034c922b89617c9c524; domain=.recurly.local; path=/; HttpOnly
617
+ body: |
618
+ <?xml version="1.0" encoding="UTF-8"?>
619
+ <plan>
620
+ <plan_code>paid</plan_code>
621
+ <name>Paid</name>
622
+ <description></description>
623
+ <success_url></success_url>
624
+ <cancel_url></cancel_url>
625
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
626
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
627
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
628
+ <plan_interval_length type="integer">1</plan_interval_length>
629
+ <plan_interval_unit>days</plan_interval_unit>
630
+ <trial_interval_length type="integer">0</trial_interval_length>
631
+ <trial_interval_unit>months</trial_interval_unit>
632
+ <latest_version depreciated="true">
633
+ <version type="integer">1</version>
634
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
635
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
636
+ <plan_interval_length type="integer">1</plan_interval_length>
637
+ <plan_interval_unit>days</plan_interval_unit>
638
+ <trial_interval_length type="integer">0</trial_interval_length>
639
+ <trial_interval_unit>months</trial_interval_unit>
640
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
641
+ </latest_version>
642
+ </plan>
643
+
644
+ http_version: "1.1"
645
+ - !ruby/struct:VCR::HTTPInteraction
646
+ request: !ruby/struct:VCR::Request
647
+ method: :post
648
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-0-1297746103/subscription.xml
649
+ body: |
650
+ <?xml version="1.0" encoding="UTF-8"?>
651
+ <subscription>
652
+ <plan-code>paid</plan-code>
653
+ <quantity type="integer">1</quantity>
654
+ <account>
655
+ <account-code>account-list-num-0-1297746103</account-code>
656
+ <first-name>Verena</first-name>
657
+ <last-name>Test</last-name>
658
+ <email>verena@test.com</email>
659
+ <company-name>Recurly Ruby Gem</company-name>
660
+ <billing-info>
661
+ <first-name>Verena</first-name>
662
+ <last-name>Test</last-name>
663
+ <address1>123 Test St</address1>
664
+ <city>San Francisco</city>
665
+ <state>CA</state>
666
+ <zip>94115</zip>
667
+ <country>US</country>
668
+ <credit-card>
669
+ <number>4111111111111111</number>
670
+ <year type="integer">2012</year>
671
+ <month type="integer">3</month>
672
+ <verification-value>123</verification-value>
673
+ </credit-card>
674
+ </billing-info>
675
+ <accept-language type="yaml" nil="true"></accept-language>
676
+ <id>account-list-num-0-1297746103</id>
677
+ <username type="yaml" nil="true"></username>
678
+ <balance-in-cents type="integer">0</balance-in-cents>
679
+ <closed type="boolean">false</closed>
680
+ <hosted-login-token>52a23c6e2c9e4539b4a28c956e84f673</hosted-login-token>
681
+ <created-at type="datetime">2011-03-11T18:45:54Z</created-at>
682
+ <state>active</state>
683
+ </account>
684
+ <addons type="array"/>
685
+ </subscription>
686
+
687
+ headers:
688
+ authorization:
689
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
690
+ content-type:
691
+ - application/xml
692
+ accept:
693
+ - "*/*"
694
+ user-agent:
695
+ - Ruby
696
+ connection:
697
+ - close
698
+ response: !ruby/struct:VCR::Response
699
+ status: !ruby/struct:VCR::ResponseStatus
700
+ code: 201
701
+ message: "Created "
702
+ headers:
703
+ cache-control:
704
+ - no-cache
705
+ x-runtime:
706
+ - "23489"
707
+ content-type:
708
+ - application/xml; charset=utf-8
709
+ content-length:
710
+ - "906"
711
+ server:
712
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
713
+ date:
714
+ - Fri, 11 Mar 2011 18:46:34 GMT
715
+ connection:
716
+ - close
717
+ set-cookie:
718
+ - _recurly_session=d5fb4e2457b7ca5aa4c2133a72a8b9b0; domain=.recurly.local; path=/; HttpOnly
719
+ body: |
720
+ <?xml version="1.0" encoding="UTF-8"?>
721
+ <subscription>
722
+ <id>account-list-num-0-1297746103</id>
723
+ <account_code>account-list-num-0-1297746103</account_code>
724
+ <plan>
725
+ <plan_code>paid</plan_code>
726
+ <name>Paid</name>
727
+ </plan>
728
+ <state>active</state>
729
+ <quantity type="integer">1</quantity>
730
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
731
+ <activated_at type="datetime">2011-03-11T18:46:11Z</activated_at>
732
+ <canceled_at nil="true" type="datetime"></canceled_at>
733
+ <expires_at nil="true" type="datetime"></expires_at>
734
+ <current_period_started_at type="datetime">2011-03-11T18:46:11Z</current_period_started_at>
735
+ <current_period_ends_at type="datetime">2011-03-12T18:46:11Z</current_period_ends_at>
736
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
737
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
738
+ <add_ons type="array">
739
+ </add_ons>
740
+ </subscription>
741
+
742
+ http_version: "1.1"
743
+ - !ruby/struct:VCR::HTTPInteraction
744
+ request: !ruby/struct:VCR::Request
745
+ method: :get
746
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
747
+ body:
748
+ headers:
749
+ authorization:
750
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
751
+ accept:
752
+ - application/xml
753
+ accept-encoding:
754
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
755
+ user-agent:
756
+ - Ruby
757
+ connection:
758
+ - close
759
+ response: !ruby/struct:VCR::Response
760
+ status: !ruby/struct:VCR::ResponseStatus
761
+ code: 200
762
+ message: "OK "
763
+ headers:
764
+ x-runtime:
765
+ - "158"
766
+ content-type:
767
+ - application/xml; charset=utf-8
768
+ etag:
769
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
770
+ cache-control:
771
+ - private, max-age=0, must-revalidate
772
+ content-length:
773
+ - "1146"
774
+ server:
775
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
776
+ date:
777
+ - Fri, 11 Mar 2011 18:46:36 GMT
778
+ connection:
779
+ - close
780
+ set-cookie:
781
+ - _recurly_session=594827e5f60d20b58ca0c2fdac7f42d1; domain=.recurly.local; path=/; HttpOnly
782
+ body: |
783
+ <?xml version="1.0" encoding="UTF-8"?>
784
+ <plan>
785
+ <plan_code>paid</plan_code>
786
+ <name>Paid</name>
787
+ <description></description>
788
+ <success_url></success_url>
789
+ <cancel_url></cancel_url>
790
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
791
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
792
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
793
+ <plan_interval_length type="integer">1</plan_interval_length>
794
+ <plan_interval_unit>days</plan_interval_unit>
795
+ <trial_interval_length type="integer">0</trial_interval_length>
796
+ <trial_interval_unit>months</trial_interval_unit>
797
+ <latest_version depreciated="true">
798
+ <version type="integer">1</version>
799
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
800
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
801
+ <plan_interval_length type="integer">1</plan_interval_length>
802
+ <plan_interval_unit>days</plan_interval_unit>
803
+ <trial_interval_length type="integer">0</trial_interval_length>
804
+ <trial_interval_unit>months</trial_interval_unit>
805
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
806
+ </latest_version>
807
+ </plan>
808
+
809
+ http_version: "1.1"
810
+ - !ruby/struct:VCR::HTTPInteraction
811
+ request: !ruby/struct:VCR::Request
812
+ method: :post
813
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-1-1297746103/subscription.xml
814
+ body: |
815
+ <?xml version="1.0" encoding="UTF-8"?>
816
+ <subscription>
817
+ <plan-code>paid</plan-code>
818
+ <quantity type="integer">1</quantity>
819
+ <account>
820
+ <account-code>account-list-num-1-1297746103</account-code>
821
+ <first-name>Verena</first-name>
822
+ <last-name>Test</last-name>
823
+ <email>verena@test.com</email>
824
+ <company-name>Recurly Ruby Gem</company-name>
825
+ <billing-info>
826
+ <first-name>Verena</first-name>
827
+ <last-name>Test</last-name>
828
+ <address1>123 Test St</address1>
829
+ <city>San Francisco</city>
830
+ <state>CA</state>
831
+ <zip>94115</zip>
832
+ <country>US</country>
833
+ <credit-card>
834
+ <number>4111111111111111</number>
835
+ <year type="integer">2012</year>
836
+ <month type="integer">3</month>
837
+ <verification-value>123</verification-value>
838
+ </credit-card>
839
+ </billing-info>
840
+ <accept-language type="yaml" nil="true"></accept-language>
841
+ <id>account-list-num-1-1297746103</id>
842
+ <username type="yaml" nil="true"></username>
843
+ <balance-in-cents type="integer">0</balance-in-cents>
844
+ <closed type="boolean">false</closed>
845
+ <hosted-login-token>5733ead32c3f48b4b1ff9872eb904b85</hosted-login-token>
846
+ <created-at type="datetime">2011-03-11T18:45:55Z</created-at>
847
+ <state>active</state>
848
+ </account>
849
+ <addons type="array"/>
850
+ </subscription>
851
+
852
+ headers:
853
+ authorization:
854
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
855
+ content-type:
856
+ - application/xml
857
+ accept:
858
+ - "*/*"
859
+ user-agent:
860
+ - Ruby
861
+ connection:
862
+ - close
863
+ response: !ruby/struct:VCR::Response
864
+ status: !ruby/struct:VCR::ResponseStatus
865
+ code: 201
866
+ message: "Created "
867
+ headers:
868
+ cache-control:
869
+ - no-cache
870
+ x-runtime:
871
+ - "5279"
872
+ content-type:
873
+ - application/xml; charset=utf-8
874
+ content-length:
875
+ - "906"
876
+ server:
877
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
878
+ date:
879
+ - Fri, 11 Mar 2011 18:46:43 GMT
880
+ connection:
881
+ - close
882
+ set-cookie:
883
+ - _recurly_session=e82df2b30a54d74946623a6999b58a73; domain=.recurly.local; path=/; HttpOnly
884
+ body: |
885
+ <?xml version="1.0" encoding="UTF-8"?>
886
+ <subscription>
887
+ <id>account-list-num-1-1297746103</id>
888
+ <account_code>account-list-num-1-1297746103</account_code>
889
+ <plan>
890
+ <plan_code>paid</plan_code>
891
+ <name>Paid</name>
892
+ </plan>
893
+ <state>active</state>
894
+ <quantity type="integer">1</quantity>
895
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
896
+ <activated_at type="datetime">2011-03-11T18:46:38Z</activated_at>
897
+ <canceled_at nil="true" type="datetime"></canceled_at>
898
+ <expires_at nil="true" type="datetime"></expires_at>
899
+ <current_period_started_at type="datetime">2011-03-11T18:46:38Z</current_period_started_at>
900
+ <current_period_ends_at type="datetime">2011-03-12T18:46:38Z</current_period_ends_at>
901
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
902
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
903
+ <add_ons type="array">
904
+ </add_ons>
905
+ </subscription>
906
+
907
+ http_version: "1.1"
908
+ - !ruby/struct:VCR::HTTPInteraction
909
+ request: !ruby/struct:VCR::Request
910
+ method: :get
911
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
912
+ body:
913
+ headers:
914
+ authorization:
915
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
916
+ accept:
917
+ - application/xml
918
+ accept-encoding:
919
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
920
+ user-agent:
921
+ - Ruby
922
+ connection:
923
+ - close
924
+ response: !ruby/struct:VCR::Response
925
+ status: !ruby/struct:VCR::ResponseStatus
926
+ code: 200
927
+ message: "OK "
928
+ headers:
929
+ x-runtime:
930
+ - "157"
931
+ content-type:
932
+ - application/xml; charset=utf-8
933
+ etag:
934
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
935
+ cache-control:
936
+ - private, max-age=0, must-revalidate
937
+ content-length:
938
+ - "1146"
939
+ server:
940
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
941
+ date:
942
+ - Fri, 11 Mar 2011 18:46:44 GMT
943
+ connection:
944
+ - close
945
+ set-cookie:
946
+ - _recurly_session=bc768e52405c81c19b8f3f4535b6ac8b; domain=.recurly.local; path=/; HttpOnly
947
+ body: |
948
+ <?xml version="1.0" encoding="UTF-8"?>
949
+ <plan>
950
+ <plan_code>paid</plan_code>
951
+ <name>Paid</name>
952
+ <description></description>
953
+ <success_url></success_url>
954
+ <cancel_url></cancel_url>
955
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
956
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
957
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
958
+ <plan_interval_length type="integer">1</plan_interval_length>
959
+ <plan_interval_unit>days</plan_interval_unit>
960
+ <trial_interval_length type="integer">0</trial_interval_length>
961
+ <trial_interval_unit>months</trial_interval_unit>
962
+ <latest_version depreciated="true">
963
+ <version type="integer">1</version>
964
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
965
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
966
+ <plan_interval_length type="integer">1</plan_interval_length>
967
+ <plan_interval_unit>days</plan_interval_unit>
968
+ <trial_interval_length type="integer">0</trial_interval_length>
969
+ <trial_interval_unit>months</trial_interval_unit>
970
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
971
+ </latest_version>
972
+ </plan>
973
+
974
+ http_version: "1.1"
975
+ - !ruby/struct:VCR::HTTPInteraction
976
+ request: !ruby/struct:VCR::Request
977
+ method: :post
978
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-2-1297746103/subscription.xml
979
+ body: |
980
+ <?xml version="1.0" encoding="UTF-8"?>
981
+ <subscription>
982
+ <plan-code>paid</plan-code>
983
+ <quantity type="integer">1</quantity>
984
+ <account>
985
+ <account-code>account-list-num-2-1297746103</account-code>
986
+ <first-name>Verena</first-name>
987
+ <last-name>Test</last-name>
988
+ <email>verena@test.com</email>
989
+ <company-name>Recurly Ruby Gem</company-name>
990
+ <billing-info>
991
+ <first-name>Verena</first-name>
992
+ <last-name>Test</last-name>
993
+ <address1>123 Test St</address1>
994
+ <city>San Francisco</city>
995
+ <state>CA</state>
996
+ <zip>94115</zip>
997
+ <country>US</country>
998
+ <credit-card>
999
+ <number>4111111111111111</number>
1000
+ <year type="integer">2012</year>
1001
+ <month type="integer">3</month>
1002
+ <verification-value>123</verification-value>
1003
+ </credit-card>
1004
+ </billing-info>
1005
+ <accept-language type="yaml" nil="true"></accept-language>
1006
+ <id>account-list-num-2-1297746103</id>
1007
+ <username type="yaml" nil="true"></username>
1008
+ <balance-in-cents type="integer">0</balance-in-cents>
1009
+ <closed type="boolean">false</closed>
1010
+ <hosted-login-token>1c94344ec3e6433fab6f547a09b08704</hosted-login-token>
1011
+ <created-at type="datetime">2011-03-11T18:45:57Z</created-at>
1012
+ <state>active</state>
1013
+ </account>
1014
+ <addons type="array"/>
1015
+ </subscription>
1016
+
1017
+ headers:
1018
+ authorization:
1019
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1020
+ content-type:
1021
+ - application/xml
1022
+ accept:
1023
+ - "*/*"
1024
+ user-agent:
1025
+ - Ruby
1026
+ connection:
1027
+ - close
1028
+ response: !ruby/struct:VCR::Response
1029
+ status: !ruby/struct:VCR::ResponseStatus
1030
+ code: 201
1031
+ message: "Created "
1032
+ headers:
1033
+ cache-control:
1034
+ - no-cache
1035
+ x-runtime:
1036
+ - "4711"
1037
+ content-type:
1038
+ - application/xml; charset=utf-8
1039
+ content-length:
1040
+ - "906"
1041
+ server:
1042
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
1043
+ date:
1044
+ - Fri, 11 Mar 2011 18:46:50 GMT
1045
+ connection:
1046
+ - close
1047
+ set-cookie:
1048
+ - _recurly_session=c24be0496beadc7089257a1a03d92db8; domain=.recurly.local; path=/; HttpOnly
1049
+ body: |
1050
+ <?xml version="1.0" encoding="UTF-8"?>
1051
+ <subscription>
1052
+ <id>account-list-num-2-1297746103</id>
1053
+ <account_code>account-list-num-2-1297746103</account_code>
1054
+ <plan>
1055
+ <plan_code>paid</plan_code>
1056
+ <name>Paid</name>
1057
+ </plan>
1058
+ <state>active</state>
1059
+ <quantity type="integer">1</quantity>
1060
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
1061
+ <activated_at type="datetime">2011-03-11T18:46:46Z</activated_at>
1062
+ <canceled_at nil="true" type="datetime"></canceled_at>
1063
+ <expires_at nil="true" type="datetime"></expires_at>
1064
+ <current_period_started_at type="datetime">2011-03-11T18:46:46Z</current_period_started_at>
1065
+ <current_period_ends_at type="datetime">2011-03-12T18:46:46Z</current_period_ends_at>
1066
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
1067
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
1068
+ <add_ons type="array">
1069
+ </add_ons>
1070
+ </subscription>
1071
+
1072
+ http_version: "1.1"
1073
+ - !ruby/struct:VCR::HTTPInteraction
1074
+ request: !ruby/struct:VCR::Request
1075
+ method: :get
1076
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
1077
+ body:
1078
+ headers:
1079
+ authorization:
1080
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1081
+ accept:
1082
+ - application/xml
1083
+ accept-encoding:
1084
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1085
+ user-agent:
1086
+ - Ruby
1087
+ connection:
1088
+ - close
1089
+ response: !ruby/struct:VCR::Response
1090
+ status: !ruby/struct:VCR::ResponseStatus
1091
+ code: 200
1092
+ message: "OK "
1093
+ headers:
1094
+ x-runtime:
1095
+ - "157"
1096
+ content-type:
1097
+ - application/xml; charset=utf-8
1098
+ etag:
1099
+ - "\"dc04fba13f15d49d04ca6692abb21ff9\""
1100
+ cache-control:
1101
+ - private, max-age=0, must-revalidate
1102
+ content-length:
1103
+ - "1146"
1104
+ server:
1105
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
1106
+ date:
1107
+ - Fri, 11 Mar 2011 18:46:52 GMT
1108
+ connection:
1109
+ - close
1110
+ set-cookie:
1111
+ - _recurly_session=e71064af4b044af12911e2e53b0cf670; domain=.recurly.local; path=/; HttpOnly
1112
+ body: |
1113
+ <?xml version="1.0" encoding="UTF-8"?>
1114
+ <plan>
1115
+ <plan_code>paid</plan_code>
1116
+ <name>Paid</name>
1117
+ <description></description>
1118
+ <success_url></success_url>
1119
+ <cancel_url></cancel_url>
1120
+ <created_at type="datetime">2011-02-02T21:02:59Z</created_at>
1121
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
1122
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
1123
+ <plan_interval_length type="integer">1</plan_interval_length>
1124
+ <plan_interval_unit>days</plan_interval_unit>
1125
+ <trial_interval_length type="integer">0</trial_interval_length>
1126
+ <trial_interval_unit>months</trial_interval_unit>
1127
+ <latest_version depreciated="true">
1128
+ <version type="integer">1</version>
1129
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
1130
+ <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
1131
+ <plan_interval_length type="integer">1</plan_interval_length>
1132
+ <plan_interval_unit>days</plan_interval_unit>
1133
+ <trial_interval_length type="integer">0</trial_interval_length>
1134
+ <trial_interval_unit>months</trial_interval_unit>
1135
+ <created_at type="datetime">2011-02-21T01:06:56Z</created_at>
1136
+ </latest_version>
1137
+ </plan>
1138
+
1139
+ http_version: "1.1"
1140
+ - !ruby/struct:VCR::HTTPInteraction
1141
+ request: !ruby/struct:VCR::Request
1142
+ method: :post
1143
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/account-list-num-3-1297746103/subscription.xml
1144
+ body: |
1145
+ <?xml version="1.0" encoding="UTF-8"?>
1146
+ <subscription>
1147
+ <plan-code>paid</plan-code>
1148
+ <quantity type="integer">1</quantity>
1149
+ <account>
1150
+ <account-code>account-list-num-3-1297746103</account-code>
1151
+ <first-name>Verena</first-name>
1152
+ <last-name>Test</last-name>
1153
+ <email>verena@test.com</email>
1154
+ <company-name>Recurly Ruby Gem</company-name>
1155
+ <billing-info>
1156
+ <first-name>Verena</first-name>
1157
+ <last-name>Test</last-name>
1158
+ <address1>123 Test St</address1>
1159
+ <city>San Francisco</city>
1160
+ <state>CA</state>
1161
+ <zip>94115</zip>
1162
+ <country>US</country>
1163
+ <credit-card>
1164
+ <number>4111111111111111</number>
1165
+ <year type="integer">2012</year>
1166
+ <month type="integer">3</month>
1167
+ <verification-value>123</verification-value>
1168
+ </credit-card>
1169
+ </billing-info>
1170
+ <accept-language type="yaml" nil="true"></accept-language>
1171
+ <id>account-list-num-3-1297746103</id>
1172
+ <username type="yaml" nil="true"></username>
1173
+ <balance-in-cents type="integer">0</balance-in-cents>
1174
+ <closed type="boolean">false</closed>
1175
+ <hosted-login-token>042288523a014f008bb96d29ea579bcf</hosted-login-token>
1176
+ <created-at type="datetime">2011-03-11T18:45:59Z</created-at>
1177
+ <state>active</state>
1178
+ </account>
1179
+ <addons type="array"/>
1180
+ </subscription>
1181
+
1182
+ headers:
1183
+ authorization:
1184
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1185
+ content-type:
1186
+ - application/xml
1187
+ accept:
1188
+ - "*/*"
1189
+ user-agent:
1190
+ - Ruby
1191
+ connection:
1192
+ - close
1193
+ response: !ruby/struct:VCR::Response
1194
+ status: !ruby/struct:VCR::ResponseStatus
1195
+ code: 201
1196
+ message: "Created "
1197
+ headers:
1198
+ cache-control:
1199
+ - no-cache
1200
+ x-runtime:
1201
+ - "4441"
1202
+ content-type:
1203
+ - application/xml; charset=utf-8
1204
+ content-length:
1205
+ - "906"
1206
+ server:
1207
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
1208
+ date:
1209
+ - Fri, 11 Mar 2011 18:46:58 GMT
1210
+ connection:
1211
+ - close
1212
+ set-cookie:
1213
+ - _recurly_session=9c123b3b62edf55448405268e1e68fad; domain=.recurly.local; path=/; HttpOnly
1214
+ body: |
1215
+ <?xml version="1.0" encoding="UTF-8"?>
1216
+ <subscription>
1217
+ <id>account-list-num-3-1297746103</id>
1218
+ <account_code>account-list-num-3-1297746103</account_code>
1219
+ <plan>
1220
+ <plan_code>paid</plan_code>
1221
+ <name>Paid</name>
1222
+ </plan>
1223
+ <state>active</state>
1224
+ <quantity type="integer">1</quantity>
1225
+ <total_amount_in_cents type="integer">1000</total_amount_in_cents>
1226
+ <activated_at type="datetime">2011-03-11T18:46:54Z</activated_at>
1227
+ <canceled_at nil="true" type="datetime"></canceled_at>
1228
+ <expires_at nil="true" type="datetime"></expires_at>
1229
+ <current_period_started_at type="datetime">2011-03-11T18:46:54Z</current_period_started_at>
1230
+ <current_period_ends_at type="datetime">2011-03-12T18:46:54Z</current_period_ends_at>
1231
+ <trial_started_at nil="true" type="datetime"></trial_started_at>
1232
+ <trial_ends_at nil="true" type="datetime"></trial_ends_at>
1233
+ <add_ons type="array">
1234
+ </add_ons>
1235
+ </subscription>
1236
+
1237
+ http_version: "1.1"
1238
+ - !ruby/struct:VCR::HTTPInteraction
1239
+ request: !ruby/struct:VCR::Request
1240
+ method: :get
1241
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
1242
+ body:
1243
+ headers:
1244
+ authorization:
1245
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1246
+ accept:
1247
+ - application/xml
1248
+ accept-encoding:
1249
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1250
+ user-agent:
1251
+ - Ruby
1252
+ connection:
1253
+ - close
1254
+ response: !ruby/struct:VCR::Response
1255
+ status: !ruby/struct:VCR::ResponseStatus
1256
+ code: 200
1257
+ message: "OK "
1258
+ headers:
1259
+ x-runtime:
1260
+ - "401"
1261
+ content-type:
1262
+ - application/xml; charset=utf-8
1263
+ etag:
1264
+ - "\"5aa399c539ed3e24de9c38673af0e144\""
1265
+ cache-control:
1266
+ - private, max-age=0, must-revalidate
1267
+ content-length:
1268
+ - "3729"
1269
+ server:
1270
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
1271
+ date:
1272
+ - Fri, 11 Mar 2011 18:47:00 GMT
1273
+ connection:
1274
+ - close
1275
+ set-cookie:
1276
+ - _recurly_session=54c4a7afb3f7b90fdaf56f0227c01b28; domain=.recurly.local; path=/; HttpOnly
1277
+ body: |
1278
+ <?xml version="1.0" encoding="UTF-8"?>
1279
+ <accounts type="collection">
1280
+ <current_page type="integer">1</current_page>
1281
+ <per_page type="integer">20</per_page>
1282
+ <total_entries type="integer">11</total_entries>
1283
+ <account>
1284
+ <account_code>account-create-1297746103</account_code>
1285
+ <username></username>
1286
+ <email>verena@test.com</email>
1287
+ <first_name>Verena</first_name>
1288
+ <last_name>Test</last_name>
1289
+ <company_name>Recurly Ruby Gem</company_name>
1290
+ <balance_in_cents type="integer">0</balance_in_cents>
1291
+ </account>
1292
+ <account>
1293
+ <account_code>account-get-1297746103</account_code>
1294
+ <username></username>
1295
+ <email>verena@test.com</email>
1296
+ <first_name>Verena</first_name>
1297
+ <last_name>Test</last_name>
1298
+ <company_name>Recurly Ruby Gem</company_name>
1299
+ <balance_in_cents type="integer">0</balance_in_cents>
1300
+ </account>
1301
+ <account>
1302
+ <account_code>account-list-num-0-1297746103</account_code>
1303
+ <username></username>
1304
+ <email>verena@test.com</email>
1305
+ <first_name>Verena</first_name>
1306
+ <last_name>Test</last_name>
1307
+ <company_name>Recurly Ruby Gem</company_name>
1308
+ <balance_in_cents type="integer">0</balance_in_cents>
1309
+ </account>
1310
+ <account>
1311
+ <account_code>account-list-num-1-1297746103</account_code>
1312
+ <username></username>
1313
+ <email>verena@test.com</email>
1314
+ <first_name>Verena</first_name>
1315
+ <last_name>Test</last_name>
1316
+ <company_name>Recurly Ruby Gem</company_name>
1317
+ <balance_in_cents type="integer">0</balance_in_cents>
1318
+ </account>
1319
+ <account>
1320
+ <account_code>account-list-num-2-1297746103</account_code>
1321
+ <username></username>
1322
+ <email>verena@test.com</email>
1323
+ <first_name>Verena</first_name>
1324
+ <last_name>Test</last_name>
1325
+ <company_name>Recurly Ruby Gem</company_name>
1326
+ <balance_in_cents type="integer">0</balance_in_cents>
1327
+ </account>
1328
+ <account>
1329
+ <account_code>account-list-num-3-1297746103</account_code>
1330
+ <username></username>
1331
+ <email>verena@test.com</email>
1332
+ <first_name>Verena</first_name>
1333
+ <last_name>Test</last_name>
1334
+ <company_name>Recurly Ruby Gem</company_name>
1335
+ <balance_in_cents type="integer">0</balance_in_cents>
1336
+ </account>
1337
+ <account>
1338
+ <account_code>account-list-num-4-1297746103</account_code>
1339
+ <username></username>
1340
+ <email>verena@test.com</email>
1341
+ <first_name>Verena</first_name>
1342
+ <last_name>Test</last_name>
1343
+ <company_name>Recurly Ruby Gem</company_name>
1344
+ <balance_in_cents type="integer">0</balance_in_cents>
1345
+ </account>
1346
+ <account>
1347
+ <account_code>account-list-num-5-1297746103</account_code>
1348
+ <username></username>
1349
+ <email>verena@test.com</email>
1350
+ <first_name>Verena</first_name>
1351
+ <last_name>Test</last_name>
1352
+ <company_name>Recurly Ruby Gem</company_name>
1353
+ <balance_in_cents type="integer">0</balance_in_cents>
1354
+ </account>
1355
+ <account>
1356
+ <account_code>account-list-num-6-1297746103</account_code>
1357
+ <username></username>
1358
+ <email>verena@test.com</email>
1359
+ <first_name>Verena</first_name>
1360
+ <last_name>Test</last_name>
1361
+ <company_name>Recurly Ruby Gem</company_name>
1362
+ <balance_in_cents type="integer">0</balance_in_cents>
1363
+ </account>
1364
+ <account>
1365
+ <account_code>account-list-num-7-1297746103</account_code>
1366
+ <username></username>
1367
+ <email>verena@test.com</email>
1368
+ <first_name>Verena</first_name>
1369
+ <last_name>Test</last_name>
1370
+ <company_name>Recurly Ruby Gem</company_name>
1371
+ <balance_in_cents type="integer">0</balance_in_cents>
1372
+ </account>
1373
+ <account>
1374
+ <account_code>d00d-1297746103</account_code>
1375
+ <username></username>
1376
+ <email></email>
1377
+ <first_name></first_name>
1378
+ <last_name></last_name>
1379
+ <company_name></company_name>
1380
+ <balance_in_cents type="integer">0</balance_in_cents>
1381
+ </account>
1382
+ </accounts>
1383
+
1384
+ http_version: "1.1"
1385
+ - !ruby/struct:VCR::HTTPInteraction
1386
+ request: !ruby/struct:VCR::Request
1387
+ method: :get
1388
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml?show=active_subscribers
1389
+ body:
1390
+ headers:
1391
+ authorization:
1392
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1393
+ accept:
1394
+ - application/xml
1395
+ accept-encoding:
1396
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1397
+ user-agent:
1398
+ - Ruby
1399
+ connection:
1400
+ - close
1401
+ response: !ruby/struct:VCR::Response
1402
+ status: !ruby/struct:VCR::ResponseStatus
1403
+ code: 200
1404
+ message: "OK "
1405
+ headers:
1406
+ x-runtime:
1407
+ - "319"
1408
+ content-type:
1409
+ - application/xml; charset=utf-8
1410
+ etag:
1411
+ - "\"44ce3f1e37498e884b387e63a6e71a05\""
1412
+ cache-control:
1413
+ - private, max-age=0, must-revalidate
1414
+ content-length:
1415
+ - "1519"
1416
+ server:
1417
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
1418
+ date:
1419
+ - Fri, 11 Mar 2011 18:47:02 GMT
1420
+ connection:
1421
+ - close
1422
+ set-cookie:
1423
+ - _recurly_session=345ea2e29cc70d90b58a4db583a86a90; domain=.recurly.local; path=/; HttpOnly
1424
+ body: |
1425
+ <?xml version="1.0" encoding="UTF-8"?>
1426
+ <accounts type="collection">
1427
+ <current_page type="integer">1</current_page>
1428
+ <per_page type="integer">20</per_page>
1429
+ <total_entries type="integer">4</total_entries>
1430
+ <account>
1431
+ <account_code>account-list-num-0-1297746103</account_code>
1432
+ <username></username>
1433
+ <email>verena@test.com</email>
1434
+ <first_name>Verena</first_name>
1435
+ <last_name>Test</last_name>
1436
+ <company_name>Recurly Ruby Gem</company_name>
1437
+ <balance_in_cents type="integer">0</balance_in_cents>
1438
+ </account>
1439
+ <account>
1440
+ <account_code>account-list-num-1-1297746103</account_code>
1441
+ <username></username>
1442
+ <email>verena@test.com</email>
1443
+ <first_name>Verena</first_name>
1444
+ <last_name>Test</last_name>
1445
+ <company_name>Recurly Ruby Gem</company_name>
1446
+ <balance_in_cents type="integer">0</balance_in_cents>
1447
+ </account>
1448
+ <account>
1449
+ <account_code>account-list-num-2-1297746103</account_code>
1450
+ <username></username>
1451
+ <email>verena@test.com</email>
1452
+ <first_name>Verena</first_name>
1453
+ <last_name>Test</last_name>
1454
+ <company_name>Recurly Ruby Gem</company_name>
1455
+ <balance_in_cents type="integer">0</balance_in_cents>
1456
+ </account>
1457
+ <account>
1458
+ <account_code>account-list-num-3-1297746103</account_code>
1459
+ <username></username>
1460
+ <email>verena@test.com</email>
1461
+ <first_name>Verena</first_name>
1462
+ <last_name>Test</last_name>
1463
+ <company_name>Recurly Ruby Gem</company_name>
1464
+ <balance_in_cents type="integer">0</balance_in_cents>
1465
+ </account>
1466
+ </accounts>
1467
+
1468
+ http_version: "1.1"
1469
+ - !ruby/struct:VCR::HTTPInteraction
1470
+ request: !ruby/struct:VCR::Request
1471
+ method: :get
1472
+ uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml?show=non_subscribers
1473
+ body:
1474
+ headers:
1475
+ authorization:
1476
+ - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
1477
+ accept:
1478
+ - application/xml
1479
+ accept-encoding:
1480
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1481
+ user-agent:
1482
+ - Ruby
1483
+ connection:
1484
+ - close
1485
+ response: !ruby/struct:VCR::Response
1486
+ status: !ruby/struct:VCR::ResponseStatus
1487
+ code: 200
1488
+ message: "OK "
1489
+ headers:
1490
+ x-runtime:
1491
+ - "350"
1492
+ content-type:
1493
+ - application/xml; charset=utf-8
1494
+ etag:
1495
+ - "\"7348baad2c2ae948ccf6c65c87addb3c\""
1496
+ cache-control:
1497
+ - private, max-age=0, must-revalidate
1498
+ content-length:
1499
+ - "2428"
1500
+ server:
1501
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
1502
+ date:
1503
+ - Fri, 11 Mar 2011 18:47:04 GMT
1504
+ connection:
1505
+ - close
1506
+ set-cookie:
1507
+ - _recurly_session=8ce35a07f99f83d0eb641bceaf1b27ee; domain=.recurly.local; path=/; HttpOnly
1508
+ body: |
1509
+ <?xml version="1.0" encoding="UTF-8"?>
1510
+ <accounts type="collection">
1511
+ <current_page type="integer">1</current_page>
1512
+ <per_page type="integer">20</per_page>
1513
+ <total_entries type="integer">7</total_entries>
1514
+ <account>
1515
+ <account_code>account-create-1297746103</account_code>
1516
+ <username></username>
1517
+ <email>verena@test.com</email>
1518
+ <first_name>Verena</first_name>
1519
+ <last_name>Test</last_name>
1520
+ <company_name>Recurly Ruby Gem</company_name>
1521
+ <balance_in_cents type="integer">0</balance_in_cents>
1522
+ </account>
1523
+ <account>
1524
+ <account_code>account-get-1297746103</account_code>
1525
+ <username></username>
1526
+ <email>verena@test.com</email>
1527
+ <first_name>Verena</first_name>
1528
+ <last_name>Test</last_name>
1529
+ <company_name>Recurly Ruby Gem</company_name>
1530
+ <balance_in_cents type="integer">0</balance_in_cents>
1531
+ </account>
1532
+ <account>
1533
+ <account_code>account-list-num-4-1297746103</account_code>
1534
+ <username></username>
1535
+ <email>verena@test.com</email>
1536
+ <first_name>Verena</first_name>
1537
+ <last_name>Test</last_name>
1538
+ <company_name>Recurly Ruby Gem</company_name>
1539
+ <balance_in_cents type="integer">0</balance_in_cents>
1540
+ </account>
1541
+ <account>
1542
+ <account_code>account-list-num-5-1297746103</account_code>
1543
+ <username></username>
1544
+ <email>verena@test.com</email>
1545
+ <first_name>Verena</first_name>
1546
+ <last_name>Test</last_name>
1547
+ <company_name>Recurly Ruby Gem</company_name>
1548
+ <balance_in_cents type="integer">0</balance_in_cents>
1549
+ </account>
1550
+ <account>
1551
+ <account_code>account-list-num-6-1297746103</account_code>
1552
+ <username></username>
1553
+ <email>verena@test.com</email>
1554
+ <first_name>Verena</first_name>
1555
+ <last_name>Test</last_name>
1556
+ <company_name>Recurly Ruby Gem</company_name>
1557
+ <balance_in_cents type="integer">0</balance_in_cents>
1558
+ </account>
1559
+ <account>
1560
+ <account_code>account-list-num-7-1297746103</account_code>
1561
+ <username></username>
1562
+ <email>verena@test.com</email>
1563
+ <first_name>Verena</first_name>
1564
+ <last_name>Test</last_name>
1565
+ <company_name>Recurly Ruby Gem</company_name>
1566
+ <balance_in_cents type="integer">0</balance_in_cents>
1567
+ </account>
1568
+ <account>
1569
+ <account_code>d00d-1297746103</account_code>
1570
+ <username></username>
1571
+ <email></email>
1572
+ <first_name></first_name>
1573
+ <last_name></last_name>
1574
+ <company_name></company_name>
1575
+ <balance_in_cents type="integer">0</balance_in_cents>
1576
+ </account>
1577
+ </accounts>
1578
+
1579
+ http_version: "1.1"