quaderno 1.2.1 → 1.2.2

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 (59) hide show
  1. data/Gemfile +6 -7
  2. data/Gemfile.lock +0 -9
  3. data/README.md +6 -2
  4. data/VERSION +1 -1
  5. data/build_install.sh +1 -1
  6. data/changelog.md +4 -0
  7. data/lib/quaderno-ruby/base.rb +10 -2
  8. data/lib/quaderno-ruby/behavior/crud.rb +0 -1
  9. data/lib/quaderno-ruby.rb +0 -2
  10. data/quaderno.gemspec +6 -25
  11. data/test/fixtures/quaderno_cassettes/all_contacts.yml +23 -18
  12. data/test/fixtures/quaderno_cassettes/all_estimates.yml +35 -18
  13. data/test/fixtures/quaderno_cassettes/all_expenses.yml +38 -18
  14. data/test/fixtures/quaderno_cassettes/all_invoices.yml +35 -29
  15. data/test/fixtures/quaderno_cassettes/all_items.yml +17 -12
  16. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +84 -68
  17. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +81 -62
  18. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +96 -62
  19. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +99 -62
  20. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +96 -73
  21. data/test/fixtures/quaderno_cassettes/deleted_item.yml +49 -37
  22. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +100 -80
  23. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +66 -45
  24. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +66 -56
  25. data/test/fixtures/quaderno_cassettes/found_contact.yml +39 -30
  26. data/test/fixtures/quaderno_cassettes/found_estimate.yml +55 -32
  27. data/test/fixtures/quaderno_cassettes/found_expense.yml +62 -30
  28. data/test/fixtures/quaderno_cassettes/found_invoice.yml +58 -42
  29. data/test/fixtures/quaderno_cassettes/found_item.yml +33 -24
  30. data/test/fixtures/quaderno_cassettes/found_webhook.yml +50 -40
  31. data/test/fixtures/quaderno_cassettes/new_contact.yml +19 -12
  32. data/test/fixtures/quaderno_cassettes/new_estimate.yml +61 -44
  33. data/test/fixtures/quaderno_cassettes/new_expense.yml +99 -62
  34. data/test/fixtures/quaderno_cassettes/new_invoice.yml +61 -44
  35. data/test/fixtures/quaderno_cassettes/new_item.yml +19 -12
  36. data/test/fixtures/quaderno_cassettes/new_webhook.yml +34 -28
  37. data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -30
  38. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +54 -41
  39. data/test/fixtures/quaderno_cassettes/rate_limit.yml +14 -10
  40. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +73 -43
  41. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +70 -54
  42. data/test/fixtures/quaderno_cassettes/updated_contact.yml +42 -30
  43. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +84 -57
  44. data/test/fixtures/quaderno_cassettes/updated_expense.yml +81 -56
  45. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +84 -57
  46. data/test/fixtures/quaderno_cassettes/updated_item.yml +36 -24
  47. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +69 -55
  48. data/test/helper.rb +12 -12
  49. data/test/unit/test_quaderno_contacts.rb +4 -3
  50. data/test/unit/test_quaderno_estimates.rb +2 -1
  51. data/test/unit/test_quaderno_expenses.rb +3 -2
  52. data/test/unit/test_quaderno_invoices.rb +3 -2
  53. data/test/unit/test_quaderno_items.rb +4 -3
  54. data/test/unit/test_quaderno_webhooks.rb +4 -3
  55. metadata +10 -94
  56. data/quaderno-1.0.0.gem +0 -0
  57. data/quaderno-1.1.0.gem +0 -0
  58. data/quaderno-1.1.2.gem +0 -0
  59. data/quaderno-1.2.0.gem +0 -0
@@ -2,170 +2,189 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: kind=company&first_name=Z%2C%20Mazinger%20Z&email=koji%40kabuto.ftw
9
9
  headers:
10
10
  authorization:
11
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
11
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
12
12
  response:
13
13
  status:
14
14
  code: 201
15
- message: Created
15
+ message: ! 'Created '
16
16
  headers:
17
17
  x-ratelimit-limit:
18
- - '1000'
18
+ - '2000'
19
19
  x-ratelimit-remaining:
20
- - '900'
20
+ - '1988'
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  x-ua-compatible:
24
24
  - IE=Edge
25
25
  etag:
26
- - ! '"30b684fd1d369bc6f2cdb3160ef9a310"'
26
+ - ! '"d227ac68787a27020eefba905c7d5572"'
27
27
  cache-control:
28
28
  - max-age=0, private, must-revalidate
29
29
  x-request-id:
30
- - 4d5e9cb89295534e9b0d6f0bacde838a
30
+ - 1ddfcb6777bb2677ac1a8d3f79bc8b29
31
31
  x-runtime:
32
- - '0.416450'
32
+ - '0.402369'
33
+ server:
34
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
35
+ date:
36
+ - Tue, 04 Feb 2014 14:39:42 GMT
37
+ content-length:
38
+ - '367'
33
39
  connection:
34
40
  - close
35
- server:
36
- - thin 1.5.0 codename Knife
41
+ set-cookie:
42
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTk3ODk1NWE1ODZhNDczZDFlNWZiNWNjNzY4OTQwYTY0BjsAVA%3D%3D--c53dba9f387e5316c44a51acb42697db8d10eb41;
43
+ path=/; HttpOnly
37
44
  body:
38
45
  encoding: US-ASCII
39
- string: ! '{"id":16,"kind":"company","full_name":"Z, Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/16"}'
46
+ string: ! '{"id":7,"kind":"company","full_name":"Z, Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"}'
40
47
  http_version: '1.1'
41
- recorded_at: Tue, 14 May 2013 10:47:49 GMT
48
+ recorded_at: Tue, 04 Feb 2014 14:39:42 GMT
42
49
  - request:
43
50
  method: get
44
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
51
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
45
52
  body:
46
53
  encoding: US-ASCII
47
54
  string: ''
48
55
  headers:
49
56
  authorization:
50
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
57
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
51
58
  response:
52
59
  status:
53
60
  code: 200
54
- message: OK
61
+ message: ! 'OK '
55
62
  headers:
56
63
  x-ratelimit-limit:
57
- - '1000'
64
+ - '2000'
58
65
  x-ratelimit-remaining:
59
- - '899'
66
+ - '1987'
67
+ x-pages-currentpage:
68
+ - '1'
69
+ x-pages-totalpages:
70
+ - '1'
60
71
  content-type:
61
72
  - application/json; charset=utf-8
62
73
  x-ua-compatible:
63
74
  - IE=Edge
64
75
  etag:
65
- - ! '"586be2fb3a91bdc46baa409358b73e83"'
76
+ - ! '"11443a4841e97a4e8cdbb5c37797a605"'
66
77
  cache-control:
67
78
  - max-age=0, private, must-revalidate
68
79
  x-request-id:
69
- - 596deca61d512f97f30aaf6ee3538c09
80
+ - 13365a6496b9b79ee010166ea77912ae
70
81
  x-runtime:
71
- - '0.138780'
82
+ - '0.258855'
83
+ server:
84
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
85
+ date:
86
+ - Tue, 04 Feb 2014 14:39:43 GMT
87
+ content-length:
88
+ - '2247'
72
89
  connection:
73
90
  - close
74
- server:
75
- - thin 1.5.0 codename Knife
76
91
  body:
77
92
  encoding: US-ASCII
78
- string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":7,"kind":"company","full_name":"Paco","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":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"},{"id":1,"kind":"company","full_name":"Recrea
79
- Systems, SLU","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":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
80
- Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
81
- de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
82
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
83
- Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
84
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"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/12"},{"id":15,"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/15"},{"id":8,"kind":"company","full_name":"Toby","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":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"},{"id":16,"kind":"company","full_name":"Z,
85
- Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/16"}]'
93
+ string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
94
+ 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
95
+ Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
96
+ 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"},{"id":7,"kind":"company","full_name":"Z,
97
+ Mazinger Z","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":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"}]'
86
98
  http_version: '1.1'
87
- recorded_at: Tue, 14 May 2013 10:47:50 GMT
99
+ recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
88
100
  - request:
89
101
  method: delete
90
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts/16.json
102
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts/7.json
91
103
  body:
92
104
  encoding: US-ASCII
93
105
  string: ''
94
106
  headers:
95
107
  authorization:
96
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
108
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
97
109
  response:
98
110
  status:
99
111
  code: 204
100
- message: No Content
112
+ message: ! 'No Content '
101
113
  headers:
102
114
  x-ratelimit-limit:
103
- - '1000'
115
+ - '2000'
104
116
  x-ratelimit-remaining:
105
- - '898'
117
+ - '1986'
106
118
  x-ua-compatible:
107
119
  - IE=Edge
108
120
  cache-control:
109
121
  - no-cache
110
- set-cookie:
111
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWIyOTRhMTA5YmJmYjI4MTAzMTI5NjZjMjVjNTk4YmM4BjsAVA%3D%3D--0b910a5923e7ac648b7602b8e7b473726efb9c13;
112
- path=/; HttpOnly
113
122
  x-request-id:
114
- - 3e358d003c385fe5ce6a72eb5b7935b3
123
+ - 817086194f8b7e66340ec0ac6e2bcbfd
115
124
  x-runtime:
116
- - '0.081633'
125
+ - '0.077995'
126
+ server:
127
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
128
+ date:
129
+ - Tue, 04 Feb 2014 14:39:43 GMT
117
130
  connection:
118
131
  - close
119
- server:
120
- - thin 1.5.0 codename Knife
132
+ set-cookie:
133
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFiNDMwYWMzNzlhMWMxZTYwZjVlYTBiMGU2NGM1MGY1BjsAVA%3D%3D--e606d16c3926f04003e8f77b4b44343d9ebeab39;
134
+ path=/; HttpOnly
121
135
  body:
122
136
  encoding: US-ASCII
123
137
  string: ''
124
138
  http_version: '1.1'
125
- recorded_at: Tue, 14 May 2013 10:47:50 GMT
139
+ recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
126
140
  - request:
127
141
  method: get
128
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
142
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
129
143
  body:
130
144
  encoding: US-ASCII
131
145
  string: ''
132
146
  headers:
133
147
  authorization:
134
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
148
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
135
149
  response:
136
150
  status:
137
151
  code: 200
138
- message: OK
152
+ message: ! 'OK '
139
153
  headers:
140
154
  x-ratelimit-limit:
141
- - '1000'
155
+ - '2000'
142
156
  x-ratelimit-remaining:
143
- - '897'
157
+ - '1985'
158
+ x-pages-currentpage:
159
+ - '1'
160
+ x-pages-totalpages:
161
+ - '1'
144
162
  content-type:
145
163
  - application/json; charset=utf-8
146
164
  x-ua-compatible:
147
165
  - IE=Edge
148
166
  etag:
149
- - ! '"b40453602ac7193432d0bede80334a42"'
167
+ - ! '"71b79c1b45cfb58a71172c277dd004b5"'
150
168
  cache-control:
151
169
  - max-age=0, private, must-revalidate
152
170
  x-request-id:
153
- - 5747ef4f35936b22131d17994b408cc2
171
+ - b81ecdc030476dcb566ec1cef69e9885
154
172
  x-runtime:
155
- - '0.373889'
173
+ - '0.094156'
174
+ server:
175
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
176
+ date:
177
+ - Tue, 04 Feb 2014 14:39:43 GMT
178
+ content-length:
179
+ - '1879'
156
180
  connection:
157
181
  - close
158
- server:
159
- - thin 1.5.0 codename Knife
160
182
  body:
161
183
  encoding: US-ASCII
162
- string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":7,"kind":"company","full_name":"Paco","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":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/7"},{"id":1,"kind":"company","full_name":"Recrea
163
- Systems, SLU","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":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
164
- Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
165
- de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
166
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
167
- Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
168
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"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/12"},{"id":15,"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/15"},{"id":8,"kind":"company","full_name":"Toby","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":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"}]'
184
+ string: ! '[{"id":2,"kind":"company","full_name":"Another Test Contact","contact_name":"","street_line_1":"Kamiya
185
+ 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
186
+ Test Contact","contact_name":"","street_line_1":"Evergreen Terrace","street_line_2":"","postal_code":"K0A
187
+ 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"}]'
169
188
  http_version: '1.1'
170
- recorded_at: Tue, 14 May 2013 10:47:50 GMT
189
+ recorded_at: Tue, 04 Feb 2014 14:39:43 GMT
171
190
  recorded_with: VCR 2.3.0
@@ -2,169 +2,203 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/contacts.json
5
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/contacts.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  authorization:
11
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
11
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
12
12
  response:
13
13
  status:
14
14
  code: 200
15
- message: OK
15
+ message: ! 'OK '
16
16
  headers:
17
17
  x-ratelimit-limit:
18
- - '1000'
18
+ - '2000'
19
19
  x-ratelimit-remaining:
20
- - '888'
20
+ - '1976'
21
+ x-pages-currentpage:
22
+ - '1'
23
+ x-pages-totalpages:
24
+ - '1'
21
25
  content-type:
22
26
  - application/json; charset=utf-8
23
27
  x-ua-compatible:
24
28
  - IE=Edge
25
29
  etag:
26
- - ! '"d251a198e8a45af2dac75b448e48bbce"'
30
+ - ! '"71b79c1b45cfb58a71172c277dd004b5"'
27
31
  cache-control:
28
32
  - max-age=0, private, must-revalidate
29
33
  x-request-id:
30
- - 939cbd1311bf933d4b1b21ca98e726a7
34
+ - 40c504d3ee1254d5321cd62b9a8ecc98
31
35
  x-runtime:
32
- - '0.142070'
36
+ - '0.267820'
37
+ server:
38
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
39
+ date:
40
+ - Tue, 04 Feb 2014 14:39:53 GMT
41
+ content-length:
42
+ - '1879'
33
43
  connection:
34
44
  - close
35
- server:
36
- - thin 1.5.0 codename Knife
37
45
  body:
38
46
  encoding: US-ASCII
39
- string: ! '[{"id":3,"kind":"company","full_name":"100-499","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/3"},{"id":6,"kind":"company","full_name":"ACME","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/6"},{"id":1,"kind":"company","full_name":"Recrea
40
- Systems, SLU","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":"info@recreahq.com","web":null,"discount":null,"tax_id":"B35635648","bank_account":null,"language":"ES","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/1"},{"id":5,"kind":"company","full_name":"Stark
41
- Industries","contact_name":"Tony","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/5"},{"id":2,"kind":"company","full_name":"Test_OCP","contact_name":"","street_line_1":"C/Bernardo
42
- de la Torre n\u00ba 104","street_line_2":"apartamento 201","postal_code":"35007","city":"Las
43
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/2"},{"id":7,"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/7"},{"id":4,"kind":"person","first_name":"Test_OCP","last_name":"Doe","full_name":"Test_OCP
44
- Doe","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
45
- Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"653157684","phone_2":"653157684","fax":"","email":"dont@stop.believing","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://localhost:3000/recrea/api/v1/contacts/4"},{"id":12,"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/12"},{"id":15,"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/15"},{"id":8,"kind":"company","full_name":"Toby","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":null,"web":null,"discount":null,"tax_id":null,"language":"EN","notes":null,"url":"http://localhost:3000/recrea/api/v1/contacts/8"}]'
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"}]'
46
51
  http_version: '1.1'
47
- recorded_at: Tue, 14 May 2013 10:47:59 GMT
52
+ recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
48
53
  - request:
49
54
  method: post
50
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates.json
55
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
51
56
  body:
52
57
  encoding: US-ASCII
53
- string: contact_id=3&number=test%20number%204400&contact_name=100-499&currency=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=&notes=
58
+ string: contact_id=2&number=test%20number%204400&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=
54
59
  headers:
55
60
  authorization:
56
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
61
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
57
62
  response:
58
63
  status:
59
64
  code: 201
60
- message: Created
65
+ message: ! 'Created '
61
66
  headers:
62
67
  x-ratelimit-limit:
63
- - '1000'
68
+ - '2000'
64
69
  x-ratelimit-remaining:
65
- - '887'
70
+ - '1975'
66
71
  content-type:
67
72
  - application/json; charset=utf-8
68
73
  x-ua-compatible:
69
74
  - IE=Edge
70
75
  etag:
71
- - ! '"6a759b6a0c3908c7aee06c5a425f4e8a"'
76
+ - ! '"96731bd4e0be6ec97c875ec181b960e3"'
72
77
  cache-control:
73
78
  - max-age=0, private, must-revalidate
74
79
  x-request-id:
75
- - d19ae50f3bda2867ce74f4a6788c99fe
80
+ - da7a3ee65c0b23d2ccdf7df80dc825b4
76
81
  x-runtime:
77
- - '0.393017'
82
+ - '0.156521'
83
+ server:
84
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
85
+ date:
86
+ - Tue, 04 Feb 2014 14:39:53 GMT
87
+ content-length:
88
+ - '707'
78
89
  connection:
79
90
  - close
80
- server:
81
- - thin 1.5.0 codename Knife
91
+ set-cookie:
92
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWQyNzQwNWJhZjM5OGI3YTI0MGUwN2FmOTFhNTM4YTQzBjsAVA%3D%3D--fe10ea5a21ea4ab9b34d039c6768d55867089f8c;
93
+ path=/; HttpOnly
82
94
  body:
83
95
  encoding: US-ASCII
84
- string: ! '{"id":170,"number":"test number 4400","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","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/c05b0fc8ec387b24da9039c8125c6d39496bbbb6","url":"http://localhost:3000/recrea/api/v1/estimates/170.json"}'
96
+ string: ! '{"id":11,"number":"test number 4400","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
97
+ 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
98
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
99
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/193b01105b8019fd2da1f27b13b17707ecd4fe9b","url":"http://localhost:3000/recrea/api/v1/estimates/11.json"}'
85
100
  http_version: '1.1'
86
- recorded_at: Tue, 14 May 2013 10:48:00 GMT
101
+ recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
87
102
  - request:
88
103
  method: delete
89
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates/170.json
104
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates/11.json
90
105
  body:
91
106
  encoding: US-ASCII
92
107
  string: ''
93
108
  headers:
94
109
  authorization:
95
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
110
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
96
111
  response:
97
112
  status:
98
113
  code: 204
99
- message: No Content
114
+ message: ! 'No Content '
100
115
  headers:
101
116
  x-ratelimit-limit:
102
- - '1000'
117
+ - '2000'
103
118
  x-ratelimit-remaining:
104
- - '886'
119
+ - '1974'
105
120
  x-ua-compatible:
106
121
  - IE=Edge
107
122
  cache-control:
108
123
  - no-cache
109
- set-cookie:
110
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTcxZGEzMjA5N2I1YjRkN2RjZDE0NmQ4ZTFhMDQ2MzBiBjsAVA%3D%3D--0c17cfac393063b0ea8491fa091953e45901dab7;
111
- path=/; HttpOnly
112
124
  x-request-id:
113
- - 6b12aec48e69ddf32243a0a8e50ac2e5
125
+ - d6ca8117ed7821d9932588d148bf3c26
114
126
  x-runtime:
115
- - '0.111850'
127
+ - '0.257304'
128
+ server:
129
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
130
+ date:
131
+ - Tue, 04 Feb 2014 14:39:53 GMT
116
132
  connection:
117
133
  - close
118
- server:
119
- - thin 1.5.0 codename Knife
134
+ set-cookie:
135
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTI4NTJkMmY3NWVkYzUzNWY5ZmViZTlmODBlNjc3YjY4BjsAVA%3D%3D--df4593775971c5434138b94c42e69fb30e226be9;
136
+ path=/; HttpOnly
120
137
  body:
121
138
  encoding: US-ASCII
122
139
  string: ''
123
140
  http_version: '1.1'
124
- recorded_at: Tue, 14 May 2013 10:48:00 GMT
141
+ recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
125
142
  - request:
126
143
  method: get
127
- uri: http://n8sDLUZ5z1d6dYXKixnx@localhost:3000/recrea/api/v1/estimates.json
144
+ uri: http://1spyno1mbqbp3SFpg9uT@localhost:3000/recrea/api/v1/estimates.json
128
145
  body:
129
146
  encoding: US-ASCII
130
147
  string: ''
131
148
  headers:
132
149
  authorization:
133
- - Basic bjhzRExVWjV6MWQ2ZFlYS2l4bng6
150
+ - Basic MXNweW5vMW1icWJwM1NGcGc5dVQ6
134
151
  response:
135
152
  status:
136
153
  code: 200
137
- message: OK
154
+ message: ! 'OK '
138
155
  headers:
139
156
  x-ratelimit-limit:
140
- - '1000'
157
+ - '2000'
141
158
  x-ratelimit-remaining:
142
- - '885'
159
+ - '1973'
160
+ x-pages-currentpage:
161
+ - '1'
162
+ x-pages-totalpages:
163
+ - '1'
143
164
  content-type:
144
165
  - application/json; charset=utf-8
145
166
  x-ua-compatible:
146
167
  - IE=Edge
147
168
  etag:
148
- - ! '"5b7ecba12d39953a997fc60af9f8dc2c"'
169
+ - ! '"e381d87821899056ec8529c9f9bb5f0a"'
149
170
  cache-control:
150
171
  - max-age=0, private, must-revalidate
151
172
  x-request-id:
152
- - 9cae84e779a54da090b007513d649b96
173
+ - 1c7c4f7302c2f73593d05cce598f0e96
153
174
  x-runtime:
154
- - '0.813743'
175
+ - '0.170577'
176
+ server:
177
+ - WEBrick/1.3.1 (Ruby/1.9.3/2012-04-20)
178
+ date:
179
+ - Tue, 04 Feb 2014 14:39:53 GMT
180
+ content-length:
181
+ - '2872'
155
182
  connection:
156
183
  - close
157
- server:
158
- - thin 1.5.0 codename Knife
159
184
  body:
160
185
  encoding: US-ASCII
161
- string: ! '[{"id":15,"number":"0000007","issue_date":"2013-04-25","contact":{"id":4,"full_name":"Test_OCP
162
- Doe"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"Show
163
- me the moneeeeeeeyy!!!!","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/91b1ab60bc88b87973bb9c03d668f6ceebb30137","url":"http://localhost:3000/recrea/api/v1/estimates/15.json"},{"id":14,"number":"0000006","issue_date":"2013-04-25","contact":{"id":5,"full_name":"Stark
164
- Industries"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"declined","permalink":"http://localhost:3000/estimate/4dae199225447e31626848012ca892b69d507262","url":"http://localhost:3000/recrea/api/v1/estimates/14.json"},{"id":13,"number":"0000005","issue_date":"2013-04-25","contact":{"id":3,"full_name":"100-499"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"accepted","permalink":"http://localhost:3000/estimate/b70a0607dee9da936bbc941f3f5d9d88dd49952f","url":"http://localhost:3000/recrea/api/v1/estimates/13.json"},{"id":12,"number":"0000004","issue_date":"2013-04-25","contact":{"id":6,"full_name":"ACME"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/d877d05d92046a69fe737fa5b43053c23975ea4d","url":"http://localhost:3000/recrea/api/v1/estimates/12.json"},{"id":11,"number":"0000003","issue_date":"2013-04-25","contact":{"id":5,"full_name":"Stark
165
- Industries"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/f7d4b0db4eb44df4c64717de9a8fce4358552156","url":"http://localhost:3000/recrea/api/v1/estimates/11.json"},{"id":10,"number":"0000002","issue_date":"2013-04-25","contact":{"id":2,"full_name":"Test_OCP"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/f40fd3dc4d2e6b597d2c45897eb8af605fd3b9b0","url":"http://localhost:3000/recrea/api/v1/estimates/10.json"},{"id":9,"number":"0000001","issue_date":"2013-04-25","contact":{"id":1,"full_name":"Recrea
166
- Systems, SLU"},"po_number":"","currency":"EUR","items":[{"description":"Algo","quantity":"1.0","unit_price":"33.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"subtotal":"\u20ac33.00","discount":"\u20ac0.00","gross_amount":"\u20ac33.00"}],"subtotal":"\u20ac33.00","discount":"\u20ac0.00","taxes":[],"total":"\u20ac33.00","tags":[],"payment_details":"","notes":"","state":"invoiced","permalink":"http://localhost:3000/estimate/2219c272c3aa91e6ed27f8e8cfe2c905c81f6e2f","url":"http://localhost:3000/recrea/api/v1/estimates/9.json"},{"id":21,"number":"0000008","issue_date":"2013-04-24","contact":{"id":7,"full_name":"Test_OCP"},"po_number":"","currency":"EUR","items":[{"description":"Fresones","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","tags":[],"payment_details":"","notes":"","state":"draft","permalink":"http://localhost:3000/estimate/f049036ab6504548aed34d59ad58fea7bc08d266","url":"http://localhost:3000/recrea/api/v1/estimates/21.json"},{"id":22,"number":"0000009","issue_date":"2013-03-24","contact":{"id":4,"full_name":"Test_OCP
167
- Doe"},"po_number":"","currency":"EUR","items":[{"description":"Tarta de fresa","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","tags":[],"payment_details":"","notes":"","state":"invoiced","permalink":"http://localhost:3000/estimate/91992f05a4762c0a253ea34b51cbbe720fad82f4","url":"http://localhost:3000/recrea/api/v1/estimates/22.json"}]'
186
+ string: ! '[{"id":9,"number":"0000003","issue_date":"2014-02-04","contact":{"id":2,"full_name":"Another
187
+ Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Bread
188
+ pack","quantity":"1.0","unit_price":"2.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"2.00
189
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"2.00 \u20ac"}],"subtotal":"2.00
190
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"2.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/43cb8820f8901ce8ee208a79f2a4c4d6eef63eb6","url":"http://localhost:3000/recrea/api/v1/estimates/9.json"},{"id":8,"number":"0000002","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
191
+ Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Paint","quantity":"1.0","unit_price":"50.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"50.00
192
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"50.00 \u20ac"},{"description":"Brushes","quantity":"1.0","unit_price":"12.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"12.00
193
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"},{"description":"Working
194
+ suits","quantity":"1.0","unit_price":"20.99","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"20.99
195
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"20.99 \u20ac"}],"subtotal":"82.99
196
+ \u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IVA (21.00%)","amount":"2.52
197
+ \u20ac"}],"total":"85.51 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/749d695e7c7b0fd8545416fa30346ca3c69f5658","url":"http://localhost:3000/recrea/api/v1/estimates/8.json"},{"id":7,"number":"0000001","issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
198
+ Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Paint","quantity":"1.0","unit_price":"50.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"50.00
199
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"50.00 \u20ac"},{"description":"Brushes","quantity":"1.0","unit_price":"12.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"12.00
200
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"}],"subtotal":"62.00
201
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"62.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://localhost:3000/estimate/8a4c4788bf7cbb1ecf13e875176864a9b02f5d7f","url":"http://localhost:3000/recrea/api/v1/estimates/7.json"}]'
168
202
  http_version: '1.1'
169
- recorded_at: Tue, 14 May 2013 10:48:00 GMT
203
+ recorded_at: Tue, 04 Feb 2014 14:39:53 GMT
170
204
  recorded_with: VCR 2.3.0