recurly 0.2.2 → 0.2.3
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/recurly/subscription.rb +2 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +0 -2
- data/spec/integration/invoice_spec.rb +0 -1
- data/spec/integration/subscription_spec.rb +49 -10
- data/spec/integration/transaction_spec.rb +3 -2
- data/spec/support/factory.rb +2 -2
- data/spec/vcr/account/close/{1286666929.yml → 1287167046.yml} +23 -23
- data/spec/vcr/account/create/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/create-blank/{1286666929.yml → 1287167046.yml} +3 -3
- data/spec/vcr/account/create-duplicate/{1286666929.yml → 1287167046.yml} +27 -12
- data/spec/vcr/account/create-min/{1286666929.yml → 1287167046.yml} +10 -10
- data/spec/vcr/account/find/{1286666929.yml → 1287167046.yml} +67 -29
- data/spec/vcr/account/list/{1286666929.yml → 1287167046.yml} +201 -228
- data/spec/vcr/account/update/{1286666929.yml → 1287167046.yml} +41 -41
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +24 -24
- data/spec/vcr/billing/find/1286682213.yml +20 -20
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +25 -25
- data/spec/vcr/charge/list-all/1286681273.yml +37 -37
- data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
- data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
- data/spec/vcr/charge/lookup/1286681273.yml +20 -20
- data/spec/vcr/credit/create/1286681343.yml +20 -20
- data/spec/vcr/credit/list/1286681343.yml +37 -37
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/invoice/create/{1286679184.yml → 1287167121.yml} +49 -49
- data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml} +32 -57
- data/spec/vcr/invoice/list/{1286679184.yml → 1287167121.yml} +71 -71
- data/spec/vcr/invoice/lookup/{1286679184.yml → 1287167121.yml} +50 -50
- data/spec/vcr/plan/all.yml +8 -8
- data/spec/vcr/plan/delete/1286677585.yml +15 -15
- data/spec/vcr/plan/find.yml +8 -8
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/cancel/{1287037363.yml → 1287439446.yml} +62 -62
- data/spec/vcr/subscription/cancel/{1287037325.yml → 1287442108.yml} +60 -60
- data/spec/vcr/subscription/cancel/{1287036910.yml → 1287442352.yml} +60 -60
- data/spec/vcr/subscription/change1/{1287037363.yml → 1287439446.yml} +58 -58
- data/spec/vcr/subscription/change1/{1287037152.yml → 1287442108.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287036910.yml → 1287442352.yml} +56 -56
- data/spec/vcr/subscription/{change1/1287037325.yml → change2/1287439446.yml} +64 -64
- data/spec/vcr/subscription/change2/{1287036910.yml → 1287442108.yml} +55 -55
- data/spec/vcr/subscription/change2/{1287037363.yml → 1287442352.yml} +58 -58
- data/spec/vcr/subscription/create/{1287037363.yml → 1287439446.yml} +27 -27
- data/spec/vcr/subscription/create/{1287037325.yml → 1287442108.yml} +28 -28
- data/spec/vcr/subscription/create/{1287037152.yml → 1287442352.yml} +28 -28
- data/spec/vcr/subscription/find/{1287036910.yml → 1287439446.yml} +36 -36
- data/spec/vcr/subscription/find/{1287037152.yml → 1287442108.yml} +38 -38
- data/spec/vcr/subscription/find/{1287037325.yml → 1287442352.yml} +38 -38
- data/spec/vcr/subscription/{refund/1287037325.yml → refund-full/1287439446.yml} +56 -56
- data/spec/vcr/subscription/{refund/1287037363.yml → refund-full/1287442108.yml} +58 -58
- data/spec/vcr/subscription/{refund/1287036910.yml → refund-full/1287442352.yml} +55 -55
- data/spec/vcr/subscription/refund-none/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-none/1287442352.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287439446.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442108.yml +382 -0
- data/spec/vcr/subscription/refund-partial/1287442352.yml +382 -0
- data/spec/vcr/transaction/all/{1286674805.yml → 1287186411.yml} +104 -104
- data/spec/vcr/transaction/create-no-account/{1286674805.yml → 1287186411.yml} +11 -11
- data/spec/vcr/transaction/create-with-account/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-empty/{1286674805.yml → 1287186411.yml} +26 -26
- data/spec/vcr/transaction/list-filled/{1286674805.yml → 1287186411.yml} +59 -59
- data/spec/vcr/transaction/lookup/{1286674805.yml → 1287186411.yml} +66 -66
- data/spec/vcr/transaction/refund/1287186411.yml +282 -0
- data/spec/vcr/transaction/void/{1286674805.yml → 1287186411.yml} +87 -155
- metadata +92 -86
- data/spec/vcr/subscription/change2/1287037152.yml +0 -283
- data/spec/vcr/subscription/change2/1287037325.yml +0 -283
- data/spec/vcr/subscription/create/1287036910.yml +0 -224
- data/spec/vcr/subscription/find/1287037363.yml +0 -283
@@ -7,7 +7,7 @@
|
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
|
-
<account-code type="integer">
|
10
|
+
<account-code type="integer">1287442108</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<first-name>Verena</first-name>
|
@@ -28,30 +28,30 @@
|
|
28
28
|
message: Created
|
29
29
|
headers:
|
30
30
|
location:
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/1287442108
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "614"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Mon, 18 Oct 2010 22:48:52 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "553"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=8af7fd88857f16865794e84f72b2d62fb7485ada7732e568d2144146589268ebf595cfc89796b32e4aad8a4b80e17d489f0f2d6d178680314edf409d1a73ba2a%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=eb45d5c6c28ce593b27fee6b8169d736; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
52
52
|
<account>
|
53
|
-
<id>
|
54
|
-
<account_code>
|
53
|
+
<id>1287442108</id>
|
54
|
+
<account_code>1287442108</account_code>
|
55
55
|
<username></username>
|
56
56
|
<email>verena@test.com</email>
|
57
57
|
<first_name>Verena</first_name>
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>c13327f920cb48409c5fe3c433996b2a</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-18T22:48:52Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -91,15 +91,15 @@
|
|
91
91
|
content-type:
|
92
92
|
- application/xml; charset=utf-8
|
93
93
|
x-runtime:
|
94
|
-
- "
|
94
|
+
- "14"
|
95
95
|
date:
|
96
|
-
-
|
96
|
+
- Mon, 18 Oct 2010 22:48:52 GMT
|
97
97
|
server:
|
98
98
|
- nginx/0.7.65
|
99
99
|
content-length:
|
100
100
|
- "1150"
|
101
101
|
set-cookie:
|
102
|
-
- _recurly_session=
|
102
|
+
- _recurly_session=a697a656ed67bec6a71d83632dd60808; domain=.recurly.com; path=/; Secure; HttpOnly
|
103
103
|
cache-control:
|
104
104
|
- private, max-age=0, must-revalidate
|
105
105
|
body: |
|
@@ -133,20 +133,20 @@
|
|
133
133
|
- !ruby/struct:VCR::HTTPInteraction
|
134
134
|
request: !ruby/struct:VCR::Request
|
135
135
|
method: :post
|
136
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442108/subscription.xml
|
137
137
|
body: |
|
138
138
|
<?xml version="1.0" encoding="UTF-8"?>
|
139
139
|
<subscription>
|
140
140
|
<quantity type="integer">1</quantity>
|
141
141
|
<plan-code>paid</plan-code>
|
142
142
|
<account>
|
143
|
-
<created-at type="datetime">2010-10-
|
144
|
-
<hosted-login-token>
|
143
|
+
<created-at type="datetime">2010-10-18T22:48:52Z</created-at>
|
144
|
+
<hosted-login-token>c13327f920cb48409c5fe3c433996b2a</hosted-login-token>
|
145
145
|
<company-name>Recurly Ruby Gem</company-name>
|
146
|
-
<account-code>
|
146
|
+
<account-code>1287442108</account-code>
|
147
147
|
<closed type="boolean">false</closed>
|
148
148
|
<username type="yaml" nil="true"></username>
|
149
|
-
<id>
|
149
|
+
<id>1287442108</id>
|
150
150
|
<last-name>Test</last-name>
|
151
151
|
<billing-info>
|
152
152
|
<city>San Francisco</city>
|
@@ -189,22 +189,22 @@
|
|
189
189
|
content-type:
|
190
190
|
- application/xml; charset=utf-8
|
191
191
|
x-runtime:
|
192
|
-
- "
|
192
|
+
- "562"
|
193
193
|
date:
|
194
|
-
-
|
194
|
+
- Mon, 18 Oct 2010 22:48:53 GMT
|
195
195
|
server:
|
196
196
|
- nginx/0.7.65
|
197
197
|
content-length:
|
198
198
|
- "830"
|
199
199
|
set-cookie:
|
200
|
-
- _recurly_session=
|
200
|
+
- _recurly_session=125e9ced65a06871aab8d78640a43b2d; domain=.recurly.com; path=/; Secure; HttpOnly
|
201
201
|
cache-control:
|
202
202
|
- no-cache
|
203
203
|
body: |
|
204
204
|
<?xml version="1.0" encoding="UTF-8"?>
|
205
205
|
<subscription>
|
206
|
-
<id>
|
207
|
-
<account_code>
|
206
|
+
<id>1287442108</id>
|
207
|
+
<account_code>1287442108</account_code>
|
208
208
|
<plan>
|
209
209
|
<plan_code>paid</plan_code>
|
210
210
|
<name>Paid</name>
|
@@ -212,11 +212,11 @@
|
|
212
212
|
<state>active</state>
|
213
213
|
<quantity type="integer">1</quantity>
|
214
214
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">2010-10-
|
215
|
+
<activated_at type="datetime">2010-10-18T22:48:53Z</activated_at>
|
216
216
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
217
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">2010-10-
|
219
|
-
<current_period_ends_at type="datetime">2010-11-
|
218
|
+
<current_period_started_at type="datetime">2010-10-18T22:48:53Z</current_period_started_at>
|
219
|
+
<current_period_ends_at type="datetime">2010-11-18T22:48:53Z</current_period_ends_at>
|
220
220
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
221
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
222
222
|
</subscription>
|
@@ -225,7 +225,7 @@
|
|
225
225
|
- !ruby/struct:VCR::HTTPInteraction
|
226
226
|
request: !ruby/struct:VCR::Request
|
227
227
|
method: :get
|
228
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
228
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442108/subscription.xml
|
229
229
|
body:
|
230
230
|
headers:
|
231
231
|
accept:
|
@@ -242,28 +242,28 @@
|
|
242
242
|
x-ua-compatible:
|
243
243
|
- IE=Edge
|
244
244
|
etag:
|
245
|
-
- "\"
|
245
|
+
- "\"45b66e3b73ac749b42f75a0497f05eca\""
|
246
246
|
connection:
|
247
247
|
- close
|
248
248
|
content-type:
|
249
249
|
- application/xml; charset=utf-8
|
250
250
|
x-runtime:
|
251
|
-
- "
|
251
|
+
- "29"
|
252
252
|
date:
|
253
|
-
-
|
253
|
+
- Mon, 18 Oct 2010 22:48:54 GMT
|
254
254
|
server:
|
255
255
|
- nginx/0.7.65
|
256
256
|
content-length:
|
257
257
|
- "830"
|
258
258
|
set-cookie:
|
259
|
-
- _recurly_session=
|
259
|
+
- _recurly_session=83bd26c689f55f5e67b912dadac40b63; domain=.recurly.com; path=/; Secure; HttpOnly
|
260
260
|
cache-control:
|
261
261
|
- private, max-age=0, must-revalidate
|
262
262
|
body: |
|
263
263
|
<?xml version="1.0" encoding="UTF-8"?>
|
264
264
|
<subscription>
|
265
|
-
<id>
|
266
|
-
<account_code>
|
265
|
+
<id>1287442108</id>
|
266
|
+
<account_code>1287442108</account_code>
|
267
267
|
<plan>
|
268
268
|
<plan_code>paid</plan_code>
|
269
269
|
<name>Paid</name>
|
@@ -271,11 +271,11 @@
|
|
271
271
|
<state>active</state>
|
272
272
|
<quantity type="integer">1</quantity>
|
273
273
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
-
<activated_at type="datetime">2010-10-
|
274
|
+
<activated_at type="datetime">2010-10-18T22:48:53Z</activated_at>
|
275
275
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
276
|
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
-
<current_period_started_at type="datetime">2010-10-
|
278
|
-
<current_period_ends_at type="datetime">2010-11-
|
277
|
+
<current_period_started_at type="datetime">2010-10-18T22:48:53Z</current_period_started_at>
|
278
|
+
<current_period_ends_at type="datetime">2010-11-18T22:48:53Z</current_period_ends_at>
|
279
279
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
280
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
281
281
|
</subscription>
|
@@ -284,7 +284,7 @@
|
|
284
284
|
- !ruby/struct:VCR::HTTPInteraction
|
285
285
|
request: !ruby/struct:VCR::Request
|
286
286
|
method: :put
|
287
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
287
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442108/subscription.xml
|
288
288
|
body: |
|
289
289
|
<?xml version="1.0" encoding="UTF-8"?>
|
290
290
|
<subscription>
|
@@ -309,28 +309,28 @@
|
|
309
309
|
x-ua-compatible:
|
310
310
|
- IE=Edge
|
311
311
|
etag:
|
312
|
-
- "\"
|
312
|
+
- "\"240e23bd8edb04e6b1f2b24efca53c48\""
|
313
313
|
connection:
|
314
314
|
- close
|
315
315
|
content-type:
|
316
316
|
- application/xml; charset=utf-8
|
317
317
|
x-runtime:
|
318
|
-
- "
|
318
|
+
- "390"
|
319
319
|
date:
|
320
|
-
-
|
320
|
+
- Mon, 18 Oct 2010 22:48:55 GMT
|
321
321
|
server:
|
322
322
|
- nginx/0.7.65
|
323
323
|
content-length:
|
324
324
|
- "830"
|
325
325
|
set-cookie:
|
326
|
-
- _recurly_session=
|
326
|
+
- _recurly_session=c6e0e33a6a07d71cb8f5db8b0d9e3f63; domain=.recurly.com; path=/; Secure; HttpOnly
|
327
327
|
cache-control:
|
328
328
|
- private, max-age=0, must-revalidate
|
329
329
|
body: |
|
330
330
|
<?xml version="1.0" encoding="UTF-8"?>
|
331
331
|
<subscription>
|
332
|
-
<id>
|
333
|
-
<account_code>
|
332
|
+
<id>1287442108</id>
|
333
|
+
<account_code>1287442108</account_code>
|
334
334
|
<plan>
|
335
335
|
<plan_code>paid</plan_code>
|
336
336
|
<name>Paid</name>
|
@@ -338,11 +338,11 @@
|
|
338
338
|
<state>active</state>
|
339
339
|
<quantity type="integer">2</quantity>
|
340
340
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
341
|
-
<activated_at type="datetime">2010-10-
|
341
|
+
<activated_at type="datetime">2010-10-18T22:48:55Z</activated_at>
|
342
342
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
343
343
|
<expires_at nil="true" type="datetime"></expires_at>
|
344
|
-
<current_period_started_at type="datetime">2010-10-
|
345
|
-
<current_period_ends_at type="datetime">2010-11-
|
344
|
+
<current_period_started_at type="datetime">2010-10-18T22:48:53Z</current_period_started_at>
|
345
|
+
<current_period_ends_at type="datetime">2010-11-18T22:48:53Z</current_period_ends_at>
|
346
346
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
347
347
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
348
348
|
</subscription>
|
@@ -351,7 +351,7 @@
|
|
351
351
|
- !ruby/struct:VCR::HTTPInteraction
|
352
352
|
request: !ruby/struct:VCR::Request
|
353
353
|
method: :get
|
354
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
354
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442108/subscription.xml
|
355
355
|
body:
|
356
356
|
headers:
|
357
357
|
accept:
|
@@ -368,7 +368,7 @@
|
|
368
368
|
x-ua-compatible:
|
369
369
|
- IE=Edge
|
370
370
|
etag:
|
371
|
-
- "\"
|
371
|
+
- "\"240e23bd8edb04e6b1f2b24efca53c48\""
|
372
372
|
connection:
|
373
373
|
- close
|
374
374
|
content-type:
|
@@ -376,20 +376,20 @@
|
|
376
376
|
x-runtime:
|
377
377
|
- "16"
|
378
378
|
date:
|
379
|
-
-
|
379
|
+
- Mon, 18 Oct 2010 22:48:56 GMT
|
380
380
|
server:
|
381
381
|
- nginx/0.7.65
|
382
382
|
content-length:
|
383
383
|
- "830"
|
384
384
|
set-cookie:
|
385
|
-
- _recurly_session=
|
385
|
+
- _recurly_session=4255b4a69465badfc2dd82287780d74a; domain=.recurly.com; path=/; Secure; HttpOnly
|
386
386
|
cache-control:
|
387
387
|
- private, max-age=0, must-revalidate
|
388
388
|
body: |
|
389
389
|
<?xml version="1.0" encoding="UTF-8"?>
|
390
390
|
<subscription>
|
391
|
-
<id>
|
392
|
-
<account_code>
|
391
|
+
<id>1287442108</id>
|
392
|
+
<account_code>1287442108</account_code>
|
393
393
|
<plan>
|
394
394
|
<plan_code>paid</plan_code>
|
395
395
|
<name>Paid</name>
|
@@ -397,11 +397,11 @@
|
|
397
397
|
<state>active</state>
|
398
398
|
<quantity type="integer">2</quantity>
|
399
399
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
400
|
-
<activated_at type="datetime">2010-10-
|
400
|
+
<activated_at type="datetime">2010-10-18T22:48:55Z</activated_at>
|
401
401
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
402
402
|
<expires_at nil="true" type="datetime"></expires_at>
|
403
|
-
<current_period_started_at type="datetime">2010-10-
|
404
|
-
<current_period_ends_at type="datetime">2010-11-
|
403
|
+
<current_period_started_at type="datetime">2010-10-18T22:48:53Z</current_period_started_at>
|
404
|
+
<current_period_ends_at type="datetime">2010-11-18T22:48:53Z</current_period_ends_at>
|
405
405
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
406
406
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
407
407
|
</subscription>
|
@@ -6,11 +6,11 @@
|
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code type="integer">1287037363</account-code>
|
10
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code type="integer">1287442352</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
-
<first-name>Verena</first-name>
|
13
12
|
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
14
|
</account>
|
15
15
|
|
16
16
|
headers:
|
@@ -28,30 +28,30 @@
|
|
28
28
|
message: Created
|
29
29
|
headers:
|
30
30
|
location:
|
31
|
-
- https://recurlytest3-test.recurly.com/accounts/
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/1287442352
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "611"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Mon, 18 Oct 2010 22:52:56 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "553"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=ea2774411085ed1359daacb8f61733bdab79c45a088cd82bf18144668313fb90cb4067339e2af605d257cbbc57b7c6a10b33c8b0d20bb830a3632b68646bc837%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=b19bd0163583f59de0a87d8b4489c56d; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
48
|
cache-control:
|
49
49
|
- no-cache
|
50
50
|
body: |
|
51
51
|
<?xml version="1.0" encoding="UTF-8"?>
|
52
52
|
<account>
|
53
|
-
<id>
|
54
|
-
<account_code>
|
53
|
+
<id>1287442352</id>
|
54
|
+
<account_code>1287442352</account_code>
|
55
55
|
<username></username>
|
56
56
|
<email>verena@test.com</email>
|
57
57
|
<first_name>Verena</first_name>
|
@@ -59,8 +59,8 @@
|
|
59
59
|
<company_name>Recurly Ruby Gem</company_name>
|
60
60
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
61
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">2010-10-
|
62
|
+
<hosted_login_token>2b891a061a7e48578169bdbc9f6ecbca</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-18T22:52:56Z</created_at>
|
64
64
|
<state>active</state>
|
65
65
|
</account>
|
66
66
|
|
@@ -93,13 +93,13 @@
|
|
93
93
|
x-runtime:
|
94
94
|
- "13"
|
95
95
|
date:
|
96
|
-
-
|
96
|
+
- Mon, 18 Oct 2010 22:52:56 GMT
|
97
97
|
server:
|
98
98
|
- nginx/0.7.65
|
99
99
|
content-length:
|
100
100
|
- "1150"
|
101
101
|
set-cookie:
|
102
|
-
- _recurly_session=
|
102
|
+
- _recurly_session=75cf1332b88eeedfbd91741a8834a54a; domain=.recurly.com; path=/; Secure; HttpOnly
|
103
103
|
cache-control:
|
104
104
|
- private, max-age=0, must-revalidate
|
105
105
|
body: |
|
@@ -133,20 +133,20 @@
|
|
133
133
|
- !ruby/struct:VCR::HTTPInteraction
|
134
134
|
request: !ruby/struct:VCR::Request
|
135
135
|
method: :post
|
136
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442352/subscription.xml
|
137
137
|
body: |
|
138
138
|
<?xml version="1.0" encoding="UTF-8"?>
|
139
139
|
<subscription>
|
140
140
|
<quantity type="integer">1</quantity>
|
141
141
|
<plan-code>paid</plan-code>
|
142
142
|
<account>
|
143
|
-
<created-at type="datetime">2010-10-
|
144
|
-
<hosted-login-token>
|
145
|
-
<account-code>1287037363</account-code>
|
143
|
+
<created-at type="datetime">2010-10-18T22:52:56Z</created-at>
|
144
|
+
<hosted-login-token>2b891a061a7e48578169bdbc9f6ecbca</hosted-login-token>
|
146
145
|
<company-name>Recurly Ruby Gem</company-name>
|
146
|
+
<account-code>1287442352</account-code>
|
147
147
|
<closed type="boolean">false</closed>
|
148
148
|
<username type="yaml" nil="true"></username>
|
149
|
-
<id>
|
149
|
+
<id>1287442352</id>
|
150
150
|
<last-name>Test</last-name>
|
151
151
|
<billing-info>
|
152
152
|
<city>San Francisco</city>
|
@@ -165,8 +165,8 @@
|
|
165
165
|
</billing-info>
|
166
166
|
<balance-in-cents type="integer">0</balance-in-cents>
|
167
167
|
<state>active</state>
|
168
|
-
<first-name>Verena</first-name>
|
169
168
|
<email>verena@test.com</email>
|
169
|
+
<first-name>Verena</first-name>
|
170
170
|
</account>
|
171
171
|
</subscription>
|
172
172
|
|
@@ -189,22 +189,22 @@
|
|
189
189
|
content-type:
|
190
190
|
- application/xml; charset=utf-8
|
191
191
|
x-runtime:
|
192
|
-
- "
|
192
|
+
- "647"
|
193
193
|
date:
|
194
|
-
-
|
194
|
+
- Mon, 18 Oct 2010 22:52:58 GMT
|
195
195
|
server:
|
196
196
|
- nginx/0.7.65
|
197
197
|
content-length:
|
198
198
|
- "830"
|
199
199
|
set-cookie:
|
200
|
-
- _recurly_session=
|
200
|
+
- _recurly_session=eb436f97f96f4d587332ba9868890804; domain=.recurly.com; path=/; Secure; HttpOnly
|
201
201
|
cache-control:
|
202
202
|
- no-cache
|
203
203
|
body: |
|
204
204
|
<?xml version="1.0" encoding="UTF-8"?>
|
205
205
|
<subscription>
|
206
|
-
<id>
|
207
|
-
<account_code>
|
206
|
+
<id>1287442352</id>
|
207
|
+
<account_code>1287442352</account_code>
|
208
208
|
<plan>
|
209
209
|
<plan_code>paid</plan_code>
|
210
210
|
<name>Paid</name>
|
@@ -212,11 +212,11 @@
|
|
212
212
|
<state>active</state>
|
213
213
|
<quantity type="integer">1</quantity>
|
214
214
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">2010-10-
|
215
|
+
<activated_at type="datetime">2010-10-18T22:52:57Z</activated_at>
|
216
216
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
217
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">2010-10-
|
219
|
-
<current_period_ends_at type="datetime">2010-11-
|
218
|
+
<current_period_started_at type="datetime">2010-10-18T22:52:57Z</current_period_started_at>
|
219
|
+
<current_period_ends_at type="datetime">2010-11-18T22:52:57Z</current_period_ends_at>
|
220
220
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
221
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
222
222
|
</subscription>
|
@@ -225,7 +225,7 @@
|
|
225
225
|
- !ruby/struct:VCR::HTTPInteraction
|
226
226
|
request: !ruby/struct:VCR::Request
|
227
227
|
method: :get
|
228
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
228
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442352/subscription.xml
|
229
229
|
body:
|
230
230
|
headers:
|
231
231
|
accept:
|
@@ -242,28 +242,28 @@
|
|
242
242
|
x-ua-compatible:
|
243
243
|
- IE=Edge
|
244
244
|
etag:
|
245
|
-
- "\"
|
245
|
+
- "\"cb920ab103d0b0d6005c7b39c59bb656\""
|
246
246
|
connection:
|
247
247
|
- close
|
248
248
|
content-type:
|
249
249
|
- application/xml; charset=utf-8
|
250
250
|
x-runtime:
|
251
|
-
- "
|
251
|
+
- "29"
|
252
252
|
date:
|
253
|
-
-
|
253
|
+
- Mon, 18 Oct 2010 22:52:58 GMT
|
254
254
|
server:
|
255
255
|
- nginx/0.7.65
|
256
256
|
content-length:
|
257
257
|
- "830"
|
258
258
|
set-cookie:
|
259
|
-
- _recurly_session=
|
259
|
+
- _recurly_session=32d5771b9752976b7bd13249f83af518; domain=.recurly.com; path=/; Secure; HttpOnly
|
260
260
|
cache-control:
|
261
261
|
- private, max-age=0, must-revalidate
|
262
262
|
body: |
|
263
263
|
<?xml version="1.0" encoding="UTF-8"?>
|
264
264
|
<subscription>
|
265
|
-
<id>
|
266
|
-
<account_code>
|
265
|
+
<id>1287442352</id>
|
266
|
+
<account_code>1287442352</account_code>
|
267
267
|
<plan>
|
268
268
|
<plan_code>paid</plan_code>
|
269
269
|
<name>Paid</name>
|
@@ -271,11 +271,11 @@
|
|
271
271
|
<state>active</state>
|
272
272
|
<quantity type="integer">1</quantity>
|
273
273
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
-
<activated_at type="datetime">2010-10-
|
274
|
+
<activated_at type="datetime">2010-10-18T22:52:57Z</activated_at>
|
275
275
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
276
|
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
-
<current_period_started_at type="datetime">2010-10-
|
278
|
-
<current_period_ends_at type="datetime">2010-11-
|
277
|
+
<current_period_started_at type="datetime">2010-10-18T22:52:57Z</current_period_started_at>
|
278
|
+
<current_period_ends_at type="datetime">2010-11-18T22:52:57Z</current_period_ends_at>
|
279
279
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
280
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
281
281
|
</subscription>
|
@@ -284,12 +284,12 @@
|
|
284
284
|
- !ruby/struct:VCR::HTTPInteraction
|
285
285
|
request: !ruby/struct:VCR::Request
|
286
286
|
method: :put
|
287
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
287
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442352/subscription.xml
|
288
288
|
body: |
|
289
289
|
<?xml version="1.0" encoding="UTF-8"?>
|
290
290
|
<subscription>
|
291
|
-
<quantity type="integer">2</quantity>
|
292
291
|
<timeframe>now</timeframe>
|
292
|
+
<quantity type="integer">2</quantity>
|
293
293
|
</subscription>
|
294
294
|
|
295
295
|
headers:
|
@@ -309,28 +309,28 @@
|
|
309
309
|
x-ua-compatible:
|
310
310
|
- IE=Edge
|
311
311
|
etag:
|
312
|
-
- "\"
|
312
|
+
- "\"701181f1143ae491a1b3fd55186af5a7\""
|
313
313
|
connection:
|
314
314
|
- close
|
315
315
|
content-type:
|
316
316
|
- application/xml; charset=utf-8
|
317
317
|
x-runtime:
|
318
|
-
- "
|
318
|
+
- "518"
|
319
319
|
date:
|
320
|
-
-
|
320
|
+
- Mon, 18 Oct 2010 22:52:59 GMT
|
321
321
|
server:
|
322
322
|
- nginx/0.7.65
|
323
323
|
content-length:
|
324
324
|
- "830"
|
325
325
|
set-cookie:
|
326
|
-
- _recurly_session=
|
326
|
+
- _recurly_session=8006b1ccb71db7428043ddbf917d7108; domain=.recurly.com; path=/; Secure; HttpOnly
|
327
327
|
cache-control:
|
328
328
|
- private, max-age=0, must-revalidate
|
329
329
|
body: |
|
330
330
|
<?xml version="1.0" encoding="UTF-8"?>
|
331
331
|
<subscription>
|
332
|
-
<id>
|
333
|
-
<account_code>
|
332
|
+
<id>1287442352</id>
|
333
|
+
<account_code>1287442352</account_code>
|
334
334
|
<plan>
|
335
335
|
<plan_code>paid</plan_code>
|
336
336
|
<name>Paid</name>
|
@@ -338,11 +338,11 @@
|
|
338
338
|
<state>active</state>
|
339
339
|
<quantity type="integer">2</quantity>
|
340
340
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
341
|
-
<activated_at type="datetime">2010-10-
|
341
|
+
<activated_at type="datetime">2010-10-18T22:52:59Z</activated_at>
|
342
342
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
343
343
|
<expires_at nil="true" type="datetime"></expires_at>
|
344
|
-
<current_period_started_at type="datetime">2010-10-
|
345
|
-
<current_period_ends_at type="datetime">2010-11-
|
344
|
+
<current_period_started_at type="datetime">2010-10-18T22:52:57Z</current_period_started_at>
|
345
|
+
<current_period_ends_at type="datetime">2010-11-18T22:52:57Z</current_period_ends_at>
|
346
346
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
347
347
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
348
348
|
</subscription>
|
@@ -351,7 +351,7 @@
|
|
351
351
|
- !ruby/struct:VCR::HTTPInteraction
|
352
352
|
request: !ruby/struct:VCR::Request
|
353
353
|
method: :get
|
354
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/
|
354
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287442352/subscription.xml
|
355
355
|
body:
|
356
356
|
headers:
|
357
357
|
accept:
|
@@ -368,28 +368,28 @@
|
|
368
368
|
x-ua-compatible:
|
369
369
|
- IE=Edge
|
370
370
|
etag:
|
371
|
-
- "\"
|
371
|
+
- "\"701181f1143ae491a1b3fd55186af5a7\""
|
372
372
|
connection:
|
373
373
|
- close
|
374
374
|
content-type:
|
375
375
|
- application/xml; charset=utf-8
|
376
376
|
x-runtime:
|
377
|
-
- "
|
377
|
+
- "189"
|
378
378
|
date:
|
379
|
-
-
|
379
|
+
- Mon, 18 Oct 2010 22:53:00 GMT
|
380
380
|
server:
|
381
381
|
- nginx/0.7.65
|
382
382
|
content-length:
|
383
383
|
- "830"
|
384
384
|
set-cookie:
|
385
|
-
- _recurly_session=
|
385
|
+
- _recurly_session=e4b9bd66525583975e1f2d4daefe2b95; domain=.recurly.com; path=/; Secure; HttpOnly
|
386
386
|
cache-control:
|
387
387
|
- private, max-age=0, must-revalidate
|
388
388
|
body: |
|
389
389
|
<?xml version="1.0" encoding="UTF-8"?>
|
390
390
|
<subscription>
|
391
|
-
<id>
|
392
|
-
<account_code>
|
391
|
+
<id>1287442352</id>
|
392
|
+
<account_code>1287442352</account_code>
|
393
393
|
<plan>
|
394
394
|
<plan_code>paid</plan_code>
|
395
395
|
<name>Paid</name>
|
@@ -397,11 +397,11 @@
|
|
397
397
|
<state>active</state>
|
398
398
|
<quantity type="integer">2</quantity>
|
399
399
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
400
|
-
<activated_at type="datetime">2010-10-
|
400
|
+
<activated_at type="datetime">2010-10-18T22:52:59Z</activated_at>
|
401
401
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
402
402
|
<expires_at nil="true" type="datetime"></expires_at>
|
403
|
-
<current_period_started_at type="datetime">2010-10-
|
404
|
-
<current_period_ends_at type="datetime">2010-11-
|
403
|
+
<current_period_started_at type="datetime">2010-10-18T22:52:57Z</current_period_started_at>
|
404
|
+
<current_period_ends_at type="datetime">2010-11-18T22:52:57Z</current_period_ends_at>
|
405
405
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
406
406
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
407
407
|
</subscription>
|