recurly 0.4.0 → 0.4.1
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/patches/rails2/active_resource/connection.rb +10 -0
- data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
- data/lib/recurly.rb +7 -2
- data/lib/recurly/transparent.rb +4 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/transaction_spec.rb +5 -2
- data/spec/unit/transparent_spec.rb +59 -1
- data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
- data/spec/vcr/account/close/1297746103.yml +23 -30
- data/spec/vcr/account/create-blank/1297746103.yml +5 -7
- data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
- data/spec/vcr/account/create-min/1297746103.yml +8 -11
- data/spec/vcr/account/create/1297746103.yml +8 -11
- data/spec/vcr/account/find/1297746103.yml +22 -29
- data/spec/vcr/account/list/1297746103.yml +150 -196
- data/spec/vcr/account/update/1297746103.yml +37 -46
- data/spec/vcr/billing/create/1298594128.yml +24 -31
- data/spec/vcr/billing/destroy/1298594128.yml +35 -46
- data/spec/vcr/billing/find/1298594128.yml +32 -41
- data/spec/vcr/billing/update/1298594128.yml +32 -41
- data/spec/vcr/charge/create/1297746103.yml +36 -45
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
- data/spec/vcr/charge/list-all/1297746103.yml +51 -62
- data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
- data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
- data/spec/vcr/charge/lookup/1297746103.yml +28 -35
- data/spec/vcr/coupon/create/1299714521.yml +23 -30
- data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
- data/spec/vcr/credit/create/1299714599.yml +28 -35
- data/spec/vcr/credit/delete/1299714599.yml +41 -52
- data/spec/vcr/credit/list/1299714599.yml +51 -62
- data/spec/vcr/credit/lookup/1299714599.yml +28 -35
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
- data/spec/vcr/invoice/create/1297746103.yml +50 -61
- data/spec/vcr/invoice/list/1297746103.yml +73 -88
- data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
- data/spec/vcr/plan/all.yml +18 -24
- data/spec/vcr/plan/find.yml +18 -24
- data/spec/vcr/plan/update.yml +18 -24
- data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
- data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
- data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
- data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
- data/spec/vcr/subscription/change1/1297746103.yml +55 -68
- data/spec/vcr/subscription/change2/1297746103.yml +55 -68
- data/spec/vcr/subscription/create/1297746103.yml +25 -32
- data/spec/vcr/subscription/find/1297746103.yml +35 -44
- data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
- data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
- data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
- data/spec/vcr/transaction/all/1300473500.yml +387 -0
- data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
- data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
- data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
- data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
- data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
- data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
- data/spec/vcr/transaction/void/1300473500.yml +620 -0
- metadata +21 -20
- data/spec/vcr/transaction/all/1297746103.yml +0 -389
- data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
- data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
- data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
35
|
+
message: Created
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-list-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "329"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "579"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:50:56 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=9127b0750c3199cf0d35d1f079f76973; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=53376b44bfe2e43dcddbb0b9fd7365c4; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>18f3b394cbef4f598855d5967e4e8c85</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:51:26Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -108,26 +105,24 @@
|
|
108
105
|
response: !ruby/struct:VCR::Response
|
109
106
|
status: !ruby/struct:VCR::ResponseStatus
|
110
107
|
code: 200
|
111
|
-
message:
|
108
|
+
message: OK
|
112
109
|
headers:
|
113
110
|
x-runtime:
|
114
|
-
- "
|
111
|
+
- "7232"
|
115
112
|
content-type:
|
116
113
|
- application/xml; charset=utf-8
|
117
114
|
etag:
|
118
|
-
- "\"
|
115
|
+
- "\"7f9f210d38150817355b3a71d47cc5aa\""
|
119
116
|
cache-control:
|
120
117
|
- private, max-age=0, must-revalidate
|
121
118
|
content-length:
|
122
119
|
- "638"
|
123
|
-
|
124
|
-
-
|
125
|
-
date:
|
126
|
-
- Fri, 11 Mar 2011 18:51:00 GMT
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=803a84d0989525a8b8758da606bd9c0f; domain=.recurly.local; path=/; HttpOnly
|
127
122
|
connection:
|
128
123
|
- close
|
129
|
-
|
130
|
-
-
|
124
|
+
server:
|
125
|
+
- thin 1.2.7 codename No Hup
|
131
126
|
body: |
|
132
127
|
<?xml version="1.0" encoding="UTF-8"?>
|
133
128
|
<billing_info>
|
@@ -149,7 +144,7 @@
|
|
149
144
|
<month type="integer">3</month>
|
150
145
|
<year type="integer">2012</year>
|
151
146
|
</credit_card>
|
152
|
-
<updated_at type="datetime">2011-03-
|
147
|
+
<updated_at type="datetime">2011-03-18T18:51:36Z</updated_at>
|
153
148
|
</billing_info>
|
154
149
|
|
155
150
|
http_version: "1.1"
|
@@ -178,35 +173,33 @@
|
|
178
173
|
response: !ruby/struct:VCR::Response
|
179
174
|
status: !ruby/struct:VCR::ResponseStatus
|
180
175
|
code: 201
|
181
|
-
message:
|
176
|
+
message: Created
|
182
177
|
headers:
|
183
178
|
cache-control:
|
184
179
|
- no-cache
|
185
180
|
x-runtime:
|
186
|
-
- "
|
181
|
+
- "299"
|
187
182
|
content-type:
|
188
183
|
- application/xml; charset=utf-8
|
189
184
|
content-length:
|
190
185
|
- "516"
|
191
|
-
|
192
|
-
-
|
193
|
-
date:
|
194
|
-
- Fri, 11 Mar 2011 18:51:03 GMT
|
186
|
+
set-cookie:
|
187
|
+
- _recurly_session=79bea07bca996d4e97f06c543a569f2b; domain=.recurly.local; path=/; HttpOnly
|
195
188
|
connection:
|
196
189
|
- close
|
197
|
-
|
198
|
-
-
|
190
|
+
server:
|
191
|
+
- thin 1.2.7 codename No Hup
|
199
192
|
body: |
|
200
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
201
194
|
<charge type="charge">
|
202
|
-
<id>
|
195
|
+
<id>658d3d1a02844356a9c267bc7f9f3574</id>
|
203
196
|
<account_code>invoice-list-1297746103</account_code>
|
204
197
|
<amount_in_cents type="integer">100</amount_in_cents>
|
205
|
-
<start_date type="datetime">2011-03-
|
198
|
+
<start_date type="datetime">2011-03-18T18:51:38Z</start_date>
|
206
199
|
<end_date nil="true" type="datetime"></end_date>
|
207
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
208
201
|
<description>charge description</description>
|
209
|
-
<created_at type="datetime">2011-03-
|
202
|
+
<created_at type="datetime">2011-03-18T18:51:38Z</created_at>
|
210
203
|
</charge>
|
211
204
|
|
212
205
|
http_version: "1.1"
|
@@ -233,33 +226,31 @@
|
|
233
226
|
response: !ruby/struct:VCR::Response
|
234
227
|
status: !ruby/struct:VCR::ResponseStatus
|
235
228
|
code: 201
|
236
|
-
message:
|
229
|
+
message: Created
|
237
230
|
headers:
|
238
231
|
cache-control:
|
239
232
|
- no-cache
|
240
233
|
location:
|
241
|
-
- http://app.recurly.local:3000/invoices/
|
234
|
+
- http://app.recurly.local:3000/invoices/ea99d72698c74368b8e1a97d52311952
|
242
235
|
x-runtime:
|
243
|
-
- "
|
236
|
+
- "589"
|
244
237
|
content-type:
|
245
238
|
- application/xml; charset=utf-8
|
246
239
|
content-length:
|
247
240
|
- "1208"
|
248
|
-
|
249
|
-
-
|
250
|
-
date:
|
251
|
-
- Fri, 11 Mar 2011 18:51:05 GMT
|
241
|
+
set-cookie:
|
242
|
+
- _recurly_session=b9ebda2cd55bf789e6ee139336534726; domain=.recurly.local; path=/; HttpOnly
|
252
243
|
connection:
|
253
244
|
- close
|
254
|
-
|
255
|
-
-
|
245
|
+
server:
|
246
|
+
- thin 1.2.7 codename No Hup
|
256
247
|
body: |
|
257
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
258
249
|
<invoice>
|
259
|
-
<id>
|
250
|
+
<id>ea99d72698c74368b8e1a97d52311952</id>
|
260
251
|
<account_code>invoice-list-1297746103</account_code>
|
261
|
-
<date type="datetime">2011-03-
|
262
|
-
<invoice_number type="integer">
|
252
|
+
<date type="datetime">2011-03-18T18:51:40Z</date>
|
253
|
+
<invoice_number type="integer">2061</invoice_number>
|
263
254
|
<vat_number></vat_number>
|
264
255
|
<status>open</status>
|
265
256
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
@@ -270,13 +261,13 @@
|
|
270
261
|
<discount_in_cents type="integer">0</discount_in_cents>
|
271
262
|
<line_items type="array">
|
272
263
|
<line_item>
|
273
|
-
<id>
|
264
|
+
<id>658d3d1a02844356a9c267bc7f9f3574</id>
|
274
265
|
<type>charge</type>
|
275
266
|
<amount_in_cents type="integer">100</amount_in_cents>
|
276
|
-
<start_date type="datetime">2011-03-
|
267
|
+
<start_date type="datetime">2011-03-18T18:51:38Z</start_date>
|
277
268
|
<end_date nil="true" type="datetime"></end_date>
|
278
269
|
<description>charge description</description>
|
279
|
-
<created_at type="datetime">2011-03-
|
270
|
+
<created_at type="datetime">2011-03-18T18:51:38Z</created_at>
|
280
271
|
<applied_coupon_code></applied_coupon_code>
|
281
272
|
</line_item>
|
282
273
|
</line_items>
|
@@ -310,35 +301,33 @@
|
|
310
301
|
response: !ruby/struct:VCR::Response
|
311
302
|
status: !ruby/struct:VCR::ResponseStatus
|
312
303
|
code: 201
|
313
|
-
message:
|
304
|
+
message: Created
|
314
305
|
headers:
|
315
306
|
cache-control:
|
316
307
|
- no-cache
|
317
308
|
x-runtime:
|
318
|
-
- "
|
309
|
+
- "303"
|
319
310
|
content-type:
|
320
311
|
- application/xml; charset=utf-8
|
321
312
|
content-length:
|
322
313
|
- "516"
|
323
|
-
|
324
|
-
-
|
325
|
-
date:
|
326
|
-
- Fri, 11 Mar 2011 18:51:08 GMT
|
314
|
+
set-cookie:
|
315
|
+
- _recurly_session=56bd50321047f8a010fe4218085aa661; domain=.recurly.local; path=/; HttpOnly
|
327
316
|
connection:
|
328
317
|
- close
|
329
|
-
|
330
|
-
-
|
318
|
+
server:
|
319
|
+
- thin 1.2.7 codename No Hup
|
331
320
|
body: |
|
332
321
|
<?xml version="1.0" encoding="UTF-8"?>
|
333
322
|
<charge type="charge">
|
334
|
-
<id>
|
323
|
+
<id>8d3896ffa48d4701ac8b250a24f47c4e</id>
|
335
324
|
<account_code>invoice-list-1297746103</account_code>
|
336
325
|
<amount_in_cents type="integer">300</amount_in_cents>
|
337
|
-
<start_date type="datetime">2011-03-
|
326
|
+
<start_date type="datetime">2011-03-18T18:51:42Z</start_date>
|
338
327
|
<end_date nil="true" type="datetime"></end_date>
|
339
328
|
<invoice_number nil="true" type="integer"></invoice_number>
|
340
329
|
<description>charge description</description>
|
341
|
-
<created_at type="datetime">2011-03-
|
330
|
+
<created_at type="datetime">2011-03-18T18:51:42Z</created_at>
|
342
331
|
</charge>
|
343
332
|
|
344
333
|
http_version: "1.1"
|
@@ -365,33 +354,31 @@
|
|
365
354
|
response: !ruby/struct:VCR::Response
|
366
355
|
status: !ruby/struct:VCR::ResponseStatus
|
367
356
|
code: 201
|
368
|
-
message:
|
357
|
+
message: Created
|
369
358
|
headers:
|
370
359
|
cache-control:
|
371
360
|
- no-cache
|
372
361
|
location:
|
373
|
-
- http://app.recurly.local:3000/invoices/
|
362
|
+
- http://app.recurly.local:3000/invoices/3b38eddc07034808b6013e7f8ebaafbc
|
374
363
|
x-runtime:
|
375
|
-
- "
|
364
|
+
- "620"
|
376
365
|
content-type:
|
377
366
|
- application/xml; charset=utf-8
|
378
367
|
content-length:
|
379
368
|
- "1208"
|
380
|
-
|
381
|
-
-
|
382
|
-
date:
|
383
|
-
- Fri, 11 Mar 2011 18:51:10 GMT
|
369
|
+
set-cookie:
|
370
|
+
- _recurly_session=5f01c8d0acc85f429e2c4649e1d22681; domain=.recurly.local; path=/; HttpOnly
|
384
371
|
connection:
|
385
372
|
- close
|
386
|
-
|
387
|
-
-
|
373
|
+
server:
|
374
|
+
- thin 1.2.7 codename No Hup
|
388
375
|
body: |
|
389
376
|
<?xml version="1.0" encoding="UTF-8"?>
|
390
377
|
<invoice>
|
391
|
-
<id>
|
378
|
+
<id>3b38eddc07034808b6013e7f8ebaafbc</id>
|
392
379
|
<account_code>invoice-list-1297746103</account_code>
|
393
|
-
<date type="datetime">2011-03-
|
394
|
-
<invoice_number type="integer">
|
380
|
+
<date type="datetime">2011-03-18T18:51:44Z</date>
|
381
|
+
<invoice_number type="integer">2062</invoice_number>
|
395
382
|
<vat_number></vat_number>
|
396
383
|
<status>open</status>
|
397
384
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
@@ -402,13 +389,13 @@
|
|
402
389
|
<discount_in_cents type="integer">0</discount_in_cents>
|
403
390
|
<line_items type="array">
|
404
391
|
<line_item>
|
405
|
-
<id>
|
392
|
+
<id>8d3896ffa48d4701ac8b250a24f47c4e</id>
|
406
393
|
<type>charge</type>
|
407
394
|
<amount_in_cents type="integer">300</amount_in_cents>
|
408
|
-
<start_date type="datetime">2011-03-
|
395
|
+
<start_date type="datetime">2011-03-18T18:51:42Z</start_date>
|
409
396
|
<end_date nil="true" type="datetime"></end_date>
|
410
397
|
<description>charge description</description>
|
411
|
-
<created_at type="datetime">2011-03-
|
398
|
+
<created_at type="datetime">2011-03-18T18:51:42Z</created_at>
|
412
399
|
<applied_coupon_code></applied_coupon_code>
|
413
400
|
</line_item>
|
414
401
|
</line_items>
|
@@ -436,42 +423,40 @@
|
|
436
423
|
response: !ruby/struct:VCR::Response
|
437
424
|
status: !ruby/struct:VCR::ResponseStatus
|
438
425
|
code: 200
|
439
|
-
message:
|
426
|
+
message: OK
|
440
427
|
headers:
|
441
428
|
x-runtime:
|
442
|
-
- "
|
429
|
+
- "88"
|
443
430
|
content-type:
|
444
431
|
- application/xml; charset=utf-8
|
445
432
|
etag:
|
446
|
-
- "\"
|
433
|
+
- "\"25064374673b3a227c7a323b93caab88\""
|
447
434
|
cache-control:
|
448
435
|
- private, max-age=0, must-revalidate
|
449
436
|
content-length:
|
450
437
|
- "789"
|
451
|
-
|
452
|
-
-
|
453
|
-
date:
|
454
|
-
- Fri, 11 Mar 2011 18:51:13 GMT
|
438
|
+
set-cookie:
|
439
|
+
- _recurly_session=0af4280b959f1a328b67af0b0c343db6; domain=.recurly.local; path=/; HttpOnly
|
455
440
|
connection:
|
456
441
|
- close
|
457
|
-
|
458
|
-
-
|
442
|
+
server:
|
443
|
+
- thin 1.2.7 codename No Hup
|
459
444
|
body: |
|
460
445
|
<?xml version="1.0" encoding="UTF-8"?>
|
461
446
|
<invoices type="array">
|
462
447
|
<invoice>
|
463
|
-
<id>
|
448
|
+
<id>3b38eddc07034808b6013e7f8ebaafbc</id>
|
464
449
|
<account_code>invoice-list-1297746103</account_code>
|
465
|
-
<date type="datetime">2011-03-
|
466
|
-
<invoice_number type="integer">
|
450
|
+
<date type="datetime">2011-03-18T18:51:44Z</date>
|
451
|
+
<invoice_number type="integer">2062</invoice_number>
|
467
452
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
468
453
|
<total_in_cents type="integer">300</total_in_cents>
|
469
454
|
</invoice>
|
470
455
|
<invoice>
|
471
|
-
<id>
|
456
|
+
<id>ea99d72698c74368b8e1a97d52311952</id>
|
472
457
|
<account_code>invoice-list-1297746103</account_code>
|
473
|
-
<date type="datetime">2011-03-
|
474
|
-
<invoice_number type="integer">
|
458
|
+
<date type="datetime">2011-03-18T18:51:40Z</date>
|
459
|
+
<invoice_number type="integer">2061</invoice_number>
|
475
460
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
476
461
|
<total_in_cents type="integer">100</total_in_cents>
|
477
462
|
</invoice>
|
@@ -32,27 +32,24 @@
|
|
32
32
|
response: !ruby/struct:VCR::Response
|
33
33
|
status: !ruby/struct:VCR::ResponseStatus
|
34
34
|
code: 201
|
35
|
-
message:
|
35
|
+
message: Created
|
36
36
|
headers:
|
37
37
|
cache-control:
|
38
38
|
- no-cache
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-lookup-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "328"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
|
-
|
48
|
-
-
|
49
|
-
date:
|
50
|
-
- Fri, 11 Mar 2011 18:51:15 GMT
|
47
|
+
set-cookie:
|
48
|
+
- _recurly_session=ac6325d48a952583e1c5a30d12944b30; domain=.recurly.local; path=/; HttpOnly
|
51
49
|
connection:
|
52
50
|
- close
|
53
|
-
|
54
|
-
-
|
55
|
-
- _recurly_session=4585aa5ba31fb276909ef2272bb04da0; domain=.recurly.local; path=/; HttpOnly
|
51
|
+
server:
|
52
|
+
- thin 1.2.7 codename No Hup
|
56
53
|
body: |
|
57
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
58
55
|
<account>
|
@@ -65,8 +62,8 @@
|
|
65
62
|
<company_name>Recurly Ruby Gem</company_name>
|
66
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
67
64
|
<closed type="boolean">false</closed>
|
68
|
-
<hosted_login_token>
|
69
|
-
<created_at type="datetime">2011-03-
|
65
|
+
<hosted_login_token>1ca19d28068646d6b969cf28ce907e65</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-03-18T18:51:49Z</created_at>
|
70
67
|
<state>active</state>
|
71
68
|
</account>
|
72
69
|
|
@@ -108,26 +105,24 @@
|
|
108
105
|
response: !ruby/struct:VCR::Response
|
109
106
|
status: !ruby/struct:VCR::ResponseStatus
|
110
107
|
code: 200
|
111
|
-
message:
|
108
|
+
message: OK
|
112
109
|
headers:
|
113
110
|
x-runtime:
|
114
|
-
- "
|
111
|
+
- "6107"
|
115
112
|
content-type:
|
116
113
|
- application/xml; charset=utf-8
|
117
114
|
etag:
|
118
|
-
- "\"
|
115
|
+
- "\"ce0985d544d3e9115cb1c35e66cf741f\""
|
119
116
|
cache-control:
|
120
117
|
- private, max-age=0, must-revalidate
|
121
118
|
content-length:
|
122
119
|
- "640"
|
123
|
-
|
124
|
-
-
|
125
|
-
date:
|
126
|
-
- Fri, 11 Mar 2011 18:51:20 GMT
|
120
|
+
set-cookie:
|
121
|
+
- _recurly_session=ad6502566a4cf100358fdeb809eb6b3d; domain=.recurly.local; path=/; HttpOnly
|
127
122
|
connection:
|
128
123
|
- close
|
129
|
-
|
130
|
-
-
|
124
|
+
server:
|
125
|
+
- thin 1.2.7 codename No Hup
|
131
126
|
body: |
|
132
127
|
<?xml version="1.0" encoding="UTF-8"?>
|
133
128
|
<billing_info>
|
@@ -149,7 +144,7 @@
|
|
149
144
|
<month type="integer">3</month>
|
150
145
|
<year type="integer">2012</year>
|
151
146
|
</credit_card>
|
152
|
-
<updated_at type="datetime">2011-03-
|
147
|
+
<updated_at type="datetime">2011-03-18T18:51:57Z</updated_at>
|
153
148
|
</billing_info>
|
154
149
|
|
155
150
|
http_version: "1.1"
|
@@ -178,35 +173,33 @@
|
|
178
173
|
response: !ruby/struct:VCR::Response
|
179
174
|
status: !ruby/struct:VCR::ResponseStatus
|
180
175
|
code: 201
|
181
|
-
message:
|
176
|
+
message: Created
|
182
177
|
headers:
|
183
178
|
cache-control:
|
184
179
|
- no-cache
|
185
180
|
x-runtime:
|
186
|
-
- "
|
181
|
+
- "303"
|
187
182
|
content-type:
|
188
183
|
- application/xml; charset=utf-8
|
189
184
|
content-length:
|
190
185
|
- "519"
|
191
|
-
|
192
|
-
-
|
193
|
-
date:
|
194
|
-
- Fri, 11 Mar 2011 18:51:22 GMT
|
186
|
+
set-cookie:
|
187
|
+
- _recurly_session=560de0ef1b2ecfafb930885dc6e8ed8b; domain=.recurly.local; path=/; HttpOnly
|
195
188
|
connection:
|
196
189
|
- close
|
197
|
-
|
198
|
-
-
|
190
|
+
server:
|
191
|
+
- thin 1.2.7 codename No Hup
|
199
192
|
body: |
|
200
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
201
194
|
<charge type="charge">
|
202
|
-
<id>
|
195
|
+
<id>a9cb1d4ea7854fd5959f3b1add3078da</id>
|
203
196
|
<account_code>invoice-lookup-1297746103</account_code>
|
204
197
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
205
|
-
<start_date type="datetime">2011-03-
|
198
|
+
<start_date type="datetime">2011-03-18T18:51:59Z</start_date>
|
206
199
|
<end_date nil="true" type="datetime"></end_date>
|
207
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
208
201
|
<description>charge description</description>
|
209
|
-
<created_at type="datetime">2011-03-
|
202
|
+
<created_at type="datetime">2011-03-18T18:51:59Z</created_at>
|
210
203
|
</charge>
|
211
204
|
|
212
205
|
http_version: "1.1"
|
@@ -233,33 +226,31 @@
|
|
233
226
|
response: !ruby/struct:VCR::Response
|
234
227
|
status: !ruby/struct:VCR::ResponseStatus
|
235
228
|
code: 201
|
236
|
-
message:
|
229
|
+
message: Created
|
237
230
|
headers:
|
238
231
|
cache-control:
|
239
232
|
- no-cache
|
240
233
|
location:
|
241
|
-
- http://app.recurly.local:3000/invoices/
|
234
|
+
- http://app.recurly.local:3000/invoices/1a5cbf96d7914e24ab2741c9c692f0e9
|
242
235
|
x-runtime:
|
243
|
-
- "
|
236
|
+
- "380"
|
244
237
|
content-type:
|
245
238
|
- application/xml; charset=utf-8
|
246
239
|
content-length:
|
247
240
|
- "1214"
|
248
|
-
|
249
|
-
-
|
250
|
-
date:
|
251
|
-
- Fri, 11 Mar 2011 18:51:24 GMT
|
241
|
+
set-cookie:
|
242
|
+
- _recurly_session=2dff0d035f1a6c447803cdc0b409a988; domain=.recurly.local; path=/; HttpOnly
|
252
243
|
connection:
|
253
244
|
- close
|
254
|
-
|
255
|
-
-
|
245
|
+
server:
|
246
|
+
- thin 1.2.7 codename No Hup
|
256
247
|
body: |
|
257
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
258
249
|
<invoice>
|
259
|
-
<id>
|
250
|
+
<id>1a5cbf96d7914e24ab2741c9c692f0e9</id>
|
260
251
|
<account_code>invoice-lookup-1297746103</account_code>
|
261
|
-
<date type="datetime">2011-03-
|
262
|
-
<invoice_number type="integer">
|
252
|
+
<date type="datetime">2011-03-18T18:52:01Z</date>
|
253
|
+
<invoice_number type="integer">2063</invoice_number>
|
263
254
|
<vat_number></vat_number>
|
264
255
|
<status>open</status>
|
265
256
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -270,13 +261,13 @@
|
|
270
261
|
<discount_in_cents type="integer">0</discount_in_cents>
|
271
262
|
<line_items type="array">
|
272
263
|
<line_item>
|
273
|
-
<id>
|
264
|
+
<id>a9cb1d4ea7854fd5959f3b1add3078da</id>
|
274
265
|
<type>charge</type>
|
275
266
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
276
|
-
<start_date type="datetime">2011-03-
|
267
|
+
<start_date type="datetime">2011-03-18T18:51:59Z</start_date>
|
277
268
|
<end_date nil="true" type="datetime"></end_date>
|
278
269
|
<description>charge description</description>
|
279
|
-
<created_at type="datetime">2011-03-
|
270
|
+
<created_at type="datetime">2011-03-18T18:51:59Z</created_at>
|
280
271
|
<applied_coupon_code></applied_coupon_code>
|
281
272
|
</line_item>
|
282
273
|
</line_items>
|
@@ -288,7 +279,7 @@
|
|
288
279
|
- !ruby/struct:VCR::HTTPInteraction
|
289
280
|
request: !ruby/struct:VCR::Request
|
290
281
|
method: :get
|
291
|
-
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/invoices/
|
282
|
+
uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/invoices/1a5cbf96d7914e24ab2741c9c692f0e9.xml
|
292
283
|
body:
|
293
284
|
headers:
|
294
285
|
authorization:
|
@@ -304,33 +295,31 @@
|
|
304
295
|
response: !ruby/struct:VCR::Response
|
305
296
|
status: !ruby/struct:VCR::ResponseStatus
|
306
297
|
code: 200
|
307
|
-
message:
|
298
|
+
message: OK
|
308
299
|
headers:
|
309
300
|
x-runtime:
|
310
|
-
- "
|
301
|
+
- "293"
|
311
302
|
content-type:
|
312
303
|
- application/xml; charset=utf-8
|
313
304
|
etag:
|
314
|
-
- "\"
|
305
|
+
- "\"4690d684fe910b7b8962385465fe0aa3\""
|
315
306
|
cache-control:
|
316
307
|
- private, max-age=0, must-revalidate
|
317
308
|
content-length:
|
318
309
|
- "1214"
|
319
|
-
|
320
|
-
-
|
321
|
-
date:
|
322
|
-
- Fri, 11 Mar 2011 18:51:26 GMT
|
310
|
+
set-cookie:
|
311
|
+
- _recurly_session=890b5a9b2b220153626be93cb31e9025; domain=.recurly.local; path=/; HttpOnly
|
323
312
|
connection:
|
324
313
|
- close
|
325
|
-
|
326
|
-
-
|
314
|
+
server:
|
315
|
+
- thin 1.2.7 codename No Hup
|
327
316
|
body: |
|
328
317
|
<?xml version="1.0" encoding="UTF-8"?>
|
329
318
|
<invoice>
|
330
|
-
<id>
|
319
|
+
<id>1a5cbf96d7914e24ab2741c9c692f0e9</id>
|
331
320
|
<account_code>invoice-lookup-1297746103</account_code>
|
332
|
-
<date type="datetime">2011-03-
|
333
|
-
<invoice_number type="integer">
|
321
|
+
<date type="datetime">2011-03-18T18:52:01Z</date>
|
322
|
+
<invoice_number type="integer">2063</invoice_number>
|
334
323
|
<vat_number></vat_number>
|
335
324
|
<status>open</status>
|
336
325
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -341,13 +330,13 @@
|
|
341
330
|
<discount_in_cents type="integer">0</discount_in_cents>
|
342
331
|
<line_items type="array">
|
343
332
|
<line_item>
|
344
|
-
<id>
|
333
|
+
<id>a9cb1d4ea7854fd5959f3b1add3078da</id>
|
345
334
|
<type>charge</type>
|
346
335
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
347
|
-
<start_date type="datetime">2011-03-
|
336
|
+
<start_date type="datetime">2011-03-18T18:51:59Z</start_date>
|
348
337
|
<end_date nil="true" type="datetime"></end_date>
|
349
338
|
<description>charge description</description>
|
350
|
-
<created_at type="datetime">2011-03-
|
339
|
+
<created_at type="datetime">2011-03-18T18:51:59Z</created_at>
|
351
340
|
<applied_coupon_code></applied_coupon_code>
|
352
341
|
</line_item>
|
353
342
|
</line_items>
|