recurly 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly.rb +1 -0
- data/lib/recurly/base.rb +92 -12
- data/lib/recurly/formats/xml_with_errors.rb +132 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/transaction_spec.rb +4 -3
- data/spec/vcr/account/accept-language-account/1297746103.yml +6 -6
- data/spec/vcr/account/close/1297746103.yml +17 -17
- data/spec/vcr/account/create-blank/1297746103.yml +4 -4
- data/spec/vcr/account/create-duplicate/1297746103.yml +10 -10
- data/spec/vcr/account/create-min/1297746103.yml +6 -6
- data/spec/vcr/account/create/1297746103.yml +6 -6
- data/spec/vcr/account/find/1297746103.yml +16 -16
- data/spec/vcr/account/list/1297746103.yml +204 -156
- data/spec/vcr/account/update/1297746103.yml +29 -29
- data/spec/vcr/billing/create/1298594128.yml +21 -21
- data/spec/vcr/billing/destroy/1298594128.yml +28 -28
- data/spec/vcr/billing/find/1298594128.yml +28 -28
- data/spec/vcr/billing/update/1298594128.yml +29 -29
- data/spec/vcr/charge/create/1297746103.yml +29 -29
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +32 -32
- data/spec/vcr/charge/list-all/1297746103.yml +41 -41
- data/spec/vcr/charge/list-invoiced/1297746103.yml +68 -68
- data/spec/vcr/charge/list-pending/1297746103.yml +41 -41
- data/spec/vcr/charge/lookup/1297746103.yml +21 -21
- data/spec/vcr/coupon/create/1299714521.yml +25 -25
- data/spec/vcr/coupon/destroy/1299714521.yml +22 -22
- data/spec/vcr/credit/create/1299714599.yml +21 -21
- data/spec/vcr/credit/delete/1299714599.yml +28 -28
- data/spec/vcr/credit/list/1299714599.yml +41 -41
- data/spec/vcr/credit/lookup/1299714599.yml +21 -21
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +18 -18
- data/spec/vcr/invoice/create/1297746103.yml +42 -42
- data/spec/vcr/invoice/list/1297746103.yml +61 -61
- data/spec/vcr/invoice/lookup/1297746103.yml +43 -43
- data/spec/vcr/plan/all.yml +65 -52
- data/spec/vcr/plan/find.yml +58 -34
- data/spec/vcr/plan/update.yml +28 -29
- data/spec/vcr/subscription/addons/add/1297746103.yml +293 -335
- data/spec/vcr/subscription/addons/add/1301884213.yml +480 -0
- data/spec/vcr/subscription/addons/create/1297746103.yml +134 -335
- data/spec/vcr/subscription/addons/create/1301884213.yml +321 -0
- data/spec/vcr/subscription/addons/remove/1297746103.yml +262 -335
- data/spec/vcr/subscription/addons/remove/1301884213.yml +449 -0
- data/spec/vcr/subscription/cancel-with-code/{1297746103.yml → 1301881900.yml} +104 -92
- data/spec/vcr/subscription/cancel/{1297746103.yml → 1301881900.yml} +90 -78
- data/spec/vcr/subscription/change1/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/change2/{1297746103.yml → 1301881900.yml} +86 -74
- data/spec/vcr/subscription/create/{1297746103.yml → 1301881900.yml} +50 -38
- data/spec/vcr/subscription/find/{1297746103.yml → 1301881900.yml} +62 -50
- data/spec/vcr/subscription/reactivate/{1297746103.yml → 1301881900.yml} +95 -83
- data/spec/vcr/subscription/refund-full/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-none/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/subscription/refund-partial/{1297746103.yml → 1301881900.yml} +79 -67
- data/spec/vcr/transaction/all/1301883347.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1300473500.yml → 1301883347.yml} +18 -18
- data/spec/vcr/transaction/create-with-account/{1300473500.yml → 1301883347.yml} +37 -37
- data/spec/vcr/transaction/list-filled/{1300473500.yml → 1301883347.yml} +169 -169
- data/spec/vcr/transaction/list-initial/{1300473500.yml → 1301883347.yml} +39 -39
- data/spec/vcr/transaction/lookup/{1300473500.yml → 1301883347.yml} +119 -119
- data/spec/vcr/transaction/refund/{1300473500.yml → 1301883347.yml} +53 -53
- data/spec/vcr/transaction/void/1301883347.yml +365 -0
- data/spec/vcr/transparent/post-url/{1300476053.yml → 1301879142.yml} +19 -19
- metadata +66 -58
- data/spec/vcr/transaction/all/1300473500.yml +0 -387
- data/spec/vcr/transaction/void/1300473500.yml +0 -620
- data/spec/vcr/transparent/post-url/1300475927.yml +0 -41
- data/spec/vcr/transparent/post-url/1300475952.yml +0 -41
- data/spec/vcr/transparent/post-url/1300476034.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476102.yml +0 -125
- data/spec/vcr/transparent/post-url/1300476126.yml +0 -125
@@ -2,11 +2,11 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@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-1301881900</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/subscription-cancel-
|
40
|
+
- http://app.recurly.local:3000/accounts/subscription-cancel-1301881900
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "496"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "593"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=9b08c1ffed3033672de0248e0e21b086; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>subscription-cancel-
|
57
|
-
<account_code>subscription-cancel-
|
56
|
+
<id>subscription-cancel-1301881900</id>
|
57
|
+
<account_code>subscription-cancel-1301881900</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>aee8c54b19b2470c8f416f66938fc59c</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:24:24Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,11 +71,11 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :get
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
|
75
75
|
body:
|
76
76
|
headers:
|
77
77
|
authorization:
|
78
|
-
- Basic
|
78
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
79
79
|
accept:
|
80
80
|
- application/xml
|
81
81
|
accept-encoding:
|
@@ -90,17 +90,17 @@
|
|
90
90
|
message: OK
|
91
91
|
headers:
|
92
92
|
x-runtime:
|
93
|
-
- "
|
93
|
+
- "84"
|
94
94
|
content-type:
|
95
95
|
- application/xml; charset=utf-8
|
96
96
|
etag:
|
97
|
-
- "\"
|
97
|
+
- "\"eea146faf9def8e0ad1bce0a43411f13\""
|
98
98
|
cache-control:
|
99
99
|
- private, max-age=0, must-revalidate
|
100
100
|
content-length:
|
101
|
-
- "
|
101
|
+
- "1558"
|
102
102
|
set-cookie:
|
103
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=0f5ebd2e8c3c209c782acb0e4685ea63; domain=.recurly.local; path=/; HttpOnly
|
104
104
|
connection:
|
105
105
|
- close
|
106
106
|
server:
|
@@ -113,37 +113,49 @@
|
|
113
113
|
<description></description>
|
114
114
|
<success_url></success_url>
|
115
115
|
<cancel_url></cancel_url>
|
116
|
-
<created_at type="datetime">2011-
|
117
|
-
<unit_amount_in_cents type="integer">
|
116
|
+
<created_at type="datetime">2011-04-03T21:46:48Z</created_at>
|
117
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
118
118
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
119
119
|
<plan_interval_length type="integer">1</plan_interval_length>
|
120
|
-
<plan_interval_unit>
|
120
|
+
<plan_interval_unit>months</plan_interval_unit>
|
121
121
|
<trial_interval_length type="integer">0</trial_interval_length>
|
122
122
|
<trial_interval_unit>months</trial_interval_unit>
|
123
123
|
<latest_version depreciated="true">
|
124
124
|
<version type="integer">1</version>
|
125
|
-
<unit_amount_in_cents type="integer">
|
125
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
126
126
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
127
127
|
<plan_interval_length type="integer">1</plan_interval_length>
|
128
|
-
<plan_interval_unit>
|
128
|
+
<plan_interval_unit>months</plan_interval_unit>
|
129
129
|
<trial_interval_length type="integer">0</trial_interval_length>
|
130
130
|
<trial_interval_unit>months</trial_interval_unit>
|
131
|
-
<created_at type="datetime">2011-
|
131
|
+
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
132
132
|
</latest_version>
|
133
|
+
<add_ons type="array">
|
134
|
+
<add_on>
|
135
|
+
<add_on_code>special</add_on_code>
|
136
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
137
|
+
<default_quantity>1</default_quantity>
|
138
|
+
</add_on>
|
139
|
+
<add_on>
|
140
|
+
<add_on_code>special2</add_on_code>
|
141
|
+
<default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
|
142
|
+
<default_quantity>1</default_quantity>
|
143
|
+
</add_on>
|
144
|
+
</add_ons>
|
133
145
|
</plan>
|
134
146
|
|
135
147
|
http_version: "1.1"
|
136
148
|
- !ruby/struct:VCR::HTTPInteraction
|
137
149
|
request: !ruby/struct:VCR::Request
|
138
150
|
method: :post
|
139
|
-
uri: http://api-test-
|
151
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-1301881900/subscription.xml
|
140
152
|
body: |
|
141
153
|
<?xml version="1.0" encoding="UTF-8"?>
|
142
154
|
<subscription>
|
143
155
|
<plan-code>paid</plan-code>
|
144
156
|
<quantity type="integer">1</quantity>
|
145
157
|
<account>
|
146
|
-
<account-code>subscription-cancel-
|
158
|
+
<account-code>subscription-cancel-1301881900</account-code>
|
147
159
|
<first-name>Verena</first-name>
|
148
160
|
<last-name>Test</last-name>
|
149
161
|
<email>verena@test.com</email>
|
@@ -159,17 +171,17 @@
|
|
159
171
|
<credit-card>
|
160
172
|
<number>4111111111111111</number>
|
161
173
|
<year type="integer">2012</year>
|
162
|
-
<month type="integer">
|
174
|
+
<month type="integer">4</month>
|
163
175
|
<verification-value>123</verification-value>
|
164
176
|
</credit-card>
|
165
177
|
</billing-info>
|
166
178
|
<accept-language type="yaml" nil="true"></accept-language>
|
167
|
-
<id>subscription-cancel-
|
179
|
+
<id>subscription-cancel-1301881900</id>
|
168
180
|
<username type="yaml" nil="true"></username>
|
169
181
|
<balance-in-cents type="integer">0</balance-in-cents>
|
170
182
|
<closed type="boolean">false</closed>
|
171
|
-
<hosted-login-token>
|
172
|
-
<created-at type="datetime">2011-
|
183
|
+
<hosted-login-token>aee8c54b19b2470c8f416f66938fc59c</hosted-login-token>
|
184
|
+
<created-at type="datetime">2011-04-04T02:24:24Z</created-at>
|
173
185
|
<state>active</state>
|
174
186
|
</account>
|
175
187
|
<addons type="array"/>
|
@@ -177,7 +189,7 @@
|
|
177
189
|
|
178
190
|
headers:
|
179
191
|
authorization:
|
180
|
-
- Basic
|
192
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
181
193
|
content-type:
|
182
194
|
- application/xml
|
183
195
|
accept:
|
@@ -194,13 +206,13 @@
|
|
194
206
|
cache-control:
|
195
207
|
- no-cache
|
196
208
|
x-runtime:
|
197
|
-
- "
|
209
|
+
- "3880"
|
198
210
|
content-type:
|
199
211
|
- application/xml; charset=utf-8
|
200
212
|
content-length:
|
201
|
-
- "
|
213
|
+
- "907"
|
202
214
|
set-cookie:
|
203
|
-
- _recurly_session=
|
215
|
+
- _recurly_session=ba246630347867cd7b741ce7ad05117f; domain=.recurly.local; path=/; HttpOnly
|
204
216
|
connection:
|
205
217
|
- close
|
206
218
|
server:
|
@@ -208,20 +220,20 @@
|
|
208
220
|
body: |
|
209
221
|
<?xml version="1.0" encoding="UTF-8"?>
|
210
222
|
<subscription>
|
211
|
-
<id>subscription-cancel-
|
212
|
-
<account_code>subscription-cancel-
|
223
|
+
<id>subscription-cancel-1301881900</id>
|
224
|
+
<account_code>subscription-cancel-1301881900</account_code>
|
213
225
|
<plan>
|
214
226
|
<plan_code>paid</plan_code>
|
215
227
|
<name>Paid</name>
|
216
228
|
</plan>
|
217
229
|
<state>active</state>
|
218
230
|
<quantity type="integer">1</quantity>
|
219
|
-
<total_amount_in_cents type="integer">
|
220
|
-
<activated_at type="datetime">2011-
|
231
|
+
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
232
|
+
<activated_at type="datetime">2011-04-04T02:24:28Z</activated_at>
|
221
233
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
222
234
|
<expires_at nil="true" type="datetime"></expires_at>
|
223
|
-
<current_period_started_at type="datetime">2011-
|
224
|
-
<current_period_ends_at type="datetime">2011-
|
235
|
+
<current_period_started_at type="datetime">2011-04-04T02:24:28Z</current_period_started_at>
|
236
|
+
<current_period_ends_at type="datetime">2011-05-04T02:24:28Z</current_period_ends_at>
|
225
237
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
226
238
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
227
239
|
<add_ons type="array">
|
@@ -232,11 +244,11 @@
|
|
232
244
|
- !ruby/struct:VCR::HTTPInteraction
|
233
245
|
request: !ruby/struct:VCR::Request
|
234
246
|
method: :get
|
235
|
-
uri: http://api-test-
|
247
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-1301881900/subscription.xml
|
236
248
|
body:
|
237
249
|
headers:
|
238
250
|
authorization:
|
239
|
-
- Basic
|
251
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
240
252
|
accept:
|
241
253
|
- application/xml
|
242
254
|
accept-encoding:
|
@@ -251,17 +263,17 @@
|
|
251
263
|
message: OK
|
252
264
|
headers:
|
253
265
|
x-runtime:
|
254
|
-
- "
|
266
|
+
- "309"
|
255
267
|
content-type:
|
256
268
|
- application/xml; charset=utf-8
|
257
269
|
etag:
|
258
|
-
- "\"
|
270
|
+
- "\"0d2d46cf96c34c8506cc4a5a03c1655d\""
|
259
271
|
cache-control:
|
260
272
|
- private, max-age=0, must-revalidate
|
261
273
|
content-length:
|
262
|
-
- "
|
274
|
+
- "907"
|
263
275
|
set-cookie:
|
264
|
-
- _recurly_session=
|
276
|
+
- _recurly_session=98564c783f352be54d583e157f456414; domain=.recurly.local; path=/; HttpOnly
|
265
277
|
connection:
|
266
278
|
- close
|
267
279
|
server:
|
@@ -269,20 +281,20 @@
|
|
269
281
|
body: |
|
270
282
|
<?xml version="1.0" encoding="UTF-8"?>
|
271
283
|
<subscription>
|
272
|
-
<id>subscription-cancel-
|
273
|
-
<account_code>subscription-cancel-
|
284
|
+
<id>subscription-cancel-1301881900</id>
|
285
|
+
<account_code>subscription-cancel-1301881900</account_code>
|
274
286
|
<plan>
|
275
287
|
<plan_code>paid</plan_code>
|
276
288
|
<name>Paid</name>
|
277
289
|
</plan>
|
278
290
|
<state>active</state>
|
279
291
|
<quantity type="integer">1</quantity>
|
280
|
-
<total_amount_in_cents type="integer">
|
281
|
-
<activated_at type="datetime">2011-
|
292
|
+
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
293
|
+
<activated_at type="datetime">2011-04-04T02:24:28Z</activated_at>
|
282
294
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
283
295
|
<expires_at nil="true" type="datetime"></expires_at>
|
284
|
-
<current_period_started_at type="datetime">2011-
|
285
|
-
<current_period_ends_at type="datetime">2011-
|
296
|
+
<current_period_started_at type="datetime">2011-04-04T02:24:28Z</current_period_started_at>
|
297
|
+
<current_period_ends_at type="datetime">2011-05-04T02:24:28Z</current_period_ends_at>
|
286
298
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
287
299
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
288
300
|
<add_ons type="array">
|
@@ -293,11 +305,11 @@
|
|
293
305
|
- !ruby/struct:VCR::HTTPInteraction
|
294
306
|
request: !ruby/struct:VCR::Request
|
295
307
|
method: :delete
|
296
|
-
uri: http://api-test-
|
308
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-1301881900/subscription.xml
|
297
309
|
body:
|
298
310
|
headers:
|
299
311
|
authorization:
|
300
|
-
- Basic
|
312
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
301
313
|
accept:
|
302
314
|
- application/xml
|
303
315
|
user-agent:
|
@@ -310,17 +322,17 @@
|
|
310
322
|
message: OK
|
311
323
|
headers:
|
312
324
|
x-runtime:
|
313
|
-
- "
|
325
|
+
- "572"
|
314
326
|
content-type:
|
315
327
|
- application/xml; charset=utf-8
|
316
328
|
etag:
|
317
|
-
- "\"
|
329
|
+
- "\"1238869de5dc079826e5ee5a5bdb8422\""
|
318
330
|
cache-control:
|
319
331
|
- private, max-age=0, must-revalidate
|
320
332
|
content-length:
|
321
|
-
- "
|
333
|
+
- "927"
|
322
334
|
set-cookie:
|
323
|
-
- _recurly_session=
|
335
|
+
- _recurly_session=9efe706baeb7b5be710c9158d98fb6b1; domain=.recurly.local; path=/; HttpOnly
|
324
336
|
connection:
|
325
337
|
- close
|
326
338
|
server:
|
@@ -328,20 +340,20 @@
|
|
328
340
|
body: |
|
329
341
|
<?xml version="1.0" encoding="UTF-8"?>
|
330
342
|
<subscription>
|
331
|
-
<id>subscription-cancel-
|
332
|
-
<account_code>subscription-cancel-
|
343
|
+
<id>subscription-cancel-1301881900</id>
|
344
|
+
<account_code>subscription-cancel-1301881900</account_code>
|
333
345
|
<plan>
|
334
346
|
<plan_code>paid</plan_code>
|
335
347
|
<name>Paid</name>
|
336
348
|
</plan>
|
337
349
|
<state>canceled</state>
|
338
350
|
<quantity type="integer">1</quantity>
|
339
|
-
<total_amount_in_cents type="integer">
|
340
|
-
<activated_at type="datetime">2011-
|
341
|
-
<canceled_at type="datetime">2011-
|
342
|
-
<expires_at type="datetime">2011-
|
343
|
-
<current_period_started_at type="datetime">2011-
|
344
|
-
<current_period_ends_at type="datetime">2011-
|
351
|
+
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
352
|
+
<activated_at type="datetime">2011-04-04T02:24:28Z</activated_at>
|
353
|
+
<canceled_at type="datetime">2011-04-04T02:24:35Z</canceled_at>
|
354
|
+
<expires_at type="datetime">2011-05-04T02:24:28Z</expires_at>
|
355
|
+
<current_period_started_at type="datetime">2011-04-04T02:24:28Z</current_period_started_at>
|
356
|
+
<current_period_ends_at type="datetime">2011-05-04T02:24:28Z</current_period_ends_at>
|
345
357
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
346
358
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
347
359
|
<add_ons type="array">
|
@@ -352,11 +364,11 @@
|
|
352
364
|
- !ruby/struct:VCR::HTTPInteraction
|
353
365
|
request: !ruby/struct:VCR::Request
|
354
366
|
method: :get
|
355
|
-
uri: http://api-test-
|
367
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-cancel-1301881900/subscription.xml
|
356
368
|
body:
|
357
369
|
headers:
|
358
370
|
authorization:
|
359
|
-
- Basic
|
371
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
360
372
|
accept:
|
361
373
|
- application/xml
|
362
374
|
accept-encoding:
|
@@ -371,17 +383,17 @@
|
|
371
383
|
message: OK
|
372
384
|
headers:
|
373
385
|
x-runtime:
|
374
|
-
- "
|
386
|
+
- "292"
|
375
387
|
content-type:
|
376
388
|
- application/xml; charset=utf-8
|
377
389
|
etag:
|
378
|
-
- "\"
|
390
|
+
- "\"1238869de5dc079826e5ee5a5bdb8422\""
|
379
391
|
cache-control:
|
380
392
|
- private, max-age=0, must-revalidate
|
381
393
|
content-length:
|
382
|
-
- "
|
394
|
+
- "927"
|
383
395
|
set-cookie:
|
384
|
-
- _recurly_session=
|
396
|
+
- _recurly_session=49af7956f04bcd14ea96403bd936b14d; domain=.recurly.local; path=/; HttpOnly
|
385
397
|
connection:
|
386
398
|
- close
|
387
399
|
server:
|
@@ -389,20 +401,20 @@
|
|
389
401
|
body: |
|
390
402
|
<?xml version="1.0" encoding="UTF-8"?>
|
391
403
|
<subscription>
|
392
|
-
<id>subscription-cancel-
|
393
|
-
<account_code>subscription-cancel-
|
404
|
+
<id>subscription-cancel-1301881900</id>
|
405
|
+
<account_code>subscription-cancel-1301881900</account_code>
|
394
406
|
<plan>
|
395
407
|
<plan_code>paid</plan_code>
|
396
408
|
<name>Paid</name>
|
397
409
|
</plan>
|
398
410
|
<state>canceled</state>
|
399
411
|
<quantity type="integer">1</quantity>
|
400
|
-
<total_amount_in_cents type="integer">
|
401
|
-
<activated_at type="datetime">2011-
|
402
|
-
<canceled_at type="datetime">2011-
|
403
|
-
<expires_at type="datetime">2011-
|
404
|
-
<current_period_started_at type="datetime">2011-
|
405
|
-
<current_period_ends_at type="datetime">2011-
|
412
|
+
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
413
|
+
<activated_at type="datetime">2011-04-04T02:24:28Z</activated_at>
|
414
|
+
<canceled_at type="datetime">2011-04-04T02:24:35Z</canceled_at>
|
415
|
+
<expires_at type="datetime">2011-05-04T02:24:28Z</expires_at>
|
416
|
+
<current_period_started_at type="datetime">2011-04-04T02:24:28Z</current_period_started_at>
|
417
|
+
<current_period_ends_at type="datetime">2011-05-04T02:24:28Z</current_period_ends_at>
|
406
418
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
407
419
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
408
420
|
<add_ons type="array">
|
@@ -2,11 +2,11 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api-test-
|
5
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@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-1301881900</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
headers:
|
22
22
|
authorization:
|
23
|
-
- Basic
|
23
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
24
24
|
content-type:
|
25
25
|
- application/xml
|
26
26
|
accept:
|
@@ -37,15 +37,15 @@
|
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
|
-
- http://app.recurly.local:3000/accounts/subscription-change1-
|
40
|
+
- http://app.recurly.local:3000/accounts/subscription-change1-1301881900
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "465"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "595"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=8e8ae48d04271d573e23d352801a1bbd; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -53,8 +53,8 @@
|
|
53
53
|
body: |
|
54
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
55
55
|
<account>
|
56
|
-
<id>subscription-change1-
|
57
|
-
<account_code>subscription-change1-
|
56
|
+
<id>subscription-change1-1301881900</id>
|
57
|
+
<account_code>subscription-change1-1301881900</account_code>
|
58
58
|
<username></username>
|
59
59
|
<email>verena@test.com</email>
|
60
60
|
<first_name>Verena</first_name>
|
@@ -62,8 +62,8 @@
|
|
62
62
|
<company_name>Recurly Ruby Gem</company_name>
|
63
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
64
64
|
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>ff73271f7fa84318b61a4eeb547029ca</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-04T02:23:29Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -71,11 +71,11 @@
|
|
71
71
|
- !ruby/struct:VCR::HTTPInteraction
|
72
72
|
request: !ruby/struct:VCR::Request
|
73
73
|
method: :get
|
74
|
-
uri: http://api-test-
|
74
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/company/plans/paid.xml
|
75
75
|
body:
|
76
76
|
headers:
|
77
77
|
authorization:
|
78
|
-
- Basic
|
78
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
79
79
|
accept:
|
80
80
|
- application/xml
|
81
81
|
accept-encoding:
|
@@ -90,17 +90,17 @@
|
|
90
90
|
message: OK
|
91
91
|
headers:
|
92
92
|
x-runtime:
|
93
|
-
- "
|
93
|
+
- "86"
|
94
94
|
content-type:
|
95
95
|
- application/xml; charset=utf-8
|
96
96
|
etag:
|
97
|
-
- "\"
|
97
|
+
- "\"eea146faf9def8e0ad1bce0a43411f13\""
|
98
98
|
cache-control:
|
99
99
|
- private, max-age=0, must-revalidate
|
100
100
|
content-length:
|
101
|
-
- "
|
101
|
+
- "1558"
|
102
102
|
set-cookie:
|
103
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=23bf5c4c59ad4fdc695d576561eeaaa1; domain=.recurly.local; path=/; HttpOnly
|
104
104
|
connection:
|
105
105
|
- close
|
106
106
|
server:
|
@@ -113,37 +113,49 @@
|
|
113
113
|
<description></description>
|
114
114
|
<success_url></success_url>
|
115
115
|
<cancel_url></cancel_url>
|
116
|
-
<created_at type="datetime">2011-
|
117
|
-
<unit_amount_in_cents type="integer">
|
116
|
+
<created_at type="datetime">2011-04-03T21:46:48Z</created_at>
|
117
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
118
118
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
119
119
|
<plan_interval_length type="integer">1</plan_interval_length>
|
120
|
-
<plan_interval_unit>
|
120
|
+
<plan_interval_unit>months</plan_interval_unit>
|
121
121
|
<trial_interval_length type="integer">0</trial_interval_length>
|
122
122
|
<trial_interval_unit>months</trial_interval_unit>
|
123
123
|
<latest_version depreciated="true">
|
124
124
|
<version type="integer">1</version>
|
125
|
-
<unit_amount_in_cents type="integer">
|
125
|
+
<unit_amount_in_cents type="integer">200</unit_amount_in_cents>
|
126
126
|
<setup_fee_in_cents type="integer">0</setup_fee_in_cents>
|
127
127
|
<plan_interval_length type="integer">1</plan_interval_length>
|
128
|
-
<plan_interval_unit>
|
128
|
+
<plan_interval_unit>months</plan_interval_unit>
|
129
129
|
<trial_interval_length type="integer">0</trial_interval_length>
|
130
130
|
<trial_interval_unit>months</trial_interval_unit>
|
131
|
-
<created_at type="datetime">2011-
|
131
|
+
<created_at type="datetime">2011-04-04T02:15:00Z</created_at>
|
132
132
|
</latest_version>
|
133
|
+
<add_ons type="array">
|
134
|
+
<add_on>
|
135
|
+
<add_on_code>special</add_on_code>
|
136
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
137
|
+
<default_quantity>1</default_quantity>
|
138
|
+
</add_on>
|
139
|
+
<add_on>
|
140
|
+
<add_on_code>special2</add_on_code>
|
141
|
+
<default_unit_amount_in_cents>50000</default_unit_amount_in_cents>
|
142
|
+
<default_quantity>1</default_quantity>
|
143
|
+
</add_on>
|
144
|
+
</add_ons>
|
133
145
|
</plan>
|
134
146
|
|
135
147
|
http_version: "1.1"
|
136
148
|
- !ruby/struct:VCR::HTTPInteraction
|
137
149
|
request: !ruby/struct:VCR::Request
|
138
150
|
method: :post
|
139
|
-
uri: http://api-test-
|
151
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-change1-1301881900/subscription.xml
|
140
152
|
body: |
|
141
153
|
<?xml version="1.0" encoding="UTF-8"?>
|
142
154
|
<subscription>
|
143
155
|
<plan-code>paid</plan-code>
|
144
156
|
<quantity type="integer">1</quantity>
|
145
157
|
<account>
|
146
|
-
<account-code>subscription-change1-
|
158
|
+
<account-code>subscription-change1-1301881900</account-code>
|
147
159
|
<first-name>Verena</first-name>
|
148
160
|
<last-name>Test</last-name>
|
149
161
|
<email>verena@test.com</email>
|
@@ -159,17 +171,17 @@
|
|
159
171
|
<credit-card>
|
160
172
|
<number>4111111111111111</number>
|
161
173
|
<year type="integer">2012</year>
|
162
|
-
<month type="integer">
|
174
|
+
<month type="integer">4</month>
|
163
175
|
<verification-value>123</verification-value>
|
164
176
|
</credit-card>
|
165
177
|
</billing-info>
|
166
178
|
<accept-language type="yaml" nil="true"></accept-language>
|
167
|
-
<id>subscription-change1-
|
179
|
+
<id>subscription-change1-1301881900</id>
|
168
180
|
<username type="yaml" nil="true"></username>
|
169
181
|
<balance-in-cents type="integer">0</balance-in-cents>
|
170
182
|
<closed type="boolean">false</closed>
|
171
|
-
<hosted-login-token>
|
172
|
-
<created-at type="datetime">2011-
|
183
|
+
<hosted-login-token>ff73271f7fa84318b61a4eeb547029ca</hosted-login-token>
|
184
|
+
<created-at type="datetime">2011-04-04T02:23:29Z</created-at>
|
173
185
|
<state>active</state>
|
174
186
|
</account>
|
175
187
|
<addons type="array"/>
|
@@ -177,7 +189,7 @@
|
|
177
189
|
|
178
190
|
headers:
|
179
191
|
authorization:
|
180
|
-
- Basic
|
192
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
181
193
|
content-type:
|
182
194
|
- application/xml
|
183
195
|
accept:
|
@@ -194,13 +206,13 @@
|
|
194
206
|
cache-control:
|
195
207
|
- no-cache
|
196
208
|
x-runtime:
|
197
|
-
- "
|
209
|
+
- "4246"
|
198
210
|
content-type:
|
199
211
|
- application/xml; charset=utf-8
|
200
212
|
content-length:
|
201
|
-
- "
|
213
|
+
- "909"
|
202
214
|
set-cookie:
|
203
|
-
- _recurly_session=
|
215
|
+
- _recurly_session=74d31d0bea3a099d88e3823b3dddfaf1; domain=.recurly.local; path=/; HttpOnly
|
204
216
|
connection:
|
205
217
|
- close
|
206
218
|
server:
|
@@ -208,20 +220,20 @@
|
|
208
220
|
body: |
|
209
221
|
<?xml version="1.0" encoding="UTF-8"?>
|
210
222
|
<subscription>
|
211
|
-
<id>subscription-change1-
|
212
|
-
<account_code>subscription-change1-
|
223
|
+
<id>subscription-change1-1301881900</id>
|
224
|
+
<account_code>subscription-change1-1301881900</account_code>
|
213
225
|
<plan>
|
214
226
|
<plan_code>paid</plan_code>
|
215
227
|
<name>Paid</name>
|
216
228
|
</plan>
|
217
229
|
<state>active</state>
|
218
230
|
<quantity type="integer">1</quantity>
|
219
|
-
<total_amount_in_cents type="integer">
|
220
|
-
<activated_at type="datetime">2011-
|
231
|
+
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
232
|
+
<activated_at type="datetime">2011-04-04T02:23:34Z</activated_at>
|
221
233
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
222
234
|
<expires_at nil="true" type="datetime"></expires_at>
|
223
|
-
<current_period_started_at type="datetime">2011-
|
224
|
-
<current_period_ends_at type="datetime">2011-
|
235
|
+
<current_period_started_at type="datetime">2011-04-04T02:23:34Z</current_period_started_at>
|
236
|
+
<current_period_ends_at type="datetime">2011-05-04T02:23:34Z</current_period_ends_at>
|
225
237
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
226
238
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
227
239
|
<add_ons type="array">
|
@@ -232,11 +244,11 @@
|
|
232
244
|
- !ruby/struct:VCR::HTTPInteraction
|
233
245
|
request: !ruby/struct:VCR::Request
|
234
246
|
method: :get
|
235
|
-
uri: http://api-test-
|
247
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-change1-1301881900/subscription.xml
|
236
248
|
body:
|
237
249
|
headers:
|
238
250
|
authorization:
|
239
|
-
- Basic
|
251
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
240
252
|
accept:
|
241
253
|
- application/xml
|
242
254
|
accept-encoding:
|
@@ -251,17 +263,17 @@
|
|
251
263
|
message: OK
|
252
264
|
headers:
|
253
265
|
x-runtime:
|
254
|
-
- "
|
266
|
+
- "289"
|
255
267
|
content-type:
|
256
268
|
- application/xml; charset=utf-8
|
257
269
|
etag:
|
258
|
-
- "\"
|
270
|
+
- "\"44a2d065a1125272b5df5e0f20b4022b\""
|
259
271
|
cache-control:
|
260
272
|
- private, max-age=0, must-revalidate
|
261
273
|
content-length:
|
262
|
-
- "
|
274
|
+
- "909"
|
263
275
|
set-cookie:
|
264
|
-
- _recurly_session=
|
276
|
+
- _recurly_session=4460c3ed1ba499e688238e1b04d3672d; domain=.recurly.local; path=/; HttpOnly
|
265
277
|
connection:
|
266
278
|
- close
|
267
279
|
server:
|
@@ -269,20 +281,20 @@
|
|
269
281
|
body: |
|
270
282
|
<?xml version="1.0" encoding="UTF-8"?>
|
271
283
|
<subscription>
|
272
|
-
<id>subscription-change1-
|
273
|
-
<account_code>subscription-change1-
|
284
|
+
<id>subscription-change1-1301881900</id>
|
285
|
+
<account_code>subscription-change1-1301881900</account_code>
|
274
286
|
<plan>
|
275
287
|
<plan_code>paid</plan_code>
|
276
288
|
<name>Paid</name>
|
277
289
|
</plan>
|
278
290
|
<state>active</state>
|
279
291
|
<quantity type="integer">1</quantity>
|
280
|
-
<total_amount_in_cents type="integer">
|
281
|
-
<activated_at type="datetime">2011-
|
292
|
+
<total_amount_in_cents type="integer">200</total_amount_in_cents>
|
293
|
+
<activated_at type="datetime">2011-04-04T02:23:34Z</activated_at>
|
282
294
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
283
295
|
<expires_at nil="true" type="datetime"></expires_at>
|
284
|
-
<current_period_started_at type="datetime">2011-
|
285
|
-
<current_period_ends_at type="datetime">2011-
|
296
|
+
<current_period_started_at type="datetime">2011-04-04T02:23:34Z</current_period_started_at>
|
297
|
+
<current_period_ends_at type="datetime">2011-05-04T02:23:34Z</current_period_ends_at>
|
286
298
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
287
299
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
288
300
|
<add_ons type="array">
|
@@ -293,7 +305,7 @@
|
|
293
305
|
- !ruby/struct:VCR::HTTPInteraction
|
294
306
|
request: !ruby/struct:VCR::Request
|
295
307
|
method: :put
|
296
|
-
uri: http://api-test-
|
308
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-change1-1301881900/subscription.xml
|
297
309
|
body: |
|
298
310
|
<?xml version="1.0" encoding="UTF-8"?>
|
299
311
|
<subscription>
|
@@ -303,7 +315,7 @@
|
|
303
315
|
|
304
316
|
headers:
|
305
317
|
authorization:
|
306
|
-
- Basic
|
318
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
307
319
|
content-type:
|
308
320
|
- application/xml
|
309
321
|
accept:
|
@@ -318,17 +330,17 @@
|
|
318
330
|
message: OK
|
319
331
|
headers:
|
320
332
|
x-runtime:
|
321
|
-
- "
|
333
|
+
- "1966"
|
322
334
|
content-type:
|
323
335
|
- application/xml; charset=utf-8
|
324
336
|
etag:
|
325
|
-
- "\"
|
337
|
+
- "\"25af1d8da98e785b0307de9a4690a4c4\""
|
326
338
|
cache-control:
|
327
339
|
- private, max-age=0, must-revalidate
|
328
340
|
content-length:
|
329
|
-
- "
|
341
|
+
- "909"
|
330
342
|
set-cookie:
|
331
|
-
- _recurly_session=
|
343
|
+
- _recurly_session=6ac3baf9acd363d4b726bd076b9b305c; domain=.recurly.local; path=/; HttpOnly
|
332
344
|
connection:
|
333
345
|
- close
|
334
346
|
server:
|
@@ -336,20 +348,20 @@
|
|
336
348
|
body: |
|
337
349
|
<?xml version="1.0" encoding="UTF-8"?>
|
338
350
|
<subscription>
|
339
|
-
<id>subscription-change1-
|
340
|
-
<account_code>subscription-change1-
|
351
|
+
<id>subscription-change1-1301881900</id>
|
352
|
+
<account_code>subscription-change1-1301881900</account_code>
|
341
353
|
<plan>
|
342
354
|
<plan_code>paid</plan_code>
|
343
355
|
<name>Paid</name>
|
344
356
|
</plan>
|
345
357
|
<state>active</state>
|
346
358
|
<quantity type="integer">2</quantity>
|
347
|
-
<total_amount_in_cents type="integer">
|
348
|
-
<activated_at type="datetime">2011-
|
359
|
+
<total_amount_in_cents type="integer">400</total_amount_in_cents>
|
360
|
+
<activated_at type="datetime">2011-04-04T02:23:41Z</activated_at>
|
349
361
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
350
362
|
<expires_at nil="true" type="datetime"></expires_at>
|
351
|
-
<current_period_started_at type="datetime">2011-
|
352
|
-
<current_period_ends_at type="datetime">2011-
|
363
|
+
<current_period_started_at type="datetime">2011-04-04T02:23:34Z</current_period_started_at>
|
364
|
+
<current_period_ends_at type="datetime">2011-05-04T02:23:34Z</current_period_ends_at>
|
353
365
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
354
366
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
355
367
|
<add_ons type="array">
|
@@ -360,11 +372,11 @@
|
|
360
372
|
- !ruby/struct:VCR::HTTPInteraction
|
361
373
|
request: !ruby/struct:VCR::Request
|
362
374
|
method: :get
|
363
|
-
uri: http://api-test-
|
375
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/accounts/subscription-change1-1301881900/subscription.xml
|
364
376
|
body:
|
365
377
|
headers:
|
366
378
|
authorization:
|
367
|
-
- Basic
|
379
|
+
- Basic YXBpLXRlc3RAaGVsbG8tdGVzdC5jb206NTBhNWI4YTY5YTI1NDVkYjg0YWM0MTEyYmE4Y2FjNmY=
|
368
380
|
accept:
|
369
381
|
- application/xml
|
370
382
|
accept-encoding:
|
@@ -379,17 +391,17 @@
|
|
379
391
|
message: OK
|
380
392
|
headers:
|
381
393
|
x-runtime:
|
382
|
-
- "
|
394
|
+
- "337"
|
383
395
|
content-type:
|
384
396
|
- application/xml; charset=utf-8
|
385
397
|
etag:
|
386
|
-
- "\"
|
398
|
+
- "\"25af1d8da98e785b0307de9a4690a4c4\""
|
387
399
|
cache-control:
|
388
400
|
- private, max-age=0, must-revalidate
|
389
401
|
content-length:
|
390
|
-
- "
|
402
|
+
- "909"
|
391
403
|
set-cookie:
|
392
|
-
- _recurly_session=
|
404
|
+
- _recurly_session=de7443a54ba936424d56f56ffe7427ce; domain=.recurly.local; path=/; HttpOnly
|
393
405
|
connection:
|
394
406
|
- close
|
395
407
|
server:
|
@@ -397,20 +409,20 @@
|
|
397
409
|
body: |
|
398
410
|
<?xml version="1.0" encoding="UTF-8"?>
|
399
411
|
<subscription>
|
400
|
-
<id>subscription-change1-
|
401
|
-
<account_code>subscription-change1-
|
412
|
+
<id>subscription-change1-1301881900</id>
|
413
|
+
<account_code>subscription-change1-1301881900</account_code>
|
402
414
|
<plan>
|
403
415
|
<plan_code>paid</plan_code>
|
404
416
|
<name>Paid</name>
|
405
417
|
</plan>
|
406
418
|
<state>active</state>
|
407
419
|
<quantity type="integer">2</quantity>
|
408
|
-
<total_amount_in_cents type="integer">
|
409
|
-
<activated_at type="datetime">2011-
|
420
|
+
<total_amount_in_cents type="integer">400</total_amount_in_cents>
|
421
|
+
<activated_at type="datetime">2011-04-04T02:23:41Z</activated_at>
|
410
422
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
411
423
|
<expires_at nil="true" type="datetime"></expires_at>
|
412
|
-
<current_period_started_at type="datetime">2011-
|
413
|
-
<current_period_ends_at type="datetime">2011-
|
424
|
+
<current_period_started_at type="datetime">2011-04-04T02:23:34Z</current_period_started_at>
|
425
|
+
<current_period_ends_at type="datetime">2011-05-04T02:23:34Z</current_period_ends_at>
|
414
426
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
415
427
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
416
428
|
<add_ons type="array">
|