quaderno 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +7 -7
- data/VERSION +1 -1
- data/build_install.sh +1 -1
- data/changelog.md +4 -0
- data/lib/quaderno-ruby/base.rb +21 -17
- data/lib/quaderno-ruby/behavior/crud.rb +5 -5
- data/lib/quaderno-ruby/behavior/deliver.rb +1 -1
- data/lib/quaderno-ruby/behavior/payment.rb +2 -2
- data/quaderno.gemspec +3 -3
- data/test/fixtures/.DS_Store +0 -0
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +15 -27
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +19 -12
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +17 -13
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +18 -91
- data/test/fixtures/quaderno_cassettes/all_items.yml +10 -10
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +45 -45
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +49 -72
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +54 -62
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +52 -63
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +53 -140
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +28 -28
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +54 -54
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +33 -26
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +38 -113
- data/test/fixtures/quaderno_cassettes/found_contact.yml +26 -36
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +34 -24
- data/test/fixtures/quaderno_cassettes/found_expense.yml +30 -26
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +31 -110
- data/test/fixtures/quaderno_cassettes/found_item.yml +20 -19
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +27 -27
- data/test/fixtures/quaderno_cassettes/new_contact.yml +10 -10
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +35 -50
- data/test/fixtures/quaderno_cassettes/new_expense.yml +52 -63
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +35 -49
- data/test/fixtures/quaderno_cassettes/new_item.yml +10 -10
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +18 -18
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +27 -23
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +28 -101
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +7 -7
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +36 -32
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +37 -110
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +27 -37
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +46 -62
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +45 -61
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +46 -61
- data/test/fixtures/quaderno_cassettes/updated_item.yml +20 -20
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +37 -37
- data/test/unit/test_quaderno_contacts.rb +2 -2
- data/test/unit/test_quaderno_estimates.rb +2 -2
- data/test/unit/test_quaderno_expenses.rb +2 -2
- data/test/unit/test_quaderno_invoices.rb +2 -2
- data/test/unit/test_quaderno_items.rb +2 -2
- data/test/unit/test_quaderno_webhooks.rb +2 -2
- metadata +2 -2
@@ -2,13 +2,13 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
32
|
+
- '1921'
|
33
33
|
x-ua-compatible:
|
34
34
|
- IE=Edge,chrome=1
|
35
35
|
etag:
|
36
|
-
- ! '"
|
36
|
+
- ! '"04a57fa7a4726bd26a6936d199d04a1e"'
|
37
37
|
cache-control:
|
38
38
|
- max-age=0, private, must-revalidate
|
39
39
|
set-cookie:
|
40
|
-
- _quaderno_session=
|
40
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWM4NDg5YjhhZWFiOWY2MTY3M2M2N2FlMWI2MTU4MTMyBjsAVA%3D%3D--d2c9ca686e9e557657cf1df9bcf6753eb79ed37f;
|
41
41
|
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
42
42
|
x-request-id:
|
43
|
-
-
|
43
|
+
- c8e8c8fd20b8e1f85db894d4d6d8a9d8
|
44
44
|
x-runtime:
|
45
|
-
- '0.
|
45
|
+
- '0.230042'
|
46
46
|
x-rack-cache:
|
47
47
|
- invalidate, pass
|
48
48
|
body:
|
49
49
|
encoding: US-ASCII
|
50
|
-
string: ! '{"id":
|
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:
|
52
|
+
recorded_at: Tue, 01 Jul 2014 09:08:22 GMT
|
53
53
|
- request:
|
54
54
|
method: post
|
55
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
82
|
+
- '1920'
|
83
83
|
x-ua-compatible:
|
84
84
|
- IE=Edge,chrome=1
|
85
85
|
etag:
|
86
|
-
- ! '"
|
86
|
+
- ! '"c7ef8e71778d7d4d7208db301d01192f"'
|
87
87
|
cache-control:
|
88
88
|
- max-age=0, private, must-revalidate
|
89
89
|
set-cookie:
|
90
|
-
- _quaderno_session=
|
90
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg0MzI0ZmY0YWYwMjE0YWNlOWQ2NjFhNmE1NTQyMDI4BjsAVA%3D%3D--6730219651c0d504976d9a5bc3ae797354ba457e;
|
91
91
|
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
92
92
|
x-request-id:
|
93
|
-
-
|
93
|
+
- daafa115da016fdd991bc3716bdb2548
|
94
94
|
x-runtime:
|
95
|
-
- '0.
|
95
|
+
- '0.336793'
|
96
96
|
x-rack-cache:
|
97
97
|
- invalidate, pass
|
98
98
|
body:
|
99
99
|
encoding: US-ASCII
|
100
|
-
string: ! '{"id":
|
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:
|
102
|
+
recorded_at: Tue, 01 Jul 2014 09:08:23 GMT
|
103
103
|
- request:
|
104
104
|
method: get
|
105
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
132
|
+
- '1919'
|
133
133
|
x-ua-compatible:
|
134
134
|
- IE=Edge,chrome=1
|
135
135
|
etag:
|
136
|
-
- ! '"
|
136
|
+
- ! '"e108c2a8a6c719eb4bf78eb9f2b6a599"'
|
137
137
|
cache-control:
|
138
138
|
- must-revalidate, private, max-age=0
|
139
139
|
x-request-id:
|
140
|
-
-
|
140
|
+
- 0499ee92f5f24e2cd55aa8dcacb00db6
|
141
141
|
x-runtime:
|
142
|
-
- '0.
|
142
|
+
- '0.052238'
|
143
143
|
x-rack-cache:
|
144
144
|
- miss
|
145
145
|
body:
|
146
146
|
encoding: US-ASCII
|
147
|
-
string: ! '[{"id":
|
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:
|
149
|
+
recorded_at: Tue, 01 Jul 2014 09:08:24 GMT
|
150
150
|
- request:
|
151
151
|
method: delete
|
152
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
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=
|
181
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTk0NDU4MzM3ZGI0YTkxMDkxMTFkZWFiMTgzODQ2NjRlBjsAVA%3D%3D--d860ea1df967bf88b5a88015ebb981018f3849ca;
|
182
182
|
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
183
183
|
x-request-id:
|
184
|
-
-
|
184
|
+
- 3095c16ca86f37b21679661ea7f48abb
|
185
185
|
x-runtime:
|
186
|
-
- '0.
|
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:
|
193
|
+
recorded_at: Tue, 01 Jul 2014 09:08:24 GMT
|
194
194
|
- request:
|
195
195
|
method: get
|
196
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
223
|
+
- '1917'
|
224
224
|
x-ua-compatible:
|
225
225
|
- IE=Edge,chrome=1
|
226
226
|
etag:
|
227
|
-
- ! '"
|
227
|
+
- ! '"e5515d7568244fdf0ae0040b5898faf3"'
|
228
228
|
cache-control:
|
229
229
|
- must-revalidate, private, max-age=0
|
230
230
|
x-request-id:
|
231
|
-
-
|
231
|
+
- 595835f4f4de341dbe95c713b00b0eba
|
232
232
|
x-runtime:
|
233
|
-
- '0.
|
233
|
+
- '0.040607'
|
234
234
|
x-rack-cache:
|
235
235
|
- miss
|
236
236
|
body:
|
237
237
|
encoding: US-ASCII
|
238
|
-
string: ! '[{"id":
|
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:
|
240
|
+
recorded_at: Tue, 01 Jul 2014 09:08:26 GMT
|
241
241
|
- request:
|
242
242
|
method: delete
|
243
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
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=
|
272
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTVjZjkwN2ZiYmE1MjM5MTcxOTYxZjRmMzQ2Mjc4NjUyBjsAVA%3D%3D--e618fbf39ca4418c6474853b499b81f362427f4e;
|
273
273
|
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
274
274
|
x-request-id:
|
275
|
-
-
|
275
|
+
- bee403cfb46226e7fe6b27fcf105344c
|
276
276
|
x-runtime:
|
277
|
-
- '0.
|
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:
|
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://
|
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
|
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
|
-
-
|
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
|
-
- '
|
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
|
-
- ! '"
|
40
|
+
- ! '"d33c420455711494333dc878dbb2cf3a"'
|
41
41
|
cache-control:
|
42
42
|
- must-revalidate, private, max-age=0
|
43
43
|
x-request-id:
|
44
|
-
-
|
44
|
+
- cb3a70b88b7dc551d961e0fb1d709601
|
45
45
|
x-runtime:
|
46
|
-
- '0.
|
46
|
+
- '0.106069'
|
47
47
|
x-rack-cache:
|
48
48
|
- miss
|
49
49
|
body:
|
50
50
|
encoding: US-ASCII
|
51
|
-
string: ! '[{"id":
|
52
|
-
|
53
|
-
|
54
|
-
\u20ac","discount":"0.00 \u20ac","
|
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:
|
63
|
+
recorded_at: Tue, 01 Jul 2014 09:06:19 GMT
|
57
64
|
- request:
|
58
65
|
method: get
|
59
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
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
|
-
-
|
101
|
+
- 1d5cf3e513b35d08e2b5ccf37178fe5a
|
95
102
|
x-runtime:
|
96
|
-
- '0.
|
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:
|
110
|
+
recorded_at: Tue, 01 Jul 2014 09:06:20 GMT
|
104
111
|
- request:
|
105
112
|
method: get
|
106
|
-
uri: http://
|
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
|
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
|
-
-
|
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
|
-
- '
|
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
|
-
-
|
146
|
+
- 05c3adf472dc191a4d6696eafabb13bf
|
140
147
|
x-runtime:
|
141
|
-
- '0.
|
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:
|
155
|
+
recorded_at: Tue, 01 Jul 2014 09:06:20 GMT
|
149
156
|
recorded_with: VCR 2.9.2
|