recurly 0.3.1 → 0.3.2

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 (61) hide show
  1. data/lib/recurly.rb +8 -0
  2. data/lib/recurly/account.rb +5 -0
  3. data/lib/recurly/rails3/railtie.rb +9 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/integration/account_spec.rb +29 -1
  6. data/spec/integration/add_on_spec.rb +84 -0
  7. data/spec/vcr/account/accept-language-account/1294473653.yml +68 -0
  8. data/spec/vcr/account/accept-language-account/1294473761.yml +68 -0
  9. data/spec/vcr/account/accept-language/1294473117.yml +167 -0
  10. data/spec/vcr/account/close/{1288381765.yml → 1294473761.yml} +26 -25
  11. data/spec/vcr/account/create-blank/{1288381765.yml → 1294473761.yml} +5 -4
  12. data/spec/vcr/account/create-duplicate/{1288381765.yml → 1294473761.yml} +13 -11
  13. data/spec/vcr/account/create-min/{1288381765.yml → 1294473761.yml} +12 -11
  14. data/spec/vcr/account/create/{1288381765.yml → 1294473761.yml} +12 -11
  15. data/spec/vcr/account/find/{1288381765.yml → 1294473761.yml} +25 -24
  16. data/spec/vcr/account/list/{1288381765.yml → 1294473761.yml} +328 -287
  17. data/spec/vcr/account/update/{1288381765.yml → 1294473761.yml} +47 -45
  18. data/spec/vcr/billing/create/1286682213.yml +28 -27
  19. data/spec/vcr/billing/destroy/1286682213.yml +42 -41
  20. data/spec/vcr/billing/find/1286682213.yml +38 -37
  21. data/spec/vcr/billing/update/1286682213.yml +40 -39
  22. data/spec/vcr/charge/create/1287465632.yml +36 -35
  23. data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +36 -35
  24. data/spec/vcr/charge/list-all/1287465632.yml +43 -42
  25. data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -69
  26. data/spec/vcr/charge/list-pending/1287465632.yml +43 -42
  27. data/spec/vcr/charge/lookup/1287465632.yml +22 -21
  28. data/spec/vcr/credit/create/1287461400.yml +23 -22
  29. data/spec/vcr/credit/delete/1287461400.yml +33 -32
  30. data/spec/vcr/credit/list/1287461400.yml +43 -42
  31. data/spec/vcr/credit/lookup/1287461400.yml +24 -23
  32. data/spec/vcr/invoice/create-no-charges/1287167121.yml +23 -22
  33. data/spec/vcr/invoice/create/1287167121.yml +48 -47
  34. data/spec/vcr/invoice/list/1287167121.yml +67 -66
  35. data/spec/vcr/invoice/lookup/1287167121.yml +50 -49
  36. data/spec/vcr/plan/all.yml +29 -17
  37. data/spec/vcr/plan/delete/1286677585.yml +21 -21
  38. data/spec/vcr/plan/find.yml +42 -18
  39. data/spec/vcr/plan/update.yml +17 -17
  40. data/spec/vcr/subscription/addons/add/1292420980.yml +479 -0
  41. data/spec/vcr/subscription/addons/create/1292420980.yml +318 -0
  42. data/spec/vcr/subscription/addons/remove/1292420980.yml +448 -0
  43. data/spec/vcr/subscription/cancel-with-code/1287455769.yml +93 -69
  44. data/spec/vcr/subscription/cancel/1287455769.yml +80 -58
  45. data/spec/vcr/subscription/change1/1287455769.yml +77 -55
  46. data/spec/vcr/subscription/change2/1287455769.yml +77 -55
  47. data/spec/vcr/subscription/create/1287455769.yml +43 -27
  48. data/spec/vcr/subscription/find/1287455769.yml +54 -36
  49. data/spec/vcr/subscription/reactivate/1287455769.yml +83 -61
  50. data/spec/vcr/subscription/refund-full/1287455769.yml +69 -51
  51. data/spec/vcr/subscription/refund-none/1287455769.yml +70 -52
  52. data/spec/vcr/subscription/refund-partial/1287455769.yml +70 -52
  53. data/spec/vcr/transaction/all/1289558212.yml +46 -46
  54. data/spec/vcr/transaction/create-no-account/1289558212.yml +11 -11
  55. data/spec/vcr/transaction/create-with-account/1289558212.yml +27 -26
  56. data/spec/vcr/transaction/list-filled/1289558212.yml +54 -53
  57. data/spec/vcr/transaction/list-initial/1289558212.yml +27 -26
  58. data/spec/vcr/transaction/lookup/1289558212.yml +64 -63
  59. data/spec/vcr/transaction/refund/1289558212.yml +35 -34
  60. data/spec/vcr/transaction/void/1289558212.yml +71 -70
  61. metadata +34 -20
@@ -9,6 +9,7 @@
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
10
  <account-code>subscription-refund-full-1287455769</account-code>
11
11
  <last-name>Test</last-name>
12
+ <accept-language type="yaml" nil="true"></accept-language>
12
13
  <email>verena@test.com</email>
13
14
  <first-name>Verena</first-name>
14
15
  </account>
@@ -34,17 +35,17 @@
34
35
  content-type:
35
36
  - application/xml; charset=utf-8
36
37
  x-runtime:
37
- - "274"
38
+ - "347"
38
39
  date:
39
- - Tue, 16 Nov 2010 07:04:35 GMT
40
+ - Sat, 08 Jan 2011 08:06:04 GMT
40
41
  server:
41
- - nginx/0.7.65
42
+ - nginx/0.8.53
42
43
  content-length:
43
44
  - "603"
44
45
  set-cookie:
45
- - account_credentials=f7e6325f03d27bbb1bf42be9530a6a5538444d9bf5135630ac9accea311b3e5ca1c4badd366470e008156becd3bf6223f488a6264bd49322197debe7b40eb0f2%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=e4d26a5411de868e2f33119c268e1bba86ec0e3041157f7eed294cebe84003182ee965f6449ec94af944bd53f43f47796596311f3381473041663b2a99776f23%3A%3A; domain=.recurly.com; path=/
46
47
  - ""
47
- - _recurly_session=5962a69d75974763fec9294670e2ad1f; domain=.recurly.com; path=/; secure; HttpOnly
48
+ - _recurly_session=54db1fb21be345df51f830290d47c00b; domain=.recurly.com; path=/; secure; HttpOnly
48
49
  cache-control:
49
50
  - no-cache
50
51
  body: |
@@ -59,8 +60,8 @@
59
60
  <company_name>Recurly Ruby Gem</company_name>
60
61
  <balance_in_cents type="integer">0</balance_in_cents>
61
62
  <closed type="boolean">false</closed>
62
- <hosted_login_token>20c2c092eb964e08b34c6021dc241019</hosted_login_token>
63
- <created_at type="datetime">2010-11-16T07:04:35Z</created_at>
63
+ <hosted_login_token>0969225dce8f465789c11b076ed496a1</hosted_login_token>
64
+ <created_at type="datetime">2011-01-08T08:06:04Z</created_at>
64
65
  <state>active</state>
65
66
  </account>
66
67
 
@@ -85,7 +86,7 @@
85
86
  x-ua-compatible:
86
87
  - IE=Edge
87
88
  etag:
88
- - "\"31910d9b30fecc5e62f25a1ce00278e0\""
89
+ - "\"47a9e8e85691ef0600a2dd39f113a21e\""
89
90
  connection:
90
91
  - close
91
92
  content-type:
@@ -93,13 +94,13 @@
93
94
  x-runtime:
94
95
  - "14"
95
96
  date:
96
- - Tue, 16 Nov 2010 07:04:34 GMT
97
+ - Sat, 08 Jan 2011 08:06:05 GMT
97
98
  server:
98
- - nginx/0.7.65
99
+ - nginx/0.8.53
99
100
  content-length:
100
- - "1150"
101
+ - "1564"
101
102
  set-cookie:
102
- - _recurly_session=9903fc6ef470b15e23380d20bfe933c0; domain=.recurly.com; path=/; secure; HttpOnly
103
+ - _recurly_session=513e230d45303008e2fa0e59fefee996; domain=.recurly.com; path=/; secure; HttpOnly
103
104
  cache-control:
104
105
  - private, max-age=0, must-revalidate
105
106
  body: |
@@ -125,8 +126,20 @@
125
126
  <plan_interval_unit>months</plan_interval_unit>
126
127
  <trial_interval_length type="integer">0</trial_interval_length>
127
128
  <trial_interval_unit>months</trial_interval_unit>
128
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
129
+ <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
129
130
  </latest_version>
131
+ <add_ons type="collection">
132
+ <add_on>
133
+ <add_on_code>special</add_on_code>
134
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
135
+ <default_quantity>1</default_quantity>
136
+ </add_on>
137
+ <add_on>
138
+ <add_on_code>special2</add_on_code>
139
+ <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
140
+ <default_quantity>1</default_quantity>
141
+ </add_on>
142
+ </add_ons>
130
143
  </plan>
131
144
 
132
145
  http_version: "1.1"
@@ -140,23 +153,24 @@
140
153
  <quantity type="integer">1</quantity>
141
154
  <plan-code>paid</plan-code>
142
155
  <account>
143
- <created-at type="datetime">2010-11-16T07:04:35Z</created-at>
144
- <hosted-login-token>20c2c092eb964e08b34c6021dc241019</hosted-login-token>
156
+ <created-at type="datetime">2011-01-08T08:06:04Z</created-at>
157
+ <hosted-login-token>0969225dce8f465789c11b076ed496a1</hosted-login-token>
145
158
  <company-name>Recurly Ruby Gem</company-name>
146
159
  <account-code>subscription-refund-full-1287455769</account-code>
147
160
  <closed type="boolean">false</closed>
148
161
  <username type="yaml" nil="true"></username>
149
162
  <id>subscription-refund-full-1287455769</id>
150
163
  <last-name>Test</last-name>
164
+ <accept-language type="yaml" nil="true"></accept-language>
151
165
  <billing-info>
152
- <city>San Francisco</city>
153
166
  <address1>123 Test St</address1>
167
+ <city>San Francisco</city>
154
168
  <zip>94115</zip>
155
169
  <country>US</country>
156
170
  <credit-card>
157
171
  <number>1</number>
158
- <month type="integer">11</month>
159
- <year type="integer">2011</year>
172
+ <month type="integer">1</month>
173
+ <year type="integer">2012</year>
160
174
  <verification-value>123</verification-value>
161
175
  </credit-card>
162
176
  <last-name>Test</last-name>
@@ -189,15 +203,15 @@
189
203
  content-type:
190
204
  - application/xml; charset=utf-8
191
205
  x-runtime:
192
- - "332"
206
+ - "480"
193
207
  date:
194
- - Tue, 16 Nov 2010 07:04:36 GMT
208
+ - Sat, 08 Jan 2011 08:06:06 GMT
195
209
  server:
196
- - nginx/0.7.65
210
+ - nginx/0.8.53
197
211
  content-length:
198
- - "880"
212
+ - "918"
199
213
  set-cookie:
200
- - _recurly_session=57399bac5f8a21307176018377a60447; domain=.recurly.com; path=/; secure; HttpOnly
214
+ - _recurly_session=e0d5039f5453dcb8c360df7dba2c3fc7; domain=.recurly.com; path=/; secure; HttpOnly
201
215
  cache-control:
202
216
  - no-cache
203
217
  body: |
@@ -212,13 +226,15 @@
212
226
  <state>active</state>
213
227
  <quantity type="integer">1</quantity>
214
228
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-11-16T07:04:36Z</activated_at>
229
+ <activated_at type="datetime">2011-01-08T08:06:06Z</activated_at>
216
230
  <canceled_at nil="true" type="datetime"></canceled_at>
217
231
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-11-16T07:04:36Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-12-16T07:04:36Z</current_period_ends_at>
232
+ <current_period_started_at type="datetime">2011-01-08T08:06:06Z</current_period_started_at>
233
+ <current_period_ends_at type="datetime">2011-02-08T08:06:06Z</current_period_ends_at>
220
234
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
235
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
236
+ <add_ons type="array">
237
+ </add_ons>
222
238
  </subscription>
223
239
 
224
240
  http_version: "1.1"
@@ -242,21 +258,21 @@
242
258
  x-ua-compatible:
243
259
  - IE=Edge
244
260
  etag:
245
- - "\"8a6bfcfb64ececd079ac11c33495a9c6\""
261
+ - "\"084101ebdc1a8ef77942ed702d9e8cd3\""
246
262
  connection:
247
263
  - close
248
264
  content-type:
249
265
  - application/xml; charset=utf-8
250
266
  x-runtime:
251
- - "15"
267
+ - "23"
252
268
  date:
253
- - Tue, 16 Nov 2010 07:04:35 GMT
269
+ - Sat, 08 Jan 2011 08:06:07 GMT
254
270
  server:
255
- - nginx/0.7.65
271
+ - nginx/0.8.53
256
272
  content-length:
257
- - "880"
273
+ - "918"
258
274
  set-cookie:
259
- - _recurly_session=e7e6dd790fd769a70ec5878fecc7da01; domain=.recurly.com; path=/; secure; HttpOnly
275
+ - _recurly_session=2e3249fd961528dd7258ce7745684a83; domain=.recurly.com; path=/; secure; HttpOnly
260
276
  cache-control:
261
277
  - private, max-age=0, must-revalidate
262
278
  body: |
@@ -271,13 +287,15 @@
271
287
  <state>active</state>
272
288
  <quantity type="integer">1</quantity>
273
289
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-11-16T07:04:36Z</activated_at>
290
+ <activated_at type="datetime">2011-01-08T08:06:06Z</activated_at>
275
291
  <canceled_at nil="true" type="datetime"></canceled_at>
276
292
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-11-16T07:04:36Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-12-16T07:04:36Z</current_period_ends_at>
293
+ <current_period_started_at type="datetime">2011-01-08T08:06:06Z</current_period_started_at>
294
+ <current_period_ends_at type="datetime">2011-02-08T08:06:06Z</current_period_ends_at>
279
295
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
296
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
297
+ <add_ons type="array">
298
+ </add_ons>
281
299
  </subscription>
282
300
 
283
301
  http_version: "1.1"
@@ -301,21 +319,21 @@
301
319
  x-ua-compatible:
302
320
  - IE=Edge
303
321
  etag:
304
- - "\"72e92926f703d3055ea7fb8be3f657ab\""
322
+ - "\"0cbcc66d5a99e3fe71feb5f980e0db64\""
305
323
  connection:
306
324
  - close
307
325
  content-type:
308
326
  - application/xml; charset=utf-8
309
327
  x-runtime:
310
- - "117"
328
+ - "131"
311
329
  date:
312
- - Tue, 16 Nov 2010 07:04:38 GMT
330
+ - Sat, 08 Jan 2011 08:06:08 GMT
313
331
  server:
314
- - nginx/0.7.65
332
+ - nginx/0.8.53
315
333
  content-length:
316
- - "899"
334
+ - "937"
317
335
  set-cookie:
318
- - _recurly_session=93ad0b03afe9fe0a18307937fd17dbd5; domain=.recurly.com; path=/; secure; HttpOnly
336
+ - _recurly_session=cd8372a9ca5ed46e4111b932ad652795; domain=.recurly.com; path=/; secure; HttpOnly
319
337
  cache-control:
320
338
  - private, max-age=0, must-revalidate
321
339
  body: |
@@ -330,13 +348,15 @@
330
348
  <state>expired</state>
331
349
  <quantity type="integer">1</quantity>
332
350
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
333
- <activated_at type="datetime">2010-11-16T07:04:36Z</activated_at>
334
- <canceled_at type="datetime">2010-11-16T07:04:37Z</canceled_at>
335
- <expires_at type="datetime">2010-12-16T07:04:36Z</expires_at>
336
- <current_period_started_at type="datetime">2010-11-16T07:04:36Z</current_period_started_at>
337
- <current_period_ends_at type="datetime">2010-12-16T07:04:36Z</current_period_ends_at>
351
+ <activated_at type="datetime">2011-01-08T08:06:06Z</activated_at>
352
+ <canceled_at type="datetime">2011-01-08T08:06:08Z</canceled_at>
353
+ <expires_at type="datetime">2011-02-08T08:06:06Z</expires_at>
354
+ <current_period_started_at type="datetime">2011-01-08T08:06:06Z</current_period_started_at>
355
+ <current_period_ends_at type="datetime">2011-02-08T08:06:06Z</current_period_ends_at>
338
356
  <trial_started_at nil="true" type="datetime"></trial_started_at>
339
357
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
358
+ <add_ons type="array">
359
+ </add_ons>
340
360
  </subscription>
341
361
 
342
362
  http_version: "1.1"
@@ -361,16 +381,14 @@
361
381
  - close
362
382
  content-type:
363
383
  - application/xml; charset=utf-8
364
- x-runtime:
365
- - "11"
366
384
  date:
367
- - Tue, 16 Nov 2010 07:04:36 GMT
385
+ - Sat, 08 Jan 2011 08:06:09 GMT
368
386
  server:
369
- - nginx/0.7.65
387
+ - nginx/0.8.53
370
388
  content-length:
371
389
  - "98"
372
390
  set-cookie:
373
- - _recurly_session=0ce73f36c414b8b6ef76665f6de066ed; domain=.recurly.com; path=/; secure; HttpOnly
391
+ - _recurly_session=d73ba2a1d7facaaee2b007432c05cc52; domain=.recurly.com; path=/; secure; HttpOnly
374
392
  cache-control:
375
393
  - no-cache
376
394
  body: |
@@ -9,6 +9,7 @@
9
9
  <company-name>Recurly Ruby Gem</company-name>
10
10
  <account-code>subscription-refund-none-1287455769</account-code>
11
11
  <last-name>Test</last-name>
12
+ <accept-language type="yaml" nil="true"></accept-language>
12
13
  <email>verena@test.com</email>
13
14
  <first-name>Verena</first-name>
14
15
  </account>
@@ -34,17 +35,17 @@
34
35
  content-type:
35
36
  - application/xml; charset=utf-8
36
37
  x-runtime:
37
- - "271"
38
+ - "345"
38
39
  date:
39
- - Tue, 16 Nov 2010 07:04:42 GMT
40
+ - Sat, 08 Jan 2011 08:06:16 GMT
40
41
  server:
41
- - nginx/0.7.65
42
+ - nginx/0.8.53
42
43
  content-length:
43
44
  - "603"
44
45
  set-cookie:
45
- - account_credentials=c98d8e565d28cb7c6718ad4a14557f06f4354857c1b828744b1efd398c98ea765f91c90dfaab5a2a9b32402abd466be84aa867074c3a9238861039d7ef28b752%3A%3A; domain=.recurly.com; path=/
46
+ - account_credentials=dc21141790d3ce3e7522e696d4b5f8251d9860f22075f60558986cb11af430841a684b29f026a4cf2613aa7dbfac5b6c82a560004524772260e6daf835eadb4d%3A%3A; domain=.recurly.com; path=/
46
47
  - ""
47
- - _recurly_session=1553c7ca2082ef638984ee771a647221; domain=.recurly.com; path=/; secure; HttpOnly
48
+ - _recurly_session=54863aa330b25ede7b3c6f6a5137be79; domain=.recurly.com; path=/; secure; HttpOnly
48
49
  cache-control:
49
50
  - no-cache
50
51
  body: |
@@ -59,8 +60,8 @@
59
60
  <company_name>Recurly Ruby Gem</company_name>
60
61
  <balance_in_cents type="integer">0</balance_in_cents>
61
62
  <closed type="boolean">false</closed>
62
- <hosted_login_token>ab6783cddd494114a8cadff4ae0b979a</hosted_login_token>
63
- <created_at type="datetime">2010-11-16T07:04:42Z</created_at>
63
+ <hosted_login_token>e2f98567ed9c42179e93ae7474c9cc5e</hosted_login_token>
64
+ <created_at type="datetime">2011-01-08T08:06:16Z</created_at>
64
65
  <state>active</state>
65
66
  </account>
66
67
 
@@ -85,21 +86,21 @@
85
86
  x-ua-compatible:
86
87
  - IE=Edge
87
88
  etag:
88
- - "\"31910d9b30fecc5e62f25a1ce00278e0\""
89
+ - "\"47a9e8e85691ef0600a2dd39f113a21e\""
89
90
  connection:
90
91
  - close
91
92
  content-type:
92
93
  - application/xml; charset=utf-8
93
94
  x-runtime:
94
- - "11"
95
+ - "96"
95
96
  date:
96
- - Tue, 16 Nov 2010 07:04:41 GMT
97
+ - Sat, 08 Jan 2011 08:06:16 GMT
97
98
  server:
98
- - nginx/0.7.65
99
+ - nginx/0.8.53
99
100
  content-length:
100
- - "1150"
101
+ - "1564"
101
102
  set-cookie:
102
- - _recurly_session=97e398490a1c282a68755b7b73889557; domain=.recurly.com; path=/; secure; HttpOnly
103
+ - _recurly_session=22918b60053a4baffa1489a6f424c2f4; domain=.recurly.com; path=/; secure; HttpOnly
103
104
  cache-control:
104
105
  - private, max-age=0, must-revalidate
105
106
  body: |
@@ -125,8 +126,20 @@
125
126
  <plan_interval_unit>months</plan_interval_unit>
126
127
  <trial_interval_length type="integer">0</trial_interval_length>
127
128
  <trial_interval_unit>months</trial_interval_unit>
128
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
129
+ <created_at type="datetime">2010-12-10T19:19:03Z</created_at>
129
130
  </latest_version>
131
+ <add_ons type="collection">
132
+ <add_on>
133
+ <add_on_code>special</add_on_code>
134
+ <default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
135
+ <default_quantity>1</default_quantity>
136
+ </add_on>
137
+ <add_on>
138
+ <add_on_code>special2</add_on_code>
139
+ <default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
140
+ <default_quantity>1</default_quantity>
141
+ </add_on>
142
+ </add_ons>
130
143
  </plan>
131
144
 
132
145
  http_version: "1.1"
@@ -140,23 +153,24 @@
140
153
  <quantity type="integer">1</quantity>
141
154
  <plan-code>paid</plan-code>
142
155
  <account>
143
- <created-at type="datetime">2010-11-16T07:04:42Z</created-at>
144
- <hosted-login-token>ab6783cddd494114a8cadff4ae0b979a</hosted-login-token>
156
+ <created-at type="datetime">2011-01-08T08:06:16Z</created-at>
157
+ <hosted-login-token>e2f98567ed9c42179e93ae7474c9cc5e</hosted-login-token>
145
158
  <company-name>Recurly Ruby Gem</company-name>
146
159
  <account-code>subscription-refund-none-1287455769</account-code>
147
160
  <closed type="boolean">false</closed>
148
161
  <username type="yaml" nil="true"></username>
149
162
  <id>subscription-refund-none-1287455769</id>
150
163
  <last-name>Test</last-name>
164
+ <accept-language type="yaml" nil="true"></accept-language>
151
165
  <billing-info>
152
- <city>San Francisco</city>
153
166
  <address1>123 Test St</address1>
167
+ <city>San Francisco</city>
154
168
  <zip>94115</zip>
155
169
  <country>US</country>
156
170
  <credit-card>
157
171
  <number>1</number>
158
- <month type="integer">11</month>
159
- <year type="integer">2011</year>
172
+ <month type="integer">1</month>
173
+ <year type="integer">2012</year>
160
174
  <verification-value>123</verification-value>
161
175
  </credit-card>
162
176
  <last-name>Test</last-name>
@@ -189,15 +203,15 @@
189
203
  content-type:
190
204
  - application/xml; charset=utf-8
191
205
  x-runtime:
192
- - "334"
206
+ - "547"
193
207
  date:
194
- - Tue, 16 Nov 2010 07:04:44 GMT
208
+ - Sat, 08 Jan 2011 08:06:18 GMT
195
209
  server:
196
- - nginx/0.7.65
210
+ - nginx/0.8.53
197
211
  content-length:
198
- - "880"
212
+ - "918"
199
213
  set-cookie:
200
- - _recurly_session=f8e5039e2e449d13a47429a7ebe16226; domain=.recurly.com; path=/; secure; HttpOnly
214
+ - _recurly_session=6057f092a076e3c66d20b52215fbc3af; domain=.recurly.com; path=/; secure; HttpOnly
201
215
  cache-control:
202
216
  - no-cache
203
217
  body: |
@@ -212,13 +226,15 @@
212
226
  <state>active</state>
213
227
  <quantity type="integer">1</quantity>
214
228
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-11-16T07:04:43Z</activated_at>
229
+ <activated_at type="datetime">2011-01-08T08:06:17Z</activated_at>
216
230
  <canceled_at nil="true" type="datetime"></canceled_at>
217
231
  <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-11-16T07:04:43Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-12-16T07:04:43Z</current_period_ends_at>
232
+ <current_period_started_at type="datetime">2011-01-08T08:06:17Z</current_period_started_at>
233
+ <current_period_ends_at type="datetime">2011-02-08T08:06:17Z</current_period_ends_at>
220
234
  <trial_started_at nil="true" type="datetime"></trial_started_at>
221
235
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
236
+ <add_ons type="array">
237
+ </add_ons>
222
238
  </subscription>
223
239
 
224
240
  http_version: "1.1"
@@ -242,21 +258,21 @@
242
258
  x-ua-compatible:
243
259
  - IE=Edge
244
260
  etag:
245
- - "\"42f4997c0300be79f9a3f35db443608c\""
261
+ - "\"f7936878fdcd07360d3f02eb28b629c7\""
246
262
  connection:
247
263
  - close
248
264
  content-type:
249
265
  - application/xml; charset=utf-8
250
266
  x-runtime:
251
- - "17"
267
+ - "24"
252
268
  date:
253
- - Tue, 16 Nov 2010 07:04:42 GMT
269
+ - Sat, 08 Jan 2011 08:06:18 GMT
254
270
  server:
255
- - nginx/0.7.65
271
+ - nginx/0.8.53
256
272
  content-length:
257
- - "880"
273
+ - "918"
258
274
  set-cookie:
259
- - _recurly_session=428e92817fdc9ef549171dfa27c9f5fe; domain=.recurly.com; path=/; secure; HttpOnly
275
+ - _recurly_session=f0715c77cbd0b290be3fad6d0e2afb4f; domain=.recurly.com; path=/; secure; HttpOnly
260
276
  cache-control:
261
277
  - private, max-age=0, must-revalidate
262
278
  body: |
@@ -271,13 +287,15 @@
271
287
  <state>active</state>
272
288
  <quantity type="integer">1</quantity>
273
289
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-11-16T07:04:43Z</activated_at>
290
+ <activated_at type="datetime">2011-01-08T08:06:17Z</activated_at>
275
291
  <canceled_at nil="true" type="datetime"></canceled_at>
276
292
  <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-11-16T07:04:43Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-12-16T07:04:43Z</current_period_ends_at>
293
+ <current_period_started_at type="datetime">2011-01-08T08:06:17Z</current_period_started_at>
294
+ <current_period_ends_at type="datetime">2011-02-08T08:06:17Z</current_period_ends_at>
279
295
  <trial_started_at nil="true" type="datetime"></trial_started_at>
280
296
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
297
+ <add_ons type="array">
298
+ </add_ons>
281
299
  </subscription>
282
300
 
283
301
  http_version: "1.1"
@@ -301,21 +319,21 @@
301
319
  x-ua-compatible:
302
320
  - IE=Edge
303
321
  etag:
304
- - "\"da90817067d77b694da62f86c9877cf7\""
322
+ - "\"4d4dc66970ae09afedc2179b2f7f11ea\""
305
323
  connection:
306
324
  - close
307
325
  content-type:
308
326
  - application/xml; charset=utf-8
309
327
  x-runtime:
310
- - "70"
328
+ - "86"
311
329
  date:
312
- - Tue, 16 Nov 2010 07:04:45 GMT
330
+ - Sat, 08 Jan 2011 08:06:19 GMT
313
331
  server:
314
- - nginx/0.7.65
332
+ - nginx/0.8.53
315
333
  content-length:
316
- - "899"
334
+ - "937"
317
335
  set-cookie:
318
- - _recurly_session=6486ed9d12aa24c12bd5d1dabd924061; domain=.recurly.com; path=/; secure; HttpOnly
336
+ - _recurly_session=ffb0873f0386ced95440989206a2237e; domain=.recurly.com; path=/; secure; HttpOnly
319
337
  cache-control:
320
338
  - private, max-age=0, must-revalidate
321
339
  body: |
@@ -330,13 +348,15 @@
330
348
  <state>expired</state>
331
349
  <quantity type="integer">1</quantity>
332
350
  <total_amount_in_cents type="integer">1000</total_amount_in_cents>
333
- <activated_at type="datetime">2010-11-16T07:04:43Z</activated_at>
334
- <canceled_at type="datetime">2010-11-16T07:04:45Z</canceled_at>
335
- <expires_at type="datetime">2010-12-16T07:04:43Z</expires_at>
336
- <current_period_started_at type="datetime">2010-11-16T07:04:43Z</current_period_started_at>
337
- <current_period_ends_at type="datetime">2010-12-16T07:04:43Z</current_period_ends_at>
351
+ <activated_at type="datetime">2011-01-08T08:06:17Z</activated_at>
352
+ <canceled_at type="datetime">2011-01-08T08:06:19Z</canceled_at>
353
+ <expires_at type="datetime">2011-02-08T08:06:17Z</expires_at>
354
+ <current_period_started_at type="datetime">2011-01-08T08:06:17Z</current_period_started_at>
355
+ <current_period_ends_at type="datetime">2011-02-08T08:06:17Z</current_period_ends_at>
338
356
  <trial_started_at nil="true" type="datetime"></trial_started_at>
339
357
  <trial_ends_at nil="true" type="datetime"></trial_ends_at>
358
+ <add_ons type="array">
359
+ </add_ons>
340
360
  </subscription>
341
361
 
342
362
  http_version: "1.1"
@@ -361,16 +381,14 @@
361
381
  - close
362
382
  content-type:
363
383
  - application/xml; charset=utf-8
364
- x-runtime:
365
- - "12"
366
384
  date:
367
- - Tue, 16 Nov 2010 07:04:44 GMT
385
+ - Sat, 08 Jan 2011 08:06:20 GMT
368
386
  server:
369
- - nginx/0.7.65
387
+ - nginx/0.8.53
370
388
  content-length:
371
389
  - "98"
372
390
  set-cookie:
373
- - _recurly_session=5000ba5b088c137fb3cd62f7a68eb647; domain=.recurly.com; path=/; secure; HttpOnly
391
+ - _recurly_session=5629554427dbe80b0911dfd90532a8c6; domain=.recurly.com; path=/; secure; HttpOnly
374
392
  cache-control:
375
393
  - no-cache
376
394
  body: |