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-change1-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "405"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "595"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:52:18 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=fc22e7056479fc4ca012bad9584c4e93; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=1c6b07803bbf87b876cff842b985e3fa; 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>b2e07c62cba34e60bbe49e4e5d7531a4</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:52:52Z</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
|
+
- "296"
|
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:52:20 GMT
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=d5f5fc21759e4127a5216bfa52f1a676; 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>b2e07c62cba34e60bbe49e4e5d7531a4</hosted-login-token>
|
172
|
+
<created-at type="datetime">2011-03-18T18:52:52Z</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
|
+
- "6725"
|
203
198
|
content-type:
|
204
199
|
- application/xml; charset=utf-8
|
205
200
|
content-length:
|
206
201
|
- "910"
|
207
|
-
|
208
|
-
-
|
209
|
-
date:
|
210
|
-
- Fri, 11 Mar 2011 18:52:28 GMT
|
202
|
+
set-cookie:
|
203
|
+
- _recurly_session=845830ae0fa58294a50cd3e108356a2a; 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:52:57Z</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:52:57Z</current_period_started_at>
|
224
|
+
<current_period_ends_at type="datetime">2011-03-19T18:52:57Z</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
|
+
- "330"
|
262
255
|
content-type:
|
263
256
|
- application/xml; charset=utf-8
|
264
257
|
etag:
|
265
|
-
- "\"
|
258
|
+
- "\"528b208869fefd95c74ef685656e6a84\""
|
266
259
|
cache-control:
|
267
260
|
- private, max-age=0, must-revalidate
|
268
261
|
content-length:
|
269
262
|
- "910"
|
270
|
-
|
271
|
-
-
|
272
|
-
date:
|
273
|
-
- Fri, 11 Mar 2011 18:52:31 GMT
|
263
|
+
set-cookie:
|
264
|
+
- _recurly_session=bf7361ad5ba3a04fa82c22e66bc0d43b; 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:52:57Z</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:52:57Z</current_period_started_at>
|
285
|
+
<current_period_ends_at type="datetime">2011-03-19T18:52:57Z</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">
|
@@ -324,26 +315,24 @@
|
|
324
315
|
response: !ruby/struct:VCR::Response
|
325
316
|
status: !ruby/struct:VCR::ResponseStatus
|
326
317
|
code: 200
|
327
|
-
message:
|
318
|
+
message: OK
|
328
319
|
headers:
|
329
320
|
x-runtime:
|
330
|
-
- "
|
321
|
+
- "3733"
|
331
322
|
content-type:
|
332
323
|
- application/xml; charset=utf-8
|
333
324
|
etag:
|
334
|
-
- "\"
|
325
|
+
- "\"b15066616088500ae2911386cada7a98\""
|
335
326
|
cache-control:
|
336
327
|
- private, max-age=0, must-revalidate
|
337
328
|
content-length:
|
338
329
|
- "910"
|
339
|
-
|
340
|
-
-
|
341
|
-
date:
|
342
|
-
- Fri, 11 Mar 2011 18:52:37 GMT
|
330
|
+
set-cookie:
|
331
|
+
- _recurly_session=f8845f8a38b6bae68223a249c5557cdb; domain=.recurly.local; path=/; HttpOnly
|
343
332
|
connection:
|
344
333
|
- close
|
345
|
-
|
346
|
-
-
|
334
|
+
server:
|
335
|
+
- thin 1.2.7 codename No Hup
|
347
336
|
body: |
|
348
337
|
<?xml version="1.0" encoding="UTF-8"?>
|
349
338
|
<subscription>
|
@@ -356,11 +345,11 @@
|
|
356
345
|
<state>active</state>
|
357
346
|
<quantity type="integer">2</quantity>
|
358
347
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
359
|
-
<activated_at type="datetime">2011-03-
|
348
|
+
<activated_at type="datetime">2011-03-18T18:53:07Z</activated_at>
|
360
349
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
361
350
|
<expires_at nil="true" type="datetime"></expires_at>
|
362
|
-
<current_period_started_at type="datetime">2011-03-
|
363
|
-
<current_period_ends_at type="datetime">2011-03-
|
351
|
+
<current_period_started_at type="datetime">2011-03-18T18:52:57Z</current_period_started_at>
|
352
|
+
<current_period_ends_at type="datetime">2011-03-19T18:52:57Z</current_period_ends_at>
|
364
353
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
365
354
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
366
355
|
<add_ons type="array">
|
@@ -387,26 +376,24 @@
|
|
387
376
|
response: !ruby/struct:VCR::Response
|
388
377
|
status: !ruby/struct:VCR::ResponseStatus
|
389
378
|
code: 200
|
390
|
-
message:
|
379
|
+
message: OK
|
391
380
|
headers:
|
392
381
|
x-runtime:
|
393
|
-
- "
|
382
|
+
- "327"
|
394
383
|
content-type:
|
395
384
|
- application/xml; charset=utf-8
|
396
385
|
etag:
|
397
|
-
- "\"
|
386
|
+
- "\"b15066616088500ae2911386cada7a98\""
|
398
387
|
cache-control:
|
399
388
|
- private, max-age=0, must-revalidate
|
400
389
|
content-length:
|
401
390
|
- "910"
|
402
|
-
|
403
|
-
-
|
404
|
-
date:
|
405
|
-
- Fri, 11 Mar 2011 18:52:40 GMT
|
391
|
+
set-cookie:
|
392
|
+
- _recurly_session=c8f083b956d109a7b54ea7a03e556965; domain=.recurly.local; path=/; HttpOnly
|
406
393
|
connection:
|
407
394
|
- close
|
408
|
-
|
409
|
-
-
|
395
|
+
server:
|
396
|
+
- thin 1.2.7 codename No Hup
|
410
397
|
body: |
|
411
398
|
<?xml version="1.0" encoding="UTF-8"?>
|
412
399
|
<subscription>
|
@@ -419,11 +406,11 @@
|
|
419
406
|
<state>active</state>
|
420
407
|
<quantity type="integer">2</quantity>
|
421
408
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
422
|
-
<activated_at type="datetime">2011-03-
|
409
|
+
<activated_at type="datetime">2011-03-18T18:53:07Z</activated_at>
|
423
410
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
424
411
|
<expires_at nil="true" type="datetime"></expires_at>
|
425
|
-
<current_period_started_at type="datetime">2011-03-
|
426
|
-
<current_period_ends_at type="datetime">2011-03-
|
412
|
+
<current_period_started_at type="datetime">2011-03-18T18:52:57Z</current_period_started_at>
|
413
|
+
<current_period_ends_at type="datetime">2011-03-19T18:52:57Z</current_period_ends_at>
|
427
414
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
428
415
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
429
416
|
<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/1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "345"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "553"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:52:43 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=2d3123e9ee1cca6316ee06f9846cfa78; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=31c8134b950f11beb2bd4305848136fb; 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>6b9992802978488a8a282131ab045293</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:53:14Z</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:52:45 GMT
|
102
|
+
set-cookie:
|
103
|
+
- _recurly_session=c11e394e1aae95c4be3497d8ed15074a; 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>6b9992802978488a8a282131ab045293</hosted-login-token>
|
172
|
+
<created-at type="datetime">2011-03-18T18:53:14Z</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
|
+
- "7343"
|
203
198
|
content-type:
|
204
199
|
- application/xml; charset=utf-8
|
205
200
|
content-length:
|
206
201
|
- "868"
|
207
|
-
|
208
|
-
-
|
209
|
-
date:
|
210
|
-
- Fri, 11 Mar 2011 18:52:53 GMT
|
202
|
+
set-cookie:
|
203
|
+
- _recurly_session=d91e67d3597784022407cbf9b3c6963c; 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:53:19Z</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:53:19Z</current_period_started_at>
|
224
|
+
<current_period_ends_at type="datetime">2011-03-19T18:53:19Z</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
|
+
- "339"
|
262
255
|
content-type:
|
263
256
|
- application/xml; charset=utf-8
|
264
257
|
etag:
|
265
|
-
- "\"
|
258
|
+
- "\"2b061628069f26c62b832daa2f79176f\""
|
266
259
|
cache-control:
|
267
260
|
- private, max-age=0, must-revalidate
|
268
261
|
content-length:
|
269
262
|
- "868"
|
270
|
-
|
271
|
-
-
|
272
|
-
date:
|
273
|
-
- Fri, 11 Mar 2011 18:52:56 GMT
|
263
|
+
set-cookie:
|
264
|
+
- _recurly_session=da657b6464da7b08c990e37e66ec882f; 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:53:19Z</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:53:19Z</current_period_started_at>
|
285
|
+
<current_period_ends_at type="datetime">2011-03-19T18:53:19Z</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">
|
@@ -324,26 +315,24 @@
|
|
324
315
|
response: !ruby/struct:VCR::Response
|
325
316
|
status: !ruby/struct:VCR::ResponseStatus
|
326
317
|
code: 200
|
327
|
-
message:
|
318
|
+
message: OK
|
328
319
|
headers:
|
329
320
|
x-runtime:
|
330
|
-
- "
|
321
|
+
- "3508"
|
331
322
|
content-type:
|
332
323
|
- application/xml; charset=utf-8
|
333
324
|
etag:
|
334
|
-
- "\"
|
325
|
+
- "\"f0a6c950141a3d9b3b925d94324b0f28\""
|
335
326
|
cache-control:
|
336
327
|
- private, max-age=0, must-revalidate
|
337
328
|
content-length:
|
338
329
|
- "868"
|
339
|
-
|
340
|
-
-
|
341
|
-
date:
|
342
|
-
- Fri, 11 Mar 2011 18:53:02 GMT
|
330
|
+
set-cookie:
|
331
|
+
- _recurly_session=3eb8059a6fa7c537ad23cbe8a7ac471d; domain=.recurly.local; path=/; HttpOnly
|
343
332
|
connection:
|
344
333
|
- close
|
345
|
-
|
346
|
-
-
|
334
|
+
server:
|
335
|
+
- thin 1.2.7 codename No Hup
|
347
336
|
body: |
|
348
337
|
<?xml version="1.0" encoding="UTF-8"?>
|
349
338
|
<subscription>
|
@@ -356,11 +345,11 @@
|
|
356
345
|
<state>active</state>
|
357
346
|
<quantity type="integer">2</quantity>
|
358
347
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
359
|
-
<activated_at type="datetime">2011-03-
|
348
|
+
<activated_at type="datetime">2011-03-18T18:53:30Z</activated_at>
|
360
349
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
361
350
|
<expires_at nil="true" type="datetime"></expires_at>
|
362
|
-
<current_period_started_at type="datetime">2011-03-
|
363
|
-
<current_period_ends_at type="datetime">2011-03-
|
351
|
+
<current_period_started_at type="datetime">2011-03-18T18:53:19Z</current_period_started_at>
|
352
|
+
<current_period_ends_at type="datetime">2011-03-19T18:53:19Z</current_period_ends_at>
|
364
353
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
365
354
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
366
355
|
<add_ons type="array">
|
@@ -387,26 +376,24 @@
|
|
387
376
|
response: !ruby/struct:VCR::Response
|
388
377
|
status: !ruby/struct:VCR::ResponseStatus
|
389
378
|
code: 200
|
390
|
-
message:
|
379
|
+
message: OK
|
391
380
|
headers:
|
392
381
|
x-runtime:
|
393
|
-
- "
|
382
|
+
- "330"
|
394
383
|
content-type:
|
395
384
|
- application/xml; charset=utf-8
|
396
385
|
etag:
|
397
|
-
- "\"
|
386
|
+
- "\"f0a6c950141a3d9b3b925d94324b0f28\""
|
398
387
|
cache-control:
|
399
388
|
- private, max-age=0, must-revalidate
|
400
389
|
content-length:
|
401
390
|
- "868"
|
402
|
-
|
403
|
-
-
|
404
|
-
date:
|
405
|
-
- Fri, 11 Mar 2011 18:53:05 GMT
|
391
|
+
set-cookie:
|
392
|
+
- _recurly_session=7b9f131f1b3372839808785a184c46fc; domain=.recurly.local; path=/; HttpOnly
|
406
393
|
connection:
|
407
394
|
- close
|
408
|
-
|
409
|
-
-
|
395
|
+
server:
|
396
|
+
- thin 1.2.7 codename No Hup
|
410
397
|
body: |
|
411
398
|
<?xml version="1.0" encoding="UTF-8"?>
|
412
399
|
<subscription>
|
@@ -419,11 +406,11 @@
|
|
419
406
|
<state>active</state>
|
420
407
|
<quantity type="integer">2</quantity>
|
421
408
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
422
|
-
<activated_at type="datetime">2011-03-
|
409
|
+
<activated_at type="datetime">2011-03-18T18:53:30Z</activated_at>
|
423
410
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
424
411
|
<expires_at nil="true" type="datetime"></expires_at>
|
425
|
-
<current_period_started_at type="datetime">2011-03-
|
426
|
-
<current_period_ends_at type="datetime">2011-03-
|
412
|
+
<current_period_started_at type="datetime">2011-03-18T18:53:19Z</current_period_started_at>
|
413
|
+
<current_period_ends_at type="datetime">2011-03-19T18:53:19Z</current_period_ends_at>
|
427
414
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
428
415
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
429
416
|
<add_ons type="array">
|