recurly 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/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-refund-full-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
|
+
- "347"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:06:04 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "603"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=e4d26a5411de868e2f33119c268e1bba86ec0e3041157f7eed294cebe84003182ee965f6449ec94af944bd53f43f47796596311f3381473041663b2a99776f23%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=54db1fb21be345df51f830290d47c00b; 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>0969225dce8f465789c11b076ed496a1</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:06:04Z</created_at>
|
64
65
|
<state>active</state>
|
65
66
|
</account>
|
66
67
|
|
@@ -85,7 +86,7 @@
|
|
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:
|
@@ -93,13 +94,13 @@
|
|
93
94
|
x-runtime:
|
94
95
|
- "14"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:06:05 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=513e230d45303008e2fa0e59fefee996; 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:06:04Z</created-at>
|
157
|
+
<hosted-login-token>0969225dce8f465789c11b076ed496a1</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>subscription-refund-full-1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>subscription-refund-full-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
|
+
- "480"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:06:06 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "918"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=e0d5039f5453dcb8c360df7dba2c3fc7; 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:06:06Z</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:06:06Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:06:06Z</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
|
+
- "\"084101ebdc1a8ef77942ed702d9e8cd3\""
|
246
262
|
connection:
|
247
263
|
- close
|
248
264
|
content-type:
|
249
265
|
- application/xml; charset=utf-8
|
250
266
|
x-runtime:
|
251
|
-
- "
|
267
|
+
- "23"
|
252
268
|
date:
|
253
|
-
-
|
269
|
+
- Sat, 08 Jan 2011 08:06:07 GMT
|
254
270
|
server:
|
255
|
-
- nginx/0.
|
271
|
+
- nginx/0.8.53
|
256
272
|
content-length:
|
257
|
-
- "
|
273
|
+
- "918"
|
258
274
|
set-cookie:
|
259
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=2e3249fd961528dd7258ce7745684a83; 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:06:06Z</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:06:06Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-02-08T08:06:06Z</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"
|
@@ -301,21 +319,21 @@
|
|
301
319
|
x-ua-compatible:
|
302
320
|
- IE=Edge
|
303
321
|
etag:
|
304
|
-
- "\"
|
322
|
+
- "\"0cbcc66d5a99e3fe71feb5f980e0db64\""
|
305
323
|
connection:
|
306
324
|
- close
|
307
325
|
content-type:
|
308
326
|
- application/xml; charset=utf-8
|
309
327
|
x-runtime:
|
310
|
-
- "
|
328
|
+
- "131"
|
311
329
|
date:
|
312
|
-
-
|
330
|
+
- Sat, 08 Jan 2011 08:06:08 GMT
|
313
331
|
server:
|
314
|
-
- nginx/0.
|
332
|
+
- nginx/0.8.53
|
315
333
|
content-length:
|
316
|
-
- "
|
334
|
+
- "937"
|
317
335
|
set-cookie:
|
318
|
-
- _recurly_session=
|
336
|
+
- _recurly_session=cd8372a9ca5ed46e4111b932ad652795; domain=.recurly.com; path=/; secure; HttpOnly
|
319
337
|
cache-control:
|
320
338
|
- private, max-age=0, must-revalidate
|
321
339
|
body: |
|
@@ -330,13 +348,15 @@
|
|
330
348
|
<state>expired</state>
|
331
349
|
<quantity type="integer">1</quantity>
|
332
350
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
333
|
-
<activated_at type="datetime">
|
334
|
-
<canceled_at type="datetime">
|
335
|
-
<expires_at type="datetime">
|
336
|
-
<current_period_started_at type="datetime">
|
337
|
-
<current_period_ends_at type="datetime">
|
351
|
+
<activated_at type="datetime">2011-01-08T08:06:06Z</activated_at>
|
352
|
+
<canceled_at type="datetime">2011-01-08T08:06:08Z</canceled_at>
|
353
|
+
<expires_at type="datetime">2011-02-08T08:06:06Z</expires_at>
|
354
|
+
<current_period_started_at type="datetime">2011-01-08T08:06:06Z</current_period_started_at>
|
355
|
+
<current_period_ends_at type="datetime">2011-02-08T08:06:06Z</current_period_ends_at>
|
338
356
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
339
357
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
|
+
<add_ons type="array">
|
359
|
+
</add_ons>
|
340
360
|
</subscription>
|
341
361
|
|
342
362
|
http_version: "1.1"
|
@@ -361,16 +381,14 @@
|
|
361
381
|
- close
|
362
382
|
content-type:
|
363
383
|
- application/xml; charset=utf-8
|
364
|
-
x-runtime:
|
365
|
-
- "11"
|
366
384
|
date:
|
367
|
-
-
|
385
|
+
- Sat, 08 Jan 2011 08:06:09 GMT
|
368
386
|
server:
|
369
|
-
- nginx/0.
|
387
|
+
- nginx/0.8.53
|
370
388
|
content-length:
|
371
389
|
- "98"
|
372
390
|
set-cookie:
|
373
|
-
- _recurly_session=
|
391
|
+
- _recurly_session=d73ba2a1d7facaaee2b007432c05cc52; domain=.recurly.com; path=/; secure; HttpOnly
|
374
392
|
cache-control:
|
375
393
|
- no-cache
|
376
394
|
body: |
|
@@ -9,6 +9,7 @@
|
|
9
9
|
<company-name>Recurly Ruby Gem</company-name>
|
10
10
|
<account-code>subscription-refund-none-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
|
+
- "345"
|
38
39
|
date:
|
39
|
-
-
|
40
|
+
- Sat, 08 Jan 2011 08:06:16 GMT
|
40
41
|
server:
|
41
|
-
- nginx/0.
|
42
|
+
- nginx/0.8.53
|
42
43
|
content-length:
|
43
44
|
- "603"
|
44
45
|
set-cookie:
|
45
|
-
- account_credentials=
|
46
|
+
- account_credentials=dc21141790d3ce3e7522e696d4b5f8251d9860f22075f60558986cb11af430841a684b29f026a4cf2613aa7dbfac5b6c82a560004524772260e6daf835eadb4d%3A%3A; domain=.recurly.com; path=/
|
46
47
|
- ""
|
47
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=54863aa330b25ede7b3c6f6a5137be79; 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>e2f98567ed9c42179e93ae7474c9cc5e</hosted_login_token>
|
64
|
+
<created_at type="datetime">2011-01-08T08:06:16Z</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
|
+
- "96"
|
95
96
|
date:
|
96
|
-
-
|
97
|
+
- Sat, 08 Jan 2011 08:06:16 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=22918b60053a4baffa1489a6f424c2f4; 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:06:16Z</created-at>
|
157
|
+
<hosted-login-token>e2f98567ed9c42179e93ae7474c9cc5e</hosted-login-token>
|
145
158
|
<company-name>Recurly Ruby Gem</company-name>
|
146
159
|
<account-code>subscription-refund-none-1287455769</account-code>
|
147
160
|
<closed type="boolean">false</closed>
|
148
161
|
<username type="yaml" nil="true"></username>
|
149
162
|
<id>subscription-refund-none-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
|
+
- "547"
|
193
207
|
date:
|
194
|
-
-
|
208
|
+
- Sat, 08 Jan 2011 08:06:18 GMT
|
195
209
|
server:
|
196
|
-
- nginx/0.
|
210
|
+
- nginx/0.8.53
|
197
211
|
content-length:
|
198
|
-
- "
|
212
|
+
- "918"
|
199
213
|
set-cookie:
|
200
|
-
- _recurly_session=
|
214
|
+
- _recurly_session=6057f092a076e3c66d20b52215fbc3af; 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:06:17Z</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:06:17Z</current_period_started_at>
|
233
|
+
<current_period_ends_at type="datetime">2011-02-08T08:06:17Z</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
|
+
- "\"f7936878fdcd07360d3f02eb28b629c7\""
|
246
262
|
connection:
|
247
263
|
- close
|
248
264
|
content-type:
|
249
265
|
- application/xml; charset=utf-8
|
250
266
|
x-runtime:
|
251
|
-
- "
|
267
|
+
- "24"
|
252
268
|
date:
|
253
|
-
-
|
269
|
+
- Sat, 08 Jan 2011 08:06:18 GMT
|
254
270
|
server:
|
255
|
-
- nginx/0.
|
271
|
+
- nginx/0.8.53
|
256
272
|
content-length:
|
257
|
-
- "
|
273
|
+
- "918"
|
258
274
|
set-cookie:
|
259
|
-
- _recurly_session=
|
275
|
+
- _recurly_session=f0715c77cbd0b290be3fad6d0e2afb4f; 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:06:17Z</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:06:17Z</current_period_started_at>
|
294
|
+
<current_period_ends_at type="datetime">2011-02-08T08:06:17Z</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"
|
@@ -301,21 +319,21 @@
|
|
301
319
|
x-ua-compatible:
|
302
320
|
- IE=Edge
|
303
321
|
etag:
|
304
|
-
- "\"
|
322
|
+
- "\"4d4dc66970ae09afedc2179b2f7f11ea\""
|
305
323
|
connection:
|
306
324
|
- close
|
307
325
|
content-type:
|
308
326
|
- application/xml; charset=utf-8
|
309
327
|
x-runtime:
|
310
|
-
- "
|
328
|
+
- "86"
|
311
329
|
date:
|
312
|
-
-
|
330
|
+
- Sat, 08 Jan 2011 08:06:19 GMT
|
313
331
|
server:
|
314
|
-
- nginx/0.
|
332
|
+
- nginx/0.8.53
|
315
333
|
content-length:
|
316
|
-
- "
|
334
|
+
- "937"
|
317
335
|
set-cookie:
|
318
|
-
- _recurly_session=
|
336
|
+
- _recurly_session=ffb0873f0386ced95440989206a2237e; domain=.recurly.com; path=/; secure; HttpOnly
|
319
337
|
cache-control:
|
320
338
|
- private, max-age=0, must-revalidate
|
321
339
|
body: |
|
@@ -330,13 +348,15 @@
|
|
330
348
|
<state>expired</state>
|
331
349
|
<quantity type="integer">1</quantity>
|
332
350
|
<total_amount_in_cents type="integer">1000</total_amount_in_cents>
|
333
|
-
<activated_at type="datetime">
|
334
|
-
<canceled_at type="datetime">
|
335
|
-
<expires_at type="datetime">
|
336
|
-
<current_period_started_at type="datetime">
|
337
|
-
<current_period_ends_at type="datetime">
|
351
|
+
<activated_at type="datetime">2011-01-08T08:06:17Z</activated_at>
|
352
|
+
<canceled_at type="datetime">2011-01-08T08:06:19Z</canceled_at>
|
353
|
+
<expires_at type="datetime">2011-02-08T08:06:17Z</expires_at>
|
354
|
+
<current_period_started_at type="datetime">2011-01-08T08:06:17Z</current_period_started_at>
|
355
|
+
<current_period_ends_at type="datetime">2011-02-08T08:06:17Z</current_period_ends_at>
|
338
356
|
<trial_started_at nil="true" type="datetime"></trial_started_at>
|
339
357
|
<trial_ends_at nil="true" type="datetime"></trial_ends_at>
|
358
|
+
<add_ons type="array">
|
359
|
+
</add_ons>
|
340
360
|
</subscription>
|
341
361
|
|
342
362
|
http_version: "1.1"
|
@@ -361,16 +381,14 @@
|
|
361
381
|
- close
|
362
382
|
content-type:
|
363
383
|
- application/xml; charset=utf-8
|
364
|
-
x-runtime:
|
365
|
-
- "12"
|
366
384
|
date:
|
367
|
-
-
|
385
|
+
- Sat, 08 Jan 2011 08:06:20 GMT
|
368
386
|
server:
|
369
|
-
- nginx/0.
|
387
|
+
- nginx/0.8.53
|
370
388
|
content-length:
|
371
389
|
- "98"
|
372
390
|
set-cookie:
|
373
|
-
- _recurly_session=
|
391
|
+
- _recurly_session=5629554427dbe80b0911dfd90532a8c6; domain=.recurly.com; path=/; secure; HttpOnly
|
374
392
|
cache-control:
|
375
393
|
- no-cache
|
376
394
|
body: |
|