recurly 0.2.1 → 0.2.2
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 +3 -2
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/transaction.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/subscription_spec.rb +29 -8
- data/spec/vcr/account/close/1286666929.yml +159 -0
- data/spec/vcr/account/create-blank/1286666929.yml +49 -0
- data/spec/vcr/account/create-duplicate/1286666929.yml +95 -0
- data/spec/vcr/account/create-min/1286666929.yml +63 -0
- data/spec/vcr/account/create/1286666929.yml +67 -0
- data/spec/vcr/account/find/1286666929.yml +122 -0
- data/spec/vcr/account/list/1286666929.yml +1565 -0
- data/spec/vcr/account/update/1286666929.yml +250 -0
- data/spec/vcr/billing/create/1286682213.yml +210 -0
- data/spec/vcr/billing/destroy/1286682213.yml +309 -0
- data/spec/vcr/billing/find/1286682213.yml +273 -0
- data/spec/vcr/billing/update/1286682213.yml +292 -0
- data/spec/vcr/charge/create/1286681273.yml +253 -0
- data/spec/vcr/charge/list-all/1286681273.yml +302 -0
- data/spec/vcr/charge/list-invoiced/1286681273.yml +445 -0
- data/spec/vcr/charge/list-pending/1286681273.yml +302 -0
- data/spec/vcr/charge/lookup/1286681273.yml +171 -0
- data/spec/vcr/credit/create/1286681343.yml +171 -0
- data/spec/vcr/credit/list/1286681343.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +171 -0
- data/spec/vcr/invoice/create/1286679184.yml +337 -0
- data/spec/vcr/invoice/list/1286679184.yml +458 -0
- data/spec/vcr/invoice/lookup/1286679184.yml +341 -0
- data/spec/vcr/plan/all.yml +306 -0
- data/spec/vcr/plan/delete/1286677585.yml +217 -0
- data/spec/vcr/plan/find.yml +196 -0
- data/spec/vcr/plan/update.yml +197 -0
- data/spec/vcr/subscription/cancel/1287036910.yml +401 -0
- data/spec/vcr/subscription/cancel/1287037325.yml +401 -0
- data/spec/vcr/subscription/cancel/1287037363.yml +401 -0
- data/spec/vcr/subscription/change1/1287036910.yml +409 -0
- data/spec/vcr/subscription/change1/1287037152.yml +409 -0
- data/spec/vcr/subscription/change1/1287037325.yml +409 -0
- data/spec/vcr/subscription/change1/1287037363.yml +409 -0
- data/spec/vcr/subscription/change2/1287036910.yml +409 -0
- data/spec/vcr/subscription/change2/1287037152.yml +283 -0
- data/spec/vcr/subscription/change2/1287037325.yml +283 -0
- data/spec/vcr/subscription/change2/1287037363.yml +409 -0
- data/spec/vcr/subscription/create/1287036910.yml +224 -0
- data/spec/vcr/subscription/create/1287037152.yml +224 -0
- data/spec/vcr/subscription/create/1287037325.yml +224 -0
- data/spec/vcr/subscription/create/1287037363.yml +224 -0
- data/spec/vcr/subscription/find/1287036910.yml +283 -0
- data/spec/vcr/subscription/find/1287037152.yml +283 -0
- data/spec/vcr/subscription/find/1287037325.yml +283 -0
- data/spec/vcr/subscription/find/1287037363.yml +283 -0
- data/spec/vcr/subscription/refund/1287036910.yml +382 -0
- data/spec/vcr/subscription/refund/1287037325.yml +382 -0
- data/spec/vcr/subscription/refund/1287037363.yml +382 -0
- data/spec/vcr/transaction/all/1286674805.yml +387 -0
- data/spec/vcr/transaction/create-no-account/1286674805.yml +91 -0
- data/spec/vcr/transaction/create-with-account/1286674805.yml +220 -0
- data/spec/vcr/transaction/list-empty/1286674805.yml +212 -0
- data/spec/vcr/transaction/list-filled/1286674805.yml +476 -0
- data/spec/vcr/transaction/lookup/1286674805.yml +548 -0
- data/spec/vcr/transaction/refund/1286674805.yml +220 -0
- data/spec/vcr/transaction/void/1286674805.yml +668 -0
- metadata +118 -4
@@ -0,0 +1,409 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>subscription-change1-1287037152</account-code>
|
10
|
+
<company-name>Recurly Ruby Gem</company-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<first-name>Verena</first-name>
|
13
|
+
<email>verena@test.com</email>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-change1-1287037152
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "571"
|
38
|
+
date:
|
39
|
+
- Thu, 14 Oct 2010 06:19:30 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "595"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=b47ef80f25524a66ba756a1074aa00599c13a0fea0512ec406b722a4a6714426969c2612db56322cc55b1ef77d6d331c2f850eed6f8216d67f89bd3bac7abeb7%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=dd503a104b09b65deeaf07c360cb17e6; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>subscription-change1-1287037152</id>
|
54
|
+
<account_code>subscription-change1-1287037152</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>fb0f29aac3e14e5fbf9ec719e67fb9fb</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-14T06:19:30Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :get
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
|
72
|
+
body:
|
73
|
+
headers:
|
74
|
+
accept:
|
75
|
+
- application/xml
|
76
|
+
connection:
|
77
|
+
- close
|
78
|
+
authorization:
|
79
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
80
|
+
response: !ruby/struct:VCR::Response
|
81
|
+
status: !ruby/struct:VCR::ResponseStatus
|
82
|
+
code: 200
|
83
|
+
message: OK
|
84
|
+
headers:
|
85
|
+
x-ua-compatible:
|
86
|
+
- IE=Edge
|
87
|
+
etag:
|
88
|
+
- "\"31910d9b30fecc5e62f25a1ce00278e0\""
|
89
|
+
connection:
|
90
|
+
- close
|
91
|
+
content-type:
|
92
|
+
- application/xml; charset=utf-8
|
93
|
+
x-runtime:
|
94
|
+
- "14"
|
95
|
+
date:
|
96
|
+
- Thu, 14 Oct 2010 06:19:30 GMT
|
97
|
+
server:
|
98
|
+
- nginx/0.7.65
|
99
|
+
content-length:
|
100
|
+
- "1150"
|
101
|
+
set-cookie:
|
102
|
+
- _recurly_session=1080f3cc2e76bba0918a2910889b2465; domain=.recurly.com; path=/; Secure; HttpOnly
|
103
|
+
cache-control:
|
104
|
+
- private, max-age=0, must-revalidate
|
105
|
+
body: |
|
106
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
107
|
+
<plan>
|
108
|
+
<plan_code>paid</plan_code>
|
109
|
+
<name>Paid</name>
|
110
|
+
<description></description>
|
111
|
+
<success_url></success_url>
|
112
|
+
<cancel_url></cancel_url>
|
113
|
+
<created_at type="datetime">2010-09-19T00:56:05Z</created_at>
|
114
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
115
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
116
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
117
|
+
<plan_interval_unit>months</plan_interval_unit>
|
118
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
119
|
+
<trial_interval_unit>months</trial_interval_unit>
|
120
|
+
<latest_version depreciated="true">
|
121
|
+
<version type="integer">1</version>
|
122
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
123
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
124
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
125
|
+
<plan_interval_unit>months</plan_interval_unit>
|
126
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
127
|
+
<trial_interval_unit>months</trial_interval_unit>
|
128
|
+
<created_at type="datetime">2010-09-19T00:56:05Z</created_at>
|
129
|
+
</latest_version>
|
130
|
+
</plan>
|
131
|
+
|
132
|
+
http_version: "1.1"
|
133
|
+
- !ruby/struct:VCR::HTTPInteraction
|
134
|
+
request: !ruby/struct:VCR::Request
|
135
|
+
method: :post
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037152/subscription.xml
|
137
|
+
body: |
|
138
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
139
|
+
<subscription>
|
140
|
+
<quantity type="integer">1</quantity>
|
141
|
+
<plan-code>paid</plan-code>
|
142
|
+
<account>
|
143
|
+
<created-at type="datetime">2010-10-14T06:19:30Z</created-at>
|
144
|
+
<hosted-login-token>fb0f29aac3e14e5fbf9ec719e67fb9fb</hosted-login-token>
|
145
|
+
<account-code>subscription-change1-1287037152</account-code>
|
146
|
+
<company-name>Recurly Ruby Gem</company-name>
|
147
|
+
<closed type="boolean">false</closed>
|
148
|
+
<username type="yaml" nil="true"></username>
|
149
|
+
<id>subscription-change1-1287037152</id>
|
150
|
+
<last-name>Test</last-name>
|
151
|
+
<billing-info>
|
152
|
+
<city>San Francisco</city>
|
153
|
+
<address1>123 Test St</address1>
|
154
|
+
<zip>94115</zip>
|
155
|
+
<country>US</country>
|
156
|
+
<credit-card>
|
157
|
+
<number>1</number>
|
158
|
+
<month type="integer">10</month>
|
159
|
+
<year type="integer">2011</year>
|
160
|
+
<verification-value>123</verification-value>
|
161
|
+
</credit-card>
|
162
|
+
<last-name>Test</last-name>
|
163
|
+
<first-name>Verena</first-name>
|
164
|
+
<state>CA</state>
|
165
|
+
</billing-info>
|
166
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
167
|
+
<state>active</state>
|
168
|
+
<first-name>Verena</first-name>
|
169
|
+
<email>verena@test.com</email>
|
170
|
+
</account>
|
171
|
+
</subscription>
|
172
|
+
|
173
|
+
headers:
|
174
|
+
accept:
|
175
|
+
- "*/*"
|
176
|
+
connection:
|
177
|
+
- close
|
178
|
+
content-type:
|
179
|
+
- application/xml
|
180
|
+
authorization:
|
181
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
182
|
+
response: !ruby/struct:VCR::Response
|
183
|
+
status: !ruby/struct:VCR::ResponseStatus
|
184
|
+
code: 201
|
185
|
+
message: Created
|
186
|
+
headers:
|
187
|
+
connection:
|
188
|
+
- close
|
189
|
+
content-type:
|
190
|
+
- application/xml; charset=utf-8
|
191
|
+
x-runtime:
|
192
|
+
- "610"
|
193
|
+
date:
|
194
|
+
- Thu, 14 Oct 2010 06:19:32 GMT
|
195
|
+
server:
|
196
|
+
- nginx/0.7.65
|
197
|
+
content-length:
|
198
|
+
- "872"
|
199
|
+
set-cookie:
|
200
|
+
- _recurly_session=04474ef1dba9b08e989e27cf5ee2ddaf; domain=.recurly.com; path=/; Secure; HttpOnly
|
201
|
+
cache-control:
|
202
|
+
- no-cache
|
203
|
+
body: |
|
204
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
205
|
+
<subscription>
|
206
|
+
<id>subscription-change1-1287037152</id>
|
207
|
+
<account_code>subscription-change1-1287037152</account_code>
|
208
|
+
<plan>
|
209
|
+
<plan_code>paid</plan_code>
|
210
|
+
<name>Paid</name>
|
211
|
+
</plan>
|
212
|
+
<state>active</state>
|
213
|
+
<quantity type="integer">1</quantity>
|
214
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
+
<activated_at type="datetime">2010-10-14T06:19:31Z</activated_at>
|
216
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
+
<current_period_started_at type="datetime">2010-10-14T06:19:31Z</current_period_started_at>
|
219
|
+
<current_period_ends_at type="datetime">2010-11-14T06:19:31Z</current_period_ends_at>
|
220
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
222
|
+
</subscription>
|
223
|
+
|
224
|
+
http_version: "1.1"
|
225
|
+
- !ruby/struct:VCR::HTTPInteraction
|
226
|
+
request: !ruby/struct:VCR::Request
|
227
|
+
method: :get
|
228
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037152/subscription.xml
|
229
|
+
body:
|
230
|
+
headers:
|
231
|
+
accept:
|
232
|
+
- application/xml
|
233
|
+
connection:
|
234
|
+
- close
|
235
|
+
authorization:
|
236
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
237
|
+
response: !ruby/struct:VCR::Response
|
238
|
+
status: !ruby/struct:VCR::ResponseStatus
|
239
|
+
code: 200
|
240
|
+
message: OK
|
241
|
+
headers:
|
242
|
+
x-ua-compatible:
|
243
|
+
- IE=Edge
|
244
|
+
etag:
|
245
|
+
- "\"7df01352a660e8009ab31c34dafcbddd\""
|
246
|
+
connection:
|
247
|
+
- close
|
248
|
+
content-type:
|
249
|
+
- application/xml; charset=utf-8
|
250
|
+
x-runtime:
|
251
|
+
- "16"
|
252
|
+
date:
|
253
|
+
- Thu, 14 Oct 2010 06:19:32 GMT
|
254
|
+
server:
|
255
|
+
- nginx/0.7.65
|
256
|
+
content-length:
|
257
|
+
- "872"
|
258
|
+
set-cookie:
|
259
|
+
- _recurly_session=f181cabd3cdf7af6190417ec681ff9fd; domain=.recurly.com; path=/; Secure; HttpOnly
|
260
|
+
cache-control:
|
261
|
+
- private, max-age=0, must-revalidate
|
262
|
+
body: |
|
263
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
264
|
+
<subscription>
|
265
|
+
<id>subscription-change1-1287037152</id>
|
266
|
+
<account_code>subscription-change1-1287037152</account_code>
|
267
|
+
<plan>
|
268
|
+
<plan_code>paid</plan_code>
|
269
|
+
<name>Paid</name>
|
270
|
+
</plan>
|
271
|
+
<state>active</state>
|
272
|
+
<quantity type="integer">1</quantity>
|
273
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
+
<activated_at type="datetime">2010-10-14T06:19:31Z</activated_at>
|
275
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
+
<current_period_started_at type="datetime">2010-10-14T06:19:31Z</current_period_started_at>
|
278
|
+
<current_period_ends_at type="datetime">2010-11-14T06:19:31Z</current_period_ends_at>
|
279
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
281
|
+
</subscription>
|
282
|
+
|
283
|
+
http_version: "1.1"
|
284
|
+
- !ruby/struct:VCR::HTTPInteraction
|
285
|
+
request: !ruby/struct:VCR::Request
|
286
|
+
method: :put
|
287
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037152/subscription.xml
|
288
|
+
body: |
|
289
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
290
|
+
<subscription>
|
291
|
+
<quantity type="integer">2</quantity>
|
292
|
+
<timeframe>now</timeframe>
|
293
|
+
</subscription>
|
294
|
+
|
295
|
+
headers:
|
296
|
+
accept:
|
297
|
+
- "*/*"
|
298
|
+
connection:
|
299
|
+
- close
|
300
|
+
content-type:
|
301
|
+
- application/xml
|
302
|
+
authorization:
|
303
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
304
|
+
response: !ruby/struct:VCR::Response
|
305
|
+
status: !ruby/struct:VCR::ResponseStatus
|
306
|
+
code: 200
|
307
|
+
message: OK
|
308
|
+
headers:
|
309
|
+
x-ua-compatible:
|
310
|
+
- IE=Edge
|
311
|
+
etag:
|
312
|
+
- "\"45f23d3b3fdce4c0a5af5fcb9863ad1e\""
|
313
|
+
connection:
|
314
|
+
- close
|
315
|
+
content-type:
|
316
|
+
- application/xml; charset=utf-8
|
317
|
+
x-runtime:
|
318
|
+
- "358"
|
319
|
+
date:
|
320
|
+
- Thu, 14 Oct 2010 06:19:34 GMT
|
321
|
+
server:
|
322
|
+
- nginx/0.7.65
|
323
|
+
content-length:
|
324
|
+
- "872"
|
325
|
+
set-cookie:
|
326
|
+
- _recurly_session=73cb8ea0b08927791ad446b77703af0d; domain=.recurly.com; path=/; Secure; HttpOnly
|
327
|
+
cache-control:
|
328
|
+
- private, max-age=0, must-revalidate
|
329
|
+
body: |
|
330
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
331
|
+
<subscription>
|
332
|
+
<id>subscription-change1-1287037152</id>
|
333
|
+
<account_code>subscription-change1-1287037152</account_code>
|
334
|
+
<plan>
|
335
|
+
<plan_code>paid</plan_code>
|
336
|
+
<name>Paid</name>
|
337
|
+
</plan>
|
338
|
+
<state>active</state>
|
339
|
+
<quantity type="integer">2</quantity>
|
340
|
+
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
341
|
+
<activated_at type="datetime">2010-10-14T06:19:33Z</activated_at>
|
342
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
343
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
344
|
+
<current_period_started_at type="datetime">2010-10-14T06:19:31Z</current_period_started_at>
|
345
|
+
<current_period_ends_at type="datetime">2010-11-14T06:19:31Z</current_period_ends_at>
|
346
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
347
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
348
|
+
</subscription>
|
349
|
+
|
350
|
+
http_version: "1.1"
|
351
|
+
- !ruby/struct:VCR::HTTPInteraction
|
352
|
+
request: !ruby/struct:VCR::Request
|
353
|
+
method: :get
|
354
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037152/subscription.xml
|
355
|
+
body:
|
356
|
+
headers:
|
357
|
+
accept:
|
358
|
+
- application/xml
|
359
|
+
connection:
|
360
|
+
- close
|
361
|
+
authorization:
|
362
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
363
|
+
response: !ruby/struct:VCR::Response
|
364
|
+
status: !ruby/struct:VCR::ResponseStatus
|
365
|
+
code: 200
|
366
|
+
message: OK
|
367
|
+
headers:
|
368
|
+
x-ua-compatible:
|
369
|
+
- IE=Edge
|
370
|
+
etag:
|
371
|
+
- "\"45f23d3b3fdce4c0a5af5fcb9863ad1e\""
|
372
|
+
connection:
|
373
|
+
- close
|
374
|
+
content-type:
|
375
|
+
- application/xml; charset=utf-8
|
376
|
+
x-runtime:
|
377
|
+
- "29"
|
378
|
+
date:
|
379
|
+
- Thu, 14 Oct 2010 06:19:34 GMT
|
380
|
+
server:
|
381
|
+
- nginx/0.7.65
|
382
|
+
content-length:
|
383
|
+
- "872"
|
384
|
+
set-cookie:
|
385
|
+
- _recurly_session=c09794c69ead42acb8e60b27120c5068; domain=.recurly.com; path=/; Secure; HttpOnly
|
386
|
+
cache-control:
|
387
|
+
- private, max-age=0, must-revalidate
|
388
|
+
body: |
|
389
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
390
|
+
<subscription>
|
391
|
+
<id>subscription-change1-1287037152</id>
|
392
|
+
<account_code>subscription-change1-1287037152</account_code>
|
393
|
+
<plan>
|
394
|
+
<plan_code>paid</plan_code>
|
395
|
+
<name>Paid</name>
|
396
|
+
</plan>
|
397
|
+
<state>active</state>
|
398
|
+
<quantity type="integer">2</quantity>
|
399
|
+
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
400
|
+
<activated_at type="datetime">2010-10-14T06:19:33Z</activated_at>
|
401
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
402
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
403
|
+
<current_period_started_at type="datetime">2010-10-14T06:19:31Z</current_period_started_at>
|
404
|
+
<current_period_ends_at type="datetime">2010-11-14T06:19:31Z</current_period_ends_at>
|
405
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
406
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
407
|
+
</subscription>
|
408
|
+
|
409
|
+
http_version: "1.1"
|
@@ -0,0 +1,409 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>subscription-change1-1287037325</account-code>
|
10
|
+
<company-name>Recurly Ruby Gem</company-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<first-name>Verena</first-name>
|
13
|
+
<email>verena@test.com</email>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/subscription-change1-1287037325
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "570"
|
38
|
+
date:
|
39
|
+
- Thu, 14 Oct 2010 06:22:18 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "595"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=5f32a810adfdbe63b3de9b8ab4bb5460c779581b0223434b0bf72457192fc3b1eab6a1649c0b0822efc5a0a17217e3ea800618fd730bb7f332504c8e37440936%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=70475e09434ebe4937eef1d41ccdbc59; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>subscription-change1-1287037325</id>
|
54
|
+
<account_code>subscription-change1-1287037325</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>20295d096965410eaeac53f106dcd992</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-14T06:22:18Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :get
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
|
72
|
+
body:
|
73
|
+
headers:
|
74
|
+
accept:
|
75
|
+
- application/xml
|
76
|
+
connection:
|
77
|
+
- close
|
78
|
+
authorization:
|
79
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
80
|
+
response: !ruby/struct:VCR::Response
|
81
|
+
status: !ruby/struct:VCR::ResponseStatus
|
82
|
+
code: 200
|
83
|
+
message: OK
|
84
|
+
headers:
|
85
|
+
x-ua-compatible:
|
86
|
+
- IE=Edge
|
87
|
+
etag:
|
88
|
+
- "\"31910d9b30fecc5e62f25a1ce00278e0\""
|
89
|
+
connection:
|
90
|
+
- close
|
91
|
+
content-type:
|
92
|
+
- application/xml; charset=utf-8
|
93
|
+
x-runtime:
|
94
|
+
- "20"
|
95
|
+
date:
|
96
|
+
- Thu, 14 Oct 2010 06:22:19 GMT
|
97
|
+
server:
|
98
|
+
- nginx/0.7.65
|
99
|
+
content-length:
|
100
|
+
- "1150"
|
101
|
+
set-cookie:
|
102
|
+
- _recurly_session=8100785bbf9913a43dc7646ceea2cab0; domain=.recurly.com; path=/; Secure; HttpOnly
|
103
|
+
cache-control:
|
104
|
+
- private, max-age=0, must-revalidate
|
105
|
+
body: |
|
106
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
107
|
+
<plan>
|
108
|
+
<plan_code>paid</plan_code>
|
109
|
+
<name>Paid</name>
|
110
|
+
<description></description>
|
111
|
+
<success_url></success_url>
|
112
|
+
<cancel_url></cancel_url>
|
113
|
+
<created_at type="datetime">2010-09-19T00:56:05Z</created_at>
|
114
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
115
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
116
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
117
|
+
<plan_interval_unit>months</plan_interval_unit>
|
118
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
119
|
+
<trial_interval_unit>months</trial_interval_unit>
|
120
|
+
<latest_version depreciated="true">
|
121
|
+
<version type="integer">1</version>
|
122
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
123
|
+
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
124
|
+
<plan_interval_length type="integer">1</plan_interval_length>
|
125
|
+
<plan_interval_unit>months</plan_interval_unit>
|
126
|
+
<trial_interval_length type="integer">0</trial_interval_length>
|
127
|
+
<trial_interval_unit>months</trial_interval_unit>
|
128
|
+
<created_at type="datetime">2010-09-19T00:56:05Z</created_at>
|
129
|
+
</latest_version>
|
130
|
+
</plan>
|
131
|
+
|
132
|
+
http_version: "1.1"
|
133
|
+
- !ruby/struct:VCR::HTTPInteraction
|
134
|
+
request: !ruby/struct:VCR::Request
|
135
|
+
method: :post
|
136
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037325/subscription.xml
|
137
|
+
body: |
|
138
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
139
|
+
<subscription>
|
140
|
+
<quantity type="integer">1</quantity>
|
141
|
+
<plan-code>paid</plan-code>
|
142
|
+
<account>
|
143
|
+
<created-at type="datetime">2010-10-14T06:22:18Z</created-at>
|
144
|
+
<hosted-login-token>20295d096965410eaeac53f106dcd992</hosted-login-token>
|
145
|
+
<account-code>subscription-change1-1287037325</account-code>
|
146
|
+
<company-name>Recurly Ruby Gem</company-name>
|
147
|
+
<closed type="boolean">false</closed>
|
148
|
+
<username type="yaml" nil="true"></username>
|
149
|
+
<id>subscription-change1-1287037325</id>
|
150
|
+
<last-name>Test</last-name>
|
151
|
+
<billing-info>
|
152
|
+
<city>San Francisco</city>
|
153
|
+
<address1>123 Test St</address1>
|
154
|
+
<zip>94115</zip>
|
155
|
+
<country>US</country>
|
156
|
+
<credit-card>
|
157
|
+
<number>1</number>
|
158
|
+
<month type="integer">10</month>
|
159
|
+
<year type="integer">2011</year>
|
160
|
+
<verification-value>123</verification-value>
|
161
|
+
</credit-card>
|
162
|
+
<last-name>Test</last-name>
|
163
|
+
<first-name>Verena</first-name>
|
164
|
+
<state>CA</state>
|
165
|
+
</billing-info>
|
166
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
167
|
+
<state>active</state>
|
168
|
+
<first-name>Verena</first-name>
|
169
|
+
<email>verena@test.com</email>
|
170
|
+
</account>
|
171
|
+
</subscription>
|
172
|
+
|
173
|
+
headers:
|
174
|
+
accept:
|
175
|
+
- "*/*"
|
176
|
+
connection:
|
177
|
+
- close
|
178
|
+
content-type:
|
179
|
+
- application/xml
|
180
|
+
authorization:
|
181
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
182
|
+
response: !ruby/struct:VCR::Response
|
183
|
+
status: !ruby/struct:VCR::ResponseStatus
|
184
|
+
code: 201
|
185
|
+
message: Created
|
186
|
+
headers:
|
187
|
+
connection:
|
188
|
+
- close
|
189
|
+
content-type:
|
190
|
+
- application/xml; charset=utf-8
|
191
|
+
x-runtime:
|
192
|
+
- "589"
|
193
|
+
date:
|
194
|
+
- Thu, 14 Oct 2010 06:22:20 GMT
|
195
|
+
server:
|
196
|
+
- nginx/0.7.65
|
197
|
+
content-length:
|
198
|
+
- "872"
|
199
|
+
set-cookie:
|
200
|
+
- _recurly_session=1ba15022f8e0a97a5bfc81b1eeefb461; domain=.recurly.com; path=/; Secure; HttpOnly
|
201
|
+
cache-control:
|
202
|
+
- no-cache
|
203
|
+
body: |
|
204
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
205
|
+
<subscription>
|
206
|
+
<id>subscription-change1-1287037325</id>
|
207
|
+
<account_code>subscription-change1-1287037325</account_code>
|
208
|
+
<plan>
|
209
|
+
<plan_code>paid</plan_code>
|
210
|
+
<name>Paid</name>
|
211
|
+
</plan>
|
212
|
+
<state>active</state>
|
213
|
+
<quantity type="integer">1</quantity>
|
214
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
+
<activated_at type="datetime">2010-10-14T06:22:19Z</activated_at>
|
216
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
+
<current_period_started_at type="datetime">2010-10-14T06:22:19Z</current_period_started_at>
|
219
|
+
<current_period_ends_at type="datetime">2010-11-14T06:22:19Z</current_period_ends_at>
|
220
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
222
|
+
</subscription>
|
223
|
+
|
224
|
+
http_version: "1.1"
|
225
|
+
- !ruby/struct:VCR::HTTPInteraction
|
226
|
+
request: !ruby/struct:VCR::Request
|
227
|
+
method: :get
|
228
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037325/subscription.xml
|
229
|
+
body:
|
230
|
+
headers:
|
231
|
+
accept:
|
232
|
+
- application/xml
|
233
|
+
connection:
|
234
|
+
- close
|
235
|
+
authorization:
|
236
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
237
|
+
response: !ruby/struct:VCR::Response
|
238
|
+
status: !ruby/struct:VCR::ResponseStatus
|
239
|
+
code: 200
|
240
|
+
message: OK
|
241
|
+
headers:
|
242
|
+
x-ua-compatible:
|
243
|
+
- IE=Edge
|
244
|
+
etag:
|
245
|
+
- "\"6e62275de96343e00461fa246e0d6988\""
|
246
|
+
connection:
|
247
|
+
- close
|
248
|
+
content-type:
|
249
|
+
- application/xml; charset=utf-8
|
250
|
+
x-runtime:
|
251
|
+
- "18"
|
252
|
+
date:
|
253
|
+
- Thu, 14 Oct 2010 06:22:21 GMT
|
254
|
+
server:
|
255
|
+
- nginx/0.7.65
|
256
|
+
content-length:
|
257
|
+
- "872"
|
258
|
+
set-cookie:
|
259
|
+
- _recurly_session=673af3df3f0dea23878873f6d37c36b0; domain=.recurly.com; path=/; Secure; HttpOnly
|
260
|
+
cache-control:
|
261
|
+
- private, max-age=0, must-revalidate
|
262
|
+
body: |
|
263
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
264
|
+
<subscription>
|
265
|
+
<id>subscription-change1-1287037325</id>
|
266
|
+
<account_code>subscription-change1-1287037325</account_code>
|
267
|
+
<plan>
|
268
|
+
<plan_code>paid</plan_code>
|
269
|
+
<name>Paid</name>
|
270
|
+
</plan>
|
271
|
+
<state>active</state>
|
272
|
+
<quantity type="integer">1</quantity>
|
273
|
+
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
+
<activated_at type="datetime">2010-10-14T06:22:19Z</activated_at>
|
275
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
+
<current_period_started_at type="datetime">2010-10-14T06:22:19Z</current_period_started_at>
|
278
|
+
<current_period_ends_at type="datetime">2010-11-14T06:22:19Z</current_period_ends_at>
|
279
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
281
|
+
</subscription>
|
282
|
+
|
283
|
+
http_version: "1.1"
|
284
|
+
- !ruby/struct:VCR::HTTPInteraction
|
285
|
+
request: !ruby/struct:VCR::Request
|
286
|
+
method: :put
|
287
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037325/subscription.xml
|
288
|
+
body: |
|
289
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
290
|
+
<subscription>
|
291
|
+
<quantity type="integer">2</quantity>
|
292
|
+
<timeframe>now</timeframe>
|
293
|
+
</subscription>
|
294
|
+
|
295
|
+
headers:
|
296
|
+
accept:
|
297
|
+
- "*/*"
|
298
|
+
connection:
|
299
|
+
- close
|
300
|
+
content-type:
|
301
|
+
- application/xml
|
302
|
+
authorization:
|
303
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
304
|
+
response: !ruby/struct:VCR::Response
|
305
|
+
status: !ruby/struct:VCR::ResponseStatus
|
306
|
+
code: 200
|
307
|
+
message: OK
|
308
|
+
headers:
|
309
|
+
x-ua-compatible:
|
310
|
+
- IE=Edge
|
311
|
+
etag:
|
312
|
+
- "\"1541e4b890c60ee599518a7a29f5f37c\""
|
313
|
+
connection:
|
314
|
+
- close
|
315
|
+
content-type:
|
316
|
+
- application/xml; charset=utf-8
|
317
|
+
x-runtime:
|
318
|
+
- "603"
|
319
|
+
date:
|
320
|
+
- Thu, 14 Oct 2010 06:22:22 GMT
|
321
|
+
server:
|
322
|
+
- nginx/0.7.65
|
323
|
+
content-length:
|
324
|
+
- "872"
|
325
|
+
set-cookie:
|
326
|
+
- _recurly_session=102dd19fb898c62e12ca29a0ac0b69a4; domain=.recurly.com; path=/; Secure; HttpOnly
|
327
|
+
cache-control:
|
328
|
+
- private, max-age=0, must-revalidate
|
329
|
+
body: |
|
330
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
331
|
+
<subscription>
|
332
|
+
<id>subscription-change1-1287037325</id>
|
333
|
+
<account_code>subscription-change1-1287037325</account_code>
|
334
|
+
<plan>
|
335
|
+
<plan_code>paid</plan_code>
|
336
|
+
<name>Paid</name>
|
337
|
+
</plan>
|
338
|
+
<state>active</state>
|
339
|
+
<quantity type="integer">2</quantity>
|
340
|
+
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
341
|
+
<activated_at type="datetime">2010-10-14T06:22:21Z</activated_at>
|
342
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
343
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
344
|
+
<current_period_started_at type="datetime">2010-10-14T06:22:19Z</current_period_started_at>
|
345
|
+
<current_period_ends_at type="datetime">2010-11-14T06:22:19Z</current_period_ends_at>
|
346
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
347
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
348
|
+
</subscription>
|
349
|
+
|
350
|
+
http_version: "1.1"
|
351
|
+
- !ruby/struct:VCR::HTTPInteraction
|
352
|
+
request: !ruby/struct:VCR::Request
|
353
|
+
method: :get
|
354
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/subscription-change1-1287037325/subscription.xml
|
355
|
+
body:
|
356
|
+
headers:
|
357
|
+
accept:
|
358
|
+
- application/xml
|
359
|
+
connection:
|
360
|
+
- close
|
361
|
+
authorization:
|
362
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
363
|
+
response: !ruby/struct:VCR::Response
|
364
|
+
status: !ruby/struct:VCR::ResponseStatus
|
365
|
+
code: 200
|
366
|
+
message: OK
|
367
|
+
headers:
|
368
|
+
x-ua-compatible:
|
369
|
+
- IE=Edge
|
370
|
+
etag:
|
371
|
+
- "\"1541e4b890c60ee599518a7a29f5f37c\""
|
372
|
+
connection:
|
373
|
+
- close
|
374
|
+
content-type:
|
375
|
+
- application/xml; charset=utf-8
|
376
|
+
x-runtime:
|
377
|
+
- "26"
|
378
|
+
date:
|
379
|
+
- Thu, 14 Oct 2010 06:22:23 GMT
|
380
|
+
server:
|
381
|
+
- nginx/0.7.65
|
382
|
+
content-length:
|
383
|
+
- "872"
|
384
|
+
set-cookie:
|
385
|
+
- _recurly_session=49e7029f206f50d7d02777c67411b66a; domain=.recurly.com; path=/; Secure; HttpOnly
|
386
|
+
cache-control:
|
387
|
+
- private, max-age=0, must-revalidate
|
388
|
+
body: |
|
389
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
390
|
+
<subscription>
|
391
|
+
<id>subscription-change1-1287037325</id>
|
392
|
+
<account_code>subscription-change1-1287037325</account_code>
|
393
|
+
<plan>
|
394
|
+
<plan_code>paid</plan_code>
|
395
|
+
<name>Paid</name>
|
396
|
+
</plan>
|
397
|
+
<state>active</state>
|
398
|
+
<quantity type="integer">2</quantity>
|
399
|
+
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
400
|
+
<activated_at type="datetime">2010-10-14T06:22:21Z</activated_at>
|
401
|
+
<canceled_at nil="true" type="datetime"></canceled_at>
|
402
|
+
<expires_at nil="true" type="datetime"></expires_at>
|
403
|
+
<current_period_started_at type="datetime">2010-10-14T06:22:19Z</current_period_started_at>
|
404
|
+
<current_period_ends_at type="datetime">2010-11-14T06:22:19Z</current_period_ends_at>
|
405
|
+
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
406
|
+
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
407
|
+
</subscription>
|
408
|
+
|
409
|
+
http_version: "1.1"
|