quaderno 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
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,141 +2,168 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts.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:29:26 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
- - '1881'
32
+ - '1552'
21
33
  x-pages-currentpage:
22
34
  - '1'
23
35
  x-pages-totalpages:
24
- - '1'
25
- content-type:
26
- - application/json; charset=utf-8
36
+ - '5'
27
37
  x-ua-compatible:
28
- - IE=Edge
38
+ - IE=Edge,chrome=1
29
39
  etag:
30
- - ! '"71b79c1b45cfb58a71172c277dd004b5"'
40
+ - ! '"c8dc64244b78ebaeae0681e06d44ee7b"'
31
41
  cache-control:
32
- - max-age=0, private, must-revalidate
42
+ - must-revalidate, private, max-age=0
33
43
  x-request-id:
34
- - dc526359d31c82f535630c7e90692fce
44
+ - 0d783327b4a9336b11342c16c8412a50
35
45
  x-runtime:
36
- - '0.166930'
37
- server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
39
- date:
40
- - Tue, 04 Feb 2014 14:52:01 GMT
41
- content-length:
42
- - '1879'
43
- connection:
44
- - close
46
+ - '0.146907'
47
+ x-rack-cache:
48
+ - miss
45
49
  body:
46
50
  encoding: US-ASCII
47
- string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
48
- 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
49
- Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
50
- 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"}]'
51
+ string: ! '[{"id":760,"kind":"company","full_name":"\u0003 esatipa","contact_name":null,"street_line_1":"Torres
52
+ 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":725,"kind":"company","full_name":"Aitor
53
+ Hernandez Pe\u00f1a","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":"aithor123@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/725"},{"id":742,"kind":"company","full_name":"Akira
54
+ Comics S.L.","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":"akira@akiracomics.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/742"},{"id":694,"kind":"company","full_name":"Ale","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34650960183","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/694"},{"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
55
+ 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
56
+ Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
57
+ 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
58
+ Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
59
+ 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
60
+ 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
61
+ 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
62
+ 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
63
+ 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
64
+ 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
65
+ 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
66
+ 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
67
+ 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
68
+ 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":674,"kind":"company","full_name":"Dav
69
+ Mel God","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":"arthas_guay@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/674"}]'
51
70
  http_version: '1.1'
52
- recorded_at: Tue, 04 Feb 2014 14:52:01 GMT
71
+ recorded_at: Fri, 13 Jun 2014 12:29:26 GMT
53
72
  - request:
54
73
  method: post
55
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices.json
74
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/invoices.json
56
75
  body:
57
76
  encoding: US-ASCII
58
- 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=
77
+ 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=
59
78
  headers:
60
79
  authorization:
61
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
80
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
62
81
  response:
63
82
  status:
64
83
  code: 201
65
- message: ! 'Created '
84
+ message: Created
66
85
  headers:
86
+ server:
87
+ - nginx/1.4.5
88
+ date:
89
+ - Fri, 13 Jun 2014 12:29:27 GMT
90
+ content-type:
91
+ - application/json; charset=utf-8
92
+ transfer-encoding:
93
+ - chunked
94
+ connection:
95
+ - close
96
+ status:
97
+ - 201 Created
67
98
  x-ratelimit-limit:
68
99
  - '2000'
69
100
  x-ratelimit-remaining:
70
- - '1880'
71
- content-type:
72
- - application/json; charset=utf-8
101
+ - '1551'
73
102
  x-ua-compatible:
74
- - IE=Edge
103
+ - IE=Edge,chrome=1
75
104
  etag:
76
- - ! '"82034b725bcb1665de21a5595d0acf35"'
105
+ - ! '"d4331c07b59009737810e1fa1389c968"'
77
106
  cache-control:
78
107
  - max-age=0, private, must-revalidate
108
+ set-cookie:
109
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg5NzJiZmNiM2ViNjM0YmQ0MThiNGE3YTg1NTM0ZGY3BjsAVA%3D%3D--d1bb27f2206af640c9fc683f395cc61d937c8d8f;
110
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
79
111
  x-request-id:
80
- - ba359c93f2dba8b8439eb30c1cdfc84a
112
+ - 4e90b2d029f13b545d59c8517c6695e6
81
113
  x-runtime:
82
- - '0.560384'
83
- server:
84
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
85
- date:
86
- - Tue, 04 Feb 2014 14:52:02 GMT
87
- content-length:
88
- - '726'
89
- connection:
90
- - close
91
- set-cookie:
92
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU0OTE1MmEyYTI5ZDA3NTc0ZmRkMGYwNWY5ZTdiMzQ0BjsAVA%3D%3D--a30af728f33a39a4c31d6d95957ec77f494dc7b7;
93
- path=/; HttpOnly
114
+ - '0.292190'
115
+ x-rack-cache:
116
+ - invalidate, pass
94
117
  body:
95
118
  encoding: US-ASCII
96
- string: ! '{"id":25,"number":"0000004","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
97
- Test Contact"},"po_number":null,"due_date":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
119
+ string: ! '{"id":533,"number":"xxxx-2","issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
120
+ esatipa"},"po_number":null,"due_date":null,"currency":"EUR","items":[{"id":687,"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
98
121
  \u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
99
- \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/invoice/6be08bee13894a94e9161d996c633b3841ff4624","url":"http://localhost:3000/recrea/api/v1/invoices/25.json"}'
122
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"7efbff31b83901384c9be4cb75675389c669b4b6","permalink":"http://ninive-688.sandbox-quadernoapp.com/invoice/7efbff31b83901384c9be4cb75675389c669b4b6","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/invoices/533.json"}'
100
123
  http_version: '1.1'
101
- recorded_at: Tue, 04 Feb 2014 14:52:02 GMT
124
+ recorded_at: Fri, 13 Jun 2014 12:29:27 GMT
102
125
  - request:
103
126
  method: delete
104
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/invoices/25.json
127
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/invoices/533.json
105
128
  body:
106
129
  encoding: US-ASCII
107
130
  string: ''
108
131
  headers:
109
132
  authorization:
110
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
133
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
111
134
  response:
112
135
  status:
113
136
  code: 204
114
- message: ! 'No Content '
137
+ message: No Content
115
138
  headers:
139
+ server:
140
+ - nginx/1.4.5
141
+ date:
142
+ - Fri, 13 Jun 2014 12:29:28 GMT
143
+ connection:
144
+ - close
145
+ status:
146
+ - 204 No Content
116
147
  x-ratelimit-limit:
117
148
  - '2000'
118
149
  x-ratelimit-remaining:
119
- - '1879'
150
+ - '1550'
120
151
  x-ua-compatible:
121
- - IE=Edge
152
+ - IE=Edge,chrome=1
122
153
  cache-control:
123
154
  - no-cache
155
+ set-cookie:
156
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg5ZjM3MzBiNzMzOWY1OWU2YzYxZWRiZDZhODNmZWU1BjsAVA%3D%3D--18b6fd2f7c6f7acb6c6ce7184f09f632eeef290a;
157
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
124
158
  x-request-id:
125
- - ce3e2d7cfbc5162cd6d5f1e48bf4b4f3
159
+ - ecbc34c1665c925963e597ad0d6b9689
126
160
  x-runtime:
127
- - '0.480237'
128
- server:
129
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
130
- date:
131
- - Tue, 04 Feb 2014 14:52:02 GMT
132
- connection:
133
- - close
134
- set-cookie:
135
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgwNTZmOWQzYTE3NDMzZjQ4NmIzYWVjZmJhN2Q3MWZiBjsAVA%3D%3D--d25166caa1dd70547eafa06e8aaa561c4792c645;
136
- path=/; HttpOnly
161
+ - '0.092298'
162
+ x-rack-cache:
163
+ - invalidate, pass
137
164
  body:
138
165
  encoding: US-ASCII
139
166
  string: ''
140
167
  http_version: '1.1'
141
- recorded_at: Tue, 04 Feb 2014 14:52:02 GMT
142
- recorded_with: VCR 2.3.0
168
+ recorded_at: Fri, 13 Jun 2014 12:29:28 GMT
169
+ recorded_with: VCR 2.9.2
@@ -2,48 +2,52 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/items.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/items.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: code=000000&name=Test_Skynet&unit_cost=21.0
9
9
  headers:
10
10
  authorization:
11
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
11
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
12
12
  response:
13
13
  status:
14
14
  code: 201
15
- message: ! 'Created '
15
+ message: Created
16
16
  headers:
17
+ server:
18
+ - nginx/1.4.5
19
+ date:
20
+ - Fri, 13 Jun 2014 12:46:11 GMT
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ transfer-encoding:
24
+ - chunked
25
+ connection:
26
+ - close
27
+ status:
28
+ - 201 Created
17
29
  x-ratelimit-limit:
18
30
  - '2000'
19
31
  x-ratelimit-remaining:
20
- - '1862'
21
- content-type:
22
- - application/json; charset=utf-8
32
+ - '1403'
23
33
  x-ua-compatible:
24
- - IE=Edge
34
+ - IE=Edge,chrome=1
25
35
  etag:
26
- - ! '"20022f45ad6a47be1296a2bb0ae7d965"'
36
+ - ! '"bb4c8d72ed38b31290ff17f688164866"'
27
37
  cache-control:
28
38
  - max-age=0, private, must-revalidate
39
+ set-cookie:
40
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTk1MDJkZjVlZjFiMzIxMGMzOTk3Y2IyMTlkOTY4YjdhBjsAVA%3D%3D--75f330020ceb24768015eed8daffd66da3440448;
41
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
29
42
  x-request-id:
30
- - 70573cf566812c993f356878b8041fc3
43
+ - 4eaed6bab5b0aa07dfaacd9d904e306d
31
44
  x-runtime:
32
- - '0.473481'
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
- date:
36
- - Tue, 04 Feb 2014 14:52:20 GMT
37
- content-length:
38
- - '116'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFjOTNlZDA2ZGZjOGNkNGY0NjcwNGIwYzAwMGUxY2ZiBjsAVA%3D%3D--f9f1d28ce2529772f9c808c989cc47ae626206e2;
43
- path=/; HttpOnly
45
+ - '0.132707'
46
+ x-rack-cache:
47
+ - invalidate, pass
44
48
  body:
45
49
  encoding: US-ASCII
46
- string: ! '{"id":4,"code":"000000","name":"Test_Skynet","unit_cost":"21.0","url":"http://localhost:3000/recrea/api/v1/items/4"}'
50
+ string: ! '{"id":53,"code":"000000","name":"Test_Skynet","unit_cost":"21.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/53"}'
47
51
  http_version: '1.1'
48
- recorded_at: Tue, 04 Feb 2014 14:52:20 GMT
49
- recorded_with: VCR 2.3.0
52
+ recorded_at: Fri, 13 Jun 2014 12:46:11 GMT
53
+ recorded_with: VCR 2.9.2
@@ -2,88 +2,96 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks.json
5
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
6
6
  body:
7
7
  encoding: US-ASCII
8
- string: url=http%3A%2F%2Fquadernoapp.com&events[]=created&events[]=updated
8
+ string: url=http%3A%2F%2Fquadernoapp.com&events_types[]=invoice.created&events_types[]=expense.updated
9
9
  headers:
10
10
  authorization:
11
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
11
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
12
12
  response:
13
13
  status:
14
14
  code: 201
15
- message: ! 'Created '
15
+ message: Created
16
16
  headers:
17
+ server:
18
+ - nginx/1.4.5
19
+ date:
20
+ - Fri, 13 Jun 2014 12:34:19 GMT
21
+ content-type:
22
+ - application/json; charset=utf-8
23
+ transfer-encoding:
24
+ - chunked
25
+ connection:
26
+ - close
27
+ status:
28
+ - 201 Created
17
29
  x-ratelimit-limit:
18
30
  - '2000'
19
31
  x-ratelimit-remaining:
20
- - '1853'
21
- content-type:
22
- - application/json; charset=utf-8
32
+ - '1503'
23
33
  x-ua-compatible:
24
- - IE=Edge
34
+ - IE=Edge,chrome=1
25
35
  etag:
26
- - ! '"c497b609d0a44ff05618eff01e65ab00"'
36
+ - ! '"a8fe99f431c7f0bd883d4aea34b64d3d"'
27
37
  cache-control:
28
38
  - max-age=0, private, must-revalidate
39
+ set-cookie:
40
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTM0MmIzYTQ1ODk4YzU2MjEyNmZiMjE1MDA4NDIxNjhjBjsAVA%3D%3D--851040dd99e6349b1b1a5ba1d2809819d624bfb5;
41
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
29
42
  x-request-id:
30
- - 861cd73fa655061cb906426e7d936d75
43
+ - 771ebb4ecefd2e72847b74dc38bd9ce9
31
44
  x-runtime:
32
- - '3.304371'
33
- server:
34
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
- date:
36
- - Tue, 04 Feb 2014 14:53:24 GMT
37
- content-length:
38
- - '232'
39
- connection:
40
- - close
41
- set-cookie:
42
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWNhZDBmNjQyY2E0MzJiOThkNWMxMzVkYzA2NTVjNTM2BjsAVA%3D%3D--239cf66a6f6fd7c509c5609b7876f0de7e953fb9;
43
- path=/; HttpOnly
45
+ - '0.999929'
46
+ x-rack-cache:
47
+ - invalidate, pass
44
48
  body:
45
49
  encoding: US-ASCII
46
- string: ! '{"id":1,"url":"http://quadernoapp.com","auth_key":"8dMLvYe3NYbFpVkYrBM9gQ","events":["created","updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-02-04T14:53:23Z","updated_at":"2014-02-04T14:53:23Z"}'
50
+ string: ! '{"id":27,"url":"http://quadernoapp.com","auth_key":"8v50pI3nhe4U4YGEuc5uNA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:19Z","updated_at":"2014-06-13T12:34:19Z"}'
47
51
  http_version: '1.1'
48
- recorded_at: Tue, 04 Feb 2014 14:53:24 GMT
52
+ recorded_at: Fri, 13 Jun 2014 12:34:19 GMT
49
53
  - request:
50
54
  method: delete
51
- uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/webhooks/1.json
55
+ uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/27.json
52
56
  body:
53
57
  encoding: US-ASCII
54
58
  string: ''
55
59
  headers:
56
60
  authorization:
57
- - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
61
+ - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
58
62
  response:
59
63
  status:
60
64
  code: 204
61
- message: ! 'No Content '
65
+ message: No Content
62
66
  headers:
67
+ server:
68
+ - nginx/1.4.5
69
+ date:
70
+ - Fri, 13 Jun 2014 12:34:20 GMT
71
+ connection:
72
+ - close
73
+ status:
74
+ - 204 No Content
63
75
  x-ratelimit-limit:
64
76
  - '2000'
65
77
  x-ratelimit-remaining:
66
- - '1852'
78
+ - '1502'
67
79
  x-ua-compatible:
68
- - IE=Edge
80
+ - IE=Edge,chrome=1
69
81
  cache-control:
70
82
  - no-cache
83
+ set-cookie:
84
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTRkMzBmMGU2MGQyNTk2MjZjZGZjYzUwZDFjNTQ0MzkyBjsAVA%3D%3D--538fcbd837c8db40ca88a993a8fe2636f0af1d3d;
85
+ domain=sandbox-quadernoapp.com; path=/; HttpOnly
71
86
  x-request-id:
72
- - dfc5672856484be4ab0276394e622cc7
87
+ - 2bda026b600416e7cba79a88b270f808
73
88
  x-runtime:
74
- - '0.117808'
75
- server:
76
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
77
- date:
78
- - Tue, 04 Feb 2014 14:53:24 GMT
79
- connection:
80
- - close
81
- set-cookie:
82
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTA3NWMyNzU1Y2U2YTA5MTMwMmViNmE4MmNmNzBiYmJkBjsAVA%3D%3D--921afbe599493064b3752b3f595fe8ce582f908e;
83
- path=/; HttpOnly
89
+ - '0.091324'
90
+ x-rack-cache:
91
+ - invalidate, pass
84
92
  body:
85
93
  encoding: US-ASCII
86
94
  string: ''
87
95
  http_version: '1.1'
88
- recorded_at: Tue, 04 Feb 2014 14:53:24 GMT
89
- recorded_with: VCR 2.3.0
96
+ recorded_at: Fri, 13 Jun 2014 12:34:20 GMT
97
+ recorded_with: VCR 2.9.2