recurly 0.4.7 → 0.4.8
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/README.md +6 -0
- data/lib/recurly/base.rb +15 -14
- data/lib/recurly/subscription.rb +2 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -10
- data/spec/integration/transparent_spec.rb +72 -0
- data/spec/unit/transparent_spec.rb +6 -6
- data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
- data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
- data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
- data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
- data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
- data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
- data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
- data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
- data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
- data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
- data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
- data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
- data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
- data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
- data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
- data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
- data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
- data/spec/vcr/plan/all.yml +117 -98
- data/spec/vcr/plan/delete/1296674173.yml +225 -0
- data/spec/vcr/plan/find.yml +66 -36
- data/spec/vcr/plan/update.yml +64 -144
- data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
- data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
- data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
- data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
- data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
- data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
- data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
- data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
- data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
- data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
- data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
- data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
- data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
- data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
- data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
- data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
- data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
- data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
- metadata +97 -155
- data/spec/vcr/account/list/1301979678.yml +0 -1588
- data/spec/vcr/credit/create/1299714599.yml +0 -186
- data/spec/vcr/credit/delete/1299714599.yml +0 -265
- data/spec/vcr/credit/list/1299714599.yml +0 -330
- data/spec/vcr/credit/lookup/1299714599.yml +0 -186
- data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
- data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
- data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>subscription-cancel-with-code-
|
9
|
+
<account-code>subscription-cancel-with-code-1296674173</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/subscription-cancel-with-code-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "741"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "613"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:22:59 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=09609ff733e421022679ed895f55fe32f169b2b7941bde429427da0bdee895730059358b928bbb18fd043b553e58cd6b2a5b53145ada7d4f8685cbc27e79dd77%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=21ea3aaa2f299cfa9caddcc80cd7d6a2; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>subscription-cancel-with-code-
|
59
|
-
<account_code>subscription-cancel-with-code-
|
56
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
57
|
+
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>f8e6fcf75f42450596761b3a0f1c3ae9</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:22:59Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,17 +71,17 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :get
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/company/plans/paid.xml
|
77
75
|
body:
|
78
76
|
headers:
|
79
77
|
authorization:
|
80
|
-
- Basic
|
81
|
-
user-agent:
|
82
|
-
- Recurly Ruby Client v0.4.6
|
78
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
83
79
|
accept:
|
84
80
|
- application/xml
|
85
81
|
accept-encoding:
|
86
82
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
+
user-agent:
|
84
|
+
- Ruby
|
87
85
|
connection:
|
88
86
|
- close
|
89
87
|
response: !ruby/struct:VCR::Response
|
@@ -92,23 +90,23 @@
|
|
92
90
|
message: "OK "
|
93
91
|
headers:
|
94
92
|
x-runtime:
|
95
|
-
- "
|
93
|
+
- "222"
|
96
94
|
content-type:
|
97
95
|
- application/xml; charset=utf-8
|
98
96
|
etag:
|
99
|
-
- "\"
|
97
|
+
- "\"70b5c605373b1a4346a2d7ed46048dc4\""
|
100
98
|
cache-control:
|
101
99
|
- private, max-age=0, must-revalidate
|
102
100
|
content-length:
|
103
|
-
- "
|
101
|
+
- "1150"
|
104
102
|
server:
|
105
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
103
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
106
104
|
date:
|
107
|
-
- Thu,
|
105
|
+
- Thu, 03 Feb 2011 22:23:01 GMT
|
108
106
|
connection:
|
109
107
|
- close
|
110
108
|
set-cookie:
|
111
|
-
- _recurly_session=
|
109
|
+
- _recurly_session=b525e6e41fe74baf79dcf049eacad55b; domain=.recurly.local; path=/; HttpOnly
|
112
110
|
body: |
|
113
111
|
<?xml version="1.0" encoding="UTF-8"?>
|
114
112
|
<plan>
|
@@ -117,34 +115,50 @@
|
|
117
115
|
<description></description>
|
118
116
|
<success_url></success_url>
|
119
117
|
<cancel_url></cancel_url>
|
120
|
-
<created_at type="datetime">2011-
|
121
|
-
<unit_amount_in_cents type="integer">
|
118
|
+
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
119
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
122
120
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
123
121
|
<plan_interval_length type="integer">1</plan_interval_length>
|
124
122
|
<plan_interval_unit>months</plan_interval_unit>
|
125
123
|
<trial_interval_length type="integer">0</trial_interval_length>
|
126
124
|
<trial_interval_unit>months</trial_interval_unit>
|
125
|
+
<latest_version depreciated="true">
|
126
|
+
<version type="integer">1</version>
|
127
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
+
<plan_interval_unit>months</plan_interval_unit>
|
131
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
132
|
+
<trial_interval_unit>months</trial_interval_unit>
|
133
|
+
<created_at type="datetime">2011-02-02T21:02:59Z</created_at>
|
134
|
+
</latest_version>
|
127
135
|
</plan>
|
128
136
|
|
129
137
|
http_version: "1.1"
|
130
138
|
- !ruby/struct:VCR::HTTPInteraction
|
131
139
|
request: !ruby/struct:VCR::Request
|
132
140
|
method: :post
|
133
|
-
uri: http://
|
141
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
134
142
|
body: |
|
135
143
|
<?xml version="1.0" encoding="UTF-8"?>
|
136
144
|
<subscription>
|
137
145
|
<plan-code>paid</plan-code>
|
138
146
|
<quantity type="integer">1</quantity>
|
139
147
|
<account>
|
140
|
-
<account-code>subscription-cancel-with-code-
|
148
|
+
<account-code>subscription-cancel-with-code-1296674173</account-code>
|
141
149
|
<first-name>Verena</first-name>
|
142
150
|
<last-name>Test</last-name>
|
143
151
|
<email>verena@test.com</email>
|
144
152
|
<company-name>Recurly Ruby Gem</company-name>
|
153
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
154
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
155
|
+
<username type="yaml" nil="true"></username>
|
156
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
157
|
+
<closed type="boolean">false</closed>
|
158
|
+
<hosted-login-token>f8e6fcf75f42450596761b3a0f1c3ae9</hosted-login-token>
|
159
|
+
<created-at type="datetime">2011-02-03T22:22:59Z</created-at>
|
160
|
+
<state>active</state>
|
145
161
|
<billing-info>
|
146
|
-
<first-name>Verena</first-name>
|
147
|
-
<last-name>Test</last-name>
|
148
162
|
<address1>123 Test St</address1>
|
149
163
|
<city>San Francisco</city>
|
150
164
|
<state>CA</state>
|
@@ -153,31 +167,24 @@
|
|
153
167
|
<credit-card>
|
154
168
|
<number>4111111111111111</number>
|
155
169
|
<year type="integer">2012</year>
|
156
|
-
<month type="integer">
|
170
|
+
<month type="integer">2</month>
|
157
171
|
<verification-value>123</verification-value>
|
158
172
|
</credit-card>
|
173
|
+
<first-name>Verena</first-name>
|
174
|
+
<last-name>Test</last-name>
|
159
175
|
</billing-info>
|
160
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
161
|
-
<id>subscription-cancel-with-code-1301881900</id>
|
162
|
-
<username type="yaml" nil="true"></username>
|
163
|
-
<balance-in-cents type="integer">0</balance-in-cents>
|
164
|
-
<closed type="boolean">false</closed>
|
165
|
-
<hosted-login-token>32d66ed28c8f4ac39a534616c120cce2</hosted-login-token>
|
166
|
-
<created-at type="datetime">2011-04-21T18:03:57Z</created-at>
|
167
|
-
<state>active</state>
|
168
176
|
</account>
|
169
|
-
<addons type="array"/>
|
170
177
|
</subscription>
|
171
178
|
|
172
179
|
headers:
|
173
180
|
authorization:
|
174
|
-
- Basic
|
175
|
-
user-agent:
|
176
|
-
- Recurly Ruby Client v0.4.6
|
181
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
177
182
|
content-type:
|
178
183
|
- application/xml
|
179
184
|
accept:
|
180
185
|
- "*/*"
|
186
|
+
user-agent:
|
187
|
+
- Ruby
|
181
188
|
connection:
|
182
189
|
- close
|
183
190
|
response: !ruby/struct:VCR::Response
|
@@ -188,37 +195,36 @@
|
|
188
195
|
cache-control:
|
189
196
|
- no-cache
|
190
197
|
x-runtime:
|
191
|
-
- "
|
198
|
+
- "4322"
|
192
199
|
content-type:
|
193
200
|
- application/xml; charset=utf-8
|
194
201
|
content-length:
|
195
|
-
- "
|
202
|
+
- "928"
|
196
203
|
server:
|
197
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
204
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
198
205
|
date:
|
199
|
-
- Thu,
|
206
|
+
- Thu, 03 Feb 2011 22:23:07 GMT
|
200
207
|
connection:
|
201
208
|
- close
|
202
209
|
set-cookie:
|
203
|
-
- _recurly_session=
|
210
|
+
- _recurly_session=9e1455e8a885a0d7fb4fe86ce1989ddc; domain=.recurly.local; path=/; HttpOnly
|
204
211
|
body: |
|
205
212
|
<?xml version="1.0" encoding="UTF-8"?>
|
206
213
|
<subscription>
|
207
|
-
<id>subscription-cancel-with-code-
|
208
|
-
<account_code>subscription-cancel-with-code-
|
214
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
215
|
+
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
209
216
|
<plan>
|
210
217
|
<plan_code>paid</plan_code>
|
211
218
|
<name>Paid</name>
|
212
219
|
</plan>
|
213
220
|
<state>active</state>
|
214
221
|
<quantity type="integer">1</quantity>
|
215
|
-
<
|
216
|
-
<
|
217
|
-
<activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
|
222
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
223
|
+
<activated_at type="datetime">2011-02-03T22:23:04Z</activated_at>
|
218
224
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
219
225
|
<expires_at nil="true" type="datetime"></expires_at>
|
220
|
-
<current_period_started_at type="datetime">2011-
|
221
|
-
<current_period_ends_at type="datetime">2011-
|
226
|
+
<current_period_started_at type="datetime">2011-02-03T22:23:04Z</current_period_started_at>
|
227
|
+
<current_period_ends_at type="datetime">2011-03-03T22:23:04Z</current_period_ends_at>
|
222
228
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
223
229
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
224
230
|
<add_ons type="array">
|
@@ -229,17 +235,17 @@
|
|
229
235
|
- !ruby/struct:VCR::HTTPInteraction
|
230
236
|
request: !ruby/struct:VCR::Request
|
231
237
|
method: :get
|
232
|
-
uri: http://
|
238
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
233
239
|
body:
|
234
240
|
headers:
|
235
241
|
authorization:
|
236
|
-
- Basic
|
237
|
-
user-agent:
|
238
|
-
- Recurly Ruby Client v0.4.6
|
242
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
239
243
|
accept:
|
240
244
|
- application/xml
|
241
245
|
accept-encoding:
|
242
246
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
247
|
+
user-agent:
|
248
|
+
- Ruby
|
243
249
|
connection:
|
244
250
|
- close
|
245
251
|
response: !ruby/struct:VCR::Response
|
@@ -248,41 +254,40 @@
|
|
248
254
|
message: "OK "
|
249
255
|
headers:
|
250
256
|
x-runtime:
|
251
|
-
- "
|
257
|
+
- "414"
|
252
258
|
content-type:
|
253
259
|
- application/xml; charset=utf-8
|
254
260
|
etag:
|
255
|
-
- "\"
|
261
|
+
- "\"621ee5e39d131672a4937d2575dcb449\""
|
256
262
|
cache-control:
|
257
263
|
- private, max-age=0, must-revalidate
|
258
264
|
content-length:
|
259
|
-
- "
|
265
|
+
- "928"
|
260
266
|
server:
|
261
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
267
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
262
268
|
date:
|
263
|
-
- Thu,
|
269
|
+
- Thu, 03 Feb 2011 22:23:10 GMT
|
264
270
|
connection:
|
265
271
|
- close
|
266
272
|
set-cookie:
|
267
|
-
- _recurly_session=
|
273
|
+
- _recurly_session=d59f69277cc64a45cd1ff7c408296ecf; domain=.recurly.local; path=/; HttpOnly
|
268
274
|
body: |
|
269
275
|
<?xml version="1.0" encoding="UTF-8"?>
|
270
276
|
<subscription>
|
271
|
-
<id>subscription-cancel-with-code-
|
272
|
-
<account_code>subscription-cancel-with-code-
|
277
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
278
|
+
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
273
279
|
<plan>
|
274
280
|
<plan_code>paid</plan_code>
|
275
281
|
<name>Paid</name>
|
276
282
|
</plan>
|
277
283
|
<state>active</state>
|
278
284
|
<quantity type="integer">1</quantity>
|
279
|
-
<
|
280
|
-
<
|
281
|
-
<activated_at type="datetime">2011-04-21T18:04:01Z</activated_at>
|
285
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
286
|
+
<activated_at type="datetime">2011-02-03T22:23:04Z</activated_at>
|
282
287
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
283
288
|
<expires_at nil="true" type="datetime"></expires_at>
|
284
|
-
<current_period_started_at type="datetime">2011-
|
285
|
-
<current_period_ends_at type="datetime">2011-
|
289
|
+
<current_period_started_at type="datetime">2011-02-03T22:23:04Z</current_period_started_at>
|
290
|
+
<current_period_ends_at type="datetime">2011-03-03T22:23:04Z</current_period_ends_at>
|
286
291
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
287
292
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
288
293
|
<add_ons type="array">
|
@@ -293,15 +298,15 @@
|
|
293
298
|
- !ruby/struct:VCR::HTTPInteraction
|
294
299
|
request: !ruby/struct:VCR::Request
|
295
300
|
method: :delete
|
296
|
-
uri: http://
|
301
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
297
302
|
body:
|
298
303
|
headers:
|
299
304
|
authorization:
|
300
|
-
- Basic
|
301
|
-
user-agent:
|
302
|
-
- Recurly Ruby Client v0.4.6
|
305
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
303
306
|
accept:
|
304
307
|
- application/xml
|
308
|
+
user-agent:
|
309
|
+
- Ruby
|
305
310
|
connection:
|
306
311
|
- close
|
307
312
|
response: !ruby/struct:VCR::Response
|
@@ -310,41 +315,40 @@
|
|
310
315
|
message: "OK "
|
311
316
|
headers:
|
312
317
|
x-runtime:
|
313
|
-
- "
|
318
|
+
- "1990"
|
314
319
|
content-type:
|
315
320
|
- application/xml; charset=utf-8
|
316
321
|
etag:
|
317
|
-
- "\"
|
322
|
+
- "\"59b082e98aaf979954c8f305b425bc25\""
|
318
323
|
cache-control:
|
319
324
|
- private, max-age=0, must-revalidate
|
320
325
|
content-length:
|
321
|
-
- "
|
326
|
+
- "948"
|
322
327
|
server:
|
323
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
328
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
324
329
|
date:
|
325
|
-
- Thu,
|
330
|
+
- Thu, 03 Feb 2011 22:23:13 GMT
|
326
331
|
connection:
|
327
332
|
- close
|
328
333
|
set-cookie:
|
329
|
-
- _recurly_session=
|
334
|
+
- _recurly_session=1b7ab4da0e3b96109c672d3028a13ea4; domain=.recurly.local; path=/; HttpOnly
|
330
335
|
body: |
|
331
336
|
<?xml version="1.0" encoding="UTF-8"?>
|
332
337
|
<subscription>
|
333
|
-
<id>subscription-cancel-with-code-
|
334
|
-
<account_code>subscription-cancel-with-code-
|
338
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
339
|
+
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
335
340
|
<plan>
|
336
341
|
<plan_code>paid</plan_code>
|
337
342
|
<name>Paid</name>
|
338
343
|
</plan>
|
339
344
|
<state>canceled</state>
|
340
345
|
<quantity type="integer">1</quantity>
|
341
|
-
<
|
342
|
-
<
|
343
|
-
<
|
344
|
-
<
|
345
|
-
<
|
346
|
-
<
|
347
|
-
<current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
|
346
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
347
|
+
<activated_at type="datetime">2011-02-03T22:23:04Z</activated_at>
|
348
|
+
<canceled_at type="datetime">2011-02-03T22:23:12Z</canceled_at>
|
349
|
+
<expires_at type="datetime">2011-03-03T22:23:04Z</expires_at>
|
350
|
+
<current_period_started_at type="datetime">2011-02-03T22:23:04Z</current_period_started_at>
|
351
|
+
<current_period_ends_at type="datetime">2011-03-03T22:23:04Z</current_period_ends_at>
|
348
352
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
349
353
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
350
354
|
<add_ons type="array">
|
@@ -355,17 +359,17 @@
|
|
355
359
|
- !ruby/struct:VCR::HTTPInteraction
|
356
360
|
request: !ruby/struct:VCR::Request
|
357
361
|
method: :get
|
358
|
-
uri: http://
|
362
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
359
363
|
body:
|
360
364
|
headers:
|
361
365
|
authorization:
|
362
|
-
- Basic
|
363
|
-
user-agent:
|
364
|
-
- Recurly Ruby Client v0.4.6
|
366
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
365
367
|
accept:
|
366
368
|
- application/xml
|
367
369
|
accept-encoding:
|
368
370
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
371
|
+
user-agent:
|
372
|
+
- Ruby
|
369
373
|
connection:
|
370
374
|
- close
|
371
375
|
response: !ruby/struct:VCR::Response
|
@@ -374,41 +378,40 @@
|
|
374
378
|
message: "OK "
|
375
379
|
headers:
|
376
380
|
x-runtime:
|
377
|
-
- "
|
381
|
+
- "265"
|
378
382
|
content-type:
|
379
383
|
- application/xml; charset=utf-8
|
380
384
|
etag:
|
381
|
-
- "\"
|
385
|
+
- "\"59b082e98aaf979954c8f305b425bc25\""
|
382
386
|
cache-control:
|
383
387
|
- private, max-age=0, must-revalidate
|
384
388
|
content-length:
|
385
|
-
- "
|
389
|
+
- "948"
|
386
390
|
server:
|
387
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
391
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
388
392
|
date:
|
389
|
-
- Thu,
|
393
|
+
- Thu, 03 Feb 2011 22:23:16 GMT
|
390
394
|
connection:
|
391
395
|
- close
|
392
396
|
set-cookie:
|
393
|
-
- _recurly_session=
|
397
|
+
- _recurly_session=b230fd5ea26f5ac89100c71060fafa18; domain=.recurly.local; path=/; HttpOnly
|
394
398
|
body: |
|
395
399
|
<?xml version="1.0" encoding="UTF-8"?>
|
396
400
|
<subscription>
|
397
|
-
<id>subscription-cancel-with-code-
|
398
|
-
<account_code>subscription-cancel-with-code-
|
401
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
402
|
+
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
399
403
|
<plan>
|
400
404
|
<plan_code>paid</plan_code>
|
401
405
|
<name>Paid</name>
|
402
406
|
</plan>
|
403
407
|
<state>canceled</state>
|
404
408
|
<quantity type="integer">1</quantity>
|
405
|
-
<
|
406
|
-
<
|
407
|
-
<
|
408
|
-
<
|
409
|
-
<
|
410
|
-
<
|
411
|
-
<current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
|
409
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
410
|
+
<activated_at type="datetime">2011-02-03T22:23:04Z</activated_at>
|
411
|
+
<canceled_at type="datetime">2011-02-03T22:23:12Z</canceled_at>
|
412
|
+
<expires_at type="datetime">2011-03-03T22:23:04Z</expires_at>
|
413
|
+
<current_period_started_at type="datetime">2011-02-03T22:23:04Z</current_period_started_at>
|
414
|
+
<current_period_ends_at type="datetime">2011-03-03T22:23:04Z</current_period_ends_at>
|
412
415
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
413
416
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
414
417
|
<add_ons type="array">
|
@@ -419,17 +422,17 @@
|
|
419
422
|
- !ruby/struct:VCR::HTTPInteraction
|
420
423
|
request: !ruby/struct:VCR::Request
|
421
424
|
method: :get
|
422
|
-
uri: http://
|
425
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/subscription-cancel-with-code-1296674173/subscription.xml
|
423
426
|
body:
|
424
427
|
headers:
|
425
428
|
authorization:
|
426
|
-
- Basic
|
427
|
-
user-agent:
|
428
|
-
- Recurly Ruby Client v0.4.6
|
429
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
429
430
|
accept:
|
430
431
|
- application/xml
|
431
432
|
accept-encoding:
|
432
433
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
434
|
+
user-agent:
|
435
|
+
- Ruby
|
433
436
|
connection:
|
434
437
|
- close
|
435
438
|
response: !ruby/struct:VCR::Response
|
@@ -438,41 +441,40 @@
|
|
438
441
|
message: "OK "
|
439
442
|
headers:
|
440
443
|
x-runtime:
|
441
|
-
- "
|
444
|
+
- "288"
|
442
445
|
content-type:
|
443
446
|
- application/xml; charset=utf-8
|
444
447
|
etag:
|
445
|
-
- "\"
|
448
|
+
- "\"59b082e98aaf979954c8f305b425bc25\""
|
446
449
|
cache-control:
|
447
450
|
- private, max-age=0, must-revalidate
|
448
451
|
content-length:
|
449
|
-
- "
|
452
|
+
- "948"
|
450
453
|
server:
|
451
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
454
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
452
455
|
date:
|
453
|
-
- Thu,
|
456
|
+
- Thu, 03 Feb 2011 22:23:18 GMT
|
454
457
|
connection:
|
455
458
|
- close
|
456
459
|
set-cookie:
|
457
|
-
- _recurly_session=
|
460
|
+
- _recurly_session=05cf002a35b5ff6d0b31d068ba27f69d; domain=.recurly.local; path=/; HttpOnly
|
458
461
|
body: |
|
459
462
|
<?xml version="1.0" encoding="UTF-8"?>
|
460
463
|
<subscription>
|
461
|
-
<id>subscription-cancel-with-code-
|
462
|
-
<account_code>subscription-cancel-with-code-
|
464
|
+
<id>subscription-cancel-with-code-1296674173</id>
|
465
|
+
<account_code>subscription-cancel-with-code-1296674173</account_code>
|
463
466
|
<plan>
|
464
467
|
<plan_code>paid</plan_code>
|
465
468
|
<name>Paid</name>
|
466
469
|
</plan>
|
467
470
|
<state>canceled</state>
|
468
471
|
<quantity type="integer">1</quantity>
|
469
|
-
<
|
470
|
-
<
|
471
|
-
<
|
472
|
-
<
|
473
|
-
<
|
474
|
-
<
|
475
|
-
<current_period_ends_at type="datetime">2011-05-21T18:04:01Z</current_period_ends_at>
|
472
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
473
|
+
<activated_at type="datetime">2011-02-03T22:23:04Z</activated_at>
|
474
|
+
<canceled_at type="datetime">2011-02-03T22:23:12Z</canceled_at>
|
475
|
+
<expires_at type="datetime">2011-03-03T22:23:04Z</expires_at>
|
476
|
+
<current_period_started_at type="datetime">2011-02-03T22:23:04Z</current_period_started_at>
|
477
|
+
<current_period_ends_at type="datetime">2011-03-03T22:23:04Z</current_period_ends_at>
|
476
478
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
477
479
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
478
480
|
<add_ons type="array">
|