quaderno 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +3 -2
- data/Gemfile.lock +27 -22
- data/README.md +7 -2
- data/Rakefile +5 -6
- data/VERSION +1 -1
- data/build_install.sh +1 -1
- data/changelog.md +5 -0
- data/lib/quaderno-ruby/base.rb +24 -8
- 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 +8 -7
- data/test/fixtures/.DS_Store +0 -0
- data/test/fixtures/quaderno_cassettes/.DS_Store +0 -0
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +44 -26
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +29 -37
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +30 -40
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +108 -36
- data/test/fixtures/quaderno_cassettes/all_items.yml +27 -23
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +124 -104
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +135 -92
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +125 -105
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +126 -108
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +203 -104
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +74 -62
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +149 -125
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +75 -75
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +159 -77
- data/test/fixtures/quaderno_cassettes/found_contact.yml +71 -49
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +59 -64
- data/test/fixtures/quaderno_cassettes/found_expense.yml +61 -71
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +145 -66
- data/test/fixtures/quaderno_cassettes/found_item.yml +54 -46
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +75 -63
- data/test/fixtures/quaderno_cassettes/new_contact.yml +28 -24
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +97 -69
- data/test/fixtures/quaderno_cassettes/new_expense.yml +126 -108
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +96 -69
- data/test/fixtures/quaderno_cassettes/new_item.yml +28 -24
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +50 -42
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +57 -63
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +135 -59
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +24 -20
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +79 -81
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +157 -77
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +71 -49
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +126 -94
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +125 -93
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +125 -94
- data/test/fixtures/quaderno_cassettes/updated_item.yml +54 -46
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +103 -87
- data/test/unit/test_quaderno_contacts.rb +5 -9
- data/test/unit/test_quaderno_estimates.rb +3 -3
- data/test/unit/test_quaderno_expenses.rb +3 -3
- data/test/unit/test_quaderno_invoices.rb +3 -3
- data/test/unit/test_quaderno_items.rb +6 -6
- data/test/unit/test_quaderno_webhooks.rb +14 -14
- metadata +8 -7
- data/test/test_quaderno-ruby.rb +0 -4
@@ -2,131 +2,143 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
|
-
string: url=http%3A%2F%2Fquadernoapp.com&
|
8
|
+
string: url=http%3A%2F%2Fquadernoapp.com&events_types[]=invoice.created&events_types[]=expense.updated
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 201
|
15
|
-
message:
|
15
|
+
message: Created
|
16
16
|
headers:
|
17
|
+
server:
|
18
|
+
- nginx/1.4.5
|
19
|
+
date:
|
20
|
+
- Fri, 13 Jun 2014 12:34:25 GMT
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
connection:
|
26
|
+
- close
|
27
|
+
status:
|
28
|
+
- 201 Created
|
17
29
|
x-ratelimit-limit:
|
18
30
|
- '2000'
|
19
31
|
x-ratelimit-remaining:
|
20
|
-
- '
|
21
|
-
content-type:
|
22
|
-
- application/json; charset=utf-8
|
32
|
+
- '1495'
|
23
33
|
x-ua-compatible:
|
24
|
-
- IE=Edge
|
34
|
+
- IE=Edge,chrome=1
|
25
35
|
etag:
|
26
|
-
- ! '"
|
36
|
+
- ! '"18d08397aecafc03a78a1c17ea041e1f"'
|
27
37
|
cache-control:
|
28
38
|
- max-age=0, private, must-revalidate
|
39
|
+
set-cookie:
|
40
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTExN2M4NmIwZDlkZjE4Y2NhY2I1MDkzNmQ2Yzk1NmI0BjsAVA%3D%3D--52866b819e6874848144ff7d947549eb692d463b;
|
41
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
29
42
|
x-request-id:
|
30
|
-
-
|
43
|
+
- 43de1febc258e54153b77a85ca210acd
|
31
44
|
x-runtime:
|
32
|
-
- '
|
33
|
-
|
34
|
-
-
|
35
|
-
date:
|
36
|
-
- Tue, 04 Feb 2014 14:53:30 GMT
|
37
|
-
content-length:
|
38
|
-
- '232'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
set-cookie:
|
42
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWU1NjkyODJjMDliZDNiOWNjNWRkMDZiMGY5ZGM4NjhhBjsAVA%3D%3D--c11d1dcfeed44509b54475959e7e3d8d34d5174e;
|
43
|
-
path=/; HttpOnly
|
45
|
+
- '0.541669'
|
46
|
+
x-rack-cache:
|
47
|
+
- invalidate, pass
|
44
48
|
body:
|
45
49
|
encoding: US-ASCII
|
46
|
-
string: ! '{"id":
|
50
|
+
string: ! '{"id":30,"url":"http://quadernoapp.com","auth_key":"xSNKJF2GC6uB6mWCSARNsw","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:25Z","updated_at":"2014-06-13T12:34:25Z"}'
|
47
51
|
http_version: '1.1'
|
48
|
-
recorded_at:
|
52
|
+
recorded_at: Fri, 13 Jun 2014 12:34:26 GMT
|
49
53
|
- request:
|
50
54
|
method: get
|
51
|
-
uri: http://
|
55
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks.json
|
52
56
|
body:
|
53
57
|
encoding: US-ASCII
|
54
58
|
string: ''
|
55
59
|
headers:
|
56
60
|
authorization:
|
57
|
-
- Basic
|
61
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
58
62
|
response:
|
59
63
|
status:
|
60
64
|
code: 200
|
61
|
-
message:
|
65
|
+
message: OK
|
62
66
|
headers:
|
67
|
+
server:
|
68
|
+
- nginx/1.4.5
|
69
|
+
date:
|
70
|
+
- Fri, 13 Jun 2014 12:34:26 GMT
|
71
|
+
content-type:
|
72
|
+
- application/json; charset=utf-8
|
73
|
+
transfer-encoding:
|
74
|
+
- chunked
|
75
|
+
connection:
|
76
|
+
- close
|
77
|
+
status:
|
78
|
+
- 200 OK
|
63
79
|
x-ratelimit-limit:
|
64
80
|
- '2000'
|
65
81
|
x-ratelimit-remaining:
|
66
|
-
- '
|
67
|
-
content-type:
|
68
|
-
- application/json; charset=utf-8
|
82
|
+
- '1494'
|
69
83
|
x-ua-compatible:
|
70
|
-
- IE=Edge
|
84
|
+
- IE=Edge,chrome=1
|
71
85
|
etag:
|
72
|
-
- ! '"
|
86
|
+
- ! '"e60bdfd62f26036c7471e2895362e35a"'
|
73
87
|
cache-control:
|
74
|
-
-
|
88
|
+
- must-revalidate, private, max-age=0
|
75
89
|
x-request-id:
|
76
|
-
-
|
90
|
+
- b6dfa8be65fa68ffaac87f75e6bec393
|
77
91
|
x-runtime:
|
78
|
-
- '0.
|
79
|
-
|
80
|
-
-
|
81
|
-
date:
|
82
|
-
- Tue, 04 Feb 2014 14:53:31 GMT
|
83
|
-
content-length:
|
84
|
-
- '234'
|
85
|
-
connection:
|
86
|
-
- close
|
92
|
+
- '0.049623'
|
93
|
+
x-rack-cache:
|
94
|
+
- miss
|
87
95
|
body:
|
88
96
|
encoding: US-ASCII
|
89
|
-
string: ! '[{"id":
|
97
|
+
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":30,"url":"http://quadernoapp.com","auth_key":"xSNKJF2GC6uB6mWCSARNsw","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:25Z","updated_at":"2014-06-13T12:34:25Z"}]'
|
90
98
|
http_version: '1.1'
|
91
|
-
recorded_at:
|
99
|
+
recorded_at: Fri, 13 Jun 2014 12:34:26 GMT
|
92
100
|
- request:
|
93
101
|
method: delete
|
94
|
-
uri: http://
|
102
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/30.json
|
95
103
|
body:
|
96
104
|
encoding: US-ASCII
|
97
105
|
string: ''
|
98
106
|
headers:
|
99
107
|
authorization:
|
100
|
-
- Basic
|
108
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
101
109
|
response:
|
102
110
|
status:
|
103
111
|
code: 204
|
104
|
-
message:
|
112
|
+
message: No Content
|
105
113
|
headers:
|
114
|
+
server:
|
115
|
+
- nginx/1.4.5
|
116
|
+
date:
|
117
|
+
- Fri, 13 Jun 2014 12:34:27 GMT
|
118
|
+
connection:
|
119
|
+
- close
|
120
|
+
status:
|
121
|
+
- 204 No Content
|
106
122
|
x-ratelimit-limit:
|
107
123
|
- '2000'
|
108
124
|
x-ratelimit-remaining:
|
109
|
-
- '
|
125
|
+
- '1493'
|
110
126
|
x-ua-compatible:
|
111
|
-
- IE=Edge
|
127
|
+
- IE=Edge,chrome=1
|
112
128
|
cache-control:
|
113
129
|
- no-cache
|
130
|
+
set-cookie:
|
131
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWYyM2YwNzA1Y2JhYTM4NTlmNTI2MDQ1MDRkYzE3Mzk4BjsAVA%3D%3D--adfb3995d198cee841be10a554f2ff9b5f86fbce;
|
132
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
114
133
|
x-request-id:
|
115
|
-
-
|
134
|
+
- 469ca3d84ad12e575e08acdbef7b0d6b
|
116
135
|
x-runtime:
|
117
|
-
- '0.
|
118
|
-
|
119
|
-
-
|
120
|
-
date:
|
121
|
-
- Tue, 04 Feb 2014 14:53:31 GMT
|
122
|
-
connection:
|
123
|
-
- close
|
124
|
-
set-cookie:
|
125
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTRlMWQxOGIzNmJiNjU2MTVlODA4NzNkOGZiODE1NGQ4BjsAVA%3D%3D--ebe416c88496e3276cb5793ff04df11db9760f51;
|
126
|
-
path=/; HttpOnly
|
136
|
+
- '0.103594'
|
137
|
+
x-rack-cache:
|
138
|
+
- invalidate, pass
|
127
139
|
body:
|
128
140
|
encoding: US-ASCII
|
129
141
|
string: ''
|
130
142
|
http_version: '1.1'
|
131
|
-
recorded_at:
|
132
|
-
recorded_with: VCR 2.
|
143
|
+
recorded_at: Fri, 13 Jun 2014 12:34:27 GMT
|
144
|
+
recorded_with: VCR 2.9.2
|
@@ -2,48 +2,52 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: kind=company&first_name=Test_Skynet&email=my_little%40po.ny
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 201
|
15
|
-
message:
|
15
|
+
message: Created
|
16
16
|
headers:
|
17
|
+
server:
|
18
|
+
- nginx/1.4.5
|
19
|
+
date:
|
20
|
+
- Fri, 13 Jun 2014 12:33:01 GMT
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
connection:
|
26
|
+
- close
|
27
|
+
status:
|
28
|
+
- 201 Created
|
17
29
|
x-ratelimit-limit:
|
18
30
|
- '2000'
|
19
31
|
x-ratelimit-remaining:
|
20
|
-
- '
|
21
|
-
content-type:
|
22
|
-
- application/json; charset=utf-8
|
32
|
+
- '1513'
|
23
33
|
x-ua-compatible:
|
24
|
-
- IE=Edge
|
34
|
+
- IE=Edge,chrome=1
|
25
35
|
etag:
|
26
|
-
- ! '"
|
36
|
+
- ! '"a90760b4311a7aa162f929ad1665a0e5"'
|
27
37
|
cache-control:
|
28
38
|
- max-age=0, private, must-revalidate
|
39
|
+
set-cookie:
|
40
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTYxZmYyNTU1YmIxODAyMGZjMDY1NjVmNTBkNTcxY2MzBjsAVA%3D%3D--0d62c20e3d557aa8d78c6e3d7c10417f2b8b1d3f;
|
41
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
29
42
|
x-request-id:
|
30
|
-
-
|
43
|
+
- 53ae3ff675e4f44f2c42dfe336705078
|
31
44
|
x-runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
date:
|
36
|
-
- Tue, 04 Feb 2014 14:39:42 GMT
|
37
|
-
content-length:
|
38
|
-
- '365'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
set-cookie:
|
42
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTRiOGZjZjBjYjIyNWY3ODM0OThjNzljZjA3YTQ1ZGYxBjsAVA%3D%3D--2007caa01d9ec5aeda2cc828d93d5347fb00bedf;
|
43
|
-
path=/; HttpOnly
|
45
|
+
- '0.128104'
|
46
|
+
x-rack-cache:
|
47
|
+
- invalidate, pass
|
44
48
|
body:
|
45
49
|
encoding: US-ASCII
|
46
|
-
string: ! '{"id":
|
50
|
+
string: ! '{"id":788,"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://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/788"}'
|
47
51
|
http_version: '1.1'
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
52
|
+
recorded_at: Fri, 13 Jun 2014 12:33:01 GMT
|
53
|
+
recorded_with: VCR 2.9.2
|
@@ -2,141 +2,169 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://
|
5
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
authorization:
|
11
|
-
- Basic
|
11
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
15
|
-
message:
|
15
|
+
message: OK
|
16
16
|
headers:
|
17
|
+
server:
|
18
|
+
- nginx/1.4.5
|
19
|
+
date:
|
20
|
+
- Fri, 13 Jun 2014 12:37:48 GMT
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
connection:
|
26
|
+
- close
|
27
|
+
status:
|
28
|
+
- 200 OK
|
17
29
|
x-ratelimit-limit:
|
18
30
|
- '2000'
|
19
31
|
x-ratelimit-remaining:
|
20
|
-
- '
|
32
|
+
- '1467'
|
21
33
|
x-pages-currentpage:
|
22
34
|
- '1'
|
23
35
|
x-pages-totalpages:
|
24
|
-
- '
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
36
|
+
- '6'
|
27
37
|
x-ua-compatible:
|
28
|
-
- IE=Edge
|
38
|
+
- IE=Edge,chrome=1
|
29
39
|
etag:
|
30
|
-
- ! '"
|
40
|
+
- ! '"1b15811e4cf410f02945920334685406"'
|
31
41
|
cache-control:
|
32
|
-
-
|
42
|
+
- must-revalidate, private, max-age=0
|
33
43
|
x-request-id:
|
34
|
-
-
|
44
|
+
- 49d2ba79a3cab08417dd02dacb649ed7
|
35
45
|
x-runtime:
|
36
|
-
- '0.
|
37
|
-
|
38
|
-
-
|
39
|
-
date:
|
40
|
-
- Tue, 04 Feb 2014 14:39:51 GMT
|
41
|
-
content-length:
|
42
|
-
- '1879'
|
43
|
-
connection:
|
44
|
-
- close
|
46
|
+
- '0.154216'
|
47
|
+
x-rack-cache:
|
48
|
+
- miss
|
45
49
|
body:
|
46
50
|
encoding: US-ASCII
|
47
|
-
string: ! '[{"id":
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
+
string: ! '[{"id":760,"kind":"company","full_name":"\u0003 esatipa","contact_name":null,"street_line_1":"Torres
|
52
|
+
Quevedo","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"673832948","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/760"},{"id":113,"kind":"company","full_name":"100-499","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"totoro.estepario@gmail.com","web":null,"discount":null,"tax_id":"","bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/113"},{"id":498,"kind":"company","full_name":"Alejandro","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"alexmanalopez@gmail.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/498"},{"id":744,"kind":"company","full_name":"Alejandro
|
53
|
+
Lopez Santos","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"alexmanalopez@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/744"},{"id":739,"kind":"company","full_name":"ANA","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"ana@vali2.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/739"},{"id":773,"kind":"company","full_name":"Angel
|
54
|
+
Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
|
55
|
+
Canaria;;;Espa\u00f1a","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"668829133","phone_2":null,"fax":null,"email":"aramos.gcc@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/773"},{"id":717,"kind":"company","full_name":"Angel
|
56
|
+
Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
|
57
|
+
Canaria;;;Espa\u00f1a","street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"668829133","phone_2":null,"fax":null,"email":"aramos.gcc@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/717"},{"id":748,"kind":"company","full_name":"Antonio Brito","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"605100535","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/748"},{"id":752,"kind":"company","full_name":"Antonio
|
58
|
+
C. Dom\u00ednguez Brito","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"adominguez@iusiani.ulpgc.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/752"},{"id":733,"kind":"company","full_name":"aviso_llegada","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"avisollegada@adtpostales.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/733"},{"id":764,"kind":"company","full_name":"Aythami","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"678875767","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/764"},{"id":736,"kind":"company","full_name":"Borja
|
59
|
+
Santana Corvo","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"ahviel@hotmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/736"},{"id":713,"kind":"company","full_name":"Bycor","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34646675709","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/713"},{"id":728,"kind":"company","full_name":"Bycor
|
60
|
+
S\u00e1nchez","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"bycor1989@gmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/728"},{"id":729,"kind":"company","full_name":"Canal
|
61
|
+
Amena","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"2224","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/729"},{"id":755,"kind":"company","full_name":"Carlos
|
62
|
+
Hern\u00e1ndez","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"620815221","phone_2":null,"fax":null,"email":"carlos@recrea.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/755"},{"id":735,"kind":"company","full_name":"Carlos
|
63
|
+
Hern\u00e1ndez Medina","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"carlos@recrea.es","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/735"},{"id":686,"kind":"company","full_name":"Coolmod","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"902
|
64
|
+
88 85 34","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/686"},{"id":749,"kind":"company","full_name":"Cristina","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34650756263","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/749"},{"id":726,"kind":"company","full_name":"Cruz
|
65
|
+
Roja","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"987795001","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/726"},{"id":763,"kind":"company","full_name":"Dalia","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"637
|
66
|
+
22 08 60","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/763"},{"id":711,"kind":"company","full_name":"David","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"620453446","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/711"},{"id":673,"kind":"company","full_name":"David
|
67
|
+
Meli\u00e1n Godoy","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dmg_dragon@hotmail.com","web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/673"},{"id":756,"kind":"company","full_name":"David
|
68
|
+
Santiago","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"660608373","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/756"},{"id":114,"kind":"person","first_name":"Direct","last_name":"Debit","full_name":"Direct
|
69
|
+
Debit","street_line_1":"Bernardo de la Torre 104","street_line_2":"","postal_code":"35007","city":"Las
|
70
|
+
Palmas de Gran Canaria","region":"Las Palmas","country":"ES","phone_1":"","phone_2":"","fax":"","email":"totoro.estepario@gmail.com","web":"","discount":null,"tax_id":"12345678Z","bank_account":"ES9121000418450200051332","language":"EN","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/114"}]'
|
51
71
|
http_version: '1.1'
|
52
|
-
recorded_at:
|
72
|
+
recorded_at: Fri, 13 Jun 2014 12:37:48 GMT
|
53
73
|
- request:
|
54
74
|
method: post
|
55
|
-
uri: http://
|
75
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates.json
|
56
76
|
body:
|
57
77
|
encoding: US-ASCII
|
58
|
-
string: contact_id=
|
78
|
+
string: contact_id=760&number=test%20number%2042&contact_name=%03%20esatipa¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_details=¬es=
|
59
79
|
headers:
|
60
80
|
authorization:
|
61
|
-
- Basic
|
81
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
62
82
|
response:
|
63
83
|
status:
|
64
84
|
code: 201
|
65
|
-
message:
|
85
|
+
message: Created
|
66
86
|
headers:
|
87
|
+
server:
|
88
|
+
- nginx/1.4.5
|
89
|
+
date:
|
90
|
+
- Fri, 13 Jun 2014 12:37:49 GMT
|
91
|
+
content-type:
|
92
|
+
- application/json; charset=utf-8
|
93
|
+
transfer-encoding:
|
94
|
+
- chunked
|
95
|
+
connection:
|
96
|
+
- close
|
97
|
+
status:
|
98
|
+
- 201 Created
|
67
99
|
x-ratelimit-limit:
|
68
100
|
- '2000'
|
69
101
|
x-ratelimit-remaining:
|
70
|
-
- '
|
71
|
-
content-type:
|
72
|
-
- application/json; charset=utf-8
|
102
|
+
- '1466'
|
73
103
|
x-ua-compatible:
|
74
|
-
- IE=Edge
|
104
|
+
- IE=Edge,chrome=1
|
75
105
|
etag:
|
76
|
-
- ! '"
|
106
|
+
- ! '"4018fa01b255f34c6afef17274297faa"'
|
77
107
|
cache-control:
|
78
108
|
- max-age=0, private, must-revalidate
|
109
|
+
set-cookie:
|
110
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJThhMTk0Y2E3ZWU4NjQ2NWM4ZDlkOTk2YmEyZjM5MTNjBjsAVA%3D%3D--357434ff2602c47a890fe90435793b88c40a0b1d;
|
111
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
79
112
|
x-request-id:
|
80
|
-
-
|
113
|
+
- a7a220ae0761fed5fa236fb64c0f3613
|
81
114
|
x-runtime:
|
82
|
-
- '0.
|
83
|
-
|
84
|
-
-
|
85
|
-
date:
|
86
|
-
- Tue, 04 Feb 2014 14:39:51 GMT
|
87
|
-
content-length:
|
88
|
-
- '705'
|
89
|
-
connection:
|
90
|
-
- close
|
91
|
-
set-cookie:
|
92
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTc0MGYyNjE5Mjc0YTFhZmJlZjA3ODhlZjcyZjhjMTQyBjsAVA%3D%3D--34134577b024aa2444b477ba11a9557cf6d1ef1c;
|
93
|
-
path=/; HttpOnly
|
115
|
+
- '0.136726'
|
116
|
+
x-rack-cache:
|
117
|
+
- invalidate, pass
|
94
118
|
body:
|
95
119
|
encoding: US-ASCII
|
96
|
-
string: ! '{"id":
|
97
|
-
|
120
|
+
string: ! '{"id":540,"number":"test number 42","issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
|
121
|
+
esatipa"},"po_number":null,"currency":"EUR","items":[{"id":694,"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
122
|
\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://
|
123
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"3aa4ab31a13c680849c75571cc3e7f7a7ec8fdaa","permalink":"http://ninive-688.sandbox-quadernoapp.com/estimate/3aa4ab31a13c680849c75571cc3e7f7a7ec8fdaa","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/estimates/540.json"}'
|
100
124
|
http_version: '1.1'
|
101
|
-
recorded_at:
|
125
|
+
recorded_at: Fri, 13 Jun 2014 12:37:49 GMT
|
102
126
|
- request:
|
103
127
|
method: delete
|
104
|
-
uri: http://
|
128
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates/540.json
|
105
129
|
body:
|
106
130
|
encoding: US-ASCII
|
107
131
|
string: ''
|
108
132
|
headers:
|
109
133
|
authorization:
|
110
|
-
- Basic
|
134
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
111
135
|
response:
|
112
136
|
status:
|
113
137
|
code: 204
|
114
|
-
message:
|
138
|
+
message: No Content
|
115
139
|
headers:
|
140
|
+
server:
|
141
|
+
- nginx/1.4.5
|
142
|
+
date:
|
143
|
+
- Fri, 13 Jun 2014 12:37:49 GMT
|
144
|
+
connection:
|
145
|
+
- close
|
146
|
+
status:
|
147
|
+
- 204 No Content
|
116
148
|
x-ratelimit-limit:
|
117
149
|
- '2000'
|
118
150
|
x-ratelimit-remaining:
|
119
|
-
- '
|
151
|
+
- '1465'
|
120
152
|
x-ua-compatible:
|
121
|
-
- IE=Edge
|
153
|
+
- IE=Edge,chrome=1
|
122
154
|
cache-control:
|
123
155
|
- no-cache
|
156
|
+
set-cookie:
|
157
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTA3MWUyZTU3Yzk3NDE4MWQ3NzIzMDYzMDFkYTQxMDM1BjsAVA%3D%3D--b611ab19b4ddb6b8128f7b1614c20882b3f980f4;
|
158
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
124
159
|
x-request-id:
|
125
|
-
-
|
160
|
+
- 5c63e6f3cc74203c53bd77c775e3f4a4
|
126
161
|
x-runtime:
|
127
|
-
- '
|
128
|
-
|
129
|
-
-
|
130
|
-
date:
|
131
|
-
- Tue, 04 Feb 2014 14:39:53 GMT
|
132
|
-
connection:
|
133
|
-
- close
|
134
|
-
set-cookie:
|
135
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWRlZGM0MDE5MTNiYzQ4NjMxOGI2NTA3MzliN2Q5MGUxBjsAVA%3D%3D--6425e2a9bcb28ca3a8064f21d7f4db46f2fa95a2;
|
136
|
-
path=/; HttpOnly
|
162
|
+
- '0.104336'
|
163
|
+
x-rack-cache:
|
164
|
+
- invalidate, pass
|
137
165
|
body:
|
138
166
|
encoding: US-ASCII
|
139
167
|
string: ''
|
140
168
|
http_version: '1.1'
|
141
|
-
recorded_at:
|
142
|
-
recorded_with: VCR 2.
|
169
|
+
recorded_at: Fri, 13 Jun 2014 12:37:49 GMT
|
170
|
+
recorded_with: VCR 2.9.2
|