recurly 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/patches/rails2/active_resource/connection.rb +10 -0
- data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
- data/lib/recurly.rb +7 -2
- data/lib/recurly/transparent.rb +4 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/transaction_spec.rb +5 -2
- data/spec/unit/transparent_spec.rb +59 -1
- data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
- data/spec/vcr/account/close/1297746103.yml +23 -30
- data/spec/vcr/account/create-blank/1297746103.yml +5 -7
- data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
- data/spec/vcr/account/create-min/1297746103.yml +8 -11
- data/spec/vcr/account/create/1297746103.yml +8 -11
- data/spec/vcr/account/find/1297746103.yml +22 -29
- data/spec/vcr/account/list/1297746103.yml +150 -196
- data/spec/vcr/account/update/1297746103.yml +37 -46
- data/spec/vcr/billing/create/1298594128.yml +24 -31
- data/spec/vcr/billing/destroy/1298594128.yml +35 -46
- data/spec/vcr/billing/find/1298594128.yml +32 -41
- data/spec/vcr/billing/update/1298594128.yml +32 -41
- data/spec/vcr/charge/create/1297746103.yml +36 -45
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
- data/spec/vcr/charge/list-all/1297746103.yml +51 -62
- data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
- data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
- data/spec/vcr/charge/lookup/1297746103.yml +28 -35
- data/spec/vcr/coupon/create/1299714521.yml +23 -30
- data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
- data/spec/vcr/credit/create/1299714599.yml +28 -35
- data/spec/vcr/credit/delete/1299714599.yml +41 -52
- data/spec/vcr/credit/list/1299714599.yml +51 -62
- data/spec/vcr/credit/lookup/1299714599.yml +28 -35
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
- data/spec/vcr/invoice/create/1297746103.yml +50 -61
- data/spec/vcr/invoice/list/1297746103.yml +73 -88
- data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
- data/spec/vcr/plan/all.yml +18 -24
- data/spec/vcr/plan/find.yml +18 -24
- data/spec/vcr/plan/update.yml +18 -24
- data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
- data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
- data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
- data/spec/vcr/subscription/change1/1297746103.yml +55 -68
- data/spec/vcr/subscription/change2/1297746103.yml +55 -68
- data/spec/vcr/subscription/create/1297746103.yml +25 -32
- data/spec/vcr/subscription/find/1297746103.yml +35 -44
- data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
- data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
- data/spec/vcr/transaction/all/1300473500.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
- data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
- data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
- data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
- data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
- data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
- data/spec/vcr/transaction/void/1300473500.yml +620 -0
- metadata +21 -20
- data/spec/vcr/transaction/all/1297746103.yml +0 -389
- data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
- data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
- data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
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/subscription-cancel-with-code-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "352"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "613"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:53:59 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=ae9b2f78d61ee26cfad4091921d4fd52; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=2505b496756fba00c7faa60270f54518; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>3a8a5ad46cb6452db6d772a9f3716179</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:54:24Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -90,10 +87,10 @@
|
|
90
87
|
response: !ruby/struct:VCR::Response
|
91
88
|
status: !ruby/struct:VCR::ResponseStatus
|
92
89
|
code: 200
|
93
|
-
message:
|
90
|
+
message: OK
|
94
91
|
headers:
|
95
92
|
x-runtime:
|
96
|
-
- "
|
93
|
+
- "311"
|
97
94
|
content-type:
|
98
95
|
- application/xml; charset=utf-8
|
99
96
|
etag:
|
@@ -102,14 +99,12 @@
|
|
102
99
|
- private, max-age=0, must-revalidate
|
103
100
|
content-length:
|
104
101
|
- "1146"
|
105
|
-
|
106
|
-
-
|
107
|
-
date:
|
108
|
-
- Fri, 11 Mar 2011 18:54:01 GMT
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=3f75bc31176ffb869ab49ff9c931a4f4; domain=.recurly.local; path=/; HttpOnly
|
109
104
|
connection:
|
110
105
|
- close
|
111
|
-
|
112
|
-
-
|
106
|
+
server:
|
107
|
+
- thin 1.2.7 codename No Hup
|
113
108
|
body: |
|
114
109
|
<?xml version="1.0" encoding="UTF-8"?>
|
115
110
|
<plan>
|
@@ -173,8 +168,8 @@
|
|
173
168
|
<username type="yaml" nil="true"></username>
|
174
169
|
<balance-in-cents type="integer">0</balance-in-cents>
|
175
170
|
<closed type="boolean">false</closed>
|
176
|
-
<hosted-login-token>
|
177
|
-
<created-at type="datetime">2011-03-
|
171
|
+
<hosted-login-token>3a8a5ad46cb6452db6d772a9f3716179</hosted-login-token>
|
172
|
+
<created-at type="datetime">2011-03-18T18:54:24Z</created-at>
|
178
173
|
<state>active</state>
|
179
174
|
</account>
|
180
175
|
<addons type="array"/>
|
@@ -194,24 +189,22 @@
|
|
194
189
|
response: !ruby/struct:VCR::Response
|
195
190
|
status: !ruby/struct:VCR::ResponseStatus
|
196
191
|
code: 201
|
197
|
-
message:
|
192
|
+
message: Created
|
198
193
|
headers:
|
199
194
|
cache-control:
|
200
195
|
- no-cache
|
201
196
|
x-runtime:
|
202
|
-
- "
|
197
|
+
- "6964"
|
203
198
|
content-type:
|
204
199
|
- application/xml; charset=utf-8
|
205
200
|
content-length:
|
206
201
|
- "928"
|
207
|
-
|
208
|
-
-
|
209
|
-
date:
|
210
|
-
- Fri, 11 Mar 2011 18:54:09 GMT
|
202
|
+
set-cookie:
|
203
|
+
- _recurly_session=5b896b9ee9fa2b85f90456567538d738; domain=.recurly.local; path=/; HttpOnly
|
211
204
|
connection:
|
212
205
|
- close
|
213
|
-
|
214
|
-
-
|
206
|
+
server:
|
207
|
+
- thin 1.2.7 codename No Hup
|
215
208
|
body: |
|
216
209
|
<?xml version="1.0" encoding="UTF-8"?>
|
217
210
|
<subscription>
|
@@ -224,11 +217,11 @@
|
|
224
217
|
<state>active</state>
|
225
218
|
<quantity type="integer">1</quantity>
|
226
219
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
227
|
-
<activated_at type="datetime">2011-03-
|
220
|
+
<activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
|
228
221
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
229
222
|
<expires_at nil="true" type="datetime"></expires_at>
|
230
|
-
<current_period_started_at type="datetime">2011-03-
|
231
|
-
<current_period_ends_at type="datetime">2011-03-
|
223
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
|
224
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
|
232
225
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
233
226
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
234
227
|
<add_ons type="array">
|
@@ -255,26 +248,24 @@
|
|
255
248
|
response: !ruby/struct:VCR::Response
|
256
249
|
status: !ruby/struct:VCR::ResponseStatus
|
257
250
|
code: 200
|
258
|
-
message:
|
251
|
+
message: OK
|
259
252
|
headers:
|
260
253
|
x-runtime:
|
261
|
-
- "
|
254
|
+
- "335"
|
262
255
|
content-type:
|
263
256
|
- application/xml; charset=utf-8
|
264
257
|
etag:
|
265
|
-
- "\"
|
258
|
+
- "\"3e8fdaa8eafe2ee73726625b769635cb\""
|
266
259
|
cache-control:
|
267
260
|
- private, max-age=0, must-revalidate
|
268
261
|
content-length:
|
269
262
|
- "928"
|
270
|
-
|
271
|
-
-
|
272
|
-
date:
|
273
|
-
- Fri, 11 Mar 2011 18:54:12 GMT
|
263
|
+
set-cookie:
|
264
|
+
- _recurly_session=3ab8de4a801c7180bd07f1c230e10f26; domain=.recurly.local; path=/; HttpOnly
|
274
265
|
connection:
|
275
266
|
- close
|
276
|
-
|
277
|
-
-
|
267
|
+
server:
|
268
|
+
- thin 1.2.7 codename No Hup
|
278
269
|
body: |
|
279
270
|
<?xml version="1.0" encoding="UTF-8"?>
|
280
271
|
<subscription>
|
@@ -287,11 +278,11 @@
|
|
287
278
|
<state>active</state>
|
288
279
|
<quantity type="integer">1</quantity>
|
289
280
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
290
|
-
<activated_at type="datetime">2011-03-
|
281
|
+
<activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
|
291
282
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
292
283
|
<expires_at nil="true" type="datetime"></expires_at>
|
293
|
-
<current_period_started_at type="datetime">2011-03-
|
294
|
-
<current_period_ends_at type="datetime">2011-03-
|
284
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
|
285
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
|
295
286
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
296
287
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
288
|
<add_ons type="array">
|
@@ -316,26 +307,24 @@
|
|
316
307
|
response: !ruby/struct:VCR::Response
|
317
308
|
status: !ruby/struct:VCR::ResponseStatus
|
318
309
|
code: 200
|
319
|
-
message:
|
310
|
+
message: OK
|
320
311
|
headers:
|
321
312
|
x-runtime:
|
322
|
-
- "
|
313
|
+
- "2498"
|
323
314
|
content-type:
|
324
315
|
- application/xml; charset=utf-8
|
325
316
|
etag:
|
326
|
-
- "\"
|
317
|
+
- "\"be8725ac7176842518dd770c4d17c21c\""
|
327
318
|
cache-control:
|
328
319
|
- private, max-age=0, must-revalidate
|
329
320
|
content-length:
|
330
321
|
- "948"
|
331
|
-
|
332
|
-
-
|
333
|
-
date:
|
334
|
-
- Fri, 11 Mar 2011 18:54:17 GMT
|
322
|
+
set-cookie:
|
323
|
+
- _recurly_session=43b47d3974fb2486a0bb870efb5a12f1; domain=.recurly.local; path=/; HttpOnly
|
335
324
|
connection:
|
336
325
|
- close
|
337
|
-
|
338
|
-
-
|
326
|
+
server:
|
327
|
+
- thin 1.2.7 codename No Hup
|
339
328
|
body: |
|
340
329
|
<?xml version="1.0" encoding="UTF-8"?>
|
341
330
|
<subscription>
|
@@ -348,11 +337,11 @@
|
|
348
337
|
<state>canceled</state>
|
349
338
|
<quantity type="integer">1</quantity>
|
350
339
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
351
|
-
<activated_at type="datetime">2011-03-
|
352
|
-
<canceled_at type="datetime">2011-03-
|
353
|
-
<expires_at type="datetime">2011-03-
|
354
|
-
<current_period_started_at type="datetime">2011-03-
|
355
|
-
<current_period_ends_at type="datetime">2011-03-
|
340
|
+
<activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
|
341
|
+
<canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
|
342
|
+
<expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
|
343
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
|
344
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
|
356
345
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
357
346
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
347
|
<add_ons type="array">
|
@@ -379,26 +368,24 @@
|
|
379
368
|
response: !ruby/struct:VCR::Response
|
380
369
|
status: !ruby/struct:VCR::ResponseStatus
|
381
370
|
code: 200
|
382
|
-
message:
|
371
|
+
message: OK
|
383
372
|
headers:
|
384
373
|
x-runtime:
|
385
|
-
- "
|
374
|
+
- "336"
|
386
375
|
content-type:
|
387
376
|
- application/xml; charset=utf-8
|
388
377
|
etag:
|
389
|
-
- "\"
|
378
|
+
- "\"be8725ac7176842518dd770c4d17c21c\""
|
390
379
|
cache-control:
|
391
380
|
- private, max-age=0, must-revalidate
|
392
381
|
content-length:
|
393
382
|
- "948"
|
394
|
-
|
395
|
-
-
|
396
|
-
date:
|
397
|
-
- Fri, 11 Mar 2011 18:54:20 GMT
|
383
|
+
set-cookie:
|
384
|
+
- _recurly_session=19cdbda3f1f4f4c77b8aec94d9f95f5b; domain=.recurly.local; path=/; HttpOnly
|
398
385
|
connection:
|
399
386
|
- close
|
400
|
-
|
401
|
-
-
|
387
|
+
server:
|
388
|
+
- thin 1.2.7 codename No Hup
|
402
389
|
body: |
|
403
390
|
<?xml version="1.0" encoding="UTF-8"?>
|
404
391
|
<subscription>
|
@@ -411,11 +398,11 @@
|
|
411
398
|
<state>canceled</state>
|
412
399
|
<quantity type="integer">1</quantity>
|
413
400
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
414
|
-
<activated_at type="datetime">2011-03-
|
415
|
-
<canceled_at type="datetime">2011-03-
|
416
|
-
<expires_at type="datetime">2011-03-
|
417
|
-
<current_period_started_at type="datetime">2011-03-
|
418
|
-
<current_period_ends_at type="datetime">2011-03-
|
401
|
+
<activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
|
402
|
+
<canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
|
403
|
+
<expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
|
404
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
|
405
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
|
419
406
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
420
407
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
421
408
|
<add_ons type="array">
|
@@ -442,26 +429,24 @@
|
|
442
429
|
response: !ruby/struct:VCR::Response
|
443
430
|
status: !ruby/struct:VCR::ResponseStatus
|
444
431
|
code: 200
|
445
|
-
message:
|
432
|
+
message: OK
|
446
433
|
headers:
|
447
434
|
x-runtime:
|
448
|
-
- "
|
435
|
+
- "341"
|
449
436
|
content-type:
|
450
437
|
- application/xml; charset=utf-8
|
451
438
|
etag:
|
452
|
-
- "\"
|
439
|
+
- "\"be8725ac7176842518dd770c4d17c21c\""
|
453
440
|
cache-control:
|
454
441
|
- private, max-age=0, must-revalidate
|
455
442
|
content-length:
|
456
443
|
- "948"
|
457
|
-
|
458
|
-
-
|
459
|
-
date:
|
460
|
-
- Fri, 11 Mar 2011 18:54:23 GMT
|
444
|
+
set-cookie:
|
445
|
+
- _recurly_session=e1063062f010b2306fc2ea0a592c2382; domain=.recurly.local; path=/; HttpOnly
|
461
446
|
connection:
|
462
447
|
- close
|
463
|
-
|
464
|
-
-
|
448
|
+
server:
|
449
|
+
- thin 1.2.7 codename No Hup
|
465
450
|
body: |
|
466
451
|
<?xml version="1.0" encoding="UTF-8"?>
|
467
452
|
<subscription>
|
@@ -474,11 +459,11 @@
|
|
474
459
|
<state>canceled</state>
|
475
460
|
<quantity type="integer">1</quantity>
|
476
461
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
477
|
-
<activated_at type="datetime">2011-03-
|
478
|
-
<canceled_at type="datetime">2011-03-
|
479
|
-
<expires_at type="datetime">2011-03-
|
480
|
-
<current_period_started_at type="datetime">2011-03-
|
481
|
-
<current_period_ends_at type="datetime">2011-03-
|
462
|
+
<activated_at type="datetime">2011-03-18T18:54:29Z</activated_at>
|
463
|
+
<canceled_at type="datetime">2011-03-18T18:54:40Z</canceled_at>
|
464
|
+
<expires_at type="datetime">2011-03-19T18:54:29Z</expires_at>
|
465
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:29Z</current_period_started_at>
|
466
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:29Z</current_period_ends_at>
|
482
467
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
483
468
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
484
469
|
<add_ons type="array">
|
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
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/subscription-cancel-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "336"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "593"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:53:37 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=a1e5bc2cb61c25c597d352a9b337e0af; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=ec7aee7e41baddbd704e6241d0110551; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>60cb7e4aabb74e2ea324f0da790859fc</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:54:03Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -90,10 +87,10 @@
|
|
90
87
|
response: !ruby/struct:VCR::Response
|
91
88
|
status: !ruby/struct:VCR::ResponseStatus
|
92
89
|
code: 200
|
93
|
-
message:
|
90
|
+
message: OK
|
94
91
|
headers:
|
95
92
|
x-runtime:
|
96
|
-
- "
|
93
|
+
- "305"
|
97
94
|
content-type:
|
98
95
|
- application/xml; charset=utf-8
|
99
96
|
etag:
|
@@ -102,14 +99,12 @@
|
|
102
99
|
- private, max-age=0, must-revalidate
|
103
100
|
content-length:
|
104
101
|
- "1146"
|
105
|
-
|
106
|
-
-
|
107
|
-
date:
|
108
|
-
- Fri, 11 Mar 2011 18:53:39 GMT
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=72b605a983978984689076bb0b595d82; domain=.recurly.local; path=/; HttpOnly
|
109
104
|
connection:
|
110
105
|
- close
|
111
|
-
|
112
|
-
-
|
106
|
+
server:
|
107
|
+
- thin 1.2.7 codename No Hup
|
113
108
|
body: |
|
114
109
|
<?xml version="1.0" encoding="UTF-8"?>
|
115
110
|
<plan>
|
@@ -173,8 +168,8 @@
|
|
173
168
|
<username type="yaml" nil="true"></username>
|
174
169
|
<balance-in-cents type="integer">0</balance-in-cents>
|
175
170
|
<closed type="boolean">false</closed>
|
176
|
-
<hosted-login-token>
|
177
|
-
<created-at type="datetime">2011-03-
|
171
|
+
<hosted-login-token>60cb7e4aabb74e2ea324f0da790859fc</hosted-login-token>
|
172
|
+
<created-at type="datetime">2011-03-18T18:54:03Z</created-at>
|
178
173
|
<state>active</state>
|
179
174
|
</account>
|
180
175
|
<addons type="array"/>
|
@@ -194,24 +189,22 @@
|
|
194
189
|
response: !ruby/struct:VCR::Response
|
195
190
|
status: !ruby/struct:VCR::ResponseStatus
|
196
191
|
code: 201
|
197
|
-
message:
|
192
|
+
message: Created
|
198
193
|
headers:
|
199
194
|
cache-control:
|
200
195
|
- no-cache
|
201
196
|
x-runtime:
|
202
|
-
- "
|
197
|
+
- "7771"
|
203
198
|
content-type:
|
204
199
|
- application/xml; charset=utf-8
|
205
200
|
content-length:
|
206
201
|
- "908"
|
207
|
-
|
208
|
-
-
|
209
|
-
date:
|
210
|
-
- Fri, 11 Mar 2011 18:53:46 GMT
|
202
|
+
set-cookie:
|
203
|
+
- _recurly_session=06a26f1810ad572035fa6ec1c1252313; domain=.recurly.local; path=/; HttpOnly
|
211
204
|
connection:
|
212
205
|
- close
|
213
|
-
|
214
|
-
-
|
206
|
+
server:
|
207
|
+
- thin 1.2.7 codename No Hup
|
215
208
|
body: |
|
216
209
|
<?xml version="1.0" encoding="UTF-8"?>
|
217
210
|
<subscription>
|
@@ -224,11 +217,11 @@
|
|
224
217
|
<state>active</state>
|
225
218
|
<quantity type="integer">1</quantity>
|
226
219
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
227
|
-
<activated_at type="datetime">2011-03-
|
220
|
+
<activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
|
228
221
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
229
222
|
<expires_at nil="true" type="datetime"></expires_at>
|
230
|
-
<current_period_started_at type="datetime">2011-03-
|
231
|
-
<current_period_ends_at type="datetime">2011-03-
|
223
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
|
224
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
|
232
225
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
233
226
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
234
227
|
<add_ons type="array">
|
@@ -255,26 +248,24 @@
|
|
255
248
|
response: !ruby/struct:VCR::Response
|
256
249
|
status: !ruby/struct:VCR::ResponseStatus
|
257
250
|
code: 200
|
258
|
-
message:
|
251
|
+
message: OK
|
259
252
|
headers:
|
260
253
|
x-runtime:
|
261
|
-
- "
|
254
|
+
- "342"
|
262
255
|
content-type:
|
263
256
|
- application/xml; charset=utf-8
|
264
257
|
etag:
|
265
|
-
- "\"
|
258
|
+
- "\"3dcd5b989f9965811c924fb35a9ad6c0\""
|
266
259
|
cache-control:
|
267
260
|
- private, max-age=0, must-revalidate
|
268
261
|
content-length:
|
269
262
|
- "908"
|
270
|
-
|
271
|
-
-
|
272
|
-
date:
|
273
|
-
- Fri, 11 Mar 2011 18:53:49 GMT
|
263
|
+
set-cookie:
|
264
|
+
- _recurly_session=9d4739ef3ff2c3e1969f08724d9beb90; domain=.recurly.local; path=/; HttpOnly
|
274
265
|
connection:
|
275
266
|
- close
|
276
|
-
|
277
|
-
-
|
267
|
+
server:
|
268
|
+
- thin 1.2.7 codename No Hup
|
278
269
|
body: |
|
279
270
|
<?xml version="1.0" encoding="UTF-8"?>
|
280
271
|
<subscription>
|
@@ -287,11 +278,11 @@
|
|
287
278
|
<state>active</state>
|
288
279
|
<quantity type="integer">1</quantity>
|
289
280
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
290
|
-
<activated_at type="datetime">2011-03-
|
281
|
+
<activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
|
291
282
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
292
283
|
<expires_at nil="true" type="datetime"></expires_at>
|
293
|
-
<current_period_started_at type="datetime">2011-03-
|
294
|
-
<current_period_ends_at type="datetime">2011-03-
|
284
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
|
285
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
|
295
286
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
296
287
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
288
|
<add_ons type="array">
|
@@ -316,26 +307,24 @@
|
|
316
307
|
response: !ruby/struct:VCR::Response
|
317
308
|
status: !ruby/struct:VCR::ResponseStatus
|
318
309
|
code: 200
|
319
|
-
message:
|
310
|
+
message: OK
|
320
311
|
headers:
|
321
312
|
x-runtime:
|
322
|
-
- "
|
313
|
+
- "2150"
|
323
314
|
content-type:
|
324
315
|
- application/xml; charset=utf-8
|
325
316
|
etag:
|
326
|
-
- "\"
|
317
|
+
- "\"f4fc2f22312e3c4d738d5d7f7d89d021\""
|
327
318
|
cache-control:
|
328
319
|
- private, max-age=0, must-revalidate
|
329
320
|
content-length:
|
330
321
|
- "928"
|
331
|
-
|
332
|
-
-
|
333
|
-
date:
|
334
|
-
- Fri, 11 Mar 2011 18:53:54 GMT
|
322
|
+
set-cookie:
|
323
|
+
- _recurly_session=fa16f69538785432ce9fb678a2b8c768; domain=.recurly.local; path=/; HttpOnly
|
335
324
|
connection:
|
336
325
|
- close
|
337
|
-
|
338
|
-
-
|
326
|
+
server:
|
327
|
+
- thin 1.2.7 codename No Hup
|
339
328
|
body: |
|
340
329
|
<?xml version="1.0" encoding="UTF-8"?>
|
341
330
|
<subscription>
|
@@ -348,11 +337,11 @@
|
|
348
337
|
<state>canceled</state>
|
349
338
|
<quantity type="integer">1</quantity>
|
350
339
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
351
|
-
<activated_at type="datetime">2011-03-
|
352
|
-
<canceled_at type="datetime">2011-03-
|
353
|
-
<expires_at type="datetime">2011-03-
|
354
|
-
<current_period_started_at type="datetime">2011-03-
|
355
|
-
<current_period_ends_at type="datetime">2011-03-
|
340
|
+
<activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
|
341
|
+
<canceled_at type="datetime">2011-03-18T18:54:18Z</canceled_at>
|
342
|
+
<expires_at type="datetime">2011-03-19T18:54:07Z</expires_at>
|
343
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
|
344
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
|
356
345
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
357
346
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
347
|
<add_ons type="array">
|
@@ -379,26 +368,24 @@
|
|
379
368
|
response: !ruby/struct:VCR::Response
|
380
369
|
status: !ruby/struct:VCR::ResponseStatus
|
381
370
|
code: 200
|
382
|
-
message:
|
371
|
+
message: OK
|
383
372
|
headers:
|
384
373
|
x-runtime:
|
385
|
-
- "
|
374
|
+
- "331"
|
386
375
|
content-type:
|
387
376
|
- application/xml; charset=utf-8
|
388
377
|
etag:
|
389
|
-
- "\"
|
378
|
+
- "\"f4fc2f22312e3c4d738d5d7f7d89d021\""
|
390
379
|
cache-control:
|
391
380
|
- private, max-age=0, must-revalidate
|
392
381
|
content-length:
|
393
382
|
- "928"
|
394
|
-
|
395
|
-
-
|
396
|
-
date:
|
397
|
-
- Fri, 11 Mar 2011 18:53:57 GMT
|
383
|
+
set-cookie:
|
384
|
+
- _recurly_session=b52f4c385c14b40a150515b123672ca3; domain=.recurly.local; path=/; HttpOnly
|
398
385
|
connection:
|
399
386
|
- close
|
400
|
-
|
401
|
-
-
|
387
|
+
server:
|
388
|
+
- thin 1.2.7 codename No Hup
|
402
389
|
body: |
|
403
390
|
<?xml version="1.0" encoding="UTF-8"?>
|
404
391
|
<subscription>
|
@@ -411,11 +398,11 @@
|
|
411
398
|
<state>canceled</state>
|
412
399
|
<quantity type="integer">1</quantity>
|
413
400
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
414
|
-
<activated_at type="datetime">2011-03-
|
415
|
-
<canceled_at type="datetime">2011-03-
|
416
|
-
<expires_at type="datetime">2011-03-
|
417
|
-
<current_period_started_at type="datetime">2011-03-
|
418
|
-
<current_period_ends_at type="datetime">2011-03-
|
401
|
+
<activated_at type="datetime">2011-03-18T18:54:07Z</activated_at>
|
402
|
+
<canceled_at type="datetime">2011-03-18T18:54:18Z</canceled_at>
|
403
|
+
<expires_at type="datetime">2011-03-19T18:54:07Z</expires_at>
|
404
|
+
<current_period_started_at type="datetime">2011-03-18T18:54:07Z</current_period_started_at>
|
405
|
+
<current_period_ends_at type="datetime">2011-03-19T18:54:07Z</current_period_ends_at>
|
419
406
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
420
407
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
421
408
|
<add_ons type="array">
|