recurly 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/recurly.rb +8 -0
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/rails3/railtie.rb +9 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/account_spec.rb +29 -1
- data/spec/integration/add_on_spec.rb +84 -0
- data/spec/vcr/account/accept-language-account/1294473653.yml +68 -0
- data/spec/vcr/account/accept-language-account/1294473761.yml +68 -0
- data/spec/vcr/account/accept-language/1294473117.yml +167 -0
- data/spec/vcr/account/close/{1288381765.yml → 1294473761.yml} +26 -25
- data/spec/vcr/account/create-blank/{1288381765.yml → 1294473761.yml} +5 -4
- data/spec/vcr/account/create-duplicate/{1288381765.yml → 1294473761.yml} +13 -11
- data/spec/vcr/account/create-min/{1288381765.yml → 1294473761.yml} +12 -11
- data/spec/vcr/account/create/{1288381765.yml → 1294473761.yml} +12 -11
- data/spec/vcr/account/find/{1288381765.yml → 1294473761.yml} +25 -24
- data/spec/vcr/account/list/{1288381765.yml → 1294473761.yml} +328 -287
- data/spec/vcr/account/update/{1288381765.yml → 1294473761.yml} +47 -45
- data/spec/vcr/billing/create/1286682213.yml +28 -27
- data/spec/vcr/billing/destroy/1286682213.yml +42 -41
- data/spec/vcr/billing/find/1286682213.yml +38 -37
- data/spec/vcr/billing/update/1286682213.yml +40 -39
- data/spec/vcr/charge/create/1287465632.yml +36 -35
- data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +36 -35
- data/spec/vcr/charge/list-all/1287465632.yml +43 -42
- data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -69
- data/spec/vcr/charge/list-pending/1287465632.yml +43 -42
- data/spec/vcr/charge/lookup/1287465632.yml +22 -21
- data/spec/vcr/credit/create/1287461400.yml +23 -22
- data/spec/vcr/credit/delete/1287461400.yml +33 -32
- data/spec/vcr/credit/list/1287461400.yml +43 -42
- data/spec/vcr/credit/lookup/1287461400.yml +24 -23
- data/spec/vcr/invoice/create-no-charges/1287167121.yml +23 -22
- data/spec/vcr/invoice/create/1287167121.yml +48 -47
- data/spec/vcr/invoice/list/1287167121.yml +67 -66
- data/spec/vcr/invoice/lookup/1287167121.yml +50 -49
- data/spec/vcr/plan/all.yml +29 -17
- data/spec/vcr/plan/delete/1286677585.yml +21 -21
- data/spec/vcr/plan/find.yml +42 -18
- data/spec/vcr/plan/update.yml +17 -17
- data/spec/vcr/subscription/addons/add/1292420980.yml +479 -0
- data/spec/vcr/subscription/addons/create/1292420980.yml +318 -0
- data/spec/vcr/subscription/addons/remove/1292420980.yml +448 -0
- data/spec/vcr/subscription/cancel-with-code/1287455769.yml +93 -69
- data/spec/vcr/subscription/cancel/1287455769.yml +80 -58
- data/spec/vcr/subscription/change1/1287455769.yml +77 -55
- data/spec/vcr/subscription/change2/1287455769.yml +77 -55
- data/spec/vcr/subscription/create/1287455769.yml +43 -27
- data/spec/vcr/subscription/find/1287455769.yml +54 -36
- data/spec/vcr/subscription/reactivate/1287455769.yml +83 -61
- data/spec/vcr/subscription/refund-full/1287455769.yml +69 -51
- data/spec/vcr/subscription/refund-none/1287455769.yml +70 -52
- data/spec/vcr/subscription/refund-partial/1287455769.yml +70 -52
- data/spec/vcr/transaction/all/1289558212.yml +46 -46
- data/spec/vcr/transaction/create-no-account/1289558212.yml +11 -11
- data/spec/vcr/transaction/create-with-account/1289558212.yml +27 -26
- data/spec/vcr/transaction/list-filled/1289558212.yml +54 -53
- data/spec/vcr/transaction/list-initial/1289558212.yml +27 -26
- data/spec/vcr/transaction/lookup/1289558212.yml +64 -63
- data/spec/vcr/transaction/refund/1289558212.yml +35 -34
- data/spec/vcr/transaction/void/1289558212.yml +71 -70
- metadata +34 -20
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>subscription-change1-1287455769</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "351"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:05:31 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "595"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=0923c59be4bf0a56dea350cc45707e1ae6c8c8d66618589644f79a85f60f072a8bc018ffdbd4c6d36fc6bf8caa2242b6b17a05ba8afd41677d9b3513c4aa5846%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=9e571da7f8cdd3256df3ead9b7fa1ad3; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>83557287eb054238979a1978c528f173</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:05:31Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -85,21 +86,21 @@
|
|
85
86
|
x-ua-compatible:
|
86
87
|
- IE=Edge
|
87
88
|
etag:
|
88
|
-
- "\"
|
89
|
+
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
content-type:
|
92
93
|
- application/xml; charset=utf-8
|
93
94
|
x-runtime:
|
94
|
-
- "
|
95
|
+
- "15"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:05:32 GMT
|
97
98
|
server:
|
98
|
-
- nginx/0.
|
99
|
+
- nginx/0.8.53
|
99
100
|
content-length:
|
100
|
-
- "
|
101
|
+
- "1564"
|
101
102
|
set-cookie:
|
102
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=ad213602f0b95f426a144da287cdcf6a; domain=.recurly.com; path=/; secure; HttpOnly
|
103
104
|
cache-control:
|
104
105
|
- private, max-age=0, must-revalidate
|
105
106
|
body: |
|
@@ -125,8 +126,20 @@
|
|
125
126
|
<plan_interval_unit>months</plan_interval_unit>
|
126
127
|
<trial_interval_length type="integer">0</trial_interval_length>
|
127
128
|
<trial_interval_unit>months</trial_interval_unit>
|
128
|
-
<created_at type="datetime">2010-
|
129
|
+
<created_at type="datetime">2010-12-10T19:19:03Z</created_at>
|
129
130
|
</latest_version>
|
131
|
+
<add_ons type="collection">
|
132
|
+
<add_on>
|
133
|
+
<add_on_code>special</add_on_code>
|
134
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
135
|
+
<default_quantity>1</default_quantity>
|
136
|
+
</add_on>
|
137
|
+
<add_on>
|
138
|
+
<add_on_code>special2</add_on_code>
|
139
|
+
<default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
|
140
|
+
<default_quantity>1</default_quantity>
|
141
|
+
</add_on>
|
142
|
+
</add_ons>
|
130
143
|
</plan>
|
131
144
|
|
132
145
|
http_version: "1.1"
|
@@ -140,23 +153,24 @@
|
|
140
153
|
<quantity type="integer">1</quantity>
|
141
154
|
<plan-code>paid</plan-code>
|
142
155
|
<account>
|
143
|
-
<created-at type="datetime">
|
144
|
-
<hosted-login-token>
|
156
|
+
<created-at type="datetime">2011-01-08T08:05:31Z</created-at>
|
157
|
+
<hosted-login-token>83557287eb054238979a1978c528f173</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>subscription-change1-1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>subscription-change1-1287455769</id>
|
150
163
|
<last-name>Test</last-name>
|
164
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
151
165
|
<billing-info>
|
152
|
-
<city>San Francisco</city>
|
153
166
|
<address1>123 Test St</address1>
|
167
|
+
<city>San Francisco</city>
|
154
168
|
<zip>94115</zip>
|
155
169
|
<country>US</country>
|
156
170
|
<credit-card>
|
157
171
|
<number>1</number>
|
158
|
-
<month type="integer">
|
159
|
-
<year type="integer">
|
172
|
+
<month type="integer">1</month>
|
173
|
+
<year type="integer">2012</year>
|
160
174
|
<verification-value>123</verification-value>
|
161
175
|
</credit-card>
|
162
176
|
<last-name>Test</last-name>
|
@@ -189,15 +203,15 @@
|
|
189
203
|
content-type:
|
190
204
|
- application/xml; charset=utf-8
|
191
205
|
x-runtime:
|
192
|
-
- "
|
206
|
+
- "447"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:05:33 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "910"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=e43c3caf98179596d458a516c5c5b3db; domain=.recurly.com; path=/; secure; HttpOnly
|
201
215
|
cache-control:
|
202
216
|
- no-cache
|
203
217
|
body: |
|
@@ -212,13 +226,15 @@
|
|
212
226
|
<state>active</state>
|
213
227
|
<quantity type="integer">1</quantity>
|
214
228
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">
|
229
|
+
<activated_at type="datetime">2011-01-08T08:05:33Z</activated_at>
|
216
230
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
231
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">
|
219
|
-
<current_period_ends_at type="datetime">
|
232
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:33Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:33Z</current_period_ends_at>
|
220
234
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
235
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
236
|
+
<add_ons type="array">
|
237
|
+
</add_ons>
|
222
238
|
</subscription>
|
223
239
|
|
224
240
|
http_version: "1.1"
|
@@ -242,21 +258,21 @@
|
|
242
258
|
x-ua-compatible:
|
243
259
|
- IE=Edge
|
244
260
|
etag:
|
245
|
-
- "\"
|
261
|
+
- "\"1d5679b43c5355e9fba0949a54ce20de\""
|
246
262
|
connection:
|
247
263
|
- close
|
248
264
|
content-type:
|
249
265
|
- application/xml; charset=utf-8
|
250
266
|
x-runtime:
|
251
|
-
- "
|
267
|
+
- "21"
|
252
268
|
date:
|
253
|
-
-
|
269
|
+
- Sat, 08 Jan 2011 08:05:34 GMT
|
254
270
|
server:
|
255
|
-
- nginx/0.
|
271
|
+
- nginx/0.8.53
|
256
272
|
content-length:
|
257
|
-
- "
|
273
|
+
- "910"
|
258
274
|
set-cookie:
|
259
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=e18b2d26703568e1f9f2f4f09da17ee5; domain=.recurly.com; path=/; secure; HttpOnly
|
260
276
|
cache-control:
|
261
277
|
- private, max-age=0, must-revalidate
|
262
278
|
body: |
|
@@ -271,13 +287,15 @@
|
|
271
287
|
<state>active</state>
|
272
288
|
<quantity type="integer">1</quantity>
|
273
289
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
-
<activated_at type="datetime">
|
290
|
+
<activated_at type="datetime">2011-01-08T08:05:33Z</activated_at>
|
275
291
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
292
|
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
-
<current_period_started_at type="datetime">
|
278
|
-
<current_period_ends_at type="datetime">
|
293
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:33Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:33Z</current_period_ends_at>
|
279
295
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
296
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
|
+
<add_ons type="array">
|
298
|
+
</add_ons>
|
281
299
|
</subscription>
|
282
300
|
|
283
301
|
http_version: "1.1"
|
@@ -288,8 +306,8 @@
|
|
288
306
|
body: |
|
289
307
|
<?xml version="1.0" encoding="UTF-8"?>
|
290
308
|
<subscription>
|
291
|
-
<quantity type="integer">2</quantity>
|
292
309
|
<timeframe>now</timeframe>
|
310
|
+
<quantity type="integer">2</quantity>
|
293
311
|
</subscription>
|
294
312
|
|
295
313
|
headers:
|
@@ -309,21 +327,21 @@
|
|
309
327
|
x-ua-compatible:
|
310
328
|
- IE=Edge
|
311
329
|
etag:
|
312
|
-
- "\"
|
330
|
+
- "\"6ea31fc0a321ea39e3ad11e42de6b372\""
|
313
331
|
connection:
|
314
332
|
- close
|
315
333
|
content-type:
|
316
334
|
- application/xml; charset=utf-8
|
317
335
|
x-runtime:
|
318
|
-
- "
|
336
|
+
- "346"
|
319
337
|
date:
|
320
|
-
-
|
338
|
+
- Sat, 08 Jan 2011 08:05:35 GMT
|
321
339
|
server:
|
322
|
-
- nginx/0.
|
340
|
+
- nginx/0.8.53
|
323
341
|
content-length:
|
324
|
-
- "
|
342
|
+
- "910"
|
325
343
|
set-cookie:
|
326
|
-
- _recurly_session=
|
344
|
+
- _recurly_session=00db0bbb1e89195bc0e71e91b6f8439f; domain=.recurly.com; path=/; secure; HttpOnly
|
327
345
|
cache-control:
|
328
346
|
- private, max-age=0, must-revalidate
|
329
347
|
body: |
|
@@ -338,13 +356,15 @@
|
|
338
356
|
<state>active</state>
|
339
357
|
<quantity type="integer">2</quantity>
|
340
358
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
341
|
-
<activated_at type="datetime">
|
359
|
+
<activated_at type="datetime">2011-01-08T08:05:35Z</activated_at>
|
342
360
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
343
361
|
<expires_at nil="true" type="datetime"></expires_at>
|
344
|
-
<current_period_started_at type="datetime">
|
345
|
-
<current_period_ends_at type="datetime">
|
362
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:33Z</current_period_started_at>
|
363
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:33Z</current_period_ends_at>
|
346
364
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
347
365
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
366
|
+
<add_ons type="array">
|
367
|
+
</add_ons>
|
348
368
|
</subscription>
|
349
369
|
|
350
370
|
http_version: "1.1"
|
@@ -368,21 +388,21 @@
|
|
368
388
|
x-ua-compatible:
|
369
389
|
- IE=Edge
|
370
390
|
etag:
|
371
|
-
- "\"
|
391
|
+
- "\"6ea31fc0a321ea39e3ad11e42de6b372\""
|
372
392
|
connection:
|
373
393
|
- close
|
374
394
|
content-type:
|
375
395
|
- application/xml; charset=utf-8
|
376
396
|
x-runtime:
|
377
|
-
- "
|
397
|
+
- "22"
|
378
398
|
date:
|
379
|
-
-
|
399
|
+
- Sat, 08 Jan 2011 08:05:36 GMT
|
380
400
|
server:
|
381
|
-
- nginx/0.
|
401
|
+
- nginx/0.8.53
|
382
402
|
content-length:
|
383
|
-
- "
|
403
|
+
- "910"
|
384
404
|
set-cookie:
|
385
|
-
- _recurly_session=
|
405
|
+
- _recurly_session=cd7eef092655d0693646b4ab34366a03; domain=.recurly.com; path=/; secure; HttpOnly
|
386
406
|
cache-control:
|
387
407
|
- private, max-age=0, must-revalidate
|
388
408
|
body: |
|
@@ -397,13 +417,15 @@
|
|
397
417
|
<state>active</state>
|
398
418
|
<quantity type="integer">2</quantity>
|
399
419
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
400
|
-
<activated_at type="datetime">
|
420
|
+
<activated_at type="datetime">2011-01-08T08:05:35Z</activated_at>
|
401
421
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
402
422
|
<expires_at nil="true" type="datetime"></expires_at>
|
403
|
-
<current_period_started_at type="datetime">
|
404
|
-
<current_period_ends_at type="datetime">
|
423
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:33Z</current_period_started_at>
|
424
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:33Z</current_period_ends_at>
|
405
425
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
406
426
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
427
|
+
<add_ons type="array">
|
428
|
+
</add_ons>
|
407
429
|
</subscription>
|
408
430
|
|
409
431
|
http_version: "1.1"
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code type="integer">1287455769</account-code>
|
11
11
|
<last-name>Test</last-name>
|
12
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
12
13
|
<email>verena@test.com</email>
|
13
14
|
<first-name>Verena</first-name>
|
14
15
|
</account>
|
@@ -34,17 +35,17 @@
|
|
34
35
|
content-type:
|
35
36
|
- application/xml; charset=utf-8
|
36
37
|
x-runtime:
|
37
|
-
- "
|
38
|
+
- "343"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:05:37 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "553"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=9fd826ff9cc29244b4c8df3708f5add887d903a7a27a9b15273b3d40f897bc9e2b9e04c8d4e000d32aa0a371b548ccc50e4a895b43713b2d34278d47c11a36e7%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=f068404146c738acbf3a872ae0ff30f5; domain=.recurly.com; path=/; secure; HttpOnly
|
48
49
|
cache-control:
|
49
50
|
- no-cache
|
50
51
|
body: |
|
@@ -59,8 +60,8 @@
|
|
59
60
|
<company_name>Recurly Ruby Gem</company_name>
|
60
61
|
<balance_in_cents type="integer">0</balance_in_cents>
|
61
62
|
<closed type="boolean">false</closed>
|
62
|
-
<hosted_login_token>
|
63
|
-
<created_at type="datetime">
|
63
|
+
<hosted_login_token>50f8486b12ed4b13b70bde9c938db755</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:05:37Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -85,21 +86,21 @@
|
|
85
86
|
x-ua-compatible:
|
86
87
|
- IE=Edge
|
87
88
|
etag:
|
88
|
-
- "\"
|
89
|
+
- "\"47a9e8e85691ef0600a2dd39f113a21e\""
|
89
90
|
connection:
|
90
91
|
- close
|
91
92
|
content-type:
|
92
93
|
- application/xml; charset=utf-8
|
93
94
|
x-runtime:
|
94
|
-
- "
|
95
|
+
- "111"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:05:38 GMT
|
97
98
|
server:
|
98
|
-
- nginx/0.
|
99
|
+
- nginx/0.8.53
|
99
100
|
content-length:
|
100
|
-
- "
|
101
|
+
- "1564"
|
101
102
|
set-cookie:
|
102
|
-
- _recurly_session=
|
103
|
+
- _recurly_session=a5022865ac9a7c7c768ca83df0b44b5f; domain=.recurly.com; path=/; secure; HttpOnly
|
103
104
|
cache-control:
|
104
105
|
- private, max-age=0, must-revalidate
|
105
106
|
body: |
|
@@ -125,8 +126,20 @@
|
|
125
126
|
<plan_interval_unit>months</plan_interval_unit>
|
126
127
|
<trial_interval_length type="integer">0</trial_interval_length>
|
127
128
|
<trial_interval_unit>months</trial_interval_unit>
|
128
|
-
<created_at type="datetime">2010-
|
129
|
+
<created_at type="datetime">2010-12-10T19:19:03Z</created_at>
|
129
130
|
</latest_version>
|
131
|
+
<add_ons type="collection">
|
132
|
+
<add_on>
|
133
|
+
<add_on_code>special</add_on_code>
|
134
|
+
<default_unit_amount_in_cents>1000</default_unit_amount_in_cents>
|
135
|
+
<default_quantity>1</default_quantity>
|
136
|
+
</add_on>
|
137
|
+
<add_on>
|
138
|
+
<add_on_code>special2</add_on_code>
|
139
|
+
<default_unit_amount_in_cents>1500</default_unit_amount_in_cents>
|
140
|
+
<default_quantity>1</default_quantity>
|
141
|
+
</add_on>
|
142
|
+
</add_ons>
|
130
143
|
</plan>
|
131
144
|
|
132
145
|
http_version: "1.1"
|
@@ -140,23 +153,24 @@
|
|
140
153
|
<quantity type="integer">1</quantity>
|
141
154
|
<plan-code>paid</plan-code>
|
142
155
|
<account>
|
143
|
-
<created-at type="datetime">
|
144
|
-
<hosted-login-token>
|
156
|
+
<created-at type="datetime">2011-01-08T08:05:37Z</created-at>
|
157
|
+
<hosted-login-token>50f8486b12ed4b13b70bde9c938db755</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>1287455769</id>
|
150
163
|
<last-name>Test</last-name>
|
164
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
151
165
|
<billing-info>
|
152
|
-
<city>San Francisco</city>
|
153
166
|
<address1>123 Test St</address1>
|
167
|
+
<city>San Francisco</city>
|
154
168
|
<zip>94115</zip>
|
155
169
|
<country>US</country>
|
156
170
|
<credit-card>
|
157
171
|
<number>1</number>
|
158
|
-
<month type="integer">
|
159
|
-
<year type="integer">
|
172
|
+
<month type="integer">1</month>
|
173
|
+
<year type="integer">2012</year>
|
160
174
|
<verification-value>123</verification-value>
|
161
175
|
</credit-card>
|
162
176
|
<last-name>Test</last-name>
|
@@ -189,15 +203,15 @@
|
|
189
203
|
content-type:
|
190
204
|
- application/xml; charset=utf-8
|
191
205
|
x-runtime:
|
192
|
-
- "
|
206
|
+
- "464"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:05:39 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "868"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=41a9fa0019a7b74f5bd09621ab817d8f; domain=.recurly.com; path=/; secure; HttpOnly
|
201
215
|
cache-control:
|
202
216
|
- no-cache
|
203
217
|
body: |
|
@@ -212,13 +226,15 @@
|
|
212
226
|
<state>active</state>
|
213
227
|
<quantity type="integer">1</quantity>
|
214
228
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
215
|
-
<activated_at type="datetime">
|
229
|
+
<activated_at type="datetime">2011-01-08T08:05:39Z</activated_at>
|
216
230
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
217
231
|
<expires_at nil="true" type="datetime"></expires_at>
|
218
|
-
<current_period_started_at type="datetime">
|
219
|
-
<current_period_ends_at type="datetime">
|
232
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
|
220
234
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
221
235
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
236
|
+
<add_ons type="array">
|
237
|
+
</add_ons>
|
222
238
|
</subscription>
|
223
239
|
|
224
240
|
http_version: "1.1"
|
@@ -242,21 +258,21 @@
|
|
242
258
|
x-ua-compatible:
|
243
259
|
- IE=Edge
|
244
260
|
etag:
|
245
|
-
- "\"
|
261
|
+
- "\"ed1fa61a72a61ddd7c0b1d0447a800da\""
|
246
262
|
connection:
|
247
263
|
- close
|
248
264
|
content-type:
|
249
265
|
- application/xml; charset=utf-8
|
250
266
|
x-runtime:
|
251
|
-
- "
|
267
|
+
- "22"
|
252
268
|
date:
|
253
|
-
-
|
269
|
+
- Sat, 08 Jan 2011 08:05:40 GMT
|
254
270
|
server:
|
255
|
-
- nginx/0.
|
271
|
+
- nginx/0.8.53
|
256
272
|
content-length:
|
257
|
-
- "
|
273
|
+
- "868"
|
258
274
|
set-cookie:
|
259
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=3c925afda1662f19db172afe94b012d1; domain=.recurly.com; path=/; secure; HttpOnly
|
260
276
|
cache-control:
|
261
277
|
- private, max-age=0, must-revalidate
|
262
278
|
body: |
|
@@ -271,13 +287,15 @@
|
|
271
287
|
<state>active</state>
|
272
288
|
<quantity type="integer">1</quantity>
|
273
289
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
274
|
-
<activated_at type="datetime">
|
290
|
+
<activated_at type="datetime">2011-01-08T08:05:39Z</activated_at>
|
275
291
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
276
292
|
<expires_at nil="true" type="datetime"></expires_at>
|
277
|
-
<current_period_started_at type="datetime">
|
278
|
-
<current_period_ends_at type="datetime">
|
293
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
|
279
295
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
280
296
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
297
|
+
<add_ons type="array">
|
298
|
+
</add_ons>
|
281
299
|
</subscription>
|
282
300
|
|
283
301
|
http_version: "1.1"
|
@@ -288,8 +306,8 @@
|
|
288
306
|
body: |
|
289
307
|
<?xml version="1.0" encoding="UTF-8"?>
|
290
308
|
<subscription>
|
291
|
-
<quantity type="integer">2</quantity>
|
292
309
|
<timeframe>now</timeframe>
|
310
|
+
<quantity type="integer">2</quantity>
|
293
311
|
</subscription>
|
294
312
|
|
295
313
|
headers:
|
@@ -309,21 +327,21 @@
|
|
309
327
|
x-ua-compatible:
|
310
328
|
- IE=Edge
|
311
329
|
etag:
|
312
|
-
- "\"
|
330
|
+
- "\"cdb6f8204d09de300f8a69d079d7ee1b\""
|
313
331
|
connection:
|
314
332
|
- close
|
315
333
|
content-type:
|
316
334
|
- application/xml; charset=utf-8
|
317
335
|
x-runtime:
|
318
|
-
- "
|
336
|
+
- "343"
|
319
337
|
date:
|
320
|
-
-
|
338
|
+
- Sat, 08 Jan 2011 08:05:41 GMT
|
321
339
|
server:
|
322
|
-
- nginx/0.
|
340
|
+
- nginx/0.8.53
|
323
341
|
content-length:
|
324
|
-
- "
|
342
|
+
- "868"
|
325
343
|
set-cookie:
|
326
|
-
- _recurly_session=
|
344
|
+
- _recurly_session=96090bf0a5874c283f90a8a4451cc8c4; domain=.recurly.com; path=/; secure; HttpOnly
|
327
345
|
cache-control:
|
328
346
|
- private, max-age=0, must-revalidate
|
329
347
|
body: |
|
@@ -338,13 +356,15 @@
|
|
338
356
|
<state>active</state>
|
339
357
|
<quantity type="integer">2</quantity>
|
340
358
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
341
|
-
<activated_at type="datetime">
|
359
|
+
<activated_at type="datetime">2011-01-08T08:05:41Z</activated_at>
|
342
360
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
343
361
|
<expires_at nil="true" type="datetime"></expires_at>
|
344
|
-
<current_period_started_at type="datetime">
|
345
|
-
<current_period_ends_at type="datetime">
|
362
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
|
363
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
|
346
364
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
347
365
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
366
|
+
<add_ons type="array">
|
367
|
+
</add_ons>
|
348
368
|
</subscription>
|
349
369
|
|
350
370
|
http_version: "1.1"
|
@@ -368,21 +388,21 @@
|
|
368
388
|
x-ua-compatible:
|
369
389
|
- IE=Edge
|
370
390
|
etag:
|
371
|
-
- "\"
|
391
|
+
- "\"cdb6f8204d09de300f8a69d079d7ee1b\""
|
372
392
|
connection:
|
373
393
|
- close
|
374
394
|
content-type:
|
375
395
|
- application/xml; charset=utf-8
|
376
396
|
x-runtime:
|
377
|
-
- "
|
397
|
+
- "28"
|
378
398
|
date:
|
379
|
-
-
|
399
|
+
- Sat, 08 Jan 2011 08:05:42 GMT
|
380
400
|
server:
|
381
|
-
- nginx/0.
|
401
|
+
- nginx/0.8.53
|
382
402
|
content-length:
|
383
|
-
- "
|
403
|
+
- "868"
|
384
404
|
set-cookie:
|
385
|
-
- _recurly_session=
|
405
|
+
- _recurly_session=db87c304c0dcacb1b987d643d24b372c; domain=.recurly.com; path=/; secure; HttpOnly
|
386
406
|
cache-control:
|
387
407
|
- private, max-age=0, must-revalidate
|
388
408
|
body: |
|
@@ -397,13 +417,15 @@
|
|
397
417
|
<state>active</state>
|
398
418
|
<quantity type="integer">2</quantity>
|
399
419
|
<total_amount_in_cents type="integer">2000</total_amount_in_cents>
|
400
|
-
<activated_at type="datetime">
|
420
|
+
<activated_at type="datetime">2011-01-08T08:05:41Z</activated_at>
|
401
421
|
<canceled_at nil="true" type="datetime"></canceled_at>
|
402
422
|
<expires_at nil="true" type="datetime"></expires_at>
|
403
|
-
<current_period_started_at type="datetime">
|
404
|
-
<current_period_ends_at type="datetime">
|
423
|
+
<current_period_started_at type="datetime">2011-01-08T08:05:39Z</current_period_started_at>
|
424
|
+
<current_period_ends_at type="datetime">2011-02-08T08:05:39Z</current_period_ends_at>
|
405
425
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
406
426
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
427
|
+
<add_ons type="array">
|
428
|
+
</add_ons>
|
407
429
|
</subscription>
|
408
430
|
|
409
431
|
http_version: "1.1"
|