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 type="integer">
|
9
|
+
<account-code type="integer">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/1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "773"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "553"
|
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:21:54 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=81a602f03c87061f290cc92a3ba3a51f5b92ea1fa65c83b9ff67f73c8dfbdc63bbfd8510ff7f84a5c534f11c865cd2a79c5a7b846149a6308b805d0848adebc0%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=cf87907d3b2e9308d2e02c3cb099ef1c; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>
|
59
|
-
<account_code>
|
56
|
+
<id>1296674173</id>
|
57
|
+
<account_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>c4ea13ba80ee4c4397f80234fd237da4</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:21:54Z</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
|
+
- "255"
|
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:21:56 GMT
|
108
106
|
connection:
|
109
107
|
- close
|
110
108
|
set-cookie:
|
111
|
-
- _recurly_session=
|
109
|
+
- _recurly_session=5b4d87ed947e8fc90f14c785d54adc83; 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/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>
|
148
|
+
<account-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>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>c4ea13ba80ee4c4397f80234fd237da4</hosted-login-token>
|
159
|
+
<created-at type="datetime">2011-02-03T22:21:54Z</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>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>30064e5f01c34d48a365b352a2fb563b</hosted-login-token>
|
166
|
-
<created-at type="datetime">2011-04-21T18:03:10Z</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
|
+
- "4302"
|
192
199
|
content-type:
|
193
200
|
- application/xml; charset=utf-8
|
194
201
|
content-length:
|
195
|
-
- "
|
202
|
+
- "868"
|
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:22:03 GMT
|
200
207
|
connection:
|
201
208
|
- close
|
202
209
|
set-cookie:
|
203
|
-
- _recurly_session=
|
210
|
+
- _recurly_session=21d8128d3a1061cdca967b2a3808e528; domain=.recurly.local; path=/; HttpOnly
|
204
211
|
body: |
|
205
212
|
<?xml version="1.0" encoding="UTF-8"?>
|
206
213
|
<subscription>
|
207
|
-
<id>
|
208
|
-
<account_code>
|
214
|
+
<id>1296674173</id>
|
215
|
+
<account_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:03:14Z</activated_at>
|
222
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
223
|
+
<activated_at type="datetime">2011-02-03T22:21:59Z</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:21:59Z</current_period_started_at>
|
227
|
+
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</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/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
|
+
- "259"
|
252
258
|
content-type:
|
253
259
|
- application/xml; charset=utf-8
|
254
260
|
etag:
|
255
|
-
- "\"
|
261
|
+
- "\"3dd6c54589143f31b98c723b14b0e9f6\""
|
256
262
|
cache-control:
|
257
263
|
- private, max-age=0, must-revalidate
|
258
264
|
content-length:
|
259
|
-
- "
|
265
|
+
- "868"
|
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:22:05 GMT
|
264
270
|
connection:
|
265
271
|
- close
|
266
272
|
set-cookie:
|
267
|
-
- _recurly_session=
|
273
|
+
- _recurly_session=edab92fa29d654e29d948c8863ac9f74; domain=.recurly.local; path=/; HttpOnly
|
268
274
|
body: |
|
269
275
|
<?xml version="1.0" encoding="UTF-8"?>
|
270
276
|
<subscription>
|
271
|
-
<id>
|
272
|
-
<account_code>
|
277
|
+
<id>1296674173</id>
|
278
|
+
<account_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:03:14Z</activated_at>
|
285
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
286
|
+
<activated_at type="datetime">2011-02-03T22:21:59Z</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:21:59Z</current_period_started_at>
|
290
|
+
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</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,7 +298,7 @@
|
|
293
298
|
- !ruby/struct:VCR::HTTPInteraction
|
294
299
|
request: !ruby/struct:VCR::Request
|
295
300
|
method: :put
|
296
|
-
uri: http://
|
301
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/1296674173/subscription.xml
|
297
302
|
body: |
|
298
303
|
<?xml version="1.0" encoding="UTF-8"?>
|
299
304
|
<subscription>
|
@@ -303,13 +308,13 @@
|
|
303
308
|
|
304
309
|
headers:
|
305
310
|
authorization:
|
306
|
-
- Basic
|
307
|
-
user-agent:
|
308
|
-
- Recurly Ruby Client v0.4.6
|
311
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
309
312
|
content-type:
|
310
313
|
- application/xml
|
311
314
|
accept:
|
312
315
|
- "*/*"
|
316
|
+
user-agent:
|
317
|
+
- Ruby
|
313
318
|
connection:
|
314
319
|
- close
|
315
320
|
response: !ruby/struct:VCR::Response
|
@@ -318,41 +323,40 @@
|
|
318
323
|
message: "OK "
|
319
324
|
headers:
|
320
325
|
x-runtime:
|
321
|
-
- "
|
326
|
+
- "4446"
|
322
327
|
content-type:
|
323
328
|
- application/xml; charset=utf-8
|
324
329
|
etag:
|
325
|
-
- "\"
|
330
|
+
- "\"bde67b4b2c3d000efde65b13640c8efe\""
|
326
331
|
cache-control:
|
327
332
|
- private, max-age=0, must-revalidate
|
328
333
|
content-length:
|
329
|
-
- "
|
334
|
+
- "868"
|
330
335
|
server:
|
331
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
336
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
332
337
|
date:
|
333
|
-
- Thu,
|
338
|
+
- Thu, 03 Feb 2011 22:22:11 GMT
|
334
339
|
connection:
|
335
340
|
- close
|
336
341
|
set-cookie:
|
337
|
-
- _recurly_session=
|
342
|
+
- _recurly_session=70577d4fab17e3391aa0ab43a3d77ebd; domain=.recurly.local; path=/; HttpOnly
|
338
343
|
body: |
|
339
344
|
<?xml version="1.0" encoding="UTF-8"?>
|
340
345
|
<subscription>
|
341
|
-
<id>
|
342
|
-
<account_code>
|
346
|
+
<id>1296674173</id>
|
347
|
+
<account_code>1296674173</account_code>
|
343
348
|
<plan>
|
344
349
|
<plan_code>paid</plan_code>
|
345
350
|
<name>Paid</name>
|
346
351
|
</plan>
|
347
352
|
<state>active</state>
|
348
353
|
<quantity type="integer">2</quantity>
|
349
|
-
<
|
350
|
-
<
|
351
|
-
<activated_at type="datetime">2011-04-21T18:03:20Z</activated_at>
|
354
|
+
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
355
|
+
<activated_at type="datetime">2011-02-03T22:22:07Z</activated_at>
|
352
356
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
353
357
|
<expires_at nil="true" type="datetime"></expires_at>
|
354
|
-
<current_period_started_at type="datetime">2011-
|
355
|
-
<current_period_ends_at type="datetime">2011-
|
358
|
+
<current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
|
359
|
+
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
|
356
360
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
357
361
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
362
|
<add_ons type="array">
|
@@ -363,17 +367,17 @@
|
|
363
367
|
- !ruby/struct:VCR::HTTPInteraction
|
364
368
|
request: !ruby/struct:VCR::Request
|
365
369
|
method: :get
|
366
|
-
uri: http://
|
370
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/1296674173/subscription.xml
|
367
371
|
body:
|
368
372
|
headers:
|
369
373
|
authorization:
|
370
|
-
- Basic
|
371
|
-
user-agent:
|
372
|
-
- Recurly Ruby Client v0.4.6
|
374
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
373
375
|
accept:
|
374
376
|
- application/xml
|
375
377
|
accept-encoding:
|
376
378
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
379
|
+
user-agent:
|
380
|
+
- Ruby
|
377
381
|
connection:
|
378
382
|
- close
|
379
383
|
response: !ruby/struct:VCR::Response
|
@@ -386,37 +390,36 @@
|
|
386
390
|
content-type:
|
387
391
|
- application/xml; charset=utf-8
|
388
392
|
etag:
|
389
|
-
- "\"
|
393
|
+
- "\"bde67b4b2c3d000efde65b13640c8efe\""
|
390
394
|
cache-control:
|
391
395
|
- private, max-age=0, must-revalidate
|
392
396
|
content-length:
|
393
|
-
- "
|
397
|
+
- "868"
|
394
398
|
server:
|
395
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
399
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
396
400
|
date:
|
397
|
-
- Thu,
|
401
|
+
- Thu, 03 Feb 2011 22:22:13 GMT
|
398
402
|
connection:
|
399
403
|
- close
|
400
404
|
set-cookie:
|
401
|
-
- _recurly_session=
|
405
|
+
- _recurly_session=553bd1e4fbec1a847e9015fcca2ba579; domain=.recurly.local; path=/; HttpOnly
|
402
406
|
body: |
|
403
407
|
<?xml version="1.0" encoding="UTF-8"?>
|
404
408
|
<subscription>
|
405
|
-
<id>
|
406
|
-
<account_code>
|
409
|
+
<id>1296674173</id>
|
410
|
+
<account_code>1296674173</account_code>
|
407
411
|
<plan>
|
408
412
|
<plan_code>paid</plan_code>
|
409
413
|
<name>Paid</name>
|
410
414
|
</plan>
|
411
415
|
<state>active</state>
|
412
416
|
<quantity type="integer">2</quantity>
|
413
|
-
<
|
414
|
-
<
|
415
|
-
<activated_at type="datetime">2011-04-21T18:03:20Z</activated_at>
|
417
|
+
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
418
|
+
<activated_at type="datetime">2011-02-03T22:22:07Z</activated_at>
|
416
419
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
417
420
|
<expires_at nil="true" type="datetime"></expires_at>
|
418
|
-
<current_period_started_at type="datetime">2011-
|
419
|
-
<current_period_ends_at type="datetime">2011-
|
421
|
+
<current_period_started_at type="datetime">2011-02-03T22:21:59Z</current_period_started_at>
|
422
|
+
<current_period_ends_at type="datetime">2011-03-03T22:21:59Z</current_period_ends_at>
|
420
423
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
421
424
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
422
425
|
<add_ons type="array">
|