quaderno 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile +3 -2
  3. data/Gemfile.lock +27 -22
  4. data/README.md +7 -2
  5. data/Rakefile +5 -6
  6. data/VERSION +1 -1
  7. data/build_install.sh +1 -1
  8. data/changelog.md +5 -0
  9. data/lib/quaderno-ruby/base.rb +24 -8
  10. data/lib/quaderno-ruby/behavior/crud.rb +5 -5
  11. data/lib/quaderno-ruby/behavior/deliver.rb +1 -1
  12. data/lib/quaderno-ruby/behavior/payment.rb +2 -2
  13. data/quaderno.gemspec +8 -7
  14. data/test/fixtures/.DS_Store +0 -0
  15. data/test/fixtures/quaderno_cassettes/.DS_Store +0 -0
  16. data/test/fixtures/quaderno_cassettes/all_contacts.yml +44 -26
  17. data/test/fixtures/quaderno_cassettes/all_estimates.yml +29 -37
  18. data/test/fixtures/quaderno_cassettes/all_expenses.yml +30 -40
  19. data/test/fixtures/quaderno_cassettes/all_invoices.yml +108 -36
  20. data/test/fixtures/quaderno_cassettes/all_items.yml +27 -23
  21. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +124 -104
  22. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +135 -92
  23. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +125 -105
  24. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +126 -108
  25. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +203 -104
  26. data/test/fixtures/quaderno_cassettes/deleted_item.yml +74 -62
  27. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +149 -125
  28. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +75 -75
  29. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +159 -77
  30. data/test/fixtures/quaderno_cassettes/found_contact.yml +71 -49
  31. data/test/fixtures/quaderno_cassettes/found_estimate.yml +59 -64
  32. data/test/fixtures/quaderno_cassettes/found_expense.yml +61 -71
  33. data/test/fixtures/quaderno_cassettes/found_invoice.yml +145 -66
  34. data/test/fixtures/quaderno_cassettes/found_item.yml +54 -46
  35. data/test/fixtures/quaderno_cassettes/found_webhook.yml +75 -63
  36. data/test/fixtures/quaderno_cassettes/new_contact.yml +28 -24
  37. data/test/fixtures/quaderno_cassettes/new_estimate.yml +97 -69
  38. data/test/fixtures/quaderno_cassettes/new_expense.yml +126 -108
  39. data/test/fixtures/quaderno_cassettes/new_invoice.yml +96 -69
  40. data/test/fixtures/quaderno_cassettes/new_item.yml +28 -24
  41. data/test/fixtures/quaderno_cassettes/new_webhook.yml +50 -42
  42. data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -63
  43. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +135 -59
  44. data/test/fixtures/quaderno_cassettes/rate_limit.yml +24 -20
  45. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +79 -81
  46. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +157 -77
  47. data/test/fixtures/quaderno_cassettes/updated_contact.yml +71 -49
  48. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +126 -94
  49. data/test/fixtures/quaderno_cassettes/updated_expense.yml +125 -93
  50. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +125 -94
  51. data/test/fixtures/quaderno_cassettes/updated_item.yml +54 -46
  52. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +103 -87
  53. data/test/unit/test_quaderno_contacts.rb +5 -9
  54. data/test/unit/test_quaderno_estimates.rb +3 -3
  55. data/test/unit/test_quaderno_expenses.rb +3 -3
  56. data/test/unit/test_quaderno_invoices.rb +3 -3
  57. data/test/unit/test_quaderno_items.rb +6 -6
  58. data/test/unit/test_quaderno_webhooks.rb +14 -14
  59. metadata +8 -7
  60. data/test/test_quaderno-ruby.rb +0 -4
@@ -2,206 +2,224 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  authorization:
11
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
11
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: ! 'OK '
15
+ message: OK
16
16
  headers:
17
+ server:
18
+ - nginx/1.4.5
19
+ date:
20
+ - Fri, 13 Jun 2014 12:41:42 GMT
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ transfer-encoding:
24
+ - chunked
25
+ connection:
26
+ - close
27
+ status:
28
+ - 200 OK
17
29
  x-ratelimit-limit:
18
30
  - '2000'
19
31
  x-ratelimit-remaining:
20
- - '1901'
32
+ - '1449'
21
33
  x-pages-currentpage:
22
34
  - '1'
23
35
  x-pages-totalpages:
24
36
  - '1'
25
- content-type:
26
- - application/json; charset=utf-8
27
37
  x-ua-compatible:
28
- - IE=Edge
38
+ - IE=Edge,chrome=1
29
39
  etag:
30
- - ! '"0caa665340ca3fbfd0127f8d8d146941"'
40
+ - ! '"f8c16df3cad07eca53aa3d6a08d8657b"'
31
41
  cache-control:
32
- - max-age=0, private, must-revalidate
42
+ - must-revalidate, private, max-age=0
33
43
  x-request-id:
34
- - 47955f60aca17da2717b43f379d4e975
44
+ - 5d64e61f4edb0a17c58177f212aafecc
35
45
  x-runtime:
36
- - '0.541702'
37
- server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
39
- date:
40
- - Tue, 04 Feb 2014 14:50:54 GMT
41
- content-length:
42
- - '2759'
43
- connection:
44
- - close
46
+ - '0.169196'
47
+ x-rack-cache:
48
+ - miss
45
49
  body:
46
50
  encoding: US-ASCII
47
- string: ! '[{"id":6,"number":null,"issue_date":"2014-05-04","contact":{"id":2,"full_name":"Another
48
- 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
49
- \u20ac","discount":"0.00 \u20ac","gross_amount":"24.74 \u20ac"}],"subtotal":"24.74
50
- \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-2.23
51
- \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
52
- \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
53
- \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
54
- \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
55
- \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
56
- Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very
57
- 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
58
- \u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00
59
- \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70
60
- \u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60
61
- \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
62
- \u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00
63
- \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05
64
- \u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40
65
- \u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]'
51
+ string: ! '[{"id":543,"number":null,"issue_date":"2014-06-13","contact":{"id":790,"full_name":"Test
52
+ Contact"},"po_number":"","currency":"EUR","items":[{"id":697,"description":"Hello","quantity":"1.0","unit_price":"30.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"30.00
53
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
54
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":373,"date":"2014-06-13","payment_method":"cash","amount":"10,000.00
55
+ \u20ac","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543/payments/373.json"}],"notes":"","state":"paid","tag_list":[],"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543.json"}]'
66
56
  http_version: '1.1'
67
- recorded_at: Tue, 04 Feb 2014 14:50:54 GMT
57
+ recorded_at: Fri, 13 Jun 2014 12:41:42 GMT
68
58
  - request:
69
59
  method: get
70
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
60
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts.json
71
61
  body:
72
62
  encoding: US-ASCII
73
63
  string: ''
74
64
  headers:
75
65
  authorization:
76
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
66
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
77
67
  response:
78
68
  status:
79
69
  code: 200
80
- message: ! 'OK '
70
+ message: OK
81
71
  headers:
72
+ server:
73
+ - nginx/1.4.5
74
+ date:
75
+ - Fri, 13 Jun 2014 12:41:43 GMT
76
+ content-type:
77
+ - application/json; charset=utf-8
78
+ transfer-encoding:
79
+ - chunked
80
+ connection:
81
+ - close
82
+ status:
83
+ - 200 OK
82
84
  x-ratelimit-limit:
83
85
  - '2000'
84
86
  x-ratelimit-remaining:
85
- - '1900'
87
+ - '1448'
86
88
  x-pages-currentpage:
87
89
  - '1'
88
90
  x-pages-totalpages:
89
- - '1'
90
- content-type:
91
- - application/json; charset=utf-8
91
+ - '6'
92
92
  x-ua-compatible:
93
- - IE=Edge
93
+ - IE=Edge,chrome=1
94
94
  etag:
95
- - ! '"71b79c1b45cfb58a71172c277dd004b5"'
95
+ - ! '"1b15811e4cf410f02945920334685406"'
96
96
  cache-control:
97
- - max-age=0, private, must-revalidate
97
+ - must-revalidate, private, max-age=0
98
98
  x-request-id:
99
- - ba4a54090d9bb88267c70d41dab2906a
99
+ - 7ddd21cf075bb50d3bad34f70a69956a
100
100
  x-runtime:
101
- - '0.161818'
102
- server:
103
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
104
- date:
105
- - Tue, 04 Feb 2014 14:50:54 GMT
106
- content-length:
107
- - '1879'
108
- connection:
109
- - close
101
+ - '0.227711'
102
+ x-rack-cache:
103
+ - miss
110
104
  body:
111
105
  encoding: US-ASCII
112
- string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
113
- Kashin Ryu no Dojo","street_line_2":"","postal_code":"876-0854","city":"Tokyo","region":"Tokyo","country":"JP","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","language":"EN","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":1,"kind":"company","full_name":"API
114
- Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
115
- 1B0","city":"Springfield","region":"Canada","country":"ES","phone_1":"","phone_2":"","fax":"","email":"dummy@email.test","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":4,"kind":"company","full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":6,"kind":"company","full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"US","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":3,"kind":"company","full_name":"TSM","contact_name":"Reginald","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"reggie@tsm.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"}]'
106
+ string: ! '[{"id":760,"kind":"company","full_name":"\u0003 esatipa","contact_name":null,"street_line_1":"Torres
107
+ Quevedo","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"673832948","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/760"},{"id":113,"kind":"company","full_name":"100-499","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"totoro.estepario@gmail.com","web":null,"discount":null,"tax_id":"","bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/113"},{"id":498,"kind":"company","full_name":"Alejandro","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"alexmanalopez@gmail.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/498"},{"id":744,"kind":"company","full_name":"Alejandro
108
+ Lopez Santos","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"alexmanalopez@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/744"},{"id":739,"kind":"company","full_name":"ANA","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"ana@vali2.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/739"},{"id":773,"kind":"company","full_name":"Angel
109
+ Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
110
+ Canaria;;;Espa\u00f1a","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"668829133","phone_2":null,"fax":null,"email":"aramos.gcc@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/773"},{"id":717,"kind":"company","full_name":"Angel
111
+ Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
112
+ Canaria;;;Espa\u00f1a","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"668829133","phone_2":null,"fax":null,"email":"aramos.gcc@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/717"},{"id":748,"kind":"company","full_name":"Antonio Brito","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"605100535","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/748"},{"id":752,"kind":"company","full_name":"Antonio
113
+ C. Dom\u00ednguez Brito","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"adominguez@iusiani.ulpgc.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/752"},{"id":733,"kind":"company","full_name":"aviso_llegada","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"avisollegada@adtpostales.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/733"},{"id":764,"kind":"company","full_name":"Aythami","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"678875767","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/764"},{"id":736,"kind":"company","full_name":"Borja
114
+ Santana Corvo","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"ahviel@hotmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/736"},{"id":713,"kind":"company","full_name":"Bycor","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34646675709","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/713"},{"id":728,"kind":"company","full_name":"Bycor
115
+ S\u00e1nchez","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"bycor1989@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/728"},{"id":729,"kind":"company","full_name":"Canal
116
+ Amena","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"2224","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/729"},{"id":755,"kind":"company","full_name":"Carlos
117
+ Hern\u00e1ndez","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"620815221","phone_2":null,"fax":null,"email":"carlos@recrea.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/755"},{"id":735,"kind":"company","full_name":"Carlos
118
+ Hern\u00e1ndez Medina","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"carlos@recrea.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/735"},{"id":686,"kind":"company","full_name":"Coolmod","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"902
119
+ 88 85 34","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/686"},{"id":749,"kind":"company","full_name":"Cristina","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34650756263","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/749"},{"id":726,"kind":"company","full_name":"Cruz
120
+ Roja","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"987795001","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/726"},{"id":763,"kind":"company","full_name":"Dalia","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"637
121
+ 22 08 60","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/763"},{"id":711,"kind":"company","full_name":"David","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"620453446","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/711"},{"id":673,"kind":"company","full_name":"David
122
+ Meli\u00e1n Godoy","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dmg_dragon@hotmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/673"},{"id":756,"kind":"company","full_name":"David
123
+ Santiago","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"660608373","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/756"},{"id":114,"kind":"person","first_name":"Direct","last_name":"Debit","full_name":"Direct
124
+ Debit","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
125
+ Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"","phone_2":"","fax":"","email":"totoro.estepario@gmail.com","web":"","discount":null,"tax_id":"12345678Z","bank_account":"ES9121000418450200051332","language":"EN","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/114"}]'
116
126
  http_version: '1.1'
117
- recorded_at: Tue, 04 Feb 2014 14:50:54 GMT
127
+ recorded_at: Fri, 13 Jun 2014 12:41:43 GMT
118
128
  - request:
119
129
  method: post
120
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses.json
130
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses.json
121
131
  body:
122
132
  encoding: US-ASCII
123
- string: contact_id=2&contact_name=Another%20Test%20Contact&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
133
+ string: contact_id=760&contact_name=%03%20esatipa&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
124
134
  headers:
125
135
  authorization:
126
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
136
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
127
137
  response:
128
138
  status:
129
139
  code: 201
130
- message: ! 'Created '
140
+ message: Created
131
141
  headers:
142
+ server:
143
+ - nginx/1.4.5
144
+ date:
145
+ - Fri, 13 Jun 2014 12:41:44 GMT
146
+ content-type:
147
+ - application/json; charset=utf-8
148
+ transfer-encoding:
149
+ - chunked
150
+ connection:
151
+ - close
152
+ status:
153
+ - 201 Created
132
154
  x-ratelimit-limit:
133
155
  - '2000'
134
156
  x-ratelimit-remaining:
135
- - '1899'
136
- content-type:
137
- - application/json; charset=utf-8
157
+ - '1447'
138
158
  x-ua-compatible:
139
- - IE=Edge
159
+ - IE=Edge,chrome=1
140
160
  etag:
141
- - ! '"7b9955b919cc73f22f402916831b7258"'
161
+ - ! '"59772d19dde52fe44c2c5b7eea5df6fe"'
142
162
  cache-control:
143
163
  - max-age=0, private, must-revalidate
164
+ set-cookie:
165
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTZjMzFmNGQwMDQ5ZjM2YzE1NTE3MTAyNDE5MzgwODNjBjsAVA%3D%3D--0922b189b16a8ff5d38ebab052a79e3b4c5637b9;
166
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
144
167
  x-request-id:
145
- - 03c24321b8c9ce39c9ff1952dbf7aa8f
168
+ - a9154b6fef97727033198d7af12c4710
146
169
  x-runtime:
147
- - '0.497389'
148
- server:
149
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
150
- date:
151
- - Tue, 04 Feb 2014 14:50:55 GMT
152
- content-length:
153
- - '605'
154
- connection:
155
- - close
156
- set-cookie:
157
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTVhN2Q3MWY0N2FkMmFhYzg2ZDczY2YyYWRkZDA4YTQyBjsAVA%3D%3D--31f270447238af1a1c684d85eab40952944644d1;
158
- path=/; HttpOnly
170
+ - '0.278641'
171
+ x-rack-cache:
172
+ - invalidate, pass
159
173
  body:
160
174
  encoding: US-ASCII
161
- string: ! '{"id":22,"number":null,"issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
162
- Test Contact"},"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,"reference":null,"subtotal":"0.00
175
+ string: ! '{"id":544,"number":null,"issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
176
+ esatipa"},"po_number":null,"currency":"EUR","items":[{"id":698,"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,"reference":null,"subtotal":"0.00
163
177
  \u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
164
- \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/22.json"}'
178
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"notes":"","state":"outstanding","tag_list":[],"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/544.json"}'
165
179
  http_version: '1.1'
166
- recorded_at: Tue, 04 Feb 2014 14:50:55 GMT
180
+ recorded_at: Fri, 13 Jun 2014 12:41:44 GMT
167
181
  - request:
168
182
  method: delete
169
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/expenses/22.json
183
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses/544.json
170
184
  body:
171
185
  encoding: US-ASCII
172
186
  string: ''
173
187
  headers:
174
188
  authorization:
175
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
189
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
176
190
  response:
177
191
  status:
178
192
  code: 204
179
- message: ! 'No Content '
193
+ message: No Content
180
194
  headers:
195
+ server:
196
+ - nginx/1.4.5
197
+ date:
198
+ - Fri, 13 Jun 2014 12:41:45 GMT
199
+ connection:
200
+ - close
201
+ status:
202
+ - 204 No Content
181
203
  x-ratelimit-limit:
182
204
  - '2000'
183
205
  x-ratelimit-remaining:
184
- - '1898'
206
+ - '1446'
185
207
  x-ua-compatible:
186
- - IE=Edge
208
+ - IE=Edge,chrome=1
187
209
  cache-control:
188
210
  - no-cache
211
+ set-cookie:
212
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWI1OGU5NDExMDQ5YzFjNDA1MzUzNTk0NzYwYzUwNDgxBjsAVA%3D%3D--bb326f72ce70533f052d101b32f9a5f0d7ad1c2f;
213
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
189
214
  x-request-id:
190
- - 347bf0d3e2bc2046425dae535b53470a
215
+ - 5988e1700f603a8bd4587f37f5ebab78
191
216
  x-runtime:
192
- - '0.460193'
193
- server:
194
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
195
- date:
196
- - Tue, 04 Feb 2014 14:50:55 GMT
197
- connection:
198
- - close
199
- set-cookie:
200
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc3Y2E2ZTQ3NWU0YjI4Y2M3ZWI2ZTY4NWRhYmU4MTM0BjsAVA%3D%3D--24d7fd268d05b1793cafaab948180f5171eadbc8;
201
- path=/; HttpOnly
217
+ - '0.215159'
218
+ x-rack-cache:
219
+ - invalidate, pass
202
220
  body:
203
221
  encoding: US-ASCII
204
222
  string: ''
205
223
  http_version: '1.1'
206
- recorded_at: Tue, 04 Feb 2014 14:50:55 GMT
207
- recorded_with: VCR 2.3.0
224
+ recorded_at: Fri, 13 Jun 2014 12:41:45 GMT
225
+ recorded_with: VCR 2.9.2