recurly 0.4.4 → 0.4.5
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/base.rb +4 -3
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/billing_info_spec.rb +33 -0
- data/spec/vcr/account/accept-language-account/1301979678.yml +4 -4
- data/spec/vcr/account/close/1301979678.yml +11 -11
- data/spec/vcr/account/create/1301979678.yml +4 -4
- data/spec/vcr/account/create-blank/1301979678.yml +2 -2
- data/spec/vcr/account/create-duplicate/1301979678.yml +6 -6
- data/spec/vcr/account/create-min/1301979678.yml +4 -4
- data/spec/vcr/account/find/1301979678.yml +10 -10
- data/spec/vcr/account/list/1301979678.yml +74 -74
- data/spec/vcr/account/update/1301979678.yml +21 -21
- data/spec/vcr/billing/create/{1298594128.yml → 1302025874.yml} +20 -20
- data/spec/vcr/billing/destroy/{1298594128.yml → 1302025874.yml} +25 -25
- data/spec/vcr/billing/errors/1302025874.yml +126 -0
- data/spec/vcr/billing/find/{1298594128.yml → 1302025874.yml} +27 -27
- data/spec/vcr/billing/update/{1298594128.yml → 1302025874.yml} +27 -27
- data/spec/vcr/charge/create/1297746103.yml +20 -20
- data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +23 -23
- data/spec/vcr/charge/list-all/1297746103.yml +31 -31
- data/spec/vcr/charge/list-invoiced/1297746103.yml +53 -53
- data/spec/vcr/charge/list-pending/1297746103.yml +31 -31
- data/spec/vcr/charge/lookup/1297746103.yml +16 -16
- data/spec/vcr/coupon/create/1299714521.yml +11 -11
- data/spec/vcr/coupon/destroy/1299714521.yml +10 -10
- data/spec/vcr/credit/create/1299714599.yml +16 -16
- data/spec/vcr/credit/delete/1299714599.yml +21 -21
- data/spec/vcr/credit/list/1299714599.yml +31 -31
- data/spec/vcr/credit/lookup/1299714599.yml +16 -16
- data/spec/vcr/invoice/create/1297746103.yml +30 -30
- data/spec/vcr/invoice/create-no-charges/1297746103.yml +10 -10
- data/spec/vcr/invoice/list/1297746103.yml +45 -45
- data/spec/vcr/invoice/lookup/1297746103.yml +32 -32
- data/spec/vcr/plan/all.yml +6 -6
- data/spec/vcr/plan/find.yml +6 -6
- data/spec/vcr/plan/update.yml +6 -6
- data/spec/vcr/subscription/addons/add/1301885121.yml +31 -31
- data/spec/vcr/subscription/addons/create/1301885121.yml +19 -19
- data/spec/vcr/subscription/addons/remove/1301885121.yml +31 -31
- data/spec/vcr/subscription/cancel/1301881900.yml +35 -35
- data/spec/vcr/subscription/cancel-with-code/1301881900.yml +43 -43
- data/spec/vcr/subscription/change1/1301881900.yml +31 -31
- data/spec/vcr/subscription/change2/1301881900.yml +31 -31
- data/spec/vcr/subscription/create/1301881900.yml +13 -13
- data/spec/vcr/subscription/find/1301881900.yml +19 -19
- data/spec/vcr/subscription/reactivate/1301881900.yml +36 -36
- data/spec/vcr/subscription/refund-full/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-none/1301881900.yml +28 -28
- data/spec/vcr/subscription/refund-partial/1301881900.yml +28 -28
- data/spec/vcr/transaction/all/1301883347.yml +55 -55
- data/spec/vcr/transaction/create-no-account/1301883347.yml +5 -5
- data/spec/vcr/transaction/create-with-account/1301883347.yml +13 -13
- data/spec/vcr/transaction/list-filled/1301883347.yml +45 -45
- data/spec/vcr/transaction/list-initial/1301883347.yml +13 -13
- data/spec/vcr/transaction/lookup/1301883347.yml +41 -41
- data/spec/vcr/transaction/refund/1301883347.yml +19 -19
- data/spec/vcr/transaction/void/1301883347.yml +26 -26
- data/spec/vcr/transparent/post-url/1301879142.yml +9 -9
- metadata +12 -10
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-create-no-charges-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "708"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "605"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=d3754421e9fc45f4d3fe855e7d8da09b; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -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-04-
|
65
|
+
<hosted_login_token>6fbc9a6037bc44c9bf650a6f6ea368ef</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:43:44Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1537"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"637179456e538c4e8fddfb90e57ae9a5\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "651"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=4690bfc7f1521b9e3488f33ded9d5906; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -144,7 +144,7 @@
|
|
144
144
|
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
147
|
+
<updated_at type="datetime">2011-04-05T19:43:48Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
@@ -176,13 +176,13 @@
|
|
176
176
|
cache-control:
|
177
177
|
- no-cache
|
178
178
|
x-runtime:
|
179
|
-
- "
|
179
|
+
- "183"
|
180
180
|
content-type:
|
181
181
|
- application/xml; charset=utf-8
|
182
182
|
content-length:
|
183
183
|
- "98"
|
184
184
|
set-cookie:
|
185
|
-
- _recurly_session=
|
185
|
+
- _recurly_session=3266796d517c9b6d10f09d9945757cfa; domain=.recurly.local; path=/; HttpOnly
|
186
186
|
connection:
|
187
187
|
- close
|
188
188
|
server:
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-list-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "418"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "579"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=265bc704a9d6621534af62dfccce895d; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -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-04-
|
65
|
+
<hosted_login_token>fc7ecaa8730b4ab9a554a1d6ee3fff69</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:43:54Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1574"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"d3f362ecc659537ff5f6f6c3f23a2652\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "638"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=059fcb277c8a5ccc0a77bb83540f643f; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -144,7 +144,7 @@
|
|
144
144
|
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
147
|
+
<updated_at type="datetime">2011-04-05T19:43:58Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
@@ -178,13 +178,13 @@
|
|
178
178
|
cache-control:
|
179
179
|
- no-cache
|
180
180
|
x-runtime:
|
181
|
-
- "
|
181
|
+
- "390"
|
182
182
|
content-type:
|
183
183
|
- application/xml; charset=utf-8
|
184
184
|
content-length:
|
185
185
|
- "516"
|
186
186
|
set-cookie:
|
187
|
-
- _recurly_session=
|
187
|
+
- _recurly_session=2c09e3901ba845d51a5da678cd40eefe; domain=.recurly.local; path=/; HttpOnly
|
188
188
|
connection:
|
189
189
|
- close
|
190
190
|
server:
|
@@ -192,14 +192,14 @@
|
|
192
192
|
body: |
|
193
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
194
|
<charge type="charge">
|
195
|
-
<id>
|
195
|
+
<id>d9240af8718444b3aeaf6f52e3b224a7</id>
|
196
196
|
<account_code>invoice-list-1297746103</account_code>
|
197
197
|
<amount_in_cents type="integer">100</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-04-
|
198
|
+
<start_date type="datetime">2011-04-05T19:44:01Z</start_date>
|
199
199
|
<end_date nil="true" type="datetime"></end_date>
|
200
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
201
|
<description>charge description</description>
|
202
|
-
<created_at type="datetime">2011-04-
|
202
|
+
<created_at type="datetime">2011-04-05T19:44:01Z</created_at>
|
203
203
|
</charge>
|
204
204
|
|
205
205
|
http_version: "1.1"
|
@@ -231,15 +231,15 @@
|
|
231
231
|
cache-control:
|
232
232
|
- no-cache
|
233
233
|
location:
|
234
|
-
- http://app.recurly.local:3000/invoices/
|
234
|
+
- http://app.recurly.local:3000/invoices/aa26f745f0d840a0a10a1adce3883647
|
235
235
|
x-runtime:
|
236
|
-
- "
|
236
|
+
- "769"
|
237
237
|
content-type:
|
238
238
|
- application/xml; charset=utf-8
|
239
239
|
content-length:
|
240
240
|
- "1208"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=8add5883c0800b3b255c83d907d8ed6d; domain=.recurly.local; path=/; HttpOnly
|
243
243
|
connection:
|
244
244
|
- close
|
245
245
|
server:
|
@@ -247,10 +247,10 @@
|
|
247
247
|
body: |
|
248
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
249
|
<invoice>
|
250
|
-
<id>
|
250
|
+
<id>aa26f745f0d840a0a10a1adce3883647</id>
|
251
251
|
<account_code>invoice-list-1297746103</account_code>
|
252
|
-
<date type="datetime">2011-04-
|
253
|
-
<invoice_number type="integer">
|
252
|
+
<date type="datetime">2011-04-05T19:44:04Z</date>
|
253
|
+
<invoice_number type="integer">1402</invoice_number>
|
254
254
|
<vat_number></vat_number>
|
255
255
|
<status>open</status>
|
256
256
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
@@ -261,13 +261,13 @@
|
|
261
261
|
<discount_in_cents type="integer">0</discount_in_cents>
|
262
262
|
<line_items type="array">
|
263
263
|
<line_item>
|
264
|
-
<id>
|
264
|
+
<id>d9240af8718444b3aeaf6f52e3b224a7</id>
|
265
265
|
<type>charge</type>
|
266
266
|
<amount_in_cents type="integer">100</amount_in_cents>
|
267
|
-
<start_date type="datetime">2011-04-
|
267
|
+
<start_date type="datetime">2011-04-05T19:44:01Z</start_date>
|
268
268
|
<end_date nil="true" type="datetime"></end_date>
|
269
269
|
<description>charge description</description>
|
270
|
-
<created_at type="datetime">2011-04-
|
270
|
+
<created_at type="datetime">2011-04-05T19:44:01Z</created_at>
|
271
271
|
<applied_coupon_code></applied_coupon_code>
|
272
272
|
</line_item>
|
273
273
|
</line_items>
|
@@ -306,13 +306,13 @@
|
|
306
306
|
cache-control:
|
307
307
|
- no-cache
|
308
308
|
x-runtime:
|
309
|
-
- "
|
309
|
+
- "390"
|
310
310
|
content-type:
|
311
311
|
- application/xml; charset=utf-8
|
312
312
|
content-length:
|
313
313
|
- "516"
|
314
314
|
set-cookie:
|
315
|
-
- _recurly_session=
|
315
|
+
- _recurly_session=2e1e9b7ae3bbfe2e695fd5bb467ddab0; domain=.recurly.local; path=/; HttpOnly
|
316
316
|
connection:
|
317
317
|
- close
|
318
318
|
server:
|
@@ -320,14 +320,14 @@
|
|
320
320
|
body: |
|
321
321
|
<?xml version="1.0" encoding="UTF-8"?>
|
322
322
|
<charge type="charge">
|
323
|
-
<id>
|
323
|
+
<id>d7a30da3f90d4d97b3979c4780606327</id>
|
324
324
|
<account_code>invoice-list-1297746103</account_code>
|
325
325
|
<amount_in_cents type="integer">300</amount_in_cents>
|
326
|
-
<start_date type="datetime">2011-04-
|
326
|
+
<start_date type="datetime">2011-04-05T19:44:07Z</start_date>
|
327
327
|
<end_date nil="true" type="datetime"></end_date>
|
328
328
|
<invoice_number nil="true" type="integer"></invoice_number>
|
329
329
|
<description>charge description</description>
|
330
|
-
<created_at type="datetime">2011-04-
|
330
|
+
<created_at type="datetime">2011-04-05T19:44:07Z</created_at>
|
331
331
|
</charge>
|
332
332
|
|
333
333
|
http_version: "1.1"
|
@@ -359,15 +359,15 @@
|
|
359
359
|
cache-control:
|
360
360
|
- no-cache
|
361
361
|
location:
|
362
|
-
- http://app.recurly.local:3000/invoices/
|
362
|
+
- http://app.recurly.local:3000/invoices/c2da66bc161c49d1adaa26dfef95bee8
|
363
363
|
x-runtime:
|
364
|
-
- "
|
364
|
+
- "768"
|
365
365
|
content-type:
|
366
366
|
- application/xml; charset=utf-8
|
367
367
|
content-length:
|
368
368
|
- "1208"
|
369
369
|
set-cookie:
|
370
|
-
- _recurly_session=
|
370
|
+
- _recurly_session=d422a73f78488454c681d48660044b00; domain=.recurly.local; path=/; HttpOnly
|
371
371
|
connection:
|
372
372
|
- close
|
373
373
|
server:
|
@@ -375,10 +375,10 @@
|
|
375
375
|
body: |
|
376
376
|
<?xml version="1.0" encoding="UTF-8"?>
|
377
377
|
<invoice>
|
378
|
-
<id>
|
378
|
+
<id>c2da66bc161c49d1adaa26dfef95bee8</id>
|
379
379
|
<account_code>invoice-list-1297746103</account_code>
|
380
|
-
<date type="datetime">2011-04-
|
381
|
-
<invoice_number type="integer">
|
380
|
+
<date type="datetime">2011-04-05T19:44:09Z</date>
|
381
|
+
<invoice_number type="integer">1403</invoice_number>
|
382
382
|
<vat_number></vat_number>
|
383
383
|
<status>open</status>
|
384
384
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
@@ -389,13 +389,13 @@
|
|
389
389
|
<discount_in_cents type="integer">0</discount_in_cents>
|
390
390
|
<line_items type="array">
|
391
391
|
<line_item>
|
392
|
-
<id>
|
392
|
+
<id>d7a30da3f90d4d97b3979c4780606327</id>
|
393
393
|
<type>charge</type>
|
394
394
|
<amount_in_cents type="integer">300</amount_in_cents>
|
395
|
-
<start_date type="datetime">2011-04-
|
395
|
+
<start_date type="datetime">2011-04-05T19:44:07Z</start_date>
|
396
396
|
<end_date nil="true" type="datetime"></end_date>
|
397
397
|
<description>charge description</description>
|
398
|
-
<created_at type="datetime">2011-04-
|
398
|
+
<created_at type="datetime">2011-04-05T19:44:07Z</created_at>
|
399
399
|
<applied_coupon_code></applied_coupon_code>
|
400
400
|
</line_item>
|
401
401
|
</line_items>
|
@@ -426,17 +426,17 @@
|
|
426
426
|
message: OK
|
427
427
|
headers:
|
428
428
|
x-runtime:
|
429
|
-
- "
|
429
|
+
- "371"
|
430
430
|
content-type:
|
431
431
|
- application/xml; charset=utf-8
|
432
432
|
etag:
|
433
|
-
- "\"
|
433
|
+
- "\"5111abac2ce11e49c4b34ae995693275\""
|
434
434
|
cache-control:
|
435
435
|
- private, max-age=0, must-revalidate
|
436
436
|
content-length:
|
437
437
|
- "789"
|
438
438
|
set-cookie:
|
439
|
-
- _recurly_session=
|
439
|
+
- _recurly_session=e5757339632af011409ac3ca47e8e117; domain=.recurly.local; path=/; HttpOnly
|
440
440
|
connection:
|
441
441
|
- close
|
442
442
|
server:
|
@@ -445,18 +445,18 @@
|
|
445
445
|
<?xml version="1.0" encoding="UTF-8"?>
|
446
446
|
<invoices type="array">
|
447
447
|
<invoice>
|
448
|
-
<id>
|
448
|
+
<id>c2da66bc161c49d1adaa26dfef95bee8</id>
|
449
449
|
<account_code>invoice-list-1297746103</account_code>
|
450
|
-
<date type="datetime">2011-04-
|
451
|
-
<invoice_number type="integer">
|
450
|
+
<date type="datetime">2011-04-05T19:44:09Z</date>
|
451
|
+
<invoice_number type="integer">1403</invoice_number>
|
452
452
|
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
453
453
|
<total_in_cents type="integer">300</total_in_cents>
|
454
454
|
</invoice>
|
455
455
|
<invoice>
|
456
|
-
<id>
|
456
|
+
<id>aa26f745f0d840a0a10a1adce3883647</id>
|
457
457
|
<account_code>invoice-list-1297746103</account_code>
|
458
|
-
<date type="datetime">2011-04-
|
459
|
-
<invoice_number type="integer">
|
458
|
+
<date type="datetime">2011-04-05T19:44:04Z</date>
|
459
|
+
<invoice_number type="integer">1402</invoice_number>
|
460
460
|
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
461
461
|
<total_in_cents type="integer">100</total_in_cents>
|
462
462
|
</invoice>
|
@@ -39,13 +39,13 @@
|
|
39
39
|
location:
|
40
40
|
- http://app.recurly.local:3000/accounts/invoice-lookup-1297746103
|
41
41
|
x-runtime:
|
42
|
-
- "
|
42
|
+
- "414"
|
43
43
|
content-type:
|
44
44
|
- application/xml; charset=utf-8
|
45
45
|
content-length:
|
46
46
|
- "583"
|
47
47
|
set-cookie:
|
48
|
-
- _recurly_session=
|
48
|
+
- _recurly_session=45ade44f1f967e4b4eb1a19143ef9c82; domain=.recurly.local; path=/; HttpOnly
|
49
49
|
connection:
|
50
50
|
- close
|
51
51
|
server:
|
@@ -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-04-
|
65
|
+
<hosted_login_token>4042a17451954e0ca22171983a90b062</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-04-05T19:44:15Z</created_at>
|
67
67
|
<state>active</state>
|
68
68
|
</account>
|
69
69
|
|
@@ -108,17 +108,17 @@
|
|
108
108
|
message: OK
|
109
109
|
headers:
|
110
110
|
x-runtime:
|
111
|
-
- "
|
111
|
+
- "1616"
|
112
112
|
content-type:
|
113
113
|
- application/xml; charset=utf-8
|
114
114
|
etag:
|
115
|
-
- "\"
|
115
|
+
- "\"a01ac79af94a1e8e0d0d95280fd747aa\""
|
116
116
|
cache-control:
|
117
117
|
- private, max-age=0, must-revalidate
|
118
118
|
content-length:
|
119
119
|
- "640"
|
120
120
|
set-cookie:
|
121
|
-
- _recurly_session=
|
121
|
+
- _recurly_session=c4af66a6f4267f2a671bcd3afe45b9f9; domain=.recurly.local; path=/; HttpOnly
|
122
122
|
connection:
|
123
123
|
- close
|
124
124
|
server:
|
@@ -144,7 +144,7 @@
|
|
144
144
|
<month type="integer">4</month>
|
145
145
|
<year type="integer">2012</year>
|
146
146
|
</credit_card>
|
147
|
-
<updated_at type="datetime">2011-04-
|
147
|
+
<updated_at type="datetime">2011-04-05T19:44:19Z</updated_at>
|
148
148
|
</billing_info>
|
149
149
|
|
150
150
|
http_version: "1.1"
|
@@ -178,13 +178,13 @@
|
|
178
178
|
cache-control:
|
179
179
|
- no-cache
|
180
180
|
x-runtime:
|
181
|
-
- "
|
181
|
+
- "388"
|
182
182
|
content-type:
|
183
183
|
- application/xml; charset=utf-8
|
184
184
|
content-length:
|
185
185
|
- "519"
|
186
186
|
set-cookie:
|
187
|
-
- _recurly_session=
|
187
|
+
- _recurly_session=53df76cffde2a3bd7c6acc637775c47b; domain=.recurly.local; path=/; HttpOnly
|
188
188
|
connection:
|
189
189
|
- close
|
190
190
|
server:
|
@@ -192,14 +192,14 @@
|
|
192
192
|
body: |
|
193
193
|
<?xml version="1.0" encoding="UTF-8"?>
|
194
194
|
<charge type="charge">
|
195
|
-
<id>
|
195
|
+
<id>c2d4eb09f3544d5d88df17895220e858</id>
|
196
196
|
<account_code>invoice-lookup-1297746103</account_code>
|
197
197
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
198
|
-
<start_date type="datetime">2011-04-
|
198
|
+
<start_date type="datetime">2011-04-05T19:44:22Z</start_date>
|
199
199
|
<end_date nil="true" type="datetime"></end_date>
|
200
200
|
<invoice_number nil="true" type="integer"></invoice_number>
|
201
201
|
<description>charge description</description>
|
202
|
-
<created_at type="datetime">2011-04-
|
202
|
+
<created_at type="datetime">2011-04-05T19:44:22Z</created_at>
|
203
203
|
</charge>
|
204
204
|
|
205
205
|
http_version: "1.1"
|
@@ -231,15 +231,15 @@
|
|
231
231
|
cache-control:
|
232
232
|
- no-cache
|
233
233
|
location:
|
234
|
-
- http://app.recurly.local:3000/invoices/
|
234
|
+
- http://app.recurly.local:3000/invoices/fa40c224d06548378cdac66a24bacc26
|
235
235
|
x-runtime:
|
236
|
-
- "
|
236
|
+
- "774"
|
237
237
|
content-type:
|
238
238
|
- application/xml; charset=utf-8
|
239
239
|
content-length:
|
240
240
|
- "1214"
|
241
241
|
set-cookie:
|
242
|
-
- _recurly_session=
|
242
|
+
- _recurly_session=95e19290bfca5ebd7c1beb048708c5b0; domain=.recurly.local; path=/; HttpOnly
|
243
243
|
connection:
|
244
244
|
- close
|
245
245
|
server:
|
@@ -247,10 +247,10 @@
|
|
247
247
|
body: |
|
248
248
|
<?xml version="1.0" encoding="UTF-8"?>
|
249
249
|
<invoice>
|
250
|
-
<id>
|
250
|
+
<id>fa40c224d06548378cdac66a24bacc26</id>
|
251
251
|
<account_code>invoice-lookup-1297746103</account_code>
|
252
|
-
<date type="datetime">2011-04-
|
253
|
-
<invoice_number type="integer">
|
252
|
+
<date type="datetime">2011-04-05T19:44:25Z</date>
|
253
|
+
<invoice_number type="integer">1404</invoice_number>
|
254
254
|
<vat_number></vat_number>
|
255
255
|
<status>open</status>
|
256
256
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -261,13 +261,13 @@
|
|
261
261
|
<discount_in_cents type="integer">0</discount_in_cents>
|
262
262
|
<line_items type="array">
|
263
263
|
<line_item>
|
264
|
-
<id>
|
264
|
+
<id>c2d4eb09f3544d5d88df17895220e858</id>
|
265
265
|
<type>charge</type>
|
266
266
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
267
|
-
<start_date type="datetime">2011-04-
|
267
|
+
<start_date type="datetime">2011-04-05T19:44:22Z</start_date>
|
268
268
|
<end_date nil="true" type="datetime"></end_date>
|
269
269
|
<description>charge description</description>
|
270
|
-
<created_at type="datetime">2011-04-
|
270
|
+
<created_at type="datetime">2011-04-05T19:44:22Z</created_at>
|
271
271
|
<applied_coupon_code></applied_coupon_code>
|
272
272
|
</line_item>
|
273
273
|
</line_items>
|
@@ -279,7 +279,7 @@
|
|
279
279
|
- !ruby/struct:VCR::HTTPInteraction
|
280
280
|
request: !ruby/struct:VCR::Request
|
281
281
|
method: :get
|
282
|
-
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/invoices/
|
282
|
+
uri: http://api-test%40hello-test.com:50a5b8a69a2545db84ac4112ba8cac6f@app.recurly.local:3000/invoices/fa40c224d06548378cdac66a24bacc26.xml
|
283
283
|
body:
|
284
284
|
headers:
|
285
285
|
authorization:
|
@@ -298,17 +298,17 @@
|
|
298
298
|
message: OK
|
299
299
|
headers:
|
300
300
|
x-runtime:
|
301
|
-
- "
|
301
|
+
- "384"
|
302
302
|
content-type:
|
303
303
|
- application/xml; charset=utf-8
|
304
304
|
etag:
|
305
|
-
- "\"
|
305
|
+
- "\"7e22484de50c33a47107e9d1fcdb0536\""
|
306
306
|
cache-control:
|
307
307
|
- private, max-age=0, must-revalidate
|
308
308
|
content-length:
|
309
309
|
- "1214"
|
310
310
|
set-cookie:
|
311
|
-
- _recurly_session=
|
311
|
+
- _recurly_session=4c33fb9e008693f664392c46b5d9591f; domain=.recurly.local; path=/; HttpOnly
|
312
312
|
connection:
|
313
313
|
- close
|
314
314
|
server:
|
@@ -316,10 +316,10 @@
|
|
316
316
|
body: |
|
317
317
|
<?xml version="1.0" encoding="UTF-8"?>
|
318
318
|
<invoice>
|
319
|
-
<id>
|
319
|
+
<id>fa40c224d06548378cdac66a24bacc26</id>
|
320
320
|
<account_code>invoice-lookup-1297746103</account_code>
|
321
|
-
<date type="datetime">2011-04-
|
322
|
-
<invoice_number type="integer">
|
321
|
+
<date type="datetime">2011-04-05T19:44:25Z</date>
|
322
|
+
<invoice_number type="integer">1404</invoice_number>
|
323
323
|
<vat_number></vat_number>
|
324
324
|
<status>open</status>
|
325
325
|
<subtotal_in_cents type="integer">1500</subtotal_in_cents>
|
@@ -330,13 +330,13 @@
|
|
330
330
|
<discount_in_cents type="integer">0</discount_in_cents>
|
331
331
|
<line_items type="array">
|
332
332
|
<line_item>
|
333
|
-
<id>
|
333
|
+
<id>c2d4eb09f3544d5d88df17895220e858</id>
|
334
334
|
<type>charge</type>
|
335
335
|
<amount_in_cents type="integer">1500</amount_in_cents>
|
336
|
-
<start_date type="datetime">2011-04-
|
336
|
+
<start_date type="datetime">2011-04-05T19:44:22Z</start_date>
|
337
337
|
<end_date nil="true" type="datetime"></end_date>
|
338
338
|
<description>charge description</description>
|
339
|
-
<created_at type="datetime">2011-04-
|
339
|
+
<created_at type="datetime">2011-04-05T19:44:22Z</created_at>
|
340
340
|
<applied_coupon_code></applied_coupon_code>
|
341
341
|
</line_item>
|
342
342
|
</line_items>
|
data/spec/vcr/plan/all.yml
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
x-runtime:
|
24
|
-
- "
|
24
|
+
- "383"
|
25
25
|
content-type:
|
26
26
|
- application/xml; charset=utf-8
|
27
27
|
etag:
|
@@ -31,7 +31,7 @@
|
|
31
31
|
content-length:
|
32
32
|
- "1558"
|
33
33
|
set-cookie:
|
34
|
-
- _recurly_session=
|
34
|
+
- _recurly_session=3844da3a0c6a363c500272d8c2cb6e73; domain=.recurly.local; path=/; HttpOnly
|
35
35
|
connection:
|
36
36
|
- close
|
37
37
|
server:
|
@@ -98,7 +98,7 @@
|
|
98
98
|
message: OK
|
99
99
|
headers:
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "77"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
etag:
|
@@ -108,7 +108,7 @@
|
|
108
108
|
content-length:
|
109
109
|
- "1146"
|
110
110
|
set-cookie:
|
111
|
-
- _recurly_session=
|
111
|
+
- _recurly_session=fc87f6d0ea9725025d08c26439fbe35d; domain=.recurly.local; path=/; HttpOnly
|
112
112
|
connection:
|
113
113
|
- close
|
114
114
|
server:
|
@@ -163,7 +163,7 @@
|
|
163
163
|
message: OK
|
164
164
|
headers:
|
165
165
|
x-runtime:
|
166
|
-
- "
|
166
|
+
- "66"
|
167
167
|
content-type:
|
168
168
|
- application/xml; charset=utf-8
|
169
169
|
etag:
|
@@ -173,7 +173,7 @@
|
|
173
173
|
content-length:
|
174
174
|
- "4454"
|
175
175
|
set-cookie:
|
176
|
-
- _recurly_session=
|
176
|
+
- _recurly_session=f1c1053728acb09b1f6f957290f649ff; domain=.recurly.local; path=/; HttpOnly
|
177
177
|
connection:
|
178
178
|
- close
|
179
179
|
server:
|
data/spec/vcr/plan/find.yml
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
x-runtime:
|
24
|
-
- "
|
24
|
+
- "386"
|
25
25
|
content-type:
|
26
26
|
- application/xml; charset=utf-8
|
27
27
|
etag:
|
@@ -31,7 +31,7 @@
|
|
31
31
|
content-length:
|
32
32
|
- "1558"
|
33
33
|
set-cookie:
|
34
|
-
- _recurly_session=
|
34
|
+
- _recurly_session=d886c4ab89c15e0e238f4cad541850ba; domain=.recurly.local; path=/; HttpOnly
|
35
35
|
connection:
|
36
36
|
- close
|
37
37
|
server:
|
@@ -98,7 +98,7 @@
|
|
98
98
|
message: OK
|
99
99
|
headers:
|
100
100
|
x-runtime:
|
101
|
-
- "
|
101
|
+
- "379"
|
102
102
|
content-type:
|
103
103
|
- application/xml; charset=utf-8
|
104
104
|
etag:
|
@@ -108,7 +108,7 @@
|
|
108
108
|
content-length:
|
109
109
|
- "1146"
|
110
110
|
set-cookie:
|
111
|
-
- _recurly_session=
|
111
|
+
- _recurly_session=e1d5405345f17cd6a63269b3e7458437; domain=.recurly.local; path=/; HttpOnly
|
112
112
|
connection:
|
113
113
|
- close
|
114
114
|
server:
|
@@ -163,7 +163,7 @@
|
|
163
163
|
message: OK
|
164
164
|
headers:
|
165
165
|
x-runtime:
|
166
|
-
- "
|
166
|
+
- "382"
|
167
167
|
content-type:
|
168
168
|
- application/xml; charset=utf-8
|
169
169
|
etag:
|
@@ -173,7 +173,7 @@
|
|
173
173
|
content-length:
|
174
174
|
- "1558"
|
175
175
|
set-cookie:
|
176
|
-
- _recurly_session=
|
176
|
+
- _recurly_session=b5cfea1a9a0296fb91118ea04604a18f; domain=.recurly.local; path=/; HttpOnly
|
177
177
|
connection:
|
178
178
|
- close
|
179
179
|
server:
|