--- http_interactions: - request: method: get uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses.json body: encoding: US-ASCII string: '' headers: authorization: - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6 response: status: code: 200 message: OK headers: x-ratelimit-limit: - '1000' x-ratelimit-remaining: - '862' content-type: - application/json; charset=utf-8 x-ua-compatible: - IE=Edge etag: - ! '"0343d45fbd7e9ebd87c36d92a32f7014"' cache-control: - max-age=0, private, must-revalidate x-request-id: - 169e9fc76c2255c10bece381ab2740a4 x-runtime: - '0.604678' connection: - close server: - thin 1.5.0 codename Knife body: encoding: US-ASCII string: ! '[{"id":156,"number":null,"issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"po_number":null,"currency":"EUR","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[{"id":5,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/5.json"},{"id":7,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/7.json"},{"id":11,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/11.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/156.json"},{"id":159,"number":null,"issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"po_number":null,"currency":"EUR","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/159.json"},{"id":162,"number":null,"issue_date":"2013-05-14","contact":{"id":3,"full_name":"100-499"},"po_number":null,"currency":"USD","items":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":null,"tax_1_rate":null,"tax_2_name":null,"tax_2_rate":null,"subtotal":"$0.00","discount":"$0.00","gross_amount":"$0.00"}],"subtotal":"$0.00","discount":"$0.00","taxes":[],"total":"$0.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/162.json"},{"id":16,"number":null,"issue_date":"2013-04-25","contact":{"id":1,"full_name":"Recrea Systems, SLU"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac0.00","discount":"\u20ac0.00","gross_amount":"\u20ac0.00"}],"subtotal":"\u20ac0.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac0.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/16.json"},{"id":25,"number":null,"issue_date":"2013-04-24","contact":{"id":4,"full_name":"Test_OCP Doe"},"po_number":"","currency":"EUR","items":[{"description":"Esta\u00f1o","quantity":"1.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac5.00","discount":"\u20ac0.00","gross_amount":"\u20ac5.00"}],"subtotal":"\u20ac5.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac5.00","payments":[{"id":4,"date":"2013-04-24","payment_method":"credit_card","amount":"\u20ac5.00","url":"http://localhost:3000/recrea/api/v1/expenses/25/payments/4.json"}],"tags":[],"notes":"","state":"paid","url":"http://localhost:3000/recrea/api/v1/expenses/25.json"},{"id":27,"number":null,"issue_date":"2013-04-24","contact":{"id":4,"full_name":"Test_OCP Doe"},"po_number":"","currency":"EUR","items":[{"description":"Mercurio para beber","quantity":"1.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac5.00","discount":"\u20ac0.00","gross_amount":"\u20ac5.00"}],"subtotal":"\u20ac5.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac5.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/27.json"},{"id":28,"number":null,"issue_date":"2013-04-24","contact":{"id":1,"full_name":"Recrea Systems, SLU"},"po_number":"","currency":"EUR","items":[{"description":"Mercurio para beber","quantity":"1.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac5.00","discount":"\u20ac0.00","gross_amount":"\u20ac5.00"}],"subtotal":"\u20ac5.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac5.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/28.json"},{"id":26,"number":null,"issue_date":"2013-03-24","contact":{"id":8,"full_name":"Toby"},"po_number":"","currency":"EUR","items":[{"description":"Cobre","quantity":"1.0","unit_price":"5.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac5.00","discount":"\u20ac0.00","gross_amount":"\u20ac5.00"}],"subtotal":"\u20ac5.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac5.00","payments":[],"tags":[],"notes":"","state":"outstanding","url":"http://localhost:3000/recrea/api/v1/expenses/26.json"}]' http_version: '1.1' recorded_at: Tue, 14 May 2013 10:48:19 GMT - request: method: post uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses/156/payments.json body: encoding: US-ASCII string: payment_method=cash&amount=10000 headers: authorization: - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6 response: status: code: 201 message: Created headers: x-ratelimit-limit: - '1000' x-ratelimit-remaining: - '861' content-type: - application/json; charset=utf-8 x-ua-compatible: - IE=Edge etag: - ! '"524d247e5bb40b0cad466e61a979a9ea"' cache-control: - max-age=0, private, must-revalidate x-request-id: - 082c772c4339ce07a087989fb9951644 x-runtime: - '0.358184' connection: - close server: - thin 1.5.0 codename Knife body: encoding: US-ASCII string: ! '{"id":12,"date":"2013-05-14","payment_method":"cash","amount":"\u20ac10,000.00","url":"http://localhost:3000/recrea/api/v1/expenses/156/payments/12.json"}' http_version: '1.1' recorded_at: Tue, 14 May 2013 10:48:19 GMT - request: method: delete uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/expenses/156/payments/12.json body: encoding: US-ASCII string: '' headers: authorization: - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6 response: status: code: 204 message: No Content headers: x-ratelimit-limit: - '1000' x-ratelimit-remaining: - '860' x-ua-compatible: - IE=Edge cache-control: - no-cache set-cookie: - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWE3NDk5MWZiMjQ3YjdhYWMxOWQwZDk0NTQyZGE4NTAxBjsAVA%3D%3D--0d1d584f7dc649685b39245cd531a70e2dd7c797; path=/; HttpOnly x-request-id: - f9add7648f32f2fb08d39d5dc51e43cc x-runtime: - '0.398176' connection: - close server: - thin 1.5.0 codename Knife body: encoding: US-ASCII string: '' http_version: '1.1' recorded_at: Tue, 14 May 2013 10:48:19 GMT recorded_with: VCR 2.3.0