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,141 +2,168 @@
|
|
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:26 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
|
+
- '1552'
|
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
|
+
- 0d783327b4a9336b11342c16c8412a50
|
35
45
|
x-runtime:
|
36
|
-
- '0.
|
37
|
-
|
38
|
-
-
|
39
|
-
date:
|
40
|
-
- Tue, 04 Feb 2014 14:52:01 GMT
|
41
|
-
content-length:
|
42
|
-
- '1879'
|
43
|
-
connection:
|
44
|
-
- close
|
46
|
+
- '0.146907'
|
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:26 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:27 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
|
+
- '1551'
|
73
102
|
x-ua-compatible:
|
74
|
-
- IE=Edge
|
103
|
+
- IE=Edge,chrome=1
|
75
104
|
etag:
|
76
|
-
- ! '"
|
105
|
+
- ! '"d4331c07b59009737810e1fa1389c968"'
|
77
106
|
cache-control:
|
78
107
|
- max-age=0, private, must-revalidate
|
108
|
+
set-cookie:
|
109
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg5NzJiZmNiM2ViNjM0YmQ0MThiNGE3YTg1NTM0ZGY3BjsAVA%3D%3D--d1bb27f2206af640c9fc683f395cc61d937c8d8f;
|
110
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
79
111
|
x-request-id:
|
80
|
-
-
|
112
|
+
- 4e90b2d029f13b545d59c8517c6695e6
|
81
113
|
x-runtime:
|
82
|
-
- '0.
|
83
|
-
|
84
|
-
-
|
85
|
-
date:
|
86
|
-
- Tue, 04 Feb 2014 14:52:02 GMT
|
87
|
-
content-length:
|
88
|
-
- '726'
|
89
|
-
connection:
|
90
|
-
- close
|
91
|
-
set-cookie:
|
92
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTU0OTE1MmEyYTI5ZDA3NTc0ZmRkMGYwNWY5ZTdiMzQ0BjsAVA%3D%3D--a30af728f33a39a4c31d6d95957ec77f494dc7b7;
|
93
|
-
path=/; HttpOnly
|
114
|
+
- '0.292190'
|
115
|
+
x-rack-cache:
|
116
|
+
- invalidate, pass
|
94
117
|
body:
|
95
118
|
encoding: US-ASCII
|
96
|
-
string: ! '{"id":
|
97
|
-
|
119
|
+
string: ! '{"id":533,"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":687,"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":"7efbff31b83901384c9be4cb75675389c669b4b6","permalink":"http://ninive-688.sandbox-quadernoapp.com/invoice/7efbff31b83901384c9be4cb75675389c669b4b6","url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/invoices/533.json"}'
|
100
123
|
http_version: '1.1'
|
101
|
-
recorded_at:
|
124
|
+
recorded_at: Fri, 13 Jun 2014 12:29:27 GMT
|
102
125
|
- request:
|
103
126
|
method: delete
|
104
|
-
uri: http://
|
127
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/invoices/533.json
|
105
128
|
body:
|
106
129
|
encoding: US-ASCII
|
107
130
|
string: ''
|
108
131
|
headers:
|
109
132
|
authorization:
|
110
|
-
- Basic
|
133
|
+
- Basic a0FwcHNNZ2dHY3c4cHNVd2RaQlY6
|
111
134
|
response:
|
112
135
|
status:
|
113
136
|
code: 204
|
114
|
-
message:
|
137
|
+
message: No Content
|
115
138
|
headers:
|
139
|
+
server:
|
140
|
+
- nginx/1.4.5
|
141
|
+
date:
|
142
|
+
- Fri, 13 Jun 2014 12:29:28 GMT
|
143
|
+
connection:
|
144
|
+
- close
|
145
|
+
status:
|
146
|
+
- 204 No Content
|
116
147
|
x-ratelimit-limit:
|
117
148
|
- '2000'
|
118
149
|
x-ratelimit-remaining:
|
119
|
-
- '
|
150
|
+
- '1550'
|
120
151
|
x-ua-compatible:
|
121
|
-
- IE=Edge
|
152
|
+
- IE=Edge,chrome=1
|
122
153
|
cache-control:
|
123
154
|
- no-cache
|
155
|
+
set-cookie:
|
156
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTg5ZjM3MzBiNzMzOWY1OWU2YzYxZWRiZDZhODNmZWU1BjsAVA%3D%3D--18b6fd2f7c6f7acb6c6ce7184f09f632eeef290a;
|
157
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
124
158
|
x-request-id:
|
125
|
-
-
|
159
|
+
- ecbc34c1665c925963e597ad0d6b9689
|
126
160
|
x-runtime:
|
127
|
-
- '0.
|
128
|
-
|
129
|
-
-
|
130
|
-
date:
|
131
|
-
- Tue, 04 Feb 2014 14:52:02 GMT
|
132
|
-
connection:
|
133
|
-
- close
|
134
|
-
set-cookie:
|
135
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTgwNTZmOWQzYTE3NDMzZjQ4NmIzYWVjZmJhN2Q3MWZiBjsAVA%3D%3D--d25166caa1dd70547eafa06e8aaa561c4792c645;
|
136
|
-
path=/; HttpOnly
|
161
|
+
- '0.092298'
|
162
|
+
x-rack-cache:
|
163
|
+
- invalidate, pass
|
137
164
|
body:
|
138
165
|
encoding: US-ASCII
|
139
166
|
string: ''
|
140
167
|
http_version: '1.1'
|
141
|
-
recorded_at:
|
142
|
-
recorded_with: VCR 2.
|
168
|
+
recorded_at: Fri, 13 Jun 2014 12:29:28 GMT
|
169
|
+
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/items.json
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: code=000000&name=Test_Skynet&unit_cost=21.0
|
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:46:11 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
|
+
- '1403'
|
23
33
|
x-ua-compatible:
|
24
|
-
- IE=Edge
|
34
|
+
- IE=Edge,chrome=1
|
25
35
|
etag:
|
26
|
-
- ! '"
|
36
|
+
- ! '"bb4c8d72ed38b31290ff17f688164866"'
|
27
37
|
cache-control:
|
28
38
|
- max-age=0, private, must-revalidate
|
39
|
+
set-cookie:
|
40
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTk1MDJkZjVlZjFiMzIxMGMzOTk3Y2IyMTlkOTY4YjdhBjsAVA%3D%3D--75f330020ceb24768015eed8daffd66da3440448;
|
41
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
29
42
|
x-request-id:
|
30
|
-
-
|
43
|
+
- 4eaed6bab5b0aa07dfaacd9d904e306d
|
31
44
|
x-runtime:
|
32
|
-
- '0.
|
33
|
-
|
34
|
-
-
|
35
|
-
date:
|
36
|
-
- Tue, 04 Feb 2014 14:52:20 GMT
|
37
|
-
content-length:
|
38
|
-
- '116'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
set-cookie:
|
42
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWFjOTNlZDA2ZGZjOGNkNGY0NjcwNGIwYzAwMGUxY2ZiBjsAVA%3D%3D--f9f1d28ce2529772f9c808c989cc47ae626206e2;
|
43
|
-
path=/; HttpOnly
|
45
|
+
- '0.132707'
|
46
|
+
x-rack-cache:
|
47
|
+
- invalidate, pass
|
44
48
|
body:
|
45
49
|
encoding: US-ASCII
|
46
|
-
string: ! '{"id":
|
50
|
+
string: ! '{"id":53,"code":"000000","name":"Test_Skynet","unit_cost":"21.0","stock":null,"url":"http://ninive-688.sandbox-quadernoapp.com/api/v1/items/53"}'
|
47
51
|
http_version: '1.1'
|
48
|
-
recorded_at:
|
49
|
-
recorded_with: VCR 2.
|
52
|
+
recorded_at: Fri, 13 Jun 2014 12:46:11 GMT
|
53
|
+
recorded_with: VCR 2.9.2
|
@@ -2,88 +2,96 @@
|
|
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:19 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
|
+
- '1503'
|
23
33
|
x-ua-compatible:
|
24
|
-
- IE=Edge
|
34
|
+
- IE=Edge,chrome=1
|
25
35
|
etag:
|
26
|
-
- ! '"
|
36
|
+
- ! '"a8fe99f431c7f0bd883d4aea34b64d3d"'
|
27
37
|
cache-control:
|
28
38
|
- max-age=0, private, must-revalidate
|
39
|
+
set-cookie:
|
40
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTM0MmIzYTQ1ODk4YzU2MjEyNmZiMjE1MDA4NDIxNjhjBjsAVA%3D%3D--851040dd99e6349b1b1a5ba1d2809819d624bfb5;
|
41
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
29
42
|
x-request-id:
|
30
|
-
-
|
43
|
+
- 771ebb4ecefd2e72847b74dc38bd9ce9
|
31
44
|
x-runtime:
|
32
|
-
- '
|
33
|
-
|
34
|
-
-
|
35
|
-
date:
|
36
|
-
- Tue, 04 Feb 2014 14:53:24 GMT
|
37
|
-
content-length:
|
38
|
-
- '232'
|
39
|
-
connection:
|
40
|
-
- close
|
41
|
-
set-cookie:
|
42
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWNhZDBmNjQyY2E0MzJiOThkNWMxMzVkYzA2NTVjNTM2BjsAVA%3D%3D--239cf66a6f6fd7c509c5609b7876f0de7e953fb9;
|
43
|
-
path=/; HttpOnly
|
45
|
+
- '0.999929'
|
46
|
+
x-rack-cache:
|
47
|
+
- invalidate, pass
|
44
48
|
body:
|
45
49
|
encoding: US-ASCII
|
46
|
-
string: ! '{"id":
|
50
|
+
string: ! '{"id":27,"url":"http://quadernoapp.com","auth_key":"8v50pI3nhe4U4YGEuc5uNA","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2014-06-13T12:34:19Z","updated_at":"2014-06-13T12:34:19Z"}'
|
47
51
|
http_version: '1.1'
|
48
|
-
recorded_at:
|
52
|
+
recorded_at: Fri, 13 Jun 2014 12:34:19 GMT
|
49
53
|
- request:
|
50
54
|
method: delete
|
51
|
-
uri: http://
|
55
|
+
uri: http://kAppsMggGcw8psUwdZBV@sandbox-quadernoapp.com/ninive-688/api/v1/webhooks/27.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: 204
|
61
|
-
message:
|
65
|
+
message: No Content
|
62
66
|
headers:
|
67
|
+
server:
|
68
|
+
- nginx/1.4.5
|
69
|
+
date:
|
70
|
+
- Fri, 13 Jun 2014 12:34:20 GMT
|
71
|
+
connection:
|
72
|
+
- close
|
73
|
+
status:
|
74
|
+
- 204 No Content
|
63
75
|
x-ratelimit-limit:
|
64
76
|
- '2000'
|
65
77
|
x-ratelimit-remaining:
|
66
|
-
- '
|
78
|
+
- '1502'
|
67
79
|
x-ua-compatible:
|
68
|
-
- IE=Edge
|
80
|
+
- IE=Edge,chrome=1
|
69
81
|
cache-control:
|
70
82
|
- no-cache
|
83
|
+
set-cookie:
|
84
|
+
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTRkMzBmMGU2MGQyNTk2MjZjZGZjYzUwZDFjNTQ0MzkyBjsAVA%3D%3D--538fcbd837c8db40ca88a993a8fe2636f0af1d3d;
|
85
|
+
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
71
86
|
x-request-id:
|
72
|
-
-
|
87
|
+
- 2bda026b600416e7cba79a88b270f808
|
73
88
|
x-runtime:
|
74
|
-
- '0.
|
75
|
-
|
76
|
-
-
|
77
|
-
date:
|
78
|
-
- Tue, 04 Feb 2014 14:53:24 GMT
|
79
|
-
connection:
|
80
|
-
- close
|
81
|
-
set-cookie:
|
82
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTA3NWMyNzU1Y2U2YTA5MTMwMmViNmE4MmNmNzBiYmJkBjsAVA%3D%3D--921afbe599493064b3752b3f595fe8ce582f908e;
|
83
|
-
path=/; HttpOnly
|
89
|
+
- '0.091324'
|
90
|
+
x-rack-cache:
|
91
|
+
- invalidate, pass
|
84
92
|
body:
|
85
93
|
encoding: US-ASCII
|
86
94
|
string: ''
|
87
95
|
http_version: '1.1'
|
88
|
-
recorded_at:
|
89
|
-
recorded_with: VCR 2.
|
96
|
+
recorded_at: Fri, 13 Jun 2014 12:34:20 GMT
|
97
|
+
recorded_with: VCR 2.9.2
|