quaderno 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -6
- data/Gemfile.lock +8 -5
- data/README.md +7 -1
- data/VERSION +1 -1
- data/changelog.md +5 -0
- data/lib/quaderno-ruby/behavior/crud.rb +30 -36
- data/lib/quaderno-ruby/behavior/payment.rb +12 -19
- data/lib/quaderno-ruby/behavior/retrieve.rb +20 -0
- data/lib/quaderno-ruby/contact.rb +1 -0
- data/lib/quaderno-ruby/payment.rb +0 -2
- data/lib/quaderno-ruby/tax.rb +3 -3
- data/lib/quaderno-ruby/webhook.rb +0 -2
- data/lib/quaderno-ruby.rb +1 -1
- data/quaderno.gemspec +15 -3
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +295 -31
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +28 -36
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +60 -34
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +2888 -36
- data/test/fixtures/quaderno_cassettes/all_items.yml +22 -27
- data/test/fixtures/quaderno_cassettes/all_receipts.yml +56 -0
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +98 -126
- data/test/fixtures/quaderno_cassettes/calculate_tax.yml +38 -62
- data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +428 -0
- data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +510 -0
- data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +432 -0
- data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +193 -0
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +642 -113
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +385 -120
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +414 -118
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +3249 -120
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +60 -75
- data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +222 -0
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +120 -152
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +76 -89
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +2935 -89
- data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +140 -0
- data/test/fixtures/quaderno_cassettes/found_contact.yml +319 -60
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +53 -69
- data/test/fixtures/quaderno_cassettes/found_expense.yml +121 -65
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +2916 -67
- data/test/fixtures/quaderno_cassettes/found_item.yml +50 -60
- data/test/fixtures/quaderno_cassettes/found_receipt.yml +101 -0
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +60 -76
- data/test/fixtures/quaderno_cassettes/new_contact.yml +22 -29
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +357 -84
- data/test/fixtures/quaderno_cassettes/new_expense.yml +414 -118
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +361 -84
- data/test/fixtures/quaderno_cassettes/new_item.yml +22 -29
- data/test/fixtures/quaderno_cassettes/new_receipt.yml +169 -0
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +38 -50
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +79 -63
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +2907 -65
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +22 -26
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +98 -85
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +2926 -87
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +318 -62
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +402 -116
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +395 -113
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +410 -116
- data/test/fixtures/quaderno_cassettes/updated_item.yml +49 -61
- data/test/fixtures/quaderno_cassettes/updated_receipt.yml +214 -0
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +82 -105
- data/test/fixtures/quaderno_cassettes/wrong_token.yml +11 -25
- data/test/helper.rb +4 -0
- data/test/unit/test_quaderno_contacts.rb +18 -19
- data/test/unit/test_quaderno_estimates.rb +58 -31
- data/test/unit/test_quaderno_expenses.rb +68 -41
- data/test/unit/test_quaderno_invoices.rb +74 -47
- data/test/unit/test_quaderno_items.rb +27 -26
- data/test/unit/test_quaderno_receipts.rb +156 -0
- data/test/unit/test_quaderno_tax.rb +10 -10
- data/test/unit/test_quaderno_webhooks.rb +19 -20
- metadata +14 -2
@@ -1,101 +1,89 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
|
-
method:
|
5
|
-
uri: http://
|
4
|
+
method: post
|
5
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/items.json
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: code=1466681272&name=Test_Skynet&unit_cost=21.0
|
9
9
|
headers:
|
10
|
+
accept:
|
11
|
+
- application/json
|
10
12
|
authorization:
|
11
|
-
- Basic
|
13
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
12
14
|
response:
|
13
15
|
status:
|
14
|
-
code:
|
15
|
-
message:
|
16
|
+
code: 201
|
17
|
+
message: Created
|
16
18
|
headers:
|
17
|
-
|
18
|
-
-
|
19
|
-
date:
|
20
|
-
- Tue, 01 Jul 2014 09:08:06 GMT
|
21
|
-
content-type:
|
22
|
-
- application/json; charset=utf-8
|
23
|
-
transfer-encoding:
|
24
|
-
- chunked
|
25
|
-
connection:
|
26
|
-
- close
|
27
|
-
status:
|
28
|
-
- 200 OK
|
19
|
+
x-frame-options:
|
20
|
+
- ALLOWALL
|
29
21
|
x-ratelimit-limit:
|
30
22
|
- '2000'
|
23
|
+
x-ratelimit-reset:
|
24
|
+
- '1'
|
31
25
|
x-ratelimit-remaining:
|
32
|
-
- '
|
33
|
-
|
34
|
-
-
|
26
|
+
- '87'
|
27
|
+
content-type:
|
28
|
+
- application/json; charset=utf-8
|
35
29
|
etag:
|
36
|
-
-
|
30
|
+
- '"5abf2e3093e0e9f51b17371479e4aaa4"'
|
37
31
|
cache-control:
|
38
|
-
-
|
32
|
+
- max-age=0, private, must-revalidate
|
39
33
|
x-request-id:
|
40
|
-
-
|
34
|
+
- 0c9657cc-ae32-4a00-8375-4edd2ff5453e
|
41
35
|
x-runtime:
|
42
|
-
- '0.
|
43
|
-
|
44
|
-
-
|
36
|
+
- '0.502000'
|
37
|
+
connection:
|
38
|
+
- close
|
39
|
+
server:
|
40
|
+
- thin
|
45
41
|
body:
|
46
|
-
encoding:
|
47
|
-
string:
|
48
|
-
MechaGodzilla 13cm fully posable","unit_cost":"0.0","stock":null,"url":"http://uruk-1066.sandbox-quadernoapp.com/api/v1/items/23942"}]'
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":13,"code":"1466681272","name":"Test_Skynet","unit_cost":"21.0","stock":null,"url":"http://development.lvh.me:3000/api/items/13"}'
|
49
44
|
http_version: '1.1'
|
50
|
-
recorded_at:
|
45
|
+
recorded_at: Thu, 23 Jun 2016 11:27:53 GMT
|
51
46
|
- request:
|
52
47
|
method: put
|
53
|
-
uri: http://
|
48
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/items/13.json
|
54
49
|
body:
|
55
|
-
encoding:
|
50
|
+
encoding: UTF-8
|
56
51
|
string: name=Test_OCP
|
57
52
|
headers:
|
53
|
+
accept:
|
54
|
+
- application/json
|
58
55
|
authorization:
|
59
|
-
- Basic
|
56
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
60
57
|
response:
|
61
58
|
status:
|
62
59
|
code: 200
|
63
60
|
message: OK
|
64
61
|
headers:
|
65
|
-
|
66
|
-
-
|
67
|
-
date:
|
68
|
-
- Tue, 01 Jul 2014 09:08:06 GMT
|
69
|
-
content-type:
|
70
|
-
- application/json; charset=utf-8
|
71
|
-
transfer-encoding:
|
72
|
-
- chunked
|
73
|
-
connection:
|
74
|
-
- close
|
75
|
-
status:
|
76
|
-
- 200 OK
|
62
|
+
x-frame-options:
|
63
|
+
- ALLOWALL
|
77
64
|
x-ratelimit-limit:
|
78
65
|
- '2000'
|
66
|
+
x-ratelimit-reset:
|
67
|
+
- '1'
|
79
68
|
x-ratelimit-remaining:
|
80
|
-
- '
|
81
|
-
|
82
|
-
-
|
69
|
+
- '86'
|
70
|
+
content-type:
|
71
|
+
- application/json; charset=utf-8
|
83
72
|
etag:
|
84
|
-
-
|
73
|
+
- '"31a6dc173c5dd112016d6581ee9dffcc"'
|
85
74
|
cache-control:
|
86
75
|
- max-age=0, private, must-revalidate
|
87
|
-
set-cookie:
|
88
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTI2OGM0MzEyNzVlZjFmNDc4Njk2YTU2OGY3MjU1MzQ4BjsAVA%3D%3D--79aec1bb0e6af290718cd20fd7a2ca127768ea7a;
|
89
|
-
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
90
76
|
x-request-id:
|
91
|
-
-
|
77
|
+
- 5be78239-a128-443f-abb1-387399393c55
|
92
78
|
x-runtime:
|
93
|
-
- '0.
|
94
|
-
|
95
|
-
-
|
79
|
+
- '0.488213'
|
80
|
+
connection:
|
81
|
+
- close
|
82
|
+
server:
|
83
|
+
- thin
|
96
84
|
body:
|
97
|
-
encoding:
|
98
|
-
string:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"id":13,"code":"1466681272","name":"Test_OCP","unit_cost":"21.0","stock":null,"url":"http://development.lvh.me:3000/api/items/13"}'
|
99
87
|
http_version: '1.1'
|
100
|
-
recorded_at:
|
88
|
+
recorded_at: Thu, 23 Jun 2016 11:27:53 GMT
|
101
89
|
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,214 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: first_name=Test%20customer
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- application/json
|
12
|
+
authorization:
|
13
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 201
|
17
|
+
message: Created
|
18
|
+
headers:
|
19
|
+
x-frame-options:
|
20
|
+
- ALLOWALL
|
21
|
+
x-ratelimit-limit:
|
22
|
+
- '2000'
|
23
|
+
x-ratelimit-reset:
|
24
|
+
- '8'
|
25
|
+
x-ratelimit-remaining:
|
26
|
+
- '93'
|
27
|
+
content-type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
etag:
|
30
|
+
- '"c111daa3651e62fbf7a733420693ef10"'
|
31
|
+
cache-control:
|
32
|
+
- max-age=0, private, must-revalidate
|
33
|
+
x-request-id:
|
34
|
+
- 174f76e6-80f9-4920-b7b6-cbec9fae6b9b
|
35
|
+
x-runtime:
|
36
|
+
- '0.615812'
|
37
|
+
connection:
|
38
|
+
- close
|
39
|
+
server:
|
40
|
+
- thin
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":91,"kind":"company","created_at":1466681297,"full_name":"Test
|
44
|
+
customer","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":null,"web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"a36c8e2608ce94ac2c6ddc156ef06c2606688c2a","permalink":"http://development.lvh.me:3000/billing/a36c8e2608ce94ac2c6ddc156ef06c2606688c2a","url":"http://development.lvh.me:3000/api/contacts/91"}'
|
45
|
+
http_version: '1.1'
|
46
|
+
recorded_at: Thu, 23 Jun 2016 11:28:17 GMT
|
47
|
+
- request:
|
48
|
+
method: post
|
49
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts.json
|
50
|
+
body:
|
51
|
+
encoding: UTF-8
|
52
|
+
string: contact_id=91¤cy=EUR&items_attributes[][description]=Aircraft&items_attributes[][quantity]=1.0&items_attributes[][unit_price]=0.0&tags=tnt&payment_method=cash¬es=
|
53
|
+
headers:
|
54
|
+
accept:
|
55
|
+
- application/json
|
56
|
+
authorization:
|
57
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 201
|
61
|
+
message: Created
|
62
|
+
headers:
|
63
|
+
x-frame-options:
|
64
|
+
- ALLOWALL
|
65
|
+
x-ratelimit-limit:
|
66
|
+
- '2000'
|
67
|
+
x-ratelimit-reset:
|
68
|
+
- '8'
|
69
|
+
x-ratelimit-remaining:
|
70
|
+
- '92'
|
71
|
+
content-type:
|
72
|
+
- application/json; charset=utf-8
|
73
|
+
etag:
|
74
|
+
- '"3b8daf2008cf6060bc69ab9984d4d453"'
|
75
|
+
cache-control:
|
76
|
+
- max-age=0, private, must-revalidate
|
77
|
+
x-request-id:
|
78
|
+
- 85a4a288-fba4-493a-ac81-56f7c8c78cab
|
79
|
+
x-runtime:
|
80
|
+
- '4.289370'
|
81
|
+
connection:
|
82
|
+
- close
|
83
|
+
server:
|
84
|
+
- thin
|
85
|
+
body:
|
86
|
+
encoding: UTF-8
|
87
|
+
string: '{"id":1072,"number":"0000006","issue_date":"2016-06-23","created_at":1466681297,"contact":{"id":91,"full_name":"Test
|
88
|
+
customer"},"street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","exchange_rate":"1.9558","items":[{"id":3091,"description":"Aircraft","quantity":"1.0","unit_price_cents":"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_cents":"0.0","discount_cents":"0.0","gross_amount_cents":"0.0"}],"subtotal_cents":"0.0","discount_cents":"0.0","taxes":[],"payments":[{"id":35,"date":"2016-06-23","payment_method":"cash","amount_cents":0}],"notes":null,"state":"paid","tag_list":[],"secure_id":"fb58b3334e527c7dd485fb9aa9e19804e6856c7a","permalink":"http://development.lvh.me:3000/receipt/fb58b3334e527c7dd485fb9aa9e19804e6856c7a","pdf":"http://development.lvh.me:3000/receipt/fb58b3334e527c7dd485fb9aa9e19804e6856c7a.pdf","url":"http://development.lvh.me:3000/api/receipts/1072.json","processor":null,"processor_id":null}'
|
89
|
+
http_version: '1.1'
|
90
|
+
recorded_at: Thu, 23 Jun 2016 11:28:21 GMT
|
91
|
+
- request:
|
92
|
+
method: put
|
93
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts/1072.json
|
94
|
+
body:
|
95
|
+
encoding: UTF-8
|
96
|
+
string: notes=Show%20me%20the%20moneeeeeeeyy!!!!
|
97
|
+
headers:
|
98
|
+
accept:
|
99
|
+
- application/json
|
100
|
+
authorization:
|
101
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
102
|
+
response:
|
103
|
+
status:
|
104
|
+
code: 200
|
105
|
+
message: OK
|
106
|
+
headers:
|
107
|
+
x-frame-options:
|
108
|
+
- ALLOWALL
|
109
|
+
x-ratelimit-limit:
|
110
|
+
- '2000'
|
111
|
+
x-ratelimit-reset:
|
112
|
+
- '3'
|
113
|
+
x-ratelimit-remaining:
|
114
|
+
- '91'
|
115
|
+
content-type:
|
116
|
+
- application/json; charset=utf-8
|
117
|
+
etag:
|
118
|
+
- '"7f8dc9cee20404c7cd8cd3b3f68615b9"'
|
119
|
+
cache-control:
|
120
|
+
- max-age=0, private, must-revalidate
|
121
|
+
x-request-id:
|
122
|
+
- 367a989c-946d-4d5f-8c09-166b7e68261c
|
123
|
+
x-runtime:
|
124
|
+
- '0.804763'
|
125
|
+
connection:
|
126
|
+
- close
|
127
|
+
server:
|
128
|
+
- thin
|
129
|
+
body:
|
130
|
+
encoding: UTF-8
|
131
|
+
string: '{"id":1072,"number":"0000006","issue_date":"2016-06-23","created_at":1466681297,"contact":{"id":91,"full_name":"Test
|
132
|
+
customer"},"street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","exchange_rate":"1.9558","items":[{"id":3091,"description":"Aircraft","quantity":"1.0","unit_price_cents":"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_cents":"0.0","discount_cents":"0.0","gross_amount_cents":"0.0"}],"subtotal_cents":"0.0","discount_cents":"0.0","taxes":[],"payments":[{"id":35,"date":"2016-06-23","payment_method":"cash","amount_cents":0}],"notes":"Show
|
133
|
+
me the moneeeeeeeyy!!!!","state":"paid","tag_list":[],"secure_id":"fb58b3334e527c7dd485fb9aa9e19804e6856c7a","permalink":"http://development.lvh.me:3000/receipt/fb58b3334e527c7dd485fb9aa9e19804e6856c7a","pdf":"http://development.lvh.me:3000/receipt/fb58b3334e527c7dd485fb9aa9e19804e6856c7a.pdf","url":"http://development.lvh.me:3000/api/receipts/1072.json","processor":null,"processor_id":null}'
|
134
|
+
http_version: '1.1'
|
135
|
+
recorded_at: Thu, 23 Jun 2016 11:28:22 GMT
|
136
|
+
- request:
|
137
|
+
method: delete
|
138
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts/1072.json
|
139
|
+
body:
|
140
|
+
encoding: US-ASCII
|
141
|
+
string: ''
|
142
|
+
headers:
|
143
|
+
accept:
|
144
|
+
- application/json
|
145
|
+
authorization:
|
146
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
147
|
+
response:
|
148
|
+
status:
|
149
|
+
code: 204
|
150
|
+
message: No Content
|
151
|
+
headers:
|
152
|
+
x-frame-options:
|
153
|
+
- ALLOWALL
|
154
|
+
x-ratelimit-limit:
|
155
|
+
- '2000'
|
156
|
+
x-ratelimit-reset:
|
157
|
+
- '2'
|
158
|
+
x-ratelimit-remaining:
|
159
|
+
- '90'
|
160
|
+
cache-control:
|
161
|
+
- no-cache
|
162
|
+
x-request-id:
|
163
|
+
- 9208eb39-1b9b-44dc-902e-530484a41e50
|
164
|
+
x-runtime:
|
165
|
+
- '0.597983'
|
166
|
+
connection:
|
167
|
+
- close
|
168
|
+
server:
|
169
|
+
- thin
|
170
|
+
body:
|
171
|
+
encoding: US-ASCII
|
172
|
+
string: ''
|
173
|
+
http_version: '1.1'
|
174
|
+
recorded_at: Thu, 23 Jun 2016 11:28:23 GMT
|
175
|
+
- request:
|
176
|
+
method: delete
|
177
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts/91.json
|
178
|
+
body:
|
179
|
+
encoding: US-ASCII
|
180
|
+
string: ''
|
181
|
+
headers:
|
182
|
+
accept:
|
183
|
+
- application/json
|
184
|
+
authorization:
|
185
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
186
|
+
response:
|
187
|
+
status:
|
188
|
+
code: 204
|
189
|
+
message: No Content
|
190
|
+
headers:
|
191
|
+
x-frame-options:
|
192
|
+
- ALLOWALL
|
193
|
+
x-ratelimit-limit:
|
194
|
+
- '2000'
|
195
|
+
x-ratelimit-reset:
|
196
|
+
- '2'
|
197
|
+
x-ratelimit-remaining:
|
198
|
+
- '89'
|
199
|
+
cache-control:
|
200
|
+
- no-cache
|
201
|
+
x-request-id:
|
202
|
+
- c3a29402-d140-448a-be42-e4b0ad2f008f
|
203
|
+
x-runtime:
|
204
|
+
- '0.421027'
|
205
|
+
connection:
|
206
|
+
- close
|
207
|
+
server:
|
208
|
+
- thin
|
209
|
+
body:
|
210
|
+
encoding: US-ASCII
|
211
|
+
string: ''
|
212
|
+
http_version: '1.1'
|
213
|
+
recorded_at: Thu, 23 Jun 2016 11:28:23 GMT
|
214
|
+
recorded_with: VCR 2.9.2
|
@@ -2,193 +2,170 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
|
6
6
|
body:
|
7
|
-
encoding:
|
7
|
+
encoding: UTF-8
|
8
8
|
string: url=http%3A%2F%2Fquadernoapp.com&events_types[]=invoice.created&events_types[]=expense.updated
|
9
9
|
headers:
|
10
|
+
accept:
|
11
|
+
- application/json
|
10
12
|
authorization:
|
11
|
-
- Basic
|
13
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
12
14
|
response:
|
13
15
|
status:
|
14
16
|
code: 201
|
15
17
|
message: Created
|
16
18
|
headers:
|
17
|
-
|
18
|
-
-
|
19
|
-
date:
|
20
|
-
- Tue, 01 Jul 2014 09:08:33 GMT
|
21
|
-
content-type:
|
22
|
-
- application/json; charset=utf-8
|
23
|
-
transfer-encoding:
|
24
|
-
- chunked
|
25
|
-
connection:
|
26
|
-
- close
|
27
|
-
status:
|
28
|
-
- 201 Created
|
19
|
+
x-frame-options:
|
20
|
+
- ALLOWALL
|
29
21
|
x-ratelimit-limit:
|
30
22
|
- '2000'
|
23
|
+
x-ratelimit-reset:
|
24
|
+
- '13'
|
31
25
|
x-ratelimit-remaining:
|
32
|
-
- '
|
33
|
-
|
34
|
-
-
|
26
|
+
- '97'
|
27
|
+
content-type:
|
28
|
+
- application/json; charset=utf-8
|
35
29
|
etag:
|
36
|
-
-
|
30
|
+
- '"6b237dc215b1a3130a0d968ff98ec5fb"'
|
37
31
|
cache-control:
|
38
32
|
- max-age=0, private, must-revalidate
|
39
|
-
set-cookie:
|
40
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWI0ZGY3OWE5NDNmMDgxNDZiNjQ4ZTJkZDVlOGEwMDYwBjsAVA%3D%3D--be4ef828c4fb2655ed7e9a665eb15f0b2d01fe39;
|
41
|
-
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
42
33
|
x-request-id:
|
43
|
-
-
|
34
|
+
- f6e6998d-d2c0-4251-8409-0c88e15b136c
|
44
35
|
x-runtime:
|
45
|
-
- '
|
46
|
-
|
47
|
-
-
|
36
|
+
- '15.033065'
|
37
|
+
connection:
|
38
|
+
- close
|
39
|
+
server:
|
40
|
+
- thin
|
48
41
|
body:
|
49
|
-
encoding:
|
50
|
-
string:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"id":35,"url":"http://quadernoapp.com","auth_key":"qKa3Ok0WZgvldD5FjRpb0A","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2016-06-23T11:29:54.649Z","updated_at":"2016-06-23T11:29:54.649Z"}'
|
51
44
|
http_version: '1.1'
|
52
|
-
recorded_at:
|
45
|
+
recorded_at: Thu, 23 Jun 2016 11:29:54 GMT
|
53
46
|
- request:
|
54
47
|
method: get
|
55
|
-
uri: http://
|
48
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
|
56
49
|
body:
|
57
50
|
encoding: US-ASCII
|
58
51
|
string: ''
|
59
52
|
headers:
|
53
|
+
accept:
|
54
|
+
- application/json
|
60
55
|
authorization:
|
61
|
-
- Basic
|
56
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
62
57
|
response:
|
63
58
|
status:
|
64
59
|
code: 200
|
65
60
|
message: OK
|
66
61
|
headers:
|
67
|
-
|
68
|
-
-
|
69
|
-
date:
|
70
|
-
- Tue, 01 Jul 2014 09:08:33 GMT
|
71
|
-
content-type:
|
72
|
-
- application/json; charset=utf-8
|
73
|
-
transfer-encoding:
|
74
|
-
- chunked
|
75
|
-
connection:
|
76
|
-
- close
|
77
|
-
status:
|
78
|
-
- 200 OK
|
62
|
+
x-frame-options:
|
63
|
+
- ALLOWALL
|
79
64
|
x-ratelimit-limit:
|
80
65
|
- '2000'
|
66
|
+
x-ratelimit-reset:
|
67
|
+
- '15'
|
81
68
|
x-ratelimit-remaining:
|
82
|
-
- '
|
83
|
-
|
84
|
-
-
|
69
|
+
- '100'
|
70
|
+
content-type:
|
71
|
+
- application/json; charset=utf-8
|
85
72
|
etag:
|
86
|
-
-
|
73
|
+
- '"8b9ae2f8d987168201324f5263607c2f"'
|
87
74
|
cache-control:
|
88
|
-
-
|
75
|
+
- max-age=0, private, must-revalidate
|
89
76
|
x-request-id:
|
90
|
-
-
|
77
|
+
- 0bcd7271-9436-4d6e-8d22-37f0f5a705e6
|
91
78
|
x-runtime:
|
92
|
-
- '0.
|
93
|
-
|
94
|
-
-
|
79
|
+
- '0.528242'
|
80
|
+
connection:
|
81
|
+
- close
|
82
|
+
server:
|
83
|
+
- thin
|
95
84
|
body:
|
96
|
-
encoding:
|
97
|
-
string:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '[{"id":35,"url":"http://quadernoapp.com","auth_key":"qKa3Ok0WZgvldD5FjRpb0A","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2016-06-23T11:29:54.000Z","updated_at":"2016-06-23T11:29:54.000Z"}]'
|
98
87
|
http_version: '1.1'
|
99
|
-
recorded_at:
|
88
|
+
recorded_at: Thu, 23 Jun 2016 11:29:55 GMT
|
100
89
|
- request:
|
101
90
|
method: put
|
102
|
-
uri: http://
|
91
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/35.json
|
103
92
|
body:
|
104
|
-
encoding:
|
93
|
+
encoding: UTF-8
|
105
94
|
string: events_types[]=invoice.created&events_types[]=invoice.updated&events_types[]=contact.deleted
|
106
95
|
headers:
|
96
|
+
accept:
|
97
|
+
- application/json
|
107
98
|
authorization:
|
108
|
-
- Basic
|
99
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
109
100
|
response:
|
110
101
|
status:
|
111
102
|
code: 200
|
112
103
|
message: OK
|
113
104
|
headers:
|
114
|
-
|
115
|
-
-
|
116
|
-
date:
|
117
|
-
- Tue, 01 Jul 2014 09:08:34 GMT
|
118
|
-
content-type:
|
119
|
-
- application/json; charset=utf-8
|
120
|
-
transfer-encoding:
|
121
|
-
- chunked
|
122
|
-
connection:
|
123
|
-
- close
|
124
|
-
status:
|
125
|
-
- 200 OK
|
105
|
+
x-frame-options:
|
106
|
+
- ALLOWALL
|
126
107
|
x-ratelimit-limit:
|
127
108
|
- '2000'
|
109
|
+
x-ratelimit-reset:
|
110
|
+
- '15'
|
128
111
|
x-ratelimit-remaining:
|
129
|
-
- '
|
130
|
-
|
131
|
-
-
|
112
|
+
- '99'
|
113
|
+
content-type:
|
114
|
+
- application/json; charset=utf-8
|
132
115
|
etag:
|
133
|
-
-
|
116
|
+
- '"a66bc2099cc6f3d83bb3ac760725fbf5"'
|
134
117
|
cache-control:
|
135
118
|
- max-age=0, private, must-revalidate
|
136
|
-
set-cookie:
|
137
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJWE4N2I2NDliYjEzY2M5MDU5ODMyYjhhOTU5NTVhNjg5BjsAVA%3D%3D--b4dec65624fe8c73247cd545b4d7a8c2d5a10943;
|
138
|
-
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
139
119
|
x-request-id:
|
140
|
-
-
|
120
|
+
- 3ddf7610-0bbc-4cad-bcc5-77be1e5995a2
|
141
121
|
x-runtime:
|
142
|
-
- '
|
143
|
-
|
144
|
-
-
|
122
|
+
- '10.841410'
|
123
|
+
connection:
|
124
|
+
- close
|
125
|
+
server:
|
126
|
+
- thin
|
145
127
|
body:
|
146
|
-
encoding:
|
147
|
-
string:
|
128
|
+
encoding: UTF-8
|
129
|
+
string: '{"id":35,"url":"http://quadernoapp.com","auth_key":"qKa3Ok0WZgvldD5FjRpb0A","events_types":["invoice.created","invoice.updated","contact.deleted"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2016-06-23T11:29:54.000Z","updated_at":"2016-06-23T11:30:06.066Z"}'
|
148
130
|
http_version: '1.1'
|
149
|
-
recorded_at:
|
131
|
+
recorded_at: Thu, 23 Jun 2016 11:30:06 GMT
|
150
132
|
- request:
|
151
133
|
method: delete
|
152
|
-
uri: http://
|
134
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/35.json
|
153
135
|
body:
|
154
136
|
encoding: US-ASCII
|
155
137
|
string: ''
|
156
138
|
headers:
|
139
|
+
accept:
|
140
|
+
- application/json
|
157
141
|
authorization:
|
158
|
-
- Basic
|
142
|
+
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
159
143
|
response:
|
160
144
|
status:
|
161
145
|
code: 204
|
162
146
|
message: No Content
|
163
147
|
headers:
|
164
|
-
|
165
|
-
-
|
166
|
-
date:
|
167
|
-
- Tue, 01 Jul 2014 09:08:35 GMT
|
168
|
-
connection:
|
169
|
-
- close
|
170
|
-
status:
|
171
|
-
- 204 No Content
|
148
|
+
x-frame-options:
|
149
|
+
- ALLOWALL
|
172
150
|
x-ratelimit-limit:
|
173
151
|
- '2000'
|
152
|
+
x-ratelimit-reset:
|
153
|
+
- '4'
|
174
154
|
x-ratelimit-remaining:
|
175
|
-
- '
|
176
|
-
x-ua-compatible:
|
177
|
-
- IE=Edge,chrome=1
|
155
|
+
- '98'
|
178
156
|
cache-control:
|
179
157
|
- no-cache
|
180
|
-
set-cookie:
|
181
|
-
- _quaderno_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFVEkiJTBiN2FlMzIwMTc2MGNjMzkyZjI0NWVlNWEwMDhlZmZjBjsAVA%3D%3D--0230346b648db9d8759a0e2351508c36cd3bfe2d;
|
182
|
-
domain=sandbox-quadernoapp.com; path=/; HttpOnly
|
183
158
|
x-request-id:
|
184
|
-
-
|
159
|
+
- 0b4c8dbe-a204-4b87-9aed-6226b4dcc4a9
|
185
160
|
x-runtime:
|
186
|
-
- '0.
|
187
|
-
|
188
|
-
-
|
161
|
+
- '0.358537'
|
162
|
+
connection:
|
163
|
+
- close
|
164
|
+
server:
|
165
|
+
- thin
|
189
166
|
body:
|
190
167
|
encoding: US-ASCII
|
191
168
|
string: ''
|
192
169
|
http_version: '1.1'
|
193
|
-
recorded_at:
|
170
|
+
recorded_at: Thu, 23 Jun 2016 11:30:06 GMT
|
194
171
|
recorded_with: VCR 2.9.2
|