--- http_interactions: - request: method: get uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json body: encoding: US-ASCII string: '' headers: authorization: - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6 response: status: code: 200 message: ! 'OK ' headers: x-ratelimit-limit: - '2000' x-ratelimit-remaining: - '1890' x-pages-currentpage: - '1' x-pages-totalpages: - '1' content-type: - application/json; charset=utf-8 x-ua-compatible: - IE=Edge etag: - ! '"0caa665340ca3fbfd0127f8d8d146941"' cache-control: - max-age=0, private, must-revalidate x-request-id: - 0654b4e398d68e7b3f6935a35594f9b3 x-runtime: - '0.553172' server: - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) date: - Tue, 04 Feb 2014 14:50:59 GMT content-length: - '2759' connection: - close body: encoding: US-ASCII string: ! '[{"id":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Honeypots","quantity":"1.3","unit_price":"19.03","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"24.74 \u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74 \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23 \u20ac"},{"label":"IVA (21.00%)","amount":"5.20 \u20ac"}],"total":"27.71 \u20ac","payments":[{"id":1,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00 \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00 \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00 \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00 \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"},{"id":4,"number":null,"issue_date":"2014-02-04","contact":{"id":1,"full_name":"API Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very important stuff","quantity":"1.0","unit_price":"2230.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"2,230.00 \u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00 \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70 \u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60 \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/4.json"},{"id":5,"number":null,"issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","currency":"EUR","items":[{"description":"Bombers","quantity":"5.0","unit_price":"29.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"145.00 \u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00 \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05 \u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40 \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]' http_version: '1.1' recorded_at: Tue, 04 Feb 2014 14:50:59 GMT - request: method: post uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/6/payments.json body: encoding: US-ASCII string: payment_method=cash&amount=10000 headers: authorization: - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6 response: status: code: 201 message: ! 'Created ' headers: x-ratelimit-limit: - '2000' x-ratelimit-remaining: - '1889' content-type: - application/json; charset=utf-8 x-ua-compatible: - IE=Edge etag: - ! '"2a3a886cb513203175c5b7a01e0440f0"' cache-control: - max-age=0, private, must-revalidate x-request-id: - 1c73596a0eb5d021e6ae51e34d56ab72 x-runtime: - '0.185541' server: - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) date: - Tue, 04 Feb 2014 14:50:59 GMT content-length: - '151' connection: - close set-cookie: - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTQ0M2ZhNjI1NGE3MmU2ZDNlNDk5ODU3MTkxN2EwODlkBjsAVA%3D%3D--07ac0f708fa9640037a8a4ff522cb76a293153bf; path=/; HttpOnly body: encoding: US-ASCII string: ! '{"id":8,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00 \u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/8.json"}' http_version: '1.1' recorded_at: Tue, 04 Feb 2014 14:50:59 GMT - request: method: delete uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/6/payments/8.json body: encoding: US-ASCII string: '' headers: authorization: - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6 response: status: code: 204 message: ! 'No Content ' headers: x-ratelimit-limit: - '2000' x-ratelimit-remaining: - '1888' x-ua-compatible: - IE=Edge cache-control: - no-cache x-request-id: - d8c6cdaddb58e3849e4de50936c01aec x-runtime: - '0.504470' server: - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20) date: - Tue, 04 Feb 2014 14:51:00 GMT connection: - close set-cookie: - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTNlMDY1ZDlkNjk2MjExOWIzZjE4Yzg1NWUyNTg4NGRjBjsAVA%3D%3D--72771e763504db41069948e70fc4b8c794f401b2; path=/; HttpOnly body: encoding: US-ASCII string: '' http_version: '1.1' recorded_at: Tue, 04 Feb 2014 14:51:00 GMT recorded_with: VCR 2.3.0