quaderno 1.3.1 → 1.3.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 (55) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +7 -7
  3. data/VERSION +1 -1
  4. data/build_install.sh +1 -1
  5. data/changelog.md +4 -0
  6. data/lib/quaderno-ruby/base.rb +21 -17
  7. data/lib/quaderno-ruby/behavior/crud.rb +5 -5
  8. data/lib/quaderno-ruby/behavior/deliver.rb +1 -1
  9. data/lib/quaderno-ruby/behavior/payment.rb +2 -2
  10. data/quaderno.gemspec +3 -3
  11. data/test/fixtures/.DS_Store +0 -0
  12. data/test/fixtures/quaderno_cassettes/all_contacts.yml +15 -27
  13. data/test/fixtures/quaderno_cassettes/all_estimates.yml +19 -12
  14. data/test/fixtures/quaderno_cassettes/all_expenses.yml +17 -13
  15. data/test/fixtures/quaderno_cassettes/all_invoices.yml +18 -91
  16. data/test/fixtures/quaderno_cassettes/all_items.yml +10 -10
  17. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +45 -45
  18. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +49 -72
  19. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +54 -62
  20. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +52 -63
  21. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +53 -140
  22. data/test/fixtures/quaderno_cassettes/deleted_item.yml +28 -28
  23. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +54 -54
  24. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +33 -26
  25. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +38 -113
  26. data/test/fixtures/quaderno_cassettes/found_contact.yml +26 -36
  27. data/test/fixtures/quaderno_cassettes/found_estimate.yml +34 -24
  28. data/test/fixtures/quaderno_cassettes/found_expense.yml +30 -26
  29. data/test/fixtures/quaderno_cassettes/found_invoice.yml +31 -110
  30. data/test/fixtures/quaderno_cassettes/found_item.yml +20 -19
  31. data/test/fixtures/quaderno_cassettes/found_webhook.yml +27 -27
  32. data/test/fixtures/quaderno_cassettes/new_contact.yml +10 -10
  33. data/test/fixtures/quaderno_cassettes/new_estimate.yml +35 -50
  34. data/test/fixtures/quaderno_cassettes/new_expense.yml +52 -63
  35. data/test/fixtures/quaderno_cassettes/new_invoice.yml +35 -49
  36. data/test/fixtures/quaderno_cassettes/new_item.yml +10 -10
  37. data/test/fixtures/quaderno_cassettes/new_webhook.yml +18 -18
  38. data/test/fixtures/quaderno_cassettes/paid_expense.yml +27 -23
  39. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +28 -101
  40. data/test/fixtures/quaderno_cassettes/rate_limit.yml +7 -7
  41. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +36 -32
  42. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +37 -110
  43. data/test/fixtures/quaderno_cassettes/updated_contact.yml +27 -37
  44. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +46 -62
  45. data/test/fixtures/quaderno_cassettes/updated_expense.yml +45 -61
  46. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +46 -61
  47. data/test/fixtures/quaderno_cassettes/updated_item.yml +20 -20
  48. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +37 -37
  49. data/test/unit/test_quaderno_contacts.rb +2 -2
  50. data/test/unit/test_quaderno_estimates.rb +2 -2
  51. data/test/unit/test_quaderno_expenses.rb +2 -2
  52. data/test/unit/test_quaderno_invoices.rb +2 -2
  53. data/test/unit/test_quaderno_items.rb +2 -2
  54. data/test/unit/test_quaderno_webhooks.rb +2 -2
  55. metadata +2 -2
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
5
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: url=http%3A%2F%2Fgoogle.com&events_types[]=invoice.created&events_types[]=expense.updated
9
9
  headers:
10
10
  authorization:
11
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
11
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
12
12
  response:
13
13
  status:
14
14
  code: 201
@@ -17,7 +17,7 @@ http_interactions:
17
17
  server:
18
18
  - nginx/1.4.5
19
19
  date:
20
- - Fri, 13 Jun 2014 12:34:21 GMT
20
+ - Tue, 01 Jul 2014 09:08:22 GMT
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  transfer-encoding:
@@ -29,36 +29,36 @@ http_interactions:
29
29
  x-ratelimit-limit:
30
30
  - '2000'
31
31
  x-ratelimit-remaining:
32
- - '1501'
32
+ - '1921'
33
33
  x-ua-compatible:
34
34
  - IE=Edge,chrome=1
35
35
  etag:
36
- - ! '"31562dd72f63726cc2f3a801bb6672aa"'
36
+ - ! '"04a57fa7a4726bd26a6936d199d04a1e"'
37
37
  cache-control:
38
38
  - max-age=0, private, must-revalidate
39
39
  set-cookie:
40
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWMxYWVkNDIwYzI0ZTdmMDU4NTQ0Yjk4MGZmZDc0NDE2BjsAVA%3D%3D--3965afc619ffae4cd9c35681584dd584e4ec5b02;
40
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWM4NDg5YjhhZWFiOWY2MTY3M2M2N2FlMWI2MTU4MTMyBjsAVA%3D%3D--d2c9ca686e9e557657cf1df9bcf6753eb79ed37f;
41
41
  domain=sandbox-quadernoapp.com; path=/; HttpOnly
42
42
  x-request-id:
43
- - ddd56d8c06d0c5ae1ec50e9c003c5b76
43
+ - c8e8c8fd20b8e1f85db894d4d6d8a9d8
44
44
  x-runtime:
45
- - '0.303244'
45
+ - '0.230042'
46
46
  x-rack-cache:
47
47
  - invalidate, pass
48
48
  body:
49
49
  encoding: US-ASCII
50
- string: ! '{"id":28,"url":"http://google.com","auth_key":"jTdma26QqhzsF3j967YsTA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:20Z","updated_at":"2014-06-13T12:34:20Z"}'
50
+ string: ! '{"id":86,"url":"http://google.com","auth_key":"16szhYlPFBHLuf4bRYyflg","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-07-01T09:08:22Z","updated_at":"2014-07-01T09:08:22Z"}'
51
51
  http_version: '1.1'
52
- recorded_at: Fri, 13 Jun 2014 12:34:21 GMT
52
+ recorded_at: Tue, 01 Jul 2014 09:08:22 GMT
53
53
  - request:
54
54
  method: post
55
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
55
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks.json
56
56
  body:
57
57
  encoding: US-ASCII
58
58
  string: url=http%3A%2F%2Fquadernoapp.com&events_types[]=invoice.created&events_types[]=expense.updated
59
59
  headers:
60
60
  authorization:
61
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
61
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
62
62
  response:
63
63
  status:
64
64
  code: 201
@@ -67,7 +67,7 @@ http_interactions:
67
67
  server:
68
68
  - nginx/1.4.5
69
69
  date:
70
- - Fri, 13 Jun 2014 12:34:22 GMT
70
+ - Tue, 01 Jul 2014 09:08:23 GMT
71
71
  content-type:
72
72
  - application/json; charset=utf-8
73
73
  transfer-encoding:
@@ -79,36 +79,36 @@ http_interactions:
79
79
  x-ratelimit-limit:
80
80
  - '2000'
81
81
  x-ratelimit-remaining:
82
- - '1500'
82
+ - '1920'
83
83
  x-ua-compatible:
84
84
  - IE=Edge,chrome=1
85
85
  etag:
86
- - ! '"8fde5046546a399d00da6d14e7a6218f"'
86
+ - ! '"c7ef8e71778d7d4d7208db301d01192f"'
87
87
  cache-control:
88
88
  - max-age=0, private, must-revalidate
89
89
  set-cookie:
90
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTMyNzJmYTI4NjBkYzc2ZWFlZjlhNGE1NzBmMmI1ZGFmBjsAVA%3D%3D--f5d0aa11c0bbc4420e1af229a997ed6b51b05190;
90
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg0MzI0ZmY0YWYwMjE0YWNlOWQ2NjFhNmE1NTQyMDI4BjsAVA%3D%3D--6730219651c0d504976d9a5bc3ae797354ba457e;
91
91
  domain=sandbox-quadernoapp.com; path=/; HttpOnly
92
92
  x-request-id:
93
- - e52890e632c3b585743557a26e7156f0
93
+ - daafa115da016fdd991bc3716bdb2548
94
94
  x-runtime:
95
- - '0.477087'
95
+ - '0.336793'
96
96
  x-rack-cache:
97
97
  - invalidate, pass
98
98
  body:
99
99
  encoding: US-ASCII
100
- string: ! '{"id":29,"url":"http://quadernoapp.com","auth_key":"V_Gar4QoS8618UX2y2ZIGQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:22Z","updated_at":"2014-06-13T12:34:22Z"}'
100
+ string: ! '{"id":87,"url":"http://quadernoapp.com","auth_key":"PFFIoqK-tOgTjF0tr0tlSw","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-07-01T09:08:23Z","updated_at":"2014-07-01T09:08:23Z"}'
101
101
  http_version: '1.1'
102
- recorded_at: Fri, 13 Jun 2014 12:34:22 GMT
102
+ recorded_at: Tue, 01 Jul 2014 09:08:23 GMT
103
103
  - request:
104
104
  method: get
105
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
105
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks.json
106
106
  body:
107
107
  encoding: US-ASCII
108
108
  string: ''
109
109
  headers:
110
110
  authorization:
111
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
111
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
112
112
  response:
113
113
  status:
114
114
  code: 200
@@ -117,7 +117,7 @@ http_interactions:
117
117
  server:
118
118
  - nginx/1.4.5
119
119
  date:
120
- - Fri, 13 Jun 2014 12:34:23 GMT
120
+ - Tue, 01 Jul 2014 09:08:24 GMT
121
121
  content-type:
122
122
  - application/json; charset=utf-8
123
123
  transfer-encoding:
@@ -129,33 +129,33 @@ http_interactions:
129
129
  x-ratelimit-limit:
130
130
  - '2000'
131
131
  x-ratelimit-remaining:
132
- - '1499'
132
+ - '1919'
133
133
  x-ua-compatible:
134
134
  - IE=Edge,chrome=1
135
135
  etag:
136
- - ! '"1378f87b016667f11bba12043d5f4af1"'
136
+ - ! '"e108c2a8a6c719eb4bf78eb9f2b6a599"'
137
137
  cache-control:
138
138
  - must-revalidate, private, max-age=0
139
139
  x-request-id:
140
- - 79fb05a2ed109320b4d48ef40a846eab
140
+ - 0499ee92f5f24e2cd55aa8dcacb00db6
141
141
  x-runtime:
142
- - '0.124663'
142
+ - '0.052238'
143
143
  x-rack-cache:
144
144
  - miss
145
145
  body:
146
146
  encoding: US-ASCII
147
- string: ! '[{"id":6,"url":"http://quadernoapp.com","auth_key":"ebL7LVbbJBVOwMSZCQz75A","events_types":["invoice.created","expense.updated"],"last_sent_at":"2014-06-13T12:29:43Z","last_error":null,"events_sent":7,"created_at":"2014-06-13T12:09:20Z","updated_at":"2014-06-13T12:09:20Z"},{"id":12,"url":"http://quadernoapp.com","auth_key":"CyZRqDK-ypNmYYeL0l1B0Q","events_types":["invoice.created","invoice.updated","contact.deleted"],"last_sent_at":"2014-06-13T12:33:03Z","last_error":null,"events_sent":16,"created_at":"2014-06-13T12:09:32Z","updated_at":"2014-06-13T12:09:34Z"},{"id":28,"url":"http://google.com","auth_key":"jTdma26QqhzsF3j967YsTA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:20Z","updated_at":"2014-06-13T12:34:20Z"},{"id":29,"url":"http://quadernoapp.com","auth_key":"V_Gar4QoS8618UX2y2ZIGQ","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:22Z","updated_at":"2014-06-13T12:34:22Z"}]'
147
+ string: ! '[{"id":86,"url":"http://google.com","auth_key":"16szhYlPFBHLuf4bRYyflg","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-07-01T09:08:22Z","updated_at":"2014-07-01T09:08:22Z"},{"id":87,"url":"http://quadernoapp.com","auth_key":"PFFIoqK-tOgTjF0tr0tlSw","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-07-01T09:08:23Z","updated_at":"2014-07-01T09:08:23Z"}]'
148
148
  http_version: '1.1'
149
- recorded_at: Fri, 13 Jun 2014 12:34:23 GMT
149
+ recorded_at: Tue, 01 Jul 2014 09:08:24 GMT
150
150
  - request:
151
151
  method: delete
152
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/29.json
152
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks/87.json
153
153
  body:
154
154
  encoding: US-ASCII
155
155
  string: ''
156
156
  headers:
157
157
  authorization:
158
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
158
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
159
159
  response:
160
160
  status:
161
161
  code: 204
@@ -164,7 +164,7 @@ http_interactions:
164
164
  server:
165
165
  - nginx/1.4.5
166
166
  date:
167
- - Fri, 13 Jun 2014 12:34:23 GMT
167
+ - Tue, 01 Jul 2014 09:08:24 GMT
168
168
  connection:
169
169
  - close
170
170
  status:
@@ -172,34 +172,34 @@ http_interactions:
172
172
  x-ratelimit-limit:
173
173
  - '2000'
174
174
  x-ratelimit-remaining:
175
- - '1498'
175
+ - '1918'
176
176
  x-ua-compatible:
177
177
  - IE=Edge,chrome=1
178
178
  cache-control:
179
179
  - no-cache
180
180
  set-cookie:
181
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWU5ZjU3YTVhMjk2MjliN2VjMDE4YzNhZDE5NmM3ZTI0BjsAVA%3D%3D--df1d59b6d184b07c51891a835ea4f8788671b811;
181
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTk0NDU4MzM3ZGI0YTkxMDkxMTFkZWFiMTgzODQ2NjRlBjsAVA%3D%3D--d860ea1df967bf88b5a88015ebb981018f3849ca;
182
182
  domain=sandbox-quadernoapp.com; path=/; HttpOnly
183
183
  x-request-id:
184
- - 62bd9a381acfc0cc2717fab95a446f5e
184
+ - 3095c16ca86f37b21679661ea7f48abb
185
185
  x-runtime:
186
- - '0.100064'
186
+ - '0.052367'
187
187
  x-rack-cache:
188
188
  - invalidate, pass
189
189
  body:
190
190
  encoding: US-ASCII
191
191
  string: ''
192
192
  http_version: '1.1'
193
- recorded_at: Fri, 13 Jun 2014 12:34:23 GMT
193
+ recorded_at: Tue, 01 Jul 2014 09:08:24 GMT
194
194
  - request:
195
195
  method: get
196
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
196
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks.json
197
197
  body:
198
198
  encoding: US-ASCII
199
199
  string: ''
200
200
  headers:
201
201
  authorization:
202
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
202
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
203
203
  response:
204
204
  status:
205
205
  code: 200
@@ -208,7 +208,7 @@ http_interactions:
208
208
  server:
209
209
  - nginx/1.4.5
210
210
  date:
211
- - Fri, 13 Jun 2014 12:34:24 GMT
211
+ - Tue, 01 Jul 2014 09:08:26 GMT
212
212
  content-type:
213
213
  - application/json; charset=utf-8
214
214
  transfer-encoding:
@@ -220,33 +220,33 @@ http_interactions:
220
220
  x-ratelimit-limit:
221
221
  - '2000'
222
222
  x-ratelimit-remaining:
223
- - '1497'
223
+ - '1917'
224
224
  x-ua-compatible:
225
225
  - IE=Edge,chrome=1
226
226
  etag:
227
- - ! '"c8352429038cd2fbbf25cd53554d093c"'
227
+ - ! '"e5515d7568244fdf0ae0040b5898faf3"'
228
228
  cache-control:
229
229
  - must-revalidate, private, max-age=0
230
230
  x-request-id:
231
- - 0f39d7be2a47e85702ac5e4e5714b94d
231
+ - 595835f4f4de341dbe95c713b00b0eba
232
232
  x-runtime:
233
- - '0.103642'
233
+ - '0.040607'
234
234
  x-rack-cache:
235
235
  - miss
236
236
  body:
237
237
  encoding: US-ASCII
238
- string: ! '[{"id":6,"url":"http://quadernoapp.com","auth_key":"ebL7LVbbJBVOwMSZCQz75A","events_types":["invoice.created","expense.updated"],"last_sent_at":"2014-06-13T12:29:43Z","last_error":null,"events_sent":7,"created_at":"2014-06-13T12:09:20Z","updated_at":"2014-06-13T12:09:20Z"},{"id":12,"url":"http://quadernoapp.com","auth_key":"CyZRqDK-ypNmYYeL0l1B0Q","events_types":["invoice.created","invoice.updated","contact.deleted"],"last_sent_at":"2014-06-13T12:33:03Z","last_error":null,"events_sent":16,"created_at":"2014-06-13T12:09:32Z","updated_at":"2014-06-13T12:09:34Z"},{"id":28,"url":"http://google.com","auth_key":"jTdma26QqhzsF3j967YsTA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:20Z","updated_at":"2014-06-13T12:34:20Z"}]'
238
+ string: ! '[{"id":86,"url":"http://google.com","auth_key":"16szhYlPFBHLuf4bRYyflg","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-07-01T09:08:22Z","updated_at":"2014-07-01T09:08:22Z"}]'
239
239
  http_version: '1.1'
240
- recorded_at: Fri, 13 Jun 2014 12:34:24 GMT
240
+ recorded_at: Tue, 01 Jul 2014 09:08:26 GMT
241
241
  - request:
242
242
  method: delete
243
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/28.json
243
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/webhooks/86.json
244
244
  body:
245
245
  encoding: US-ASCII
246
246
  string: ''
247
247
  headers:
248
248
  authorization:
249
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
249
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
250
250
  response:
251
251
  status:
252
252
  code: 204
@@ -255,7 +255,7 @@ http_interactions:
255
255
  server:
256
256
  - nginx/1.4.5
257
257
  date:
258
- - Fri, 13 Jun 2014 12:34:24 GMT
258
+ - Tue, 01 Jul 2014 09:08:26 GMT
259
259
  connection:
260
260
  - close
261
261
  status:
@@ -263,23 +263,23 @@ http_interactions:
263
263
  x-ratelimit-limit:
264
264
  - '2000'
265
265
  x-ratelimit-remaining:
266
- - '1496'
266
+ - '1916'
267
267
  x-ua-compatible:
268
268
  - IE=Edge,chrome=1
269
269
  cache-control:
270
270
  - no-cache
271
271
  set-cookie:
272
- - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTUzMDg2NmE2OTU3ZTdkN2NmNzQ2MmNhZGU5OGVhZGEyBjsAVA%3D%3D--cc2201926ecca55081fcc6db55632a5abf850e7b;
272
+ - _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTVjZjkwN2ZiYmE1MjM5MTcxOTYxZjRmMzQ2Mjc4NjUyBjsAVA%3D%3D--e618fbf39ca4418c6474853b499b81f362427f4e;
273
273
  domain=sandbox-quadernoapp.com; path=/; HttpOnly
274
274
  x-request-id:
275
- - 4ca748eb209a3717563d5120a0b31317
275
+ - bee403cfb46226e7fe6b27fcf105344c
276
276
  x-runtime:
277
- - '0.098393'
277
+ - '0.043049'
278
278
  x-rack-cache:
279
279
  - invalidate, pass
280
280
  body:
281
281
  encoding: US-ASCII
282
282
  string: ''
283
283
  http_version: '1.1'
284
- recorded_at: Fri, 13 Jun 2014 12:34:24 GMT
284
+ recorded_at: Tue, 01 Jul 2014 09:08:26 GMT
285
285
  recorded_with: VCR 2.9.2
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates.json
5
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/estimates.json
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  authorization:
11
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
11
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
12
12
  response:
13
13
  status:
14
14
  code: 200
@@ -17,7 +17,7 @@ http_interactions:
17
17
  server:
18
18
  - nginx/1.4.5
19
19
  date:
20
- - Fri, 13 Jun 2014 12:37:52 GMT
20
+ - Tue, 01 Jul 2014 09:06:19 GMT
21
21
  content-type:
22
22
  - application/json; charset=utf-8
23
23
  transfer-encoding:
@@ -29,7 +29,7 @@ http_interactions:
29
29
  x-ratelimit-limit:
30
30
  - '2000'
31
31
  x-ratelimit-remaining:
32
- - '1460'
32
+ - '1982'
33
33
  x-pages-currentpage:
34
34
  - '1'
35
35
  x-pages-totalpages:
@@ -37,32 +37,39 @@ http_interactions:
37
37
  x-ua-compatible:
38
38
  - IE=Edge,chrome=1
39
39
  etag:
40
- - ! '"5d184cc5cf5eeab4c09eef2efe84c3cf"'
40
+ - ! '"d33c420455711494333dc878dbb2cf3a"'
41
41
  cache-control:
42
42
  - must-revalidate, private, max-age=0
43
43
  x-request-id:
44
- - d7134b92021d500b1e886b889d114f4e
44
+ - cb3a70b88b7dc551d961e0fb1d709601
45
45
  x-runtime:
46
- - '0.087881'
46
+ - '0.106069'
47
47
  x-rack-cache:
48
48
  - miss
49
49
  body:
50
50
  encoding: US-ASCII
51
- string: ! '[{"id":539,"number":"0000001","issue_date":"2014-06-13","contact":{"id":790,"full_name":"Test
52
- Contact"},"po_number":"","currency":"EUR","items":[{"id":693,"description":"Something","quantity":"1.0","unit_price":"0.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"0.00
53
- \u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
54
- \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"8d2bccffae34fb6fa7bd943f7642956de77ce693","permalink":"http://ninive-688.sandbox-quadernoapp.com/estimate/8d2bccffae34fb6fa7bd943f7642956de77ce693","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/estimates/539.json"}]'
51
+ string: ! '[{"id":492372,"number":"0000002","issue_date":"2014-07-01","contact":{"id":142302,"full_name":"Pepe
52
+ Gotera & Otilio"},"po_number":"","currency":"EUR","items":[{"id":1294890,"description":"Test
53
+ Item #5","quantity":"1.0","unit_price":"52.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"52.00
54
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"52.00 \u20ac"},{"id":1294891,"description":"Test
55
+ Item #6","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
56
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"82.00
57
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"82.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"4cf5cf7de5fa21c0c68737db16aa8d4630d11d19","permalink":"http://uruk-1066.sandbox-quadernoapp.com/estimate/4cf5cf7de5fa21c0c68737db16aa8d4630d11d19","url":"http://uruk-1066.sandbox-quadernoapp.com/api/v1/estimates/492372.json"},{"id":492371,"number":"0000001","issue_date":"2014-07-01","contact":{"id":142302,"full_name":"Pepe
58
+ Gotera & Otilio"},"po_number":"","currency":"EUR","items":[{"id":1294889,"description":"Test
59
+ Item #4","quantity":"1.0","unit_price":"3430.0","discount_rate":"0.0","tax_1_name":"","tax_1_rate":null,"tax_2_name":"","tax_2_rate":null,"reference":"","subtotal":"3,430.00
60
+ \u20ac","discount":"0.00 \u20ac","gross_amount":"3,430.00 \u20ac"}],"subtotal":"3,430.00
61
+ \u20ac","discount":"0.00 \u20ac","taxes":[],"total":"3,430.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"4f635b1811bc6cc20a071fe4f85bf8733c04b451","permalink":"http://uruk-1066.sandbox-quadernoapp.com/estimate/4f635b1811bc6cc20a071fe4f85bf8733c04b451","url":"http://uruk-1066.sandbox-quadernoapp.com/api/v1/estimates/492371.json"}]'
55
62
  http_version: '1.1'
56
- recorded_at: Fri, 13 Jun 2014 12:37:53 GMT
63
+ recorded_at: Tue, 01 Jul 2014 09:06:19 GMT
57
64
  - request:
58
65
  method: get
59
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/ping.json
66
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/ping.json
60
67
  body:
61
68
  encoding: US-ASCII
62
69
  string: ''
63
70
  headers:
64
71
  authorization:
65
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
72
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
66
73
  response:
67
74
  status:
68
75
  code: 200
@@ -71,7 +78,7 @@ http_interactions:
71
78
  server:
72
79
  - nginx/1.4.5
73
80
  date:
74
- - Fri, 13 Jun 2014 12:37:53 GMT
81
+ - Tue, 01 Jul 2014 09:06:20 GMT
75
82
  content-type:
76
83
  - application/json; charset=utf-8
77
84
  transfer-encoding:
@@ -83,7 +90,7 @@ http_interactions:
83
90
  x-ratelimit-limit:
84
91
  - '2000'
85
92
  x-ratelimit-remaining:
86
- - '1460'
93
+ - '1982'
87
94
  x-ua-compatible:
88
95
  - IE=Edge,chrome=1
89
96
  etag:
@@ -91,25 +98,25 @@ http_interactions:
91
98
  cache-control:
92
99
  - must-revalidate, private, max-age=0
93
100
  x-request-id:
94
- - da86ddf3b33e65d430049edcc71974f3
101
+ - 1d5cf3e513b35d08e2b5ccf37178fe5a
95
102
  x-runtime:
96
- - '0.024052'
103
+ - '0.023349'
97
104
  x-rack-cache:
98
105
  - miss
99
106
  body:
100
107
  encoding: US-ASCII
101
108
  string: ! '{"status":"OK"}'
102
109
  http_version: '1.1'
103
- recorded_at: Fri, 13 Jun 2014 12:37:53 GMT
110
+ recorded_at: Tue, 01 Jul 2014 09:06:20 GMT
104
111
  - request:
105
112
  method: get
106
- uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates/539/deliver.json
113
+ uri: http://RsNaLsNr1KZcdrQRKKKk@uruk-1066.sandbox-quadernoapp.com/api/v1/estimates/492372/deliver.json
107
114
  body:
108
115
  encoding: US-ASCII
109
116
  string: ''
110
117
  headers:
111
118
  authorization:
112
- - Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
119
+ - Basic UnNOYUxzTnIxS1pjZHJRUktLS2s6
113
120
  response:
114
121
  status:
115
122
  code: 422
@@ -118,7 +125,7 @@ http_interactions:
118
125
  server:
119
126
  - nginx/1.4.5
120
127
  date:
121
- - Fri, 13 Jun 2014 12:37:53 GMT
128
+ - Tue, 01 Jul 2014 09:06:20 GMT
122
129
  content-type:
123
130
  - application/json; charset=utf-8
124
131
  transfer-encoding:
@@ -130,20 +137,20 @@ http_interactions:
130
137
  x-ratelimit-limit:
131
138
  - '2000'
132
139
  x-ratelimit-remaining:
133
- - '1459'
140
+ - '1981'
134
141
  x-ua-compatible:
135
142
  - IE=Edge,chrome=1
136
143
  cache-control:
137
144
  - no-cache, private
138
145
  x-request-id:
139
- - 16336715c8dfab8c4cfb070f3d273469
146
+ - 05c3adf472dc191a4d6696eafabb13bf
140
147
  x-runtime:
141
- - '0.075938'
148
+ - '0.068573'
142
149
  x-rack-cache:
143
150
  - miss
144
151
  body:
145
152
  encoding: US-ASCII
146
153
  string: ! '{"delivery_recipients":["can''t be blank","is invalid"]}'
147
154
  http_version: '1.1'
148
- recorded_at: Fri, 13 Jun 2014 12:37:53 GMT
155
+ recorded_at: Tue, 01 Jul 2014 09:06:20 GMT
149
156
  recorded_with: VCR 2.9.2