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,95 +2,117 @@
|
|
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:33:04 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
|
+
- '1508'
|
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
|
+
- ! '"78987cdc82808337e2e0baa06f1a206c"'
|
31
41
|
cache-control:
|
32
|
-
-
|
42
|
+
- must-revalidate, private, max-age=0
|
33
43
|
x-request-id:
|
34
|
-
-
|
44
|
+
- 81818517ed84da5a1b6c4b6627c5f65b
|
35
45
|
x-runtime:
|
36
|
-
- '0.
|
37
|
-
|
38
|
-
-
|
39
|
-
date:
|
40
|
-
- Tue, 04 Feb 2014 14:39:43 GMT
|
41
|
-
content-length:
|
42
|
-
- '1879'
|
43
|
-
connection:
|
44
|
-
- close
|
46
|
+
- '0.075056'
|
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":694,"kind":"company","full_name":"Ale","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34650960183","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/694"},{"id":498,"kind":"company","full_name":"Alejandro","contact_name":"","street_line_1":"","street_line_2":"","postal_code":"","city":"","region":"","country":"ES","phone_1":"","phone_2":"","fax":"","email":"alexmanalopez@gmail.com","web":"","discount":null,"tax_id":"","bank_account":"","language":"ES","notes":"","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/498"},{"id":744,"kind":"company","full_name":"Alejandro
|
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"}]'
|
51
69
|
http_version: '1.1'
|
52
|
-
recorded_at:
|
70
|
+
recorded_at: Fri, 13 Jun 2014 12:33:04 GMT
|
53
71
|
- request:
|
54
72
|
method: get
|
55
|
-
uri: http://
|
73
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/contacts/694.json
|
56
74
|
body:
|
57
75
|
encoding: US-ASCII
|
58
76
|
string: ''
|
59
77
|
headers:
|
60
78
|
authorization:
|
61
|
-
- Basic
|
79
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
62
80
|
response:
|
63
81
|
status:
|
64
82
|
code: 200
|
65
|
-
message:
|
83
|
+
message: OK
|
66
84
|
headers:
|
85
|
+
server:
|
86
|
+
- nginx/1.4.5
|
87
|
+
date:
|
88
|
+
- Fri, 13 Jun 2014 12:33:04 GMT
|
89
|
+
content-type:
|
90
|
+
- application/json; charset=utf-8
|
91
|
+
transfer-encoding:
|
92
|
+
- chunked
|
93
|
+
connection:
|
94
|
+
- close
|
95
|
+
status:
|
96
|
+
- 200 OK
|
67
97
|
x-ratelimit-limit:
|
68
98
|
- '2000'
|
69
99
|
x-ratelimit-remaining:
|
70
|
-
- '
|
71
|
-
|
72
|
-
-
|
73
|
-
x-ua-compatible:
|
74
|
-
- IE=Edge
|
75
|
-
etag:
|
76
|
-
- ! '"b1f55fcc9e56788fbbf74d65d0653a7e"'
|
100
|
+
- '1507'
|
101
|
+
last-modified:
|
102
|
+
- Thu, 12 Jun 2014 12:04:51 GMT
|
77
103
|
cache-control:
|
78
|
-
-
|
104
|
+
- must-revalidate, private, max-age=0
|
105
|
+
x-ua-compatible:
|
106
|
+
- IE=Edge,chrome=1
|
79
107
|
x-request-id:
|
80
|
-
-
|
108
|
+
- b84c8872aa6c546f229a3ce1b4a33df4
|
81
109
|
x-runtime:
|
82
|
-
- '0.
|
83
|
-
|
84
|
-
-
|
85
|
-
date:
|
86
|
-
- Tue, 04 Feb 2014 14:39:43 GMT
|
87
|
-
content-length:
|
88
|
-
- '366'
|
89
|
-
connection:
|
90
|
-
- close
|
110
|
+
- '0.071299'
|
111
|
+
x-rack-cache:
|
112
|
+
- miss
|
91
113
|
body:
|
92
114
|
encoding: US-ASCII
|
93
|
-
string: ! '{"id":
|
115
|
+
string: ! '{"id":694,"kind":"company","full_name":"Ale","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":"+34650960183","phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"bank_account":null,"language":"EN","notes":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/contacts/694"}'
|
94
116
|
http_version: '1.1'
|
95
|
-
recorded_at:
|
96
|
-
recorded_with: VCR 2.
|
117
|
+
recorded_at: Fri, 13 Jun 2014 12:33:04 GMT
|
118
|
+
recorded_with: VCR 2.9.2
|
@@ -2,111 +2,106 @@
|
|
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/estimates.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:54 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
|
+
- '1458'
|
21
33
|
x-pages-currentpage:
|
22
34
|
- '1'
|
23
35
|
x-pages-totalpages:
|
24
36
|
- '1'
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
27
37
|
x-ua-compatible:
|
28
|
-
- IE=Edge
|
38
|
+
- IE=Edge,chrome=1
|
29
39
|
etag:
|
30
|
-
- ! '"
|
40
|
+
- ! '"5d184cc5cf5eeab4c09eef2efe84c3cf"'
|
31
41
|
cache-control:
|
32
|
-
-
|
42
|
+
- must-revalidate, private, max-age=0
|
33
43
|
x-request-id:
|
34
|
-
-
|
44
|
+
- acc4f17ac8052afaca006eae6098c2c5
|
35
45
|
x-runtime:
|
36
|
-
- '0.
|
37
|
-
|
38
|
-
-
|
39
|
-
date:
|
40
|
-
- Tue, 04 Feb 2014 14:39:55 GMT
|
41
|
-
content-length:
|
42
|
-
- '2872'
|
43
|
-
connection:
|
44
|
-
- close
|
46
|
+
- '0.103185'
|
47
|
+
x-rack-cache:
|
48
|
+
- miss
|
45
49
|
body:
|
46
50
|
encoding: US-ASCII
|
47
|
-
string: ! '[{"id":
|
48
|
-
|
49
|
-
|
50
|
-
\u20ac","discount":"0.00 \u20ac","
|
51
|
-
\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
|
52
|
-
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
|
53
|
-
\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
|
54
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"},{"description":"Working
|
55
|
-
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
|
56
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"20.99 \u20ac"}],"subtotal":"82.99
|
57
|
-
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IVA (21.00%)","amount":"2.52
|
58
|
-
\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
|
59
|
-
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
|
60
|
-
\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
|
61
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"12.00 \u20ac"}],"subtotal":"62.00
|
62
|
-
\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"}]'
|
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"}]'
|
63
55
|
http_version: '1.1'
|
64
|
-
recorded_at:
|
56
|
+
recorded_at: Fri, 13 Jun 2014 12:37:54 GMT
|
65
57
|
- request:
|
66
58
|
method: get
|
67
|
-
uri: http://
|
59
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/estimates/539.json
|
68
60
|
body:
|
69
61
|
encoding: US-ASCII
|
70
62
|
string: ''
|
71
63
|
headers:
|
72
64
|
authorization:
|
73
|
-
- Basic
|
65
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
74
66
|
response:
|
75
67
|
status:
|
76
68
|
code: 200
|
77
|
-
message:
|
69
|
+
message: OK
|
78
70
|
headers:
|
71
|
+
server:
|
72
|
+
- nginx/1.4.5
|
73
|
+
date:
|
74
|
+
- Fri, 13 Jun 2014 12:37:55 GMT
|
75
|
+
content-type:
|
76
|
+
- application/json; charset=utf-8
|
77
|
+
transfer-encoding:
|
78
|
+
- chunked
|
79
|
+
connection:
|
80
|
+
- close
|
81
|
+
status:
|
82
|
+
- 200 OK
|
79
83
|
x-ratelimit-limit:
|
80
84
|
- '2000'
|
81
85
|
x-ratelimit-remaining:
|
82
|
-
- '
|
83
|
-
|
84
|
-
-
|
85
|
-
x-ua-compatible:
|
86
|
-
- IE=Edge
|
87
|
-
etag:
|
88
|
-
- ! '"b29431b1a8a9b0a55fdf271aec104684"'
|
86
|
+
- '1457'
|
87
|
+
last-modified:
|
88
|
+
- Fri, 13 Jun 2014 12:37:24 GMT
|
89
89
|
cache-control:
|
90
|
-
-
|
90
|
+
- must-revalidate, private, max-age=0
|
91
|
+
x-ua-compatible:
|
92
|
+
- IE=Edge,chrome=1
|
91
93
|
x-request-id:
|
92
|
-
-
|
94
|
+
- 8aad53fa232a2f884a8d40876e8eef43
|
93
95
|
x-runtime:
|
94
|
-
- '0.
|
95
|
-
|
96
|
-
-
|
97
|
-
date:
|
98
|
-
- Tue, 04 Feb 2014 14:39:55 GMT
|
99
|
-
content-length:
|
100
|
-
- '690'
|
101
|
-
connection:
|
102
|
-
- close
|
96
|
+
- '0.090264'
|
97
|
+
x-rack-cache:
|
98
|
+
- miss
|
103
99
|
body:
|
104
100
|
encoding: US-ASCII
|
105
|
-
string: ! '{"id":
|
106
|
-
|
107
|
-
|
108
|
-
\u20ac","discount":"0.00 \u20ac","
|
109
|
-
\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"}'
|
101
|
+
string: ! '{"id":539,"number":"0000001","issue_date":"2014-06-13","contact":{"id":790,"full_name":"Test
|
102
|
+
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
|
103
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
|
104
|
+
\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"}'
|
110
105
|
http_version: '1.1'
|
111
|
-
recorded_at:
|
112
|
-
recorded_with: VCR 2.
|
106
|
+
recorded_at: Fri, 13 Jun 2014 12:37:55 GMT
|
107
|
+
recorded_with: VCR 2.9.2
|
@@ -2,118 +2,108 @@
|
|
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/expenses.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:41: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
|
+
- '1441'
|
21
33
|
x-pages-currentpage:
|
22
34
|
- '1'
|
23
35
|
x-pages-totalpages:
|
24
36
|
- '1'
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
27
37
|
x-ua-compatible:
|
28
|
-
- IE=Edge
|
38
|
+
- IE=Edge,chrome=1
|
29
39
|
etag:
|
30
|
-
- ! '"
|
40
|
+
- ! '"f8c16df3cad07eca53aa3d6a08d8657b"'
|
31
41
|
cache-control:
|
32
|
-
-
|
42
|
+
- must-revalidate, private, max-age=0
|
33
43
|
x-request-id:
|
34
|
-
-
|
44
|
+
- da4f4e1fb94434b641dd471180162253
|
35
45
|
x-runtime:
|
36
|
-
- '0.
|
37
|
-
|
38
|
-
-
|
39
|
-
date:
|
40
|
-
- Tue, 04 Feb 2014 14:50:58 GMT
|
41
|
-
content-length:
|
42
|
-
- '2759'
|
43
|
-
connection:
|
44
|
-
- close
|
46
|
+
- '0.159711'
|
47
|
+
x-rack-cache:
|
48
|
+
- miss
|
45
49
|
body:
|
46
50
|
encoding: US-ASCII
|
47
|
-
string: ! '[{"id":
|
48
|
-
|
49
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"
|
50
|
-
\u20ac","discount":"0.00 \u20ac","taxes":[
|
51
|
-
\u20ac"
|
52
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
53
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
54
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
55
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"},{"id":4,"number":null,"issue_date":"2014-02-04","contact":{"id":1,"full_name":"API
|
56
|
-
Test Contact"},"po_number":"","currency":"EUR","items":[{"description":"Very
|
57
|
-
important stuff","quantity":"1.0","unit_price":"2230.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"2,230.00
|
58
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"2,230.00 \u20ac"}],"subtotal":"2,230.00
|
59
|
-
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-200.70
|
60
|
-
\u20ac"},{"label":"IVA (21.00%)","amount":"468.30 \u20ac"}],"total":"2,497.60
|
61
|
-
\u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/4.json"},{"id":5,"number":null,"issue_date":"2014-02-04","contact":{"id":3,"full_name":"TSM"},"po_number":"","currency":"EUR","items":[{"description":"Bombers","quantity":"5.0","unit_price":"29.0","discount_rate":"0.0","tax_1_name":"IVA","tax_1_rate":"21.0","tax_2_name":"IRPF","tax_2_rate":"-9.0","reference":"","subtotal":"145.00
|
62
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"145.00 \u20ac"}],"subtotal":"145.00
|
63
|
-
\u20ac","discount":"0.00 \u20ac","taxes":[{"label":"IRPF (-9.00%)","amount":"-13.05
|
64
|
-
\u20ac"},{"label":"IVA (21.00%)","amount":"30.45 \u20ac"}],"total":"162.40
|
65
|
-
\u20ac","payments":[],"notes":"Hello","state":"outstanding","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/5.json"}]'
|
51
|
+
string: ! '[{"id":543,"number":null,"issue_date":"2014-06-13","contact":{"id":790,"full_name":"Test
|
52
|
+
Contact"},"po_number":"","currency":"EUR","items":[{"id":697,"description":"Hello","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
|
53
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
|
54
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":373,"date":"2014-06-13","payment_method":"cash","amount":"10,000.00
|
55
|
+
\u20ac","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543/payments/373.json"}],"notes":"","state":"paid","tag_list":[],"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543.json"}]'
|
66
56
|
http_version: '1.1'
|
67
|
-
recorded_at:
|
57
|
+
recorded_at: Fri, 13 Jun 2014 12:41:48 GMT
|
68
58
|
- request:
|
69
59
|
method: get
|
70
|
-
uri: http://
|
60
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/expenses/543.json
|
71
61
|
body:
|
72
62
|
encoding: US-ASCII
|
73
63
|
string: ''
|
74
64
|
headers:
|
75
65
|
authorization:
|
76
|
-
- Basic
|
66
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
77
67
|
response:
|
78
68
|
status:
|
79
69
|
code: 200
|
80
|
-
message:
|
70
|
+
message: OK
|
81
71
|
headers:
|
72
|
+
server:
|
73
|
+
- nginx/1.4.5
|
74
|
+
date:
|
75
|
+
- Fri, 13 Jun 2014 12:41:49 GMT
|
76
|
+
content-type:
|
77
|
+
- application/json; charset=utf-8
|
78
|
+
transfer-encoding:
|
79
|
+
- chunked
|
80
|
+
connection:
|
81
|
+
- close
|
82
|
+
status:
|
83
|
+
- 200 OK
|
82
84
|
x-ratelimit-limit:
|
83
85
|
- '2000'
|
84
86
|
x-ratelimit-remaining:
|
85
|
-
- '
|
86
|
-
|
87
|
-
-
|
88
|
-
x-ua-compatible:
|
89
|
-
- IE=Edge
|
90
|
-
etag:
|
91
|
-
- ! '"71412ae4bd80e15412e7f274cce5fd5f"'
|
87
|
+
- '1440'
|
88
|
+
last-modified:
|
89
|
+
- Fri, 13 Jun 2014 12:41:42 GMT
|
92
90
|
cache-control:
|
93
|
-
-
|
91
|
+
- must-revalidate, private, max-age=0
|
92
|
+
x-ua-compatible:
|
93
|
+
- IE=Edge,chrome=1
|
94
94
|
x-request-id:
|
95
|
-
-
|
95
|
+
- 6acc867df51351ce14b4a9f1f7a4c39a
|
96
96
|
x-runtime:
|
97
|
-
- '0.
|
98
|
-
|
99
|
-
-
|
100
|
-
date:
|
101
|
-
- Tue, 04 Feb 2014 14:50:58 GMT
|
102
|
-
content-length:
|
103
|
-
- '1315'
|
104
|
-
connection:
|
105
|
-
- close
|
97
|
+
- '0.157579'
|
98
|
+
x-rack-cache:
|
99
|
+
- miss
|
106
100
|
body:
|
107
101
|
encoding: US-ASCII
|
108
|
-
string: ! '{"id":
|
109
|
-
|
110
|
-
\u20ac","discount":"0.00 \u20ac","gross_amount":"
|
111
|
-
\u20ac","discount":"0.00 \u20ac","taxes":[
|
112
|
-
\u20ac"
|
113
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/1.json"},{"id":3,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
114
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/3.json"},{"id":5,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
115
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/5.json"},{"id":7,"date":"2014-02-04","payment_method":"cash","amount":"10,000.00
|
116
|
-
\u20ac","url":"http://localhost:3000/recrea/api/v1/expenses/6/payments/7.json"}],"notes":"Hello","state":"paid","tag_list":[],"url":"http://localhost:3000/recrea/api/v1/expenses/6.json"}'
|
102
|
+
string: ! '{"id":543,"number":null,"issue_date":"2014-06-13","contact":{"id":790,"full_name":"Test
|
103
|
+
Contact"},"po_number":"","currency":"EUR","items":[{"id":697,"description":"Hello","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
|
104
|
+
\u20ac","discount":"0.00 \u20ac","gross_amount":"30.00 \u20ac"}],"subtotal":"30.00
|
105
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"30.00 \u20ac","payments":[{"id":373,"date":"2014-06-13","payment_method":"cash","amount":"10,000.00
|
106
|
+
\u20ac","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543/payments/373.json"}],"notes":"","state":"paid","tag_list":[],"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/expenses/543.json"}'
|
117
107
|
http_version: '1.1'
|
118
|
-
recorded_at:
|
119
|
-
recorded_with: VCR 2.
|
108
|
+
recorded_at: Fri, 13 Jun 2014 12:41:49 GMT
|
109
|
+
recorded_with: VCR 2.9.2
|