recurly 0.3.3 → 0.3.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/README.md +15 -11
- data/lib/patches/active_resource/connection.rb +10 -0
- data/lib/recurly.rb +35 -9
- data/lib/recurly/account.rb +22 -1
- data/lib/recurly/account_base.rb +35 -0
- data/lib/recurly/base.rb +26 -39
- data/lib/recurly/billing_info.rb +40 -1
- data/lib/recurly/charge.rb +12 -1
- data/lib/recurly/coupon.rb +8 -0
- data/lib/recurly/credit.rb +12 -1
- data/lib/recurly/exceptions.rb +19 -0
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/plan.rb +13 -1
- data/lib/recurly/rails3/recurly.rake +5 -3
- data/lib/recurly/subscription.rb +21 -3
- data/lib/recurly/transaction.rb +29 -1
- data/lib/recurly/transparent.rb +140 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +12 -0
- data/spec/config/test1.yml +3 -1
- data/spec/config/test2.yml +4 -2
- data/spec/integration/credit_spec.rb +6 -6
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/factory.rb +5 -3
- data/spec/unit/account_spec.rb +19 -0
- data/spec/unit/billing_info_spec.rb +38 -0
- data/spec/unit/charge_spec.rb +18 -0
- data/spec/unit/config_spec.rb +10 -6
- data/spec/unit/coupon_spec.rb +13 -0
- data/spec/unit/credit_spec.rb +18 -0
- data/spec/unit/plan_spec.rb +18 -0
- data/spec/unit/subscription_spec.rb +25 -0
- data/spec/unit/transaction_spec.rb +32 -0
- data/spec/unit/transparent_spec.rb +114 -0
- data/spec/vcr/account/accept-language-account/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/close/{1296674173.yml → 1297746103.yml} +31 -28
- data/spec/vcr/account/create-blank/{1296674173.yml → 1297746103.yml} +9 -5
- data/spec/vcr/account/create-duplicate/{1296674173.yml → 1297746103.yml} +22 -15
- data/spec/vcr/account/create-min/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/create/{1296674173.yml → 1297746103.yml} +16 -13
- data/spec/vcr/account/find/{1296674173.yml → 1297746103.yml} +29 -26
- data/spec/vcr/account/list/1297746103.yml +1579 -0
- data/spec/vcr/account/update/{1296674173.yml → 1297746103.yml} +54 -47
- data/spec/vcr/billing/create/{1296690812.yml → 1298594128.yml} +37 -34
- data/spec/vcr/billing/destroy/{1296690812.yml → 1298594128.yml} +46 -43
- data/spec/vcr/billing/find/{1296690812.yml → 1298594128.yml} +47 -44
- data/spec/vcr/billing/update/{1296690812.yml → 1298594128.yml} +50 -47
- data/spec/vcr/charge/create/{1296674173.yml → 1297746103.yml} +48 -45
- data/spec/vcr/charge/delete-uninvoiced/{1296674173.yml → 1297746103.yml} +49 -46
- data/spec/vcr/charge/list-all/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/list-invoiced/{1296674173.yml → 1297746103.yml} +92 -89
- data/spec/vcr/charge/list-pending/{1296674173.yml → 1297746103.yml} +61 -58
- data/spec/vcr/charge/lookup/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/coupon/create/{1296774903.yml → 1299714521.yml} +35 -32
- data/spec/vcr/coupon/destroy/{1296688818.yml → 1299714521.yml} +34 -31
- data/spec/vcr/{coupon/create/1296688818.yml → credit/create/1299714599.yml} +53 -53
- data/spec/vcr/credit/delete/1299714599.yml +262 -0
- data/spec/vcr/credit/list/1299714599.yml +319 -0
- data/spec/vcr/credit/lookup/1299714599.yml +183 -0
- data/spec/vcr/invoice/create-no-charges/{1296674173.yml → 1297746103.yml} +34 -31
- data/spec/vcr/invoice/create/{1296674173.yml → 1297746103.yml} +63 -60
- data/spec/vcr/invoice/list/{1296674173.yml → 1297746103.yml} +87 -84
- data/spec/vcr/invoice/lookup/{1296674173.yml → 1297746103.yml} +64 -61
- data/spec/vcr/plan/all.yml +30 -30
- data/spec/vcr/plan/find.yml +25 -25
- data/spec/vcr/plan/update.yml +16 -15
- data/spec/vcr/subscription/addons/add/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/create/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/addons/remove/{1296674173.yml → 1297746103.yml} +44 -40
- data/spec/vcr/subscription/cancel-with-code/{1296674173.yml → 1297746103.yml} +99 -95
- data/spec/vcr/subscription/cancel/{1296674173.yml → 1297746103.yml} +86 -82
- data/spec/vcr/subscription/change1/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/change2/{1296674173.yml → 1297746103.yml} +82 -78
- data/spec/vcr/subscription/create/{1296674173.yml → 1297746103.yml} +49 -45
- data/spec/vcr/subscription/find/{1296674173.yml → 1297746103.yml} +60 -56
- data/spec/vcr/subscription/reactivate/{1296674173.yml → 1297746103.yml} +93 -89
- data/spec/vcr/subscription/refund-full/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-none/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/subscription/refund-partial/{1296674173.yml → 1297746103.yml} +77 -73
- data/spec/vcr/transaction/all/{1296674173.yml → 1297746103.yml} +107 -107
- data/spec/vcr/transaction/create-no-account/{1296674173.yml → 1297746103.yml} +14 -13
- data/spec/vcr/transaction/create-with-account/{1296674173.yml → 1297746103.yml} +46 -58
- data/spec/vcr/transaction/list-filled/1297746103.yml +213 -0
- data/spec/vcr/transaction/list-initial/{1296674173.yml → 1297746103.yml} +38 -35
- data/spec/vcr/transaction/lookup/1297746103.yml +213 -0
- data/spec/vcr/transaction/refund/1297746103.yml +213 -0
- data/spec/vcr/transaction/void/1297746103.yml +213 -0
- metadata +146 -139
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.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-
|
9
|
+
<account-code>subscription-cancel-1297746103</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>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/subscription-cancel-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "784"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:53:37 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=b5aab1c2f9ac092304d4290b8ecd6e8d; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=0e509fd5f0b8c27fec1f8c31fc3b944426df712608940e026ab53912b99c54f85725797e59990a064656cd414d9e57d8fb2f0276cb76c296430d91f343718010%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=ec7aee7e41baddbd704e6241d0110551; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>subscription-cancel-
|
57
|
-
<account_code>subscription-cancel-
|
59
|
+
<id>subscription-cancel-1297746103</id>
|
60
|
+
<account_code>subscription-cancel-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>456bfc125d2545af815dcd391b3ef2ce</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:53:36Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,11 +74,11 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :get
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
|
75
78
|
body:
|
76
79
|
headers:
|
77
80
|
authorization:
|
78
|
-
- Basic
|
81
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
82
|
accept:
|
80
83
|
- application/xml
|
81
84
|
accept-encoding:
|
@@ -90,23 +93,23 @@
|
|
90
93
|
message: "OK "
|
91
94
|
headers:
|
92
95
|
x-runtime:
|
93
|
-
- "
|
96
|
+
- "231"
|
94
97
|
content-type:
|
95
98
|
- application/xml; charset=utf-8
|
96
99
|
etag:
|
97
|
-
- "\"
|
100
|
+
- "\"dc04fba13f15d49d04ca6692abb21ff9\""
|
98
101
|
cache-control:
|
99
102
|
- private, max-age=0, must-revalidate
|
100
103
|
content-length:
|
101
|
-
- "
|
104
|
+
- "1146"
|
102
105
|
server:
|
103
106
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
107
|
date:
|
105
|
-
-
|
108
|
+
- Fri, 11 Mar 2011 18:53:39 GMT
|
106
109
|
connection:
|
107
110
|
- close
|
108
111
|
set-cookie:
|
109
|
-
- _recurly_session=
|
112
|
+
- _recurly_session=492f1c08c06f88b8d665c404d4184db8; domain=.recurly.local; path=/; HttpOnly
|
110
113
|
body: |
|
111
114
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
115
|
<plan>
|
@@ -119,7 +122,7 @@
|
|
119
122
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
120
123
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
121
124
|
<plan_interval_length type="integer">1</plan_interval_length>
|
122
|
-
<plan_interval_unit>
|
125
|
+
<plan_interval_unit>days</plan_interval_unit>
|
123
126
|
<trial_interval_length type="integer">0</trial_interval_length>
|
124
127
|
<trial_interval_unit>months</trial_interval_unit>
|
125
128
|
<latest_version depreciated="true">
|
@@ -127,10 +130,10 @@
|
|
127
130
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
131
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
132
|
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
-
<plan_interval_unit>
|
133
|
+
<plan_interval_unit>days</plan_interval_unit>
|
131
134
|
<trial_interval_length type="integer">0</trial_interval_length>
|
132
135
|
<trial_interval_unit>months</trial_interval_unit>
|
133
|
-
<created_at type="datetime">2011-02-
|
136
|
+
<created_at type="datetime">2011-02-21T01:06:56Z</created_at>
|
134
137
|
</latest_version>
|
135
138
|
</plan>
|
136
139
|
|
@@ -138,27 +141,21 @@
|
|
138
141
|
- !ruby/struct:VCR::HTTPInteraction
|
139
142
|
request: !ruby/struct:VCR::Request
|
140
143
|
method: :post
|
141
|
-
uri: http://
|
144
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-1297746103/subscription.xml
|
142
145
|
body: |
|
143
146
|
<?xml version="1.0" encoding="UTF-8"?>
|
144
147
|
<subscription>
|
145
148
|
<plan-code>paid</plan-code>
|
146
149
|
<quantity type="integer">1</quantity>
|
147
150
|
<account>
|
148
|
-
<account-code>subscription-cancel-
|
151
|
+
<account-code>subscription-cancel-1297746103</account-code>
|
149
152
|
<first-name>Verena</first-name>
|
150
153
|
<last-name>Test</last-name>
|
151
154
|
<email>verena@test.com</email>
|
152
155
|
<company-name>Recurly Ruby Gem</company-name>
|
153
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
154
|
-
<id>subscription-cancel-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>94a92eac78b048d4a1b57166773baf21</hosted-login-token>
|
159
|
-
<created-at type="datetime">2011-02-03T22:22:39Z</created-at>
|
160
|
-
<state>active</state>
|
161
156
|
<billing-info>
|
157
|
+
<first-name>Verena</first-name>
|
158
|
+
<last-name>Test</last-name>
|
162
159
|
<address1>123 Test St</address1>
|
163
160
|
<city>San Francisco</city>
|
164
161
|
<state>CA</state>
|
@@ -167,18 +164,25 @@
|
|
167
164
|
<credit-card>
|
168
165
|
<number>4111111111111111</number>
|
169
166
|
<year type="integer">2012</year>
|
170
|
-
<month type="integer">
|
167
|
+
<month type="integer">3</month>
|
171
168
|
<verification-value>123</verification-value>
|
172
169
|
</credit-card>
|
173
|
-
<first-name>Verena</first-name>
|
174
|
-
<last-name>Test</last-name>
|
175
170
|
</billing-info>
|
171
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
172
|
+
<id>subscription-cancel-1297746103</id>
|
173
|
+
<username type="yaml" nil="true"></username>
|
174
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
175
|
+
<closed type="boolean">false</closed>
|
176
|
+
<hosted-login-token>456bfc125d2545af815dcd391b3ef2ce</hosted-login-token>
|
177
|
+
<created-at type="datetime">2011-03-11T18:53:36Z</created-at>
|
178
|
+
<state>active</state>
|
176
179
|
</account>
|
180
|
+
<addons type="array"/>
|
177
181
|
</subscription>
|
178
182
|
|
179
183
|
headers:
|
180
184
|
authorization:
|
181
|
-
- Basic
|
185
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
182
186
|
content-type:
|
183
187
|
- application/xml
|
184
188
|
accept:
|
@@ -195,7 +199,7 @@
|
|
195
199
|
cache-control:
|
196
200
|
- no-cache
|
197
201
|
x-runtime:
|
198
|
-
- "
|
202
|
+
- "5622"
|
199
203
|
content-type:
|
200
204
|
- application/xml; charset=utf-8
|
201
205
|
content-length:
|
@@ -203,16 +207,16 @@
|
|
203
207
|
server:
|
204
208
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
205
209
|
date:
|
206
|
-
-
|
210
|
+
- Fri, 11 Mar 2011 18:53:46 GMT
|
207
211
|
connection:
|
208
212
|
- close
|
209
213
|
set-cookie:
|
210
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=dd9dc762a45f69f358c59b68273dd613; domain=.recurly.local; path=/; HttpOnly
|
211
215
|
body: |
|
212
216
|
<?xml version="1.0" encoding="UTF-8"?>
|
213
217
|
<subscription>
|
214
|
-
<id>subscription-cancel-
|
215
|
-
<account_code>subscription-cancel-
|
218
|
+
<id>subscription-cancel-1297746103</id>
|
219
|
+
<account_code>subscription-cancel-1297746103</account_code>
|
216
220
|
<plan>
|
217
221
|
<plan_code>paid</plan_code>
|
218
222
|
<name>Paid</name>
|
@@ -220,11 +224,11 @@
|
|
220
224
|
<state>active</state>
|
221
225
|
<quantity type="integer">1</quantity>
|
222
226
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
223
|
-
<activated_at type="datetime">2011-
|
227
|
+
<activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
|
224
228
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
225
229
|
<expires_at nil="true" type="datetime"></expires_at>
|
226
|
-
<current_period_started_at type="datetime">2011-
|
227
|
-
<current_period_ends_at type="datetime">2011-03-
|
230
|
+
<current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
|
231
|
+
<current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
|
228
232
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
229
233
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
230
234
|
<add_ons type="array">
|
@@ -235,11 +239,11 @@
|
|
235
239
|
- !ruby/struct:VCR::HTTPInteraction
|
236
240
|
request: !ruby/struct:VCR::Request
|
237
241
|
method: :get
|
238
|
-
uri: http://
|
242
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-1297746103/subscription.xml
|
239
243
|
body:
|
240
244
|
headers:
|
241
245
|
authorization:
|
242
|
-
- Basic
|
246
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
243
247
|
accept:
|
244
248
|
- application/xml
|
245
249
|
accept-encoding:
|
@@ -254,11 +258,11 @@
|
|
254
258
|
message: "OK "
|
255
259
|
headers:
|
256
260
|
x-runtime:
|
257
|
-
- "
|
261
|
+
- "265"
|
258
262
|
content-type:
|
259
263
|
- application/xml; charset=utf-8
|
260
264
|
etag:
|
261
|
-
- "\"
|
265
|
+
- "\"216304dc6001c7a6b08f4acc233dd8e2\""
|
262
266
|
cache-control:
|
263
267
|
- private, max-age=0, must-revalidate
|
264
268
|
content-length:
|
@@ -266,16 +270,16 @@
|
|
266
270
|
server:
|
267
271
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
268
272
|
date:
|
269
|
-
-
|
273
|
+
- Fri, 11 Mar 2011 18:53:49 GMT
|
270
274
|
connection:
|
271
275
|
- close
|
272
276
|
set-cookie:
|
273
|
-
- _recurly_session=
|
277
|
+
- _recurly_session=ddbdd2230a25eeba7c65a40dd8070c64; domain=.recurly.local; path=/; HttpOnly
|
274
278
|
body: |
|
275
279
|
<?xml version="1.0" encoding="UTF-8"?>
|
276
280
|
<subscription>
|
277
|
-
<id>subscription-cancel-
|
278
|
-
<account_code>subscription-cancel-
|
281
|
+
<id>subscription-cancel-1297746103</id>
|
282
|
+
<account_code>subscription-cancel-1297746103</account_code>
|
279
283
|
<plan>
|
280
284
|
<plan_code>paid</plan_code>
|
281
285
|
<name>Paid</name>
|
@@ -283,11 +287,11 @@
|
|
283
287
|
<state>active</state>
|
284
288
|
<quantity type="integer">1</quantity>
|
285
289
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
286
|
-
<activated_at type="datetime">2011-
|
290
|
+
<activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
|
287
291
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
288
292
|
<expires_at nil="true" type="datetime"></expires_at>
|
289
|
-
<current_period_started_at type="datetime">2011-
|
290
|
-
<current_period_ends_at type="datetime">2011-03-
|
293
|
+
<current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
|
291
295
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
292
296
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
293
297
|
<add_ons type="array">
|
@@ -298,11 +302,11 @@
|
|
298
302
|
- !ruby/struct:VCR::HTTPInteraction
|
299
303
|
request: !ruby/struct:VCR::Request
|
300
304
|
method: :delete
|
301
|
-
uri: http://
|
305
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-1297746103/subscription.xml
|
302
306
|
body:
|
303
307
|
headers:
|
304
308
|
authorization:
|
305
|
-
- Basic
|
309
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
306
310
|
accept:
|
307
311
|
- application/xml
|
308
312
|
user-agent:
|
@@ -315,11 +319,11 @@
|
|
315
319
|
message: "OK "
|
316
320
|
headers:
|
317
321
|
x-runtime:
|
318
|
-
- "
|
322
|
+
- "2869"
|
319
323
|
content-type:
|
320
324
|
- application/xml; charset=utf-8
|
321
325
|
etag:
|
322
|
-
- "\"
|
326
|
+
- "\"ba8e7e48e0613bf8197b5064dd8c2630\""
|
323
327
|
cache-control:
|
324
328
|
- private, max-age=0, must-revalidate
|
325
329
|
content-length:
|
@@ -327,16 +331,16 @@
|
|
327
331
|
server:
|
328
332
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
329
333
|
date:
|
330
|
-
-
|
334
|
+
- Fri, 11 Mar 2011 18:53:54 GMT
|
331
335
|
connection:
|
332
336
|
- close
|
333
337
|
set-cookie:
|
334
|
-
- _recurly_session=
|
338
|
+
- _recurly_session=d57f2c57835333bca6c3ef1c4e35a883; domain=.recurly.local; path=/; HttpOnly
|
335
339
|
body: |
|
336
340
|
<?xml version="1.0" encoding="UTF-8"?>
|
337
341
|
<subscription>
|
338
|
-
<id>subscription-cancel-
|
339
|
-
<account_code>subscription-cancel-
|
342
|
+
<id>subscription-cancel-1297746103</id>
|
343
|
+
<account_code>subscription-cancel-1297746103</account_code>
|
340
344
|
<plan>
|
341
345
|
<plan_code>paid</plan_code>
|
342
346
|
<name>Paid</name>
|
@@ -344,11 +348,11 @@
|
|
344
348
|
<state>canceled</state>
|
345
349
|
<quantity type="integer">1</quantity>
|
346
350
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
347
|
-
<activated_at type="datetime">2011-
|
348
|
-
<canceled_at type="datetime">2011-
|
349
|
-
<expires_at type="datetime">2011-03-
|
350
|
-
<current_period_started_at type="datetime">2011-
|
351
|
-
<current_period_ends_at type="datetime">2011-03-
|
351
|
+
<activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
|
352
|
+
<canceled_at type="datetime">2011-03-11T18:53:52Z</canceled_at>
|
353
|
+
<expires_at type="datetime">2011-03-12T18:53:41Z</expires_at>
|
354
|
+
<current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
|
355
|
+
<current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
|
352
356
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
353
357
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
354
358
|
<add_ons type="array">
|
@@ -359,11 +363,11 @@
|
|
359
363
|
- !ruby/struct:VCR::HTTPInteraction
|
360
364
|
request: !ruby/struct:VCR::Request
|
361
365
|
method: :get
|
362
|
-
uri: http://
|
366
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-cancel-1297746103/subscription.xml
|
363
367
|
body:
|
364
368
|
headers:
|
365
369
|
authorization:
|
366
|
-
- Basic
|
370
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
367
371
|
accept:
|
368
372
|
- application/xml
|
369
373
|
accept-encoding:
|
@@ -378,11 +382,11 @@
|
|
378
382
|
message: "OK "
|
379
383
|
headers:
|
380
384
|
x-runtime:
|
381
|
-
- "
|
385
|
+
- "416"
|
382
386
|
content-type:
|
383
387
|
- application/xml; charset=utf-8
|
384
388
|
etag:
|
385
|
-
- "\"
|
389
|
+
- "\"ba8e7e48e0613bf8197b5064dd8c2630\""
|
386
390
|
cache-control:
|
387
391
|
- private, max-age=0, must-revalidate
|
388
392
|
content-length:
|
@@ -390,16 +394,16 @@
|
|
390
394
|
server:
|
391
395
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
392
396
|
date:
|
393
|
-
-
|
397
|
+
- Fri, 11 Mar 2011 18:53:57 GMT
|
394
398
|
connection:
|
395
399
|
- close
|
396
400
|
set-cookie:
|
397
|
-
- _recurly_session=
|
401
|
+
- _recurly_session=c84911138195c2cd3fbb588734027abc; domain=.recurly.local; path=/; HttpOnly
|
398
402
|
body: |
|
399
403
|
<?xml version="1.0" encoding="UTF-8"?>
|
400
404
|
<subscription>
|
401
|
-
<id>subscription-cancel-
|
402
|
-
<account_code>subscription-cancel-
|
405
|
+
<id>subscription-cancel-1297746103</id>
|
406
|
+
<account_code>subscription-cancel-1297746103</account_code>
|
403
407
|
<plan>
|
404
408
|
<plan_code>paid</plan_code>
|
405
409
|
<name>Paid</name>
|
@@ -407,11 +411,11 @@
|
|
407
411
|
<state>canceled</state>
|
408
412
|
<quantity type="integer">1</quantity>
|
409
413
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
410
|
-
<activated_at type="datetime">2011-
|
411
|
-
<canceled_at type="datetime">2011-
|
412
|
-
<expires_at type="datetime">2011-03-
|
413
|
-
<current_period_started_at type="datetime">2011-
|
414
|
-
<current_period_ends_at type="datetime">2011-03-
|
414
|
+
<activated_at type="datetime">2011-03-11T18:53:41Z</activated_at>
|
415
|
+
<canceled_at type="datetime">2011-03-11T18:53:52Z</canceled_at>
|
416
|
+
<expires_at type="datetime">2011-03-12T18:53:41Z</expires_at>
|
417
|
+
<current_period_started_at type="datetime">2011-03-11T18:53:41Z</current_period_started_at>
|
418
|
+
<current_period_ends_at type="datetime">2011-03-12T18:53:41Z</current_period_ends_at>
|
415
419
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
416
420
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
417
421
|
<add_ons type="array">
|
@@ -2,21 +2,25 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>subscription-change1-
|
9
|
+
<account-code>subscription-change1-1297746103</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>
|
14
18
|
<accept-language type="yaml" nil="true"></accept-language>
|
15
19
|
</account>
|
16
20
|
|
17
21
|
headers:
|
18
22
|
authorization:
|
19
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
20
24
|
content-type:
|
21
25
|
- application/xml
|
22
26
|
accept:
|
@@ -33,9 +37,9 @@
|
|
33
37
|
cache-control:
|
34
38
|
- no-cache
|
35
39
|
location:
|
36
|
-
- http://
|
40
|
+
- http://app.recurly.local:3000/accounts/subscription-change1-1297746103
|
37
41
|
x-runtime:
|
38
|
-
- "
|
42
|
+
- "651"
|
39
43
|
content-type:
|
40
44
|
- application/xml; charset=utf-8
|
41
45
|
content-length:
|
@@ -43,18 +47,17 @@
|
|
43
47
|
server:
|
44
48
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
49
|
date:
|
46
|
-
-
|
50
|
+
- Fri, 11 Mar 2011 18:52:18 GMT
|
47
51
|
connection:
|
48
52
|
- close
|
49
53
|
set-cookie:
|
50
|
-
- account_credentials=
|
51
|
-
-
|
52
|
-
- _recurly_session=55a44b3237f5de17060ae718020e95b1; domain=.recurly.local; path=/; HttpOnly
|
54
|
+
- account_credentials=c7d635f7d58d5264740fa684554afe40e5d9a3f7894c72ac193a160a03c4ee231a6445242bd4eac15616d7194b84a5ee2e2e0cc30eda3c17c6b5cd0177f702ae%3A%3A; domain=.recurly.local; path=/
|
55
|
+
- _recurly_session=1c6b07803bbf87b876cff842b985e3fa; domain=.recurly.local; path=/; HttpOnly
|
53
56
|
body: |
|
54
57
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
58
|
<account>
|
56
|
-
<id>subscription-change1-
|
57
|
-
<account_code>subscription-change1-
|
59
|
+
<id>subscription-change1-1297746103</id>
|
60
|
+
<account_code>subscription-change1-1297746103</account_code>
|
58
61
|
<username></username>
|
59
62
|
<email>verena@test.com</email>
|
60
63
|
<first_name>Verena</first_name>
|
@@ -62,8 +65,8 @@
|
|
62
65
|
<company_name>Recurly Ruby Gem</company_name>
|
63
66
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
67
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
68
|
+
<hosted_login_token>a0c60e64b8aa4563a44d98c29751d402</hosted_login_token>
|
69
|
+
<created_at type="datetime">2011-03-11T18:52:17Z</created_at>
|
67
70
|
<state>active</state>
|
68
71
|
</account>
|
69
72
|
|
@@ -71,11 +74,11 @@
|
|
71
74
|
- !ruby/struct:VCR::HTTPInteraction
|
72
75
|
request: !ruby/struct:VCR::Request
|
73
76
|
method: :get
|
74
|
-
uri: http://
|
77
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/company/plans/paid.xml
|
75
78
|
body:
|
76
79
|
headers:
|
77
80
|
authorization:
|
78
|
-
- Basic
|
81
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
79
82
|
accept:
|
80
83
|
- application/xml
|
81
84
|
accept-encoding:
|
@@ -90,23 +93,23 @@
|
|
90
93
|
message: "OK "
|
91
94
|
headers:
|
92
95
|
x-runtime:
|
93
|
-
- "
|
96
|
+
- "221"
|
94
97
|
content-type:
|
95
98
|
- application/xml; charset=utf-8
|
96
99
|
etag:
|
97
|
-
- "\"
|
100
|
+
- "\"dc04fba13f15d49d04ca6692abb21ff9\""
|
98
101
|
cache-control:
|
99
102
|
- private, max-age=0, must-revalidate
|
100
103
|
content-length:
|
101
|
-
- "
|
104
|
+
- "1146"
|
102
105
|
server:
|
103
106
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
104
107
|
date:
|
105
|
-
-
|
108
|
+
- Fri, 11 Mar 2011 18:52:20 GMT
|
106
109
|
connection:
|
107
110
|
- close
|
108
111
|
set-cookie:
|
109
|
-
- _recurly_session=
|
112
|
+
- _recurly_session=75272f31f1ecf8bbadc6e64b5922a95b; domain=.recurly.local; path=/; HttpOnly
|
110
113
|
body: |
|
111
114
|
<?xml version="1.0" encoding="UTF-8"?>
|
112
115
|
<plan>
|
@@ -119,7 +122,7 @@
|
|
119
122
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
120
123
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
121
124
|
<plan_interval_length type="integer">1</plan_interval_length>
|
122
|
-
<plan_interval_unit>
|
125
|
+
<plan_interval_unit>days</plan_interval_unit>
|
123
126
|
<trial_interval_length type="integer">0</trial_interval_length>
|
124
127
|
<trial_interval_unit>months</trial_interval_unit>
|
125
128
|
<latest_version depreciated="true">
|
@@ -127,10 +130,10 @@
|
|
127
130
|
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
128
131
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
129
132
|
<plan_interval_length type="integer">1</plan_interval_length>
|
130
|
-
<plan_interval_unit>
|
133
|
+
<plan_interval_unit>days</plan_interval_unit>
|
131
134
|
<trial_interval_length type="integer">0</trial_interval_length>
|
132
135
|
<trial_interval_unit>months</trial_interval_unit>
|
133
|
-
<created_at type="datetime">2011-02-
|
136
|
+
<created_at type="datetime">2011-02-21T01:06:56Z</created_at>
|
134
137
|
</latest_version>
|
135
138
|
</plan>
|
136
139
|
|
@@ -138,27 +141,21 @@
|
|
138
141
|
- !ruby/struct:VCR::HTTPInteraction
|
139
142
|
request: !ruby/struct:VCR::Request
|
140
143
|
method: :post
|
141
|
-
uri: http://
|
144
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-change1-1297746103/subscription.xml
|
142
145
|
body: |
|
143
146
|
<?xml version="1.0" encoding="UTF-8"?>
|
144
147
|
<subscription>
|
145
148
|
<plan-code>paid</plan-code>
|
146
149
|
<quantity type="integer">1</quantity>
|
147
150
|
<account>
|
148
|
-
<account-code>subscription-change1-
|
151
|
+
<account-code>subscription-change1-1297746103</account-code>
|
149
152
|
<first-name>Verena</first-name>
|
150
153
|
<last-name>Test</last-name>
|
151
154
|
<email>verena@test.com</email>
|
152
155
|
<company-name>Recurly Ruby Gem</company-name>
|
153
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
154
|
-
<id>subscription-change1-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>71c60168163547b494754f5fa1b9085d</hosted-login-token>
|
159
|
-
<created-at type="datetime">2011-02-03T22:21:33Z</created-at>
|
160
|
-
<state>active</state>
|
161
156
|
<billing-info>
|
157
|
+
<first-name>Verena</first-name>
|
158
|
+
<last-name>Test</last-name>
|
162
159
|
<address1>123 Test St</address1>
|
163
160
|
<city>San Francisco</city>
|
164
161
|
<state>CA</state>
|
@@ -167,18 +164,25 @@
|
|
167
164
|
<credit-card>
|
168
165
|
<number>4111111111111111</number>
|
169
166
|
<year type="integer">2012</year>
|
170
|
-
<month type="integer">
|
167
|
+
<month type="integer">3</month>
|
171
168
|
<verification-value>123</verification-value>
|
172
169
|
</credit-card>
|
173
|
-
<first-name>Verena</first-name>
|
174
|
-
<last-name>Test</last-name>
|
175
170
|
</billing-info>
|
171
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
172
|
+
<id>subscription-change1-1297746103</id>
|
173
|
+
<username type="yaml" nil="true"></username>
|
174
|
+
<balance-in-cents type="integer">0</balance-in-cents>
|
175
|
+
<closed type="boolean">false</closed>
|
176
|
+
<hosted-login-token>a0c60e64b8aa4563a44d98c29751d402</hosted-login-token>
|
177
|
+
<created-at type="datetime">2011-03-11T18:52:17Z</created-at>
|
178
|
+
<state>active</state>
|
176
179
|
</account>
|
180
|
+
<addons type="array"/>
|
177
181
|
</subscription>
|
178
182
|
|
179
183
|
headers:
|
180
184
|
authorization:
|
181
|
-
- Basic
|
185
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
182
186
|
content-type:
|
183
187
|
- application/xml
|
184
188
|
accept:
|
@@ -195,7 +199,7 @@
|
|
195
199
|
cache-control:
|
196
200
|
- no-cache
|
197
201
|
x-runtime:
|
198
|
-
- "
|
202
|
+
- "6244"
|
199
203
|
content-type:
|
200
204
|
- application/xml; charset=utf-8
|
201
205
|
content-length:
|
@@ -203,16 +207,16 @@
|
|
203
207
|
server:
|
204
208
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
205
209
|
date:
|
206
|
-
-
|
210
|
+
- Fri, 11 Mar 2011 18:52:28 GMT
|
207
211
|
connection:
|
208
212
|
- close
|
209
213
|
set-cookie:
|
210
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=f812f9fb7c2091300d7da37f38be91df; domain=.recurly.local; path=/; HttpOnly
|
211
215
|
body: |
|
212
216
|
<?xml version="1.0" encoding="UTF-8"?>
|
213
217
|
<subscription>
|
214
|
-
<id>subscription-change1-
|
215
|
-
<account_code>subscription-change1-
|
218
|
+
<id>subscription-change1-1297746103</id>
|
219
|
+
<account_code>subscription-change1-1297746103</account_code>
|
216
220
|
<plan>
|
217
221
|
<plan_code>paid</plan_code>
|
218
222
|
<name>Paid</name>
|
@@ -220,11 +224,11 @@
|
|
220
224
|
<state>active</state>
|
221
225
|
<quantity type="integer">1</quantity>
|
222
226
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
223
|
-
<activated_at type="datetime">2011-
|
227
|
+
<activated_at type="datetime">2011-03-11T18:52:23Z</activated_at>
|
224
228
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
225
229
|
<expires_at nil="true" type="datetime"></expires_at>
|
226
|
-
<current_period_started_at type="datetime">2011-
|
227
|
-
<current_period_ends_at type="datetime">2011-03-
|
230
|
+
<current_period_started_at type="datetime">2011-03-11T18:52:23Z</current_period_started_at>
|
231
|
+
<current_period_ends_at type="datetime">2011-03-12T18:52:23Z</current_period_ends_at>
|
228
232
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
229
233
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
230
234
|
<add_ons type="array">
|
@@ -235,11 +239,11 @@
|
|
235
239
|
- !ruby/struct:VCR::HTTPInteraction
|
236
240
|
request: !ruby/struct:VCR::Request
|
237
241
|
method: :get
|
238
|
-
uri: http://
|
242
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-change1-1297746103/subscription.xml
|
239
243
|
body:
|
240
244
|
headers:
|
241
245
|
authorization:
|
242
|
-
- Basic
|
246
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
243
247
|
accept:
|
244
248
|
- application/xml
|
245
249
|
accept-encoding:
|
@@ -254,11 +258,11 @@
|
|
254
258
|
message: "OK "
|
255
259
|
headers:
|
256
260
|
x-runtime:
|
257
|
-
- "
|
261
|
+
- "264"
|
258
262
|
content-type:
|
259
263
|
- application/xml; charset=utf-8
|
260
264
|
etag:
|
261
|
-
- "\"
|
265
|
+
- "\"2b50731ce085f7d37d0283d633612cf7\""
|
262
266
|
cache-control:
|
263
267
|
- private, max-age=0, must-revalidate
|
264
268
|
content-length:
|
@@ -266,16 +270,16 @@
|
|
266
270
|
server:
|
267
271
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
268
272
|
date:
|
269
|
-
-
|
273
|
+
- Fri, 11 Mar 2011 18:52:31 GMT
|
270
274
|
connection:
|
271
275
|
- close
|
272
276
|
set-cookie:
|
273
|
-
- _recurly_session=
|
277
|
+
- _recurly_session=349cfdeb186e2771da9ec47f27c73948; domain=.recurly.local; path=/; HttpOnly
|
274
278
|
body: |
|
275
279
|
<?xml version="1.0" encoding="UTF-8"?>
|
276
280
|
<subscription>
|
277
|
-
<id>subscription-change1-
|
278
|
-
<account_code>subscription-change1-
|
281
|
+
<id>subscription-change1-1297746103</id>
|
282
|
+
<account_code>subscription-change1-1297746103</account_code>
|
279
283
|
<plan>
|
280
284
|
<plan_code>paid</plan_code>
|
281
285
|
<name>Paid</name>
|
@@ -283,11 +287,11 @@
|
|
283
287
|
<state>active</state>
|
284
288
|
<quantity type="integer">1</quantity>
|
285
289
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
286
|
-
<activated_at type="datetime">2011-
|
290
|
+
<activated_at type="datetime">2011-03-11T18:52:23Z</activated_at>
|
287
291
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
288
292
|
<expires_at nil="true" type="datetime"></expires_at>
|
289
|
-
<current_period_started_at type="datetime">2011-
|
290
|
-
<current_period_ends_at type="datetime">2011-03-
|
293
|
+
<current_period_started_at type="datetime">2011-03-11T18:52:23Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-03-12T18:52:23Z</current_period_ends_at>
|
291
295
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
292
296
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
293
297
|
<add_ons type="array">
|
@@ -298,7 +302,7 @@
|
|
298
302
|
- !ruby/struct:VCR::HTTPInteraction
|
299
303
|
request: !ruby/struct:VCR::Request
|
300
304
|
method: :put
|
301
|
-
uri: http://
|
305
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-change1-1297746103/subscription.xml
|
302
306
|
body: |
|
303
307
|
<?xml version="1.0" encoding="UTF-8"?>
|
304
308
|
<subscription>
|
@@ -308,7 +312,7 @@
|
|
308
312
|
|
309
313
|
headers:
|
310
314
|
authorization:
|
311
|
-
- Basic
|
315
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
312
316
|
content-type:
|
313
317
|
- application/xml
|
314
318
|
accept:
|
@@ -323,11 +327,11 @@
|
|
323
327
|
message: "OK "
|
324
328
|
headers:
|
325
329
|
x-runtime:
|
326
|
-
- "
|
330
|
+
- "4049"
|
327
331
|
content-type:
|
328
332
|
- application/xml; charset=utf-8
|
329
333
|
etag:
|
330
|
-
- "\"
|
334
|
+
- "\"fb6d4d095cfac063255a8b4193b1429e\""
|
331
335
|
cache-control:
|
332
336
|
- private, max-age=0, must-revalidate
|
333
337
|
content-length:
|
@@ -335,16 +339,16 @@
|
|
335
339
|
server:
|
336
340
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
337
341
|
date:
|
338
|
-
-
|
342
|
+
- Fri, 11 Mar 2011 18:52:37 GMT
|
339
343
|
connection:
|
340
344
|
- close
|
341
345
|
set-cookie:
|
342
|
-
- _recurly_session=
|
346
|
+
- _recurly_session=17af10fdf57256d4460586f35829870a; domain=.recurly.local; path=/; HttpOnly
|
343
347
|
body: |
|
344
348
|
<?xml version="1.0" encoding="UTF-8"?>
|
345
349
|
<subscription>
|
346
|
-
<id>subscription-change1-
|
347
|
-
<account_code>subscription-change1-
|
350
|
+
<id>subscription-change1-1297746103</id>
|
351
|
+
<account_code>subscription-change1-1297746103</account_code>
|
348
352
|
<plan>
|
349
353
|
<plan_code>paid</plan_code>
|
350
354
|
<name>Paid</name>
|
@@ -352,11 +356,11 @@
|
|
352
356
|
<state>active</state>
|
353
357
|
<quantity type="integer">2</quantity>
|
354
358
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
355
|
-
<activated_at type="datetime">2011-
|
359
|
+
<activated_at type="datetime">2011-03-11T18:52:34Z</activated_at>
|
356
360
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
357
361
|
<expires_at nil="true" type="datetime"></expires_at>
|
358
|
-
<current_period_started_at type="datetime">2011-
|
359
|
-
<current_period_ends_at type="datetime">2011-03-
|
362
|
+
<current_period_started_at type="datetime">2011-03-11T18:52:23Z</current_period_started_at>
|
363
|
+
<current_period_ends_at type="datetime">2011-03-12T18:52:23Z</current_period_ends_at>
|
360
364
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
361
365
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
362
366
|
<add_ons type="array">
|
@@ -367,11 +371,11 @@
|
|
367
371
|
- !ruby/struct:VCR::HTTPInteraction
|
368
372
|
request: !ruby/struct:VCR::Request
|
369
373
|
method: :get
|
370
|
-
uri: http://
|
374
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/subscription-change1-1297746103/subscription.xml
|
371
375
|
body:
|
372
376
|
headers:
|
373
377
|
authorization:
|
374
|
-
- Basic
|
378
|
+
- Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
|
375
379
|
accept:
|
376
380
|
- application/xml
|
377
381
|
accept-encoding:
|
@@ -386,11 +390,11 @@
|
|
386
390
|
message: "OK "
|
387
391
|
headers:
|
388
392
|
x-runtime:
|
389
|
-
- "
|
393
|
+
- "284"
|
390
394
|
content-type:
|
391
395
|
- application/xml; charset=utf-8
|
392
396
|
etag:
|
393
|
-
- "\"
|
397
|
+
- "\"fb6d4d095cfac063255a8b4193b1429e\""
|
394
398
|
cache-control:
|
395
399
|
- private, max-age=0, must-revalidate
|
396
400
|
content-length:
|
@@ -398,16 +402,16 @@
|
|
398
402
|
server:
|
399
403
|
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
400
404
|
date:
|
401
|
-
-
|
405
|
+
- Fri, 11 Mar 2011 18:52:40 GMT
|
402
406
|
connection:
|
403
407
|
- close
|
404
408
|
set-cookie:
|
405
|
-
- _recurly_session=
|
409
|
+
- _recurly_session=d9335914aaafd09ce7d32e3555d79fab; domain=.recurly.local; path=/; HttpOnly
|
406
410
|
body: |
|
407
411
|
<?xml version="1.0" encoding="UTF-8"?>
|
408
412
|
<subscription>
|
409
|
-
<id>subscription-change1-
|
410
|
-
<account_code>subscription-change1-
|
413
|
+
<id>subscription-change1-1297746103</id>
|
414
|
+
<account_code>subscription-change1-1297746103</account_code>
|
411
415
|
<plan>
|
412
416
|
<plan_code>paid</plan_code>
|
413
417
|
<name>Paid</name>
|
@@ -415,11 +419,11 @@
|
|
415
419
|
<state>active</state>
|
416
420
|
<quantity type="integer">2</quantity>
|
417
421
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
418
|
-
<activated_at type="datetime">2011-
|
422
|
+
<activated_at type="datetime">2011-03-11T18:52:34Z</activated_at>
|
419
423
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
420
424
|
<expires_at nil="true" type="datetime"></expires_at>
|
421
|
-
<current_period_started_at type="datetime">2011-
|
422
|
-
<current_period_ends_at type="datetime">2011-03-
|
425
|
+
<current_period_started_at type="datetime">2011-03-11T18:52:23Z</current_period_started_at>
|
426
|
+
<current_period_ends_at type="datetime">2011-03-12T18:52:23Z</current_period_ends_at>
|
423
427
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
424
428
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
425
429
|
<add_ons type="array">
|