recurly 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly.rb +1 -0
- data/lib/recurly/charge.rb +6 -0
- data/lib/recurly/subscription.rb +23 -5
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/charge_spec.rb +45 -0
- data/spec/integration/credit_spec.rb +19 -0
- data/spec/integration/subscription_spec.rb +62 -9
- data/spec/vcr/account/close/1287167046.yml +15 -15
- data/spec/vcr/account/create-blank/1287167046.yml +3 -3
- data/spec/vcr/account/create-duplicate/1287167046.yml +8 -8
- data/spec/vcr/account/create-min/1287167046.yml +6 -6
- data/spec/vcr/account/create/1287167046.yml +6 -6
- data/spec/vcr/account/find/1287167046.yml +14 -14
- data/spec/vcr/account/list/1287167046.yml +101 -101
- data/spec/vcr/account/update/1287167046.yml +26 -26
- data/spec/vcr/billing/create/1286682213.yml +15 -15
- data/spec/vcr/billing/destroy/1286682213.yml +23 -23
- data/spec/vcr/billing/find/1286682213.yml +21 -21
- data/spec/vcr/billing/update/1286682213.yml +21 -21
- data/spec/vcr/charge/create/1286681273.yml +24 -24
- data/spec/vcr/charge/delete-uninvoiced/1287460783.yml +246 -0
- 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/create/1287460732.yml +171 -0
- data/spec/vcr/credit/create/1287461340.yml +171 -0
- data/spec/vcr/credit/delete-invoiced/1287460732.yml +233 -0
- data/spec/vcr/credit/delete-invoiced/1287461340.yml +283 -0
- data/spec/vcr/credit/delete-uninvoiced/1287459796.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287460732.yml +246 -0
- data/spec/vcr/credit/delete-uninvoiced/1287461340.yml +221 -0
- data/spec/vcr/credit/list/1286681343.yml +36 -36
- data/spec/vcr/credit/list/1287460732.yml +299 -0
- data/spec/vcr/credit/list/1287461340.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +20 -20
- data/spec/vcr/credit/lookup/1287460732.yml +171 -0
- data/spec/vcr/credit/lookup/1287461340.yml +171 -0
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +14 -14
- data/spec/vcr/invoice/create/1287167121.yml +36 -36
- data/spec/vcr/invoice/list/1287167121.yml +52 -52
- data/spec/vcr/invoice/lookup/1287167121.yml +38 -38
- data/spec/vcr/plan/all.yml +9 -9
- data/spec/vcr/plan/delete/1286677585.yml +16 -16
- data/spec/vcr/plan/find.yml +9 -9
- data/spec/vcr/plan/update.yml +9 -9
- data/spec/vcr/subscription/{cancel/1287442108.yml → cancel-with-code/1287455769.yml} +124 -65
- data/spec/vcr/subscription/cancel/{1287439446.yml → 1287455769.yml} +59 -59
- data/spec/vcr/subscription/change1/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/change2/{1287442352.yml → 1287455769.yml} +56 -56
- data/spec/vcr/subscription/create/{1287442352.yml → 1287455769.yml} +25 -25
- data/spec/vcr/subscription/find/{1287442108.yml → 1287455769.yml} +36 -36
- data/spec/vcr/subscription/{cancel/1287442352.yml → reactivate/1287455769.yml} +107 -66
- data/spec/vcr/subscription/refund-full/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/subscription/{refund-full/1287439446.yml → refund-none/1287455769.yml} +51 -51
- data/spec/vcr/subscription/refund-partial/{1287442108.yml → 1287455769.yml} +50 -50
- data/spec/vcr/transaction/all/1287186411.yml +80 -80
- data/spec/vcr/transaction/create-no-account/1287186411.yml +7 -7
- data/spec/vcr/transaction/create-with-account/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-empty/1287186411.yml +17 -17
- data/spec/vcr/transaction/list-filled/1287186411.yml +41 -41
- data/spec/vcr/transaction/lookup/1287186411.yml +50 -50
- data/spec/vcr/transaction/refund/1287186411.yml +24 -24
- data/spec/vcr/transaction/void/1287186411.yml +60 -60
- metadata +67 -56
- data/spec/vcr/subscription/change1/1287439446.yml +0 -409
- data/spec/vcr/subscription/change1/1287442108.yml +0 -409
- data/spec/vcr/subscription/change2/1287439446.yml +0 -409
- data/spec/vcr/subscription/change2/1287442108.yml +0 -409
- data/spec/vcr/subscription/create/1287439446.yml +0 -224
- data/spec/vcr/subscription/create/1287442108.yml +0 -224
- data/spec/vcr/subscription/find/1287439446.yml +0 -283
- data/spec/vcr/subscription/find/1287442352.yml +0 -283
- data/spec/vcr/subscription/refund-full/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442108.yml +0 -382
- data/spec/vcr/subscription/refund-none/1287442352.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287439446.yml +0 -382
- data/spec/vcr/subscription/refund-partial/1287442352.yml +0 -382
@@ -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>subscription-find-
|
10
|
+
<account-code>subscription-find-1287455769</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/subscription-find-
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-find-1287455769
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "610"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:20:11 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
43
|
- "589"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=55beb5d9e9c6d664a40a6b24b4b688876417a1a450bdab5901fe4e4a117aa25adbd0089293a3ce4500d8e7f858ec2337ec0526bbabf54ee4e999ccb271af2848%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=9c1ed7414a362c94be9b746dbcedf560; 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>subscription-find-
|
54
|
-
<account_code>subscription-find-
|
53
|
+
<id>subscription-find-1287455769</id>
|
54
|
+
<account_code>subscription-find-1287455769</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>747c54607a84475c80e8e88f02c50062</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:20:11Z</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
|
+
- "13"
|
95
95
|
date:
|
96
|
-
-
|
96
|
+
- Tue, 19 Oct 2010 03:20:12 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=d1774e58e8036d8ac6a6e663d31d5e15; 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/subscription-find-
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-find-1287455769/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-19T03:20:11Z</created-at>
|
144
|
+
<hosted-login-token>747c54607a84475c80e8e88f02c50062</hosted-login-token>
|
145
145
|
<company-name>Recurly Ruby Gem</company-name>
|
146
|
-
<account-code>subscription-find-
|
146
|
+
<account-code>subscription-find-1287455769</account-code>
|
147
147
|
<closed type="boolean">false</closed>
|
148
148
|
<username type="yaml" nil="true"></username>
|
149
|
-
<id>subscription-find-
|
149
|
+
<id>subscription-find-1287455769</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
|
+
- "563"
|
193
193
|
date:
|
194
|
-
-
|
194
|
+
- Tue, 19 Oct 2010 03:20:13 GMT
|
195
195
|
server:
|
196
196
|
- nginx/0.7.65
|
197
197
|
content-length:
|
198
198
|
- "866"
|
199
199
|
set-cookie:
|
200
|
-
- _recurly_session=
|
200
|
+
- _recurly_session=611a93a8bc4e4034612066d7aaf0f9a2; 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>subscription-find-
|
207
|
-
<account_code>subscription-find-
|
206
|
+
<id>subscription-find-1287455769</id>
|
207
|
+
<account_code>subscription-find-1287455769</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-19T03:20:13Z</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-19T03:20:13Z</current_period_started_at>
|
219
|
+
<current_period_ends_at type="datetime">2010-11-19T03:20:13Z</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/subscription-find-
|
228
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-find-1287455769/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
|
+
- "\"a44ee138ddfc6b9be191b63b72c50236\""
|
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
|
+
- Tue, 19 Oct 2010 03:20:14 GMT
|
254
254
|
server:
|
255
255
|
- nginx/0.7.65
|
256
256
|
content-length:
|
257
257
|
- "866"
|
258
258
|
set-cookie:
|
259
|
-
- _recurly_session=
|
259
|
+
- _recurly_session=144993a1d814c0a2f5bfb1d08e2ad92b; 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>subscription-find-
|
266
|
-
<account_code>subscription-find-
|
265
|
+
<id>subscription-find-1287455769</id>
|
266
|
+
<account_code>subscription-find-1287455769</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-19T03:20:13Z</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-19T03:20:13Z</current_period_started_at>
|
278
|
+
<current_period_ends_at type="datetime">2010-11-19T03:20:13Z</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>
|
@@ -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>subscription-
|
10
|
+
<account-code>subscription-reactivate-1287455769</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/subscription-
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769
|
32
32
|
connection:
|
33
33
|
- close
|
34
34
|
content-type:
|
35
35
|
- application/xml; charset=utf-8
|
36
36
|
x-runtime:
|
37
|
-
- "
|
37
|
+
- "585"
|
38
38
|
date:
|
39
|
-
-
|
39
|
+
- Tue, 19 Oct 2010 03:20:29 GMT
|
40
40
|
server:
|
41
41
|
- nginx/0.7.65
|
42
42
|
content-length:
|
43
|
-
- "
|
43
|
+
- "601"
|
44
44
|
set-cookie:
|
45
|
-
- account_credentials=
|
45
|
+
- account_credentials=116b2091841b840d4fe23070733e432879f1971f51c57bdc9c9fd1573e6ac54821db90edf92bc6f91511d791b7d4d6939d7aeb3e9e17808360a00146bbc1ae11%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
46
|
- ""
|
47
|
-
- _recurly_session=
|
47
|
+
- _recurly_session=8e503ee99af4c2b3713d3817790f753a; 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>subscription-
|
54
|
-
<account_code>subscription-
|
53
|
+
<id>subscription-reactivate-1287455769</id>
|
54
|
+
<account_code>subscription-reactivate-1287455769</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>544782a287c247b9aca5320c1c688ec2</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-19T03:20:29Z</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
|
+
- "19"
|
95
95
|
date:
|
96
|
-
-
|
96
|
+
- Tue, 19 Oct 2010 03:20:30 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=d973265b3088d1f3a819dc437752e07e; 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/subscription-
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/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-19T03:20:29Z</created-at>
|
144
|
+
<hosted-login-token>544782a287c247b9aca5320c1c688ec2</hosted-login-token>
|
145
145
|
<company-name>Recurly Ruby Gem</company-name>
|
146
|
-
<account-code>subscription-
|
146
|
+
<account-code>subscription-reactivate-1287455769</account-code>
|
147
147
|
<closed type="boolean">false</closed>
|
148
148
|
<username type="yaml" nil="true"></username>
|
149
|
-
<id>subscription-
|
149
|
+
<id>subscription-reactivate-1287455769</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
|
+
- "612"
|
193
193
|
date:
|
194
|
-
-
|
194
|
+
- Tue, 19 Oct 2010 03:20:31 GMT
|
195
195
|
server:
|
196
196
|
- nginx/0.7.65
|
197
197
|
content-length:
|
198
|
-
- "
|
198
|
+
- "878"
|
199
199
|
set-cookie:
|
200
|
-
- _recurly_session=
|
200
|
+
- _recurly_session=cd3a1cd228913cba7badc3b7e3878b08; 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>subscription-
|
207
|
-
<account_code>subscription-
|
206
|
+
<id>subscription-reactivate-1287455769</id>
|
207
|
+
<account_code>subscription-reactivate-1287455769</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-19T03:20:31Z</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-19T03:20:31Z</current_period_started_at>
|
219
|
+
<current_period_ends_at type="datetime">2010-11-19T03:20:31Z</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/subscription-
|
228
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/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
|
+
- "\"bb5d213f828ca4955eb2b3a2a7053528\""
|
246
246
|
connection:
|
247
247
|
- close
|
248
248
|
content-type:
|
249
249
|
- application/xml; charset=utf-8
|
250
250
|
x-runtime:
|
251
|
-
- "
|
251
|
+
- "23"
|
252
252
|
date:
|
253
|
-
-
|
253
|
+
- Tue, 19 Oct 2010 03:20:32 GMT
|
254
254
|
server:
|
255
255
|
- nginx/0.7.65
|
256
256
|
content-length:
|
257
|
-
- "
|
257
|
+
- "878"
|
258
258
|
set-cookie:
|
259
|
-
- _recurly_session=
|
259
|
+
- _recurly_session=1e33fdd2b4bdbba96770b2b6d71ab26a; 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>subscription-
|
266
|
-
<account_code>subscription-
|
265
|
+
<id>subscription-reactivate-1287455769</id>
|
266
|
+
<account_code>subscription-reactivate-1287455769</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-19T03:20:31Z</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-19T03:20:31Z</current_period_started_at>
|
278
|
+
<current_period_ends_at type="datetime">2010-11-19T03:20:31Z</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: :delete
|
287
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-
|
287
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription.xml
|
288
288
|
body:
|
289
289
|
headers:
|
290
290
|
accept:
|
@@ -301,28 +301,28 @@
|
|
301
301
|
x-ua-compatible:
|
302
302
|
- IE=Edge
|
303
303
|
etag:
|
304
|
-
- "\"
|
304
|
+
- "\"4d6be1b23a6d2b9f617430497e6b0c31\""
|
305
305
|
connection:
|
306
306
|
- close
|
307
307
|
content-type:
|
308
308
|
- application/xml; charset=utf-8
|
309
309
|
x-runtime:
|
310
|
-
- "
|
310
|
+
- "178"
|
311
311
|
date:
|
312
|
-
-
|
312
|
+
- Tue, 19 Oct 2010 03:20:32 GMT
|
313
313
|
server:
|
314
314
|
- nginx/0.7.65
|
315
315
|
content-length:
|
316
|
-
- "
|
316
|
+
- "898"
|
317
317
|
set-cookie:
|
318
|
-
- _recurly_session=
|
318
|
+
- _recurly_session=02b3e14cd78b58e5c5bfaa4ef686158a; domain=.recurly.com; path=/; Secure; HttpOnly
|
319
319
|
cache-control:
|
320
320
|
- private, max-age=0, must-revalidate
|
321
321
|
body: |
|
322
322
|
<?xml version="1.0" encoding="UTF-8"?>
|
323
323
|
<subscription>
|
324
|
-
<id>subscription-
|
325
|
-
<account_code>subscription-
|
324
|
+
<id>subscription-reactivate-1287455769</id>
|
325
|
+
<account_code>subscription-reactivate-1287455769</account_code>
|
326
326
|
<plan>
|
327
327
|
<plan_code>paid</plan_code>
|
328
328
|
<name>Paid</name>
|
@@ -330,20 +330,61 @@
|
|
330
330
|
<state>canceled</state>
|
331
331
|
<quantity type="integer">1</quantity>
|
332
332
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
333
|
-
<activated_at type="datetime">2010-10-
|
334
|
-
<canceled_at type="datetime">2010-10-
|
335
|
-
<expires_at type="datetime">2010-11-
|
336
|
-
<current_period_started_at type="datetime">2010-10-
|
337
|
-
<current_period_ends_at type="datetime">2010-11-
|
333
|
+
<activated_at type="datetime">2010-10-19T03:20:31Z</activated_at>
|
334
|
+
<canceled_at type="datetime">2010-10-19T03:20:32Z</canceled_at>
|
335
|
+
<expires_at type="datetime">2010-11-19T03:20:31Z</expires_at>
|
336
|
+
<current_period_started_at type="datetime">2010-10-19T03:20:31Z</current_period_started_at>
|
337
|
+
<current_period_ends_at type="datetime">2010-11-19T03:20:31Z</current_period_ends_at>
|
338
338
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
339
339
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
340
340
|
</subscription>
|
341
341
|
|
342
342
|
http_version: "1.1"
|
343
343
|
- !ruby/struct:VCR::HTTPInteraction
|
344
|
+
request: !ruby/struct:VCR::Request
|
345
|
+
method: :post
|
346
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription/reactivate
|
347
|
+
body: ""
|
348
|
+
headers:
|
349
|
+
accept:
|
350
|
+
- "*/*"
|
351
|
+
connection:
|
352
|
+
- close
|
353
|
+
content-type:
|
354
|
+
- application/xml
|
355
|
+
authorization:
|
356
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
357
|
+
response: !ruby/struct:VCR::Response
|
358
|
+
status: !ruby/struct:VCR::ResponseStatus
|
359
|
+
code: 302
|
360
|
+
message: Moved Temporarily
|
361
|
+
headers:
|
362
|
+
x-ua-compatible:
|
363
|
+
- IE=Edge
|
364
|
+
location:
|
365
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769
|
366
|
+
connection:
|
367
|
+
- close
|
368
|
+
content-type:
|
369
|
+
- text/html; charset=utf-8
|
370
|
+
x-runtime:
|
371
|
+
- "61"
|
372
|
+
date:
|
373
|
+
- Tue, 19 Oct 2010 03:20:33 GMT
|
374
|
+
server:
|
375
|
+
- nginx/0.7.65
|
376
|
+
content-length:
|
377
|
+
- "147"
|
378
|
+
set-cookie:
|
379
|
+
- _recurly_session=03c3cb7f597630bdabd16487bf5a709e; domain=.recurly.com; path=/; Secure; HttpOnly
|
380
|
+
cache-control:
|
381
|
+
- no-cache
|
382
|
+
body: <html><body>You are being <a href="https://recurlytest3-test.recurly.com/accounts/subscription-reactivate-1287455769">redirected</a>.</body></html>
|
383
|
+
http_version: "1.1"
|
384
|
+
- !ruby/struct:VCR::HTTPInteraction
|
344
385
|
request: !ruby/struct:VCR::Request
|
345
386
|
method: :get
|
346
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-
|
387
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-reactivate-1287455769/subscription.xml
|
347
388
|
body:
|
348
389
|
headers:
|
349
390
|
accept:
|
@@ -360,40 +401,40 @@
|
|
360
401
|
x-ua-compatible:
|
361
402
|
- IE=Edge
|
362
403
|
etag:
|
363
|
-
- "\"
|
404
|
+
- "\"16d693017a001a56b274a1986f9600ef\""
|
364
405
|
connection:
|
365
406
|
- close
|
366
407
|
content-type:
|
367
408
|
- application/xml; charset=utf-8
|
368
409
|
x-runtime:
|
369
|
-
- "
|
410
|
+
- "16"
|
370
411
|
date:
|
371
|
-
-
|
412
|
+
- Tue, 19 Oct 2010 03:20:33 GMT
|
372
413
|
server:
|
373
414
|
- nginx/0.7.65
|
374
415
|
content-length:
|
375
|
-
- "
|
416
|
+
- "887"
|
376
417
|
set-cookie:
|
377
|
-
- _recurly_session=
|
418
|
+
- _recurly_session=0059d8f5a1b387554b185d2a802ae3f7; domain=.recurly.com; path=/; Secure; HttpOnly
|
378
419
|
cache-control:
|
379
420
|
- private, max-age=0, must-revalidate
|
380
421
|
body: |
|
381
422
|
<?xml version="1.0" encoding="UTF-8"?>
|
382
423
|
<subscription>
|
383
|
-
<id>subscription-
|
384
|
-
<account_code>subscription-
|
424
|
+
<id>subscription-reactivate-1287455769</id>
|
425
|
+
<account_code>subscription-reactivate-1287455769</account_code>
|
385
426
|
<plan>
|
386
427
|
<plan_code>paid</plan_code>
|
387
428
|
<name>Paid</name>
|
388
429
|
</plan>
|
389
|
-
<state>
|
430
|
+
<state>active</state>
|
390
431
|
<quantity type="integer">1</quantity>
|
391
432
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
392
|
-
<activated_at type="datetime">2010-10-
|
393
|
-
<canceled_at type="datetime"
|
394
|
-
<expires_at type="datetime">2010-11-
|
395
|
-
<current_period_started_at type="datetime">2010-10-
|
396
|
-
<current_period_ends_at type="datetime">2010-11-
|
433
|
+
<activated_at type="datetime">2010-10-19T03:20:31Z</activated_at>
|
434
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
435
|
+
<expires_at type="datetime">2010-11-19T03:20:31Z</expires_at>
|
436
|
+
<current_period_started_at type="datetime">2010-10-19T03:20:31Z</current_period_started_at>
|
437
|
+
<current_period_ends_at type="datetime">2010-11-19T03:20:31Z</current_period_ends_at>
|
397
438
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
398
439
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
399
440
|
</subscription>
|