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,191 +2,222 @@
|
|
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:29:42 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
|
+
- '1537'
|
21
33
|
x-pages-currentpage:
|
22
34
|
- '1'
|
23
35
|
x-pages-totalpages:
|
24
|
-
- '
|
25
|
-
content-type:
|
26
|
-
- application/json; charset=utf-8
|
36
|
+
- '5'
|
27
37
|
x-ua-compatible:
|
28
|
-
- IE=Edge
|
38
|
+
- IE=Edge,chrome=1
|
29
39
|
etag:
|
30
|
-
- ! '"
|
40
|
+
- ! '"c8dc64244b78ebaeae0681e06d44ee7b"'
|
31
41
|
cache-control:
|
32
|
-
-
|
42
|
+
- must-revalidate, private, max-age=0
|
33
43
|
x-request-id:
|
34
|
-
-
|
44
|
+
- 7affa673221f98efa8ace29d89777c88
|
35
45
|
x-runtime:
|
36
|
-
- '0.
|
37
|
-
|
38
|
-
-
|
39
|
-
date:
|
40
|
-
- Tue, 04 Feb 2014 14:52:09 GMT
|
41
|
-
content-length:
|
42
|
-
- '1879'
|
43
|
-
connection:
|
44
|
-
- close
|
46
|
+
- '0.198841'
|
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":725,"kind":"company","full_name":"Aitor
|
53
|
+
Hernandez Pe\u00f1a","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":"aithor123@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/725"},{"id":742,"kind":"company","full_name":"Akira
|
54
|
+
Comics S.L.","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":"akira@akiracomics.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/742"},{"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
|
55
|
+
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
|
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/773"},{"id":717,"kind":"company","full_name":"Angel
|
58
|
+
Ramos de Miguel","contact_name":null,"street_line_1":";;;Las Palmas de Gran
|
59
|
+
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
|
60
|
+
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
|
61
|
+
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
|
62
|
+
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
|
63
|
+
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
|
64
|
+
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
|
65
|
+
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
|
66
|
+
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
|
67
|
+
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
|
68
|
+
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":674,"kind":"company","full_name":"Dav
|
69
|
+
Mel God","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":"arthas_guay@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/674"}]'
|
51
70
|
http_version: '1.1'
|
52
|
-
recorded_at:
|
71
|
+
recorded_at: Fri, 13 Jun 2014 12:29:42 GMT
|
53
72
|
- request:
|
54
73
|
method: post
|
55
|
-
uri: http://
|
74
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/invoices.json
|
56
75
|
body:
|
57
76
|
encoding: US-ASCII
|
58
|
-
string: contact_id=
|
77
|
+
string: contact_id=760&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
78
|
headers:
|
60
79
|
authorization:
|
61
|
-
- Basic
|
80
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
62
81
|
response:
|
63
82
|
status:
|
64
83
|
code: 201
|
65
|
-
message:
|
84
|
+
message: Created
|
66
85
|
headers:
|
86
|
+
server:
|
87
|
+
- nginx/1.4.5
|
88
|
+
date:
|
89
|
+
- Fri, 13 Jun 2014 12:29:43 GMT
|
90
|
+
content-type:
|
91
|
+
- application/json; charset=utf-8
|
92
|
+
transfer-encoding:
|
93
|
+
- chunked
|
94
|
+
connection:
|
95
|
+
- close
|
96
|
+
status:
|
97
|
+
- 201 Created
|
67
98
|
x-ratelimit-limit:
|
68
99
|
- '2000'
|
69
100
|
x-ratelimit-remaining:
|
70
|
-
- '
|
71
|
-
content-type:
|
72
|
-
- application/json; charset=utf-8
|
101
|
+
- '1536'
|
73
102
|
x-ua-compatible:
|
74
|
-
- IE=Edge
|
103
|
+
- IE=Edge,chrome=1
|
75
104
|
etag:
|
76
|
-
- ! '"
|
105
|
+
- ! '"0ae1199a32a1d0c7dbdbebd3bd82ba87"'
|
77
106
|
cache-control:
|
78
107
|
- max-age=0, private, must-revalidate
|
108
|
+
set-cookie:
|
109
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTExNTNiODhmZDUxMWJjYzc5MzFiMzk3M2ZiMzQ2YmI5BjsAVA%3D%3D--46e358686f08192e71ab8a60222e59bb26b8f6db;
|
110
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
79
111
|
x-request-id:
|
80
|
-
-
|
112
|
+
- 11df4725fbdd4b751e29cbf8849675bf
|
81
113
|
x-runtime:
|
82
|
-
- '0.
|
83
|
-
|
84
|
-
-
|
85
|
-
date:
|
86
|
-
- Tue, 04 Feb 2014 14:52:09 GMT
|
87
|
-
content-length:
|
88
|
-
- '726'
|
89
|
-
connection:
|
90
|
-
- close
|
91
|
-
set-cookie:
|
92
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTdhN2MyOTg0ZTE3NDIwODBlZmMzY2NlODQ2NjgwYzk5BjsAVA%3D%3D--6dec022a548149bc33396be8edd98384baf2058c;
|
93
|
-
path=/; HttpOnly
|
114
|
+
- '0.271697'
|
115
|
+
x-rack-cache:
|
116
|
+
- invalidate, pass
|
94
117
|
body:
|
95
118
|
encoding: US-ASCII
|
96
|
-
string: ! '{"id":
|
97
|
-
|
119
|
+
string: ! '{"id":535,"number":"xxxx-2","issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
|
120
|
+
esatipa"},"po_number":null,"due_date":null,"currency":"EUR","items":[{"id":689,"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
121
|
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
|
99
|
-
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"permalink":"http://
|
122
|
+
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"","notes":"","state":"draft","tag_list":[],"secure_id":"77260e684c5044037a219f205de0e211c9c68ce0","permalink":"http://ninive-688.sandbox-quadernoapp.com/invoice/77260e684c5044037a219f205de0e211c9c68ce0","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/invoices/535.json"}'
|
100
123
|
http_version: '1.1'
|
101
|
-
recorded_at:
|
124
|
+
recorded_at: Fri, 13 Jun 2014 12:29:43 GMT
|
102
125
|
- request:
|
103
126
|
method: put
|
104
|
-
uri: http://
|
127
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/invoices/535.json
|
105
128
|
body:
|
106
129
|
encoding: US-ASCII
|
107
130
|
string: payment_details=Show%20me%20the%20moneeeeeeeyy!!!!
|
108
131
|
headers:
|
109
132
|
authorization:
|
110
|
-
- Basic
|
133
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
111
134
|
response:
|
112
135
|
status:
|
113
136
|
code: 200
|
114
|
-
message:
|
137
|
+
message: OK
|
115
138
|
headers:
|
139
|
+
server:
|
140
|
+
- nginx/1.4.5
|
141
|
+
date:
|
142
|
+
- Fri, 13 Jun 2014 12:29:44 GMT
|
143
|
+
content-type:
|
144
|
+
- application/json; charset=utf-8
|
145
|
+
transfer-encoding:
|
146
|
+
- chunked
|
147
|
+
connection:
|
148
|
+
- close
|
149
|
+
status:
|
150
|
+
- 200 OK
|
116
151
|
x-ratelimit-limit:
|
117
152
|
- '2000'
|
118
153
|
x-ratelimit-remaining:
|
119
|
-
- '
|
120
|
-
content-type:
|
121
|
-
- application/json; charset=utf-8
|
154
|
+
- '1535'
|
122
155
|
x-ua-compatible:
|
123
|
-
- IE=Edge
|
156
|
+
- IE=Edge,chrome=1
|
124
157
|
etag:
|
125
|
-
- ! '"
|
158
|
+
- ! '"6f6cfd74be6db5746202b9a01004abc9"'
|
126
159
|
cache-control:
|
127
160
|
- max-age=0, private, must-revalidate
|
161
|
+
set-cookie:
|
162
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg3YzkwZmJhZWQxOTg0NjQ3YTkyNWI0YWM4NTZiZmUyBjsAVA%3D%3D--148cb4d887fbdaca852ed69b1b0900aa90e85eb0;
|
163
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
128
164
|
x-request-id:
|
129
|
-
-
|
165
|
+
- d820a0136b65179b2242b850014b0b06
|
130
166
|
x-runtime:
|
131
|
-
- '0.
|
132
|
-
|
133
|
-
-
|
134
|
-
date:
|
135
|
-
- Tue, 04 Feb 2014 14:52:10 GMT
|
136
|
-
content-length:
|
137
|
-
- '754'
|
138
|
-
connection:
|
139
|
-
- close
|
140
|
-
set-cookie:
|
141
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFmY2I5MGVhYzgwOGUwM2IzNjY2Y2UzNjBhZWM4ZmRhBjsAVA%3D%3D--c73bca816c699aa3ef1b94d6660f79d9a73859db;
|
142
|
-
path=/; HttpOnly
|
167
|
+
- '0.125762'
|
168
|
+
x-rack-cache:
|
169
|
+
- invalidate, pass
|
143
170
|
body:
|
144
171
|
encoding: US-ASCII
|
145
|
-
string: ! '{"id":
|
146
|
-
|
172
|
+
string: ! '{"id":535,"number":"xxxx-2","issue_date":"2014-06-13","contact":{"id":760,"full_name":"\u0003
|
173
|
+
esatipa"},"po_number":null,"due_date":null,"currency":"EUR","items":[{"id":689,"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
|
147
174
|
\u20ac","discount":"0.00 \u20ac","gross_amount":"0.00 \u20ac"}],"subtotal":"0.00
|
148
175
|
\u20ac","discount":"0.00 \u20ac","taxes":[],"total":"0.00 \u20ac","payments":[],"payment_details":"Show
|
149
|
-
me the moneeeeeeeyy!!!!","notes":"","state":"draft","tag_list":[],"permalink":"http://
|
176
|
+
me the moneeeeeeeyy!!!!","notes":"","state":"draft","tag_list":[],"secure_id":"77260e684c5044037a219f205de0e211c9c68ce0","permalink":"http://ninive-688.sandbox-quadernoapp.com/invoice/77260e684c5044037a219f205de0e211c9c68ce0","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/invoices/535.json"}'
|
150
177
|
http_version: '1.1'
|
151
|
-
recorded_at:
|
178
|
+
recorded_at: Fri, 13 Jun 2014 12:29:44 GMT
|
152
179
|
- request:
|
153
180
|
method: delete
|
154
|
-
uri: http://
|
181
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/invoices/535.json
|
155
182
|
body:
|
156
183
|
encoding: US-ASCII
|
157
184
|
string: ''
|
158
185
|
headers:
|
159
186
|
authorization:
|
160
|
-
- Basic
|
187
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
161
188
|
response:
|
162
189
|
status:
|
163
190
|
code: 204
|
164
|
-
message:
|
191
|
+
message: No Content
|
165
192
|
headers:
|
193
|
+
server:
|
194
|
+
- nginx/1.4.5
|
195
|
+
date:
|
196
|
+
- Fri, 13 Jun 2014 12:29:45 GMT
|
197
|
+
connection:
|
198
|
+
- close
|
199
|
+
status:
|
200
|
+
- 204 No Content
|
166
201
|
x-ratelimit-limit:
|
167
202
|
- '2000'
|
168
203
|
x-ratelimit-remaining:
|
169
|
-
- '
|
204
|
+
- '1534'
|
170
205
|
x-ua-compatible:
|
171
|
-
- IE=Edge
|
206
|
+
- IE=Edge,chrome=1
|
172
207
|
cache-control:
|
173
208
|
- no-cache
|
209
|
+
set-cookie:
|
210
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWVlYmU1ODQ5MmQ2NzMyZmQzNjQzNjY2MGE4NGM2ODMzBjsAVA%3D%3D--c8bc7557cfbf2d0c0d1770f39128884757c19984;
|
211
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
174
212
|
x-request-id:
|
175
|
-
-
|
213
|
+
- 621652aec1f8240ebb677e9e2700da08
|
176
214
|
x-runtime:
|
177
|
-
- '0.
|
178
|
-
|
179
|
-
-
|
180
|
-
date:
|
181
|
-
- Tue, 04 Feb 2014 14:52:10 GMT
|
182
|
-
connection:
|
183
|
-
- close
|
184
|
-
set-cookie:
|
185
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWViODIxYzdiYjc0MjJkMTc2M2ExYjEwMzYyYWY0YmVlBjsAVA%3D%3D--0c48857750fe76399b44dff940804e012c167b86;
|
186
|
-
path=/; HttpOnly
|
215
|
+
- '0.237452'
|
216
|
+
x-rack-cache:
|
217
|
+
- invalidate, pass
|
187
218
|
body:
|
188
219
|
encoding: US-ASCII
|
189
220
|
string: ''
|
190
221
|
http_version: '1.1'
|
191
|
-
recorded_at:
|
192
|
-
recorded_with: VCR 2.
|
222
|
+
recorded_at: Fri, 13 Jun 2014 12:29:45 GMT
|
223
|
+
recorded_with: VCR 2.9.2
|
@@ -2,92 +2,100 @@
|
|
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/items.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:46:17 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
|
-
- '
|
21
|
-
content-type:
|
22
|
-
- application/json; charset=utf-8
|
32
|
+
- '1396'
|
23
33
|
x-ua-compatible:
|
24
|
-
- IE=Edge
|
34
|
+
- IE=Edge,chrome=1
|
25
35
|
etag:
|
26
|
-
- ! '"
|
36
|
+
- ! '"92861c01f089737feb118f784953b52a"'
|
27
37
|
cache-control:
|
28
|
-
-
|
38
|
+
- must-revalidate, private, max-age=0
|
29
39
|
x-request-id:
|
30
|
-
-
|
40
|
+
- 6a8a55c37a13063d42b5e043aecf5a48
|
31
41
|
x-runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
date:
|
36
|
-
- Tue, 04 Feb 2014 14:52:22 GMT
|
37
|
-
content-length:
|
38
|
-
- '451'
|
39
|
-
connection:
|
40
|
-
- close
|
42
|
+
- '0.116180'
|
43
|
+
x-rack-cache:
|
44
|
+
- miss
|
41
45
|
body:
|
42
46
|
encoding: US-ASCII
|
43
|
-
string: ! '[{"id":
|
44
|
-
|
47
|
+
string: ! '[{"id":51,"code":"0001-x","name":"Nothing else matters","unit_cost":"20.0","stock":"23.0","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/51"},{"id":47,"code":"007","name":"Test
|
48
|
+
Item","unit_cost":"20.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/47"}]'
|
45
49
|
http_version: '1.1'
|
46
|
-
recorded_at:
|
50
|
+
recorded_at: Fri, 13 Jun 2014 12:46:17 GMT
|
47
51
|
- request:
|
48
52
|
method: put
|
49
|
-
uri: http://
|
53
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/items/47.json
|
50
54
|
body:
|
51
55
|
encoding: US-ASCII
|
52
56
|
string: name=Test_OCP
|
53
57
|
headers:
|
54
58
|
authorization:
|
55
|
-
- Basic
|
59
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
56
60
|
response:
|
57
61
|
status:
|
58
62
|
code: 200
|
59
|
-
message:
|
63
|
+
message: OK
|
60
64
|
headers:
|
65
|
+
server:
|
66
|
+
- nginx/1.4.5
|
67
|
+
date:
|
68
|
+
- Fri, 13 Jun 2014 12:46:18 GMT
|
69
|
+
content-type:
|
70
|
+
- application/json; charset=utf-8
|
71
|
+
transfer-encoding:
|
72
|
+
- chunked
|
73
|
+
connection:
|
74
|
+
- close
|
75
|
+
status:
|
76
|
+
- 200 OK
|
61
77
|
x-ratelimit-limit:
|
62
78
|
- '2000'
|
63
79
|
x-ratelimit-remaining:
|
64
|
-
- '
|
65
|
-
content-type:
|
66
|
-
- application/json; charset=utf-8
|
80
|
+
- '1395'
|
67
81
|
x-ua-compatible:
|
68
|
-
- IE=Edge
|
82
|
+
- IE=Edge,chrome=1
|
69
83
|
etag:
|
70
|
-
- ! '"
|
84
|
+
- ! '"0276048d2b1e288aa3621555dd6e0a75"'
|
71
85
|
cache-control:
|
72
86
|
- max-age=0, private, must-revalidate
|
87
|
+
set-cookie:
|
88
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTY2ODJhNzk5MGM3ZWQ4YWY4MzI0NDA1MDIzNTgxMDAxBjsAVA%3D%3D--c1bbd620064a02b4c3d62f60f3ff9b6443b6e1e9;
|
89
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
73
90
|
x-request-id:
|
74
|
-
-
|
91
|
+
- 1a130b4fbdec31b562302f34d71b8235
|
75
92
|
x-runtime:
|
76
|
-
- '0.
|
77
|
-
|
78
|
-
-
|
79
|
-
date:
|
80
|
-
- Tue, 04 Feb 2014 14:52:22 GMT
|
81
|
-
content-length:
|
82
|
-
- '151'
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
set-cookie:
|
86
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWNhMDczNWQ0ZWYwMWIwYjkwZDU2MjE2YmIxZmRmZDE1BjsAVA%3D%3D--442e44d3bc449fac8b51a8a6373e689bcf9554cf;
|
87
|
-
path=/; HttpOnly
|
93
|
+
- '0.135251'
|
94
|
+
x-rack-cache:
|
95
|
+
- invalidate, pass
|
88
96
|
body:
|
89
97
|
encoding: US-ASCII
|
90
|
-
string: ! '{"id":
|
98
|
+
string: ! '{"id":47,"code":"007","name":"Test_OCP","unit_cost":"20.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/47"}'
|
91
99
|
http_version: '1.1'
|
92
|
-
recorded_at:
|
93
|
-
recorded_with: VCR 2.
|
100
|
+
recorded_at: Fri, 13 Jun 2014 12:46:18 GMT
|
101
|
+
recorded_with: VCR 2.9.2
|