quaderno 1.11.2 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +53 -1
- data/VERSION +1 -1
- data/changelog.md +3 -0
- data/lib/quaderno-ruby/base.rb +12 -2
- data/lib/quaderno-ruby/behavior/crud.rb +56 -11
- data/lib/quaderno-ruby/behavior/deliver.rb +10 -2
- data/lib/quaderno-ruby/behavior/payment.rb +23 -4
- data/lib/quaderno-ruby/behavior/retrieve.rb +11 -2
- data/lib/quaderno-ruby/collection.rb +22 -0
- data/lib/quaderno-ruby/helpers/authentication.rb +26 -0
- data/lib/quaderno-ruby.rb +4 -1
- data/quaderno.gemspec +16 -5
- data/test/fixtures/quaderno_cassettes/all_contacts.yml +11 -282
- data/test/fixtures/quaderno_cassettes/all_contacts_by_access_token.yml +56 -0
- data/test/fixtures/quaderno_cassettes/all_contacts_by_authentication_token.yml +57 -0
- data/test/fixtures/quaderno_cassettes/all_estimates.yml +10 -14
- data/test/fixtures/quaderno_cassettes/all_expenses.yml +14 -47
- data/test/fixtures/quaderno_cassettes/all_invoices.yml +13 -2873
- data/test/fixtures/quaderno_cassettes/all_items.yml +8 -8
- data/test/fixtures/quaderno_cassettes/all_receipts.yml +11 -14
- data/test/fixtures/quaderno_cassettes/all_webhooks.yml +40 -36
- data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +46 -318
- data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +125 -357
- data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +45 -318
- data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +56 -53
- data/test/fixtures/quaderno_cassettes/deleted_contact.yml +40 -592
- data/test/fixtures/quaderno_cassettes/deleted_contact_by_access_token.yml +199 -0
- data/test/fixtures/quaderno_cassettes/deleted_contact_by_authentication_token.yml +199 -0
- data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +40 -334
- data/test/fixtures/quaderno_cassettes/deleted_expense.yml +43 -364
- data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +44 -3199
- data/test/fixtures/quaderno_cassettes/deleted_item.yml +22 -22
- data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +43 -42
- data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +48 -44
- data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +25 -32
- data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +29 -2888
- data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +29 -29
- data/test/fixtures/quaderno_cassettes/evidence_invoice.yml +19 -354
- data/test/fixtures/quaderno_cassettes/found_contact.yml +19 -291
- data/test/fixtures/quaderno_cassettes/found_contact_by_access_token.yml +99 -0
- data/test/fixtures/quaderno_cassettes/found_contact_by_authentication_token.yml +100 -0
- data/test/fixtures/quaderno_cassettes/found_estimate.yml +20 -24
- data/test/fixtures/quaderno_cassettes/found_expense.yml +24 -94
- data/test/fixtures/quaderno_cassettes/found_invoice.yml +22 -2886
- data/test/fixtures/quaderno_cassettes/found_item.yml +18 -16
- data/test/fixtures/quaderno_cassettes/found_receipt.yml +21 -24
- data/test/fixtures/quaderno_cassettes/found_webhook.yml +24 -22
- data/test/fixtures/quaderno_cassettes/new_contact.yml +9 -7
- data/test/fixtures/quaderno_cassettes/new_contact_by_access_token.yml +48 -0
- data/test/fixtures/quaderno_cassettes/new_contact_by_authentication_token.yml +48 -0
- data/test/fixtures/quaderno_cassettes/new_estimate.yml +29 -320
- data/test/fixtures/quaderno_cassettes/new_evidence.yml +10 -8
- data/test/fixtures/quaderno_cassettes/new_expense.yml +42 -363
- data/test/fixtures/quaderno_cassettes/new_invoice.yml +29 -324
- data/test/fixtures/quaderno_cassettes/new_item.yml +10 -8
- data/test/fixtures/quaderno_cassettes/new_receipt.yml +28 -24
- data/test/fixtures/quaderno_cassettes/new_webhook.yml +16 -14
- data/test/fixtures/quaderno_cassettes/paid_expense.yml +22 -52
- data/test/fixtures/quaderno_cassettes/paid_invoice.yml +22 -2879
- data/test/fixtures/quaderno_cassettes/rate_limit.yml +5 -5
- data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +29 -61
- data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +28 -2888
- data/test/fixtures/quaderno_cassettes/updated_contact.yml +22 -292
- data/test/fixtures/quaderno_cassettes/updated_contact_by_access_token.yml +101 -0
- data/test/fixtures/quaderno_cassettes/updated_contact_by_authentication_token.yml +102 -0
- data/test/fixtures/quaderno_cassettes/updated_estimate.yml +44 -353
- data/test/fixtures/quaderno_cassettes/updated_expense.yml +43 -346
- data/test/fixtures/quaderno_cassettes/updated_invoice.yml +43 -361
- data/test/fixtures/quaderno_cassettes/updated_item.yml +21 -17
- data/test/fixtures/quaderno_cassettes/updated_receipt.yml +47 -41
- data/test/fixtures/quaderno_cassettes/updated_webhook.yml +35 -31
- data/test/helper.rb +2 -1
- data/test/unit/test_quaderno_contacts.rb +1 -1
- data/test/unit/test_quaderno_contacts_thread_safe.rb +104 -0
- data/test/unit/test_quaderno_expenses.rb +5 -5
- metadata +15 -4
- data/test/fixtures/quaderno_cassettes/calculate_tax.yml +0 -85
- data/test/fixtures/quaderno_cassettes/wrong_token.yml +0 -36
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/items.json
|
5
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/items.json?
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,26 +21,26 @@ http_interactions:
|
|
21
21
|
x-ratelimit-limit:
|
22
22
|
- '2000'
|
23
23
|
x-ratelimit-reset:
|
24
|
-
- '
|
24
|
+
- '8'
|
25
25
|
x-ratelimit-remaining:
|
26
|
-
- '
|
26
|
+
- '94'
|
27
27
|
content-type:
|
28
28
|
- application/json; charset=utf-8
|
29
29
|
etag:
|
30
|
-
- '"
|
30
|
+
- '"a6d2a32ceeb05fdd7e0c640a2bd32a49"'
|
31
31
|
cache-control:
|
32
32
|
- max-age=0, private, must-revalidate
|
33
33
|
x-request-id:
|
34
|
-
-
|
34
|
+
- dbf86c8c-3405-4474-ae51-d9bc813b1659
|
35
35
|
x-runtime:
|
36
|
-
- '
|
36
|
+
- '1.009755'
|
37
37
|
connection:
|
38
38
|
- close
|
39
39
|
server:
|
40
40
|
- thin
|
41
41
|
body:
|
42
42
|
encoding: UTF-8
|
43
|
-
string: '[{"id":
|
43
|
+
string: '[{"id":1,"code":"12345","name":"6","unit_cost":"10.0","stock":null,"tax_class":"standard","url":"http://development.lvh.me:3000/api/items/1"},{"id":3,"code":"1497267937","name":"Test_Skynet","unit_cost":"21.0","stock":null,"tax_class":"eservice","url":"http://development.lvh.me:3000/api/items/3"}]'
|
44
44
|
http_version: '1.1'
|
45
|
-
recorded_at:
|
45
|
+
recorded_at: Mon, 12 Jun 2017 11:45:40 GMT
|
46
46
|
recorded_with: VCR 2.9.2
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts.json
|
5
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts.json?
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -21,9 +21,9 @@ http_interactions:
|
|
21
21
|
x-ratelimit-limit:
|
22
22
|
- '2000'
|
23
23
|
x-ratelimit-reset:
|
24
|
-
- '
|
24
|
+
- '4'
|
25
25
|
x-ratelimit-remaining:
|
26
|
-
- '
|
26
|
+
- '92'
|
27
27
|
x-pages-currentpage:
|
28
28
|
- '1'
|
29
29
|
x-pages-totalpages:
|
@@ -31,26 +31,23 @@ http_interactions:
|
|
31
31
|
content-type:
|
32
32
|
- application/json; charset=utf-8
|
33
33
|
etag:
|
34
|
-
- '"
|
34
|
+
- '"2fbe5b66d01a5d67afd7be37b64c395a"'
|
35
35
|
cache-control:
|
36
36
|
- max-age=0, private, must-revalidate
|
37
37
|
x-request-id:
|
38
|
-
-
|
38
|
+
- 6e153524-3400-4e16-be33-08765cf43286
|
39
39
|
x-runtime:
|
40
|
-
- '
|
40
|
+
- '1.878753'
|
41
41
|
connection:
|
42
42
|
- close
|
43
43
|
server:
|
44
44
|
- thin
|
45
45
|
body:
|
46
46
|
encoding: UTF-8
|
47
|
-
string: '[{"id":
|
48
|
-
|
49
|
-
|
50
|
-
customer"},"street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","
|
51
|
-
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":3073,"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":25,"date":"2016-06-23","payment_method":"cash","amount_cents":0}],"notes":null,"state":"paid","tag_list":[],"secure_id":"80ff611baa512d72f5132b28feacce20997adb4e","permalink":"http://development.lvh.me:3000/receipt/80ff611baa512d72f5132b28feacce20997adb4e","pdf":"http://development.lvh.me:3000/receipt/80ff611baa512d72f5132b28feacce20997adb4e.pdf","url":"http://development.lvh.me:3000/api/receipts/1054.json","processor":null,"processor_id":null},{"id":985,"number":"0000002","issue_date":"2016-06-01","created_at":1464785121,"contact":{"id":56,"full_name":"William
|
52
|
-
Tell"},"street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","exchange_rate":"1.0","items":[{"id":991,"description":"Something","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":4,"date":"2016-06-01","payment_method":"credit_card","amount_cents":0}],"notes":null,"state":"invoiced","tag_list":[],"secure_id":"885fc61e0b83f9d507fcbb6fa9495ba0dcc31d96","permalink":"http://development.lvh.me:3000/receipt/885fc61e0b83f9d507fcbb6fa9495ba0dcc31d96","pdf":"http://development.lvh.me:3000/receipt/885fc61e0b83f9d507fcbb6fa9495ba0dcc31d96.pdf","url":"http://development.lvh.me:3000/api/receipts/985.json","processor":null,"processor_id":null},{"id":983,"number":"0000001","issue_date":"2016-05-30","created_at":1464785067,"contact":{"id":52,"full_name":"A.
|
53
|
-
Lucas Mayoral"},"street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","exchange_rate":"1.0","items":[{"id":989,"description":"Something","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":2,"date":"2016-05-30","payment_method":"credit_card","amount_cents":0}],"notes":null,"state":"invoiced","tag_list":[],"secure_id":"9d00a9c881965f04758c4d5627c38cc8d4182713","permalink":"http://development.lvh.me:3000/receipt/9d00a9c881965f04758c4d5627c38cc8d4182713","pdf":"http://development.lvh.me:3000/receipt/9d00a9c881965f04758c4d5627c38cc8d4182713.pdf","url":"http://development.lvh.me:3000/api/receipts/983.json","processor":null,"processor_id":null}]'
|
47
|
+
string: '[{"id":200,"blocked":false,"number":"0002","issue_date":"2017-06-12","created_at":1497268132,"contact":{"id":44,"full_name":"Albus
|
48
|
+
Dumbledoge"},"country":"BE","street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","subject":null,"items":[{"id":201,"description":"Hey,
|
49
|
+
Liste!","quantity":"1.0","unit_price_cents":"1000.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":"1000.0","discount_cents":"0.0","gross_amount_cents":"1000.0"}],"subtotal_cents":"1000.0","discount_cents":"0.0","taxes":[],"payments":[{"id":50,"date":"2017-06-12","payment_method":"other","amount_cents":1000}],"notes":null,"state":"paid","tag_list":[],"secure_id":"64649b40d7fc4bcc0b1a0493b87fa030789235d4","permalink":"http://development.lvh.me:3000/receipt/64649b40d7fc4bcc0b1a0493b87fa030789235d4","pdf":"http://development.lvh.me:3000/receipt/64649b40d7fc4bcc0b1a0493b87fa030789235d4.pdf","url":"http://development.lvh.me:3000/api/receipts/200.json","processor":null,"processor_id":null,"custom_metadata":{}},{"id":199,"blocked":false,"number":"0001","issue_date":"2017-06-12","created_at":1497267995,"contact":{"id":50,"full_name":"Test
|
50
|
+
customer"},"country":"ES","street_line_1":null,"street_line_2":null,"city":null,"region":null,"postal_code":null,"po_number":null,"currency":"EUR","subject":null,"items":[{"id":200,"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":49,"date":"2017-06-12","payment_method":"cash","amount_cents":0}],"notes":null,"state":"paid","tag_list":[],"secure_id":"f62c1beb598394e6072fa18af8a3eed0ba05833b","permalink":"http://development.lvh.me:3000/receipt/f62c1beb598394e6072fa18af8a3eed0ba05833b","pdf":"http://development.lvh.me:3000/receipt/f62c1beb598394e6072fa18af8a3eed0ba05833b.pdf","url":"http://development.lvh.me:3000/api/receipts/199.json","processor":null,"processor_id":null,"custom_metadata":{}}]'
|
54
51
|
http_version: '1.1'
|
55
|
-
recorded_at:
|
52
|
+
recorded_at: Mon, 12 Jun 2017 11:49:38 GMT
|
56
53
|
recorded_with: VCR 2.9.2
|
@@ -5,10 +5,12 @@ http_interactions:
|
|
5
5
|
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: url
|
8
|
+
string: '{"url":"http://google.com","events_types":["invoice.created","invoice.updated"]}'
|
9
9
|
headers:
|
10
10
|
accept:
|
11
11
|
- application/json
|
12
|
+
content-type:
|
13
|
+
- application/json
|
12
14
|
authorization:
|
13
15
|
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
14
16
|
response:
|
@@ -21,37 +23,39 @@ http_interactions:
|
|
21
23
|
x-ratelimit-limit:
|
22
24
|
- '2000'
|
23
25
|
x-ratelimit-reset:
|
24
|
-
- '
|
26
|
+
- '14'
|
25
27
|
x-ratelimit-remaining:
|
26
|
-
- '
|
28
|
+
- '98'
|
27
29
|
content-type:
|
28
30
|
- application/json; charset=utf-8
|
29
31
|
etag:
|
30
|
-
- '"
|
32
|
+
- '"4da7abb71bbd56b1a1a92b5cf3b53926"'
|
31
33
|
cache-control:
|
32
34
|
- max-age=0, private, must-revalidate
|
33
35
|
x-request-id:
|
34
|
-
-
|
36
|
+
- 74e7c500-bc67-47bd-be2f-2732587a3da2
|
35
37
|
x-runtime:
|
36
|
-
- '
|
38
|
+
- '1.287195'
|
37
39
|
connection:
|
38
40
|
- close
|
39
41
|
server:
|
40
42
|
- thin
|
41
43
|
body:
|
42
44
|
encoding: UTF-8
|
43
|
-
string: '{"id":
|
45
|
+
string: '{"id":6,"url":"http://google.com","auth_key":"ETE71RWTFL_cCSsRjvoM1g","events_types":["invoice.created","invoice.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:25.772Z","updated_at":"2017-06-12T11:54:25.772Z"}'
|
44
46
|
http_version: '1.1'
|
45
|
-
recorded_at:
|
47
|
+
recorded_at: Mon, 12 Jun 2017 11:54:26 GMT
|
46
48
|
- request:
|
47
49
|
method: post
|
48
50
|
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
|
49
51
|
body:
|
50
52
|
encoding: UTF-8
|
51
|
-
string: url
|
53
|
+
string: '{"url":"http://quadernoapp.com","events_types":["expense.created","expense.updated","contact.deleted"]}'
|
52
54
|
headers:
|
53
55
|
accept:
|
54
56
|
- application/json
|
57
|
+
content-type:
|
58
|
+
- application/json
|
55
59
|
authorization:
|
56
60
|
- Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
|
57
61
|
response:
|
@@ -64,31 +68,31 @@ http_interactions:
|
|
64
68
|
x-ratelimit-limit:
|
65
69
|
- '2000'
|
66
70
|
x-ratelimit-reset:
|
67
|
-
- '
|
71
|
+
- '12'
|
68
72
|
x-ratelimit-remaining:
|
69
|
-
- '
|
73
|
+
- '97'
|
70
74
|
content-type:
|
71
75
|
- application/json; charset=utf-8
|
72
76
|
etag:
|
73
|
-
- '"
|
77
|
+
- '"3435ae635f7c840f5a48ebd3d54744af"'
|
74
78
|
cache-control:
|
75
79
|
- max-age=0, private, must-revalidate
|
76
80
|
x-request-id:
|
77
|
-
-
|
81
|
+
- 080eed37-cef1-4eab-b4cb-a77e2f575d68
|
78
82
|
x-runtime:
|
79
|
-
- '
|
83
|
+
- '1.873604'
|
80
84
|
connection:
|
81
85
|
- close
|
82
86
|
server:
|
83
87
|
- thin
|
84
88
|
body:
|
85
89
|
encoding: UTF-8
|
86
|
-
string: '{"id":
|
90
|
+
string: '{"id":7,"url":"http://quadernoapp.com","auth_key":"_z8eyeOmCcKYyxuf8KIS-A","events_types":["expense.created","expense.updated","contact.deleted"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:27.722Z","updated_at":"2017-06-12T11:54:27.722Z"}'
|
87
91
|
http_version: '1.1'
|
88
|
-
recorded_at:
|
92
|
+
recorded_at: Mon, 12 Jun 2017 11:54:27 GMT
|
89
93
|
- request:
|
90
94
|
method: get
|
91
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json
|
95
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks.json?
|
92
96
|
body:
|
93
97
|
encoding: US-ASCII
|
94
98
|
string: ''
|
@@ -107,31 +111,31 @@ http_interactions:
|
|
107
111
|
x-ratelimit-limit:
|
108
112
|
- '2000'
|
109
113
|
x-ratelimit-reset:
|
110
|
-
- '
|
114
|
+
- '10'
|
111
115
|
x-ratelimit-remaining:
|
112
|
-
- '
|
116
|
+
- '96'
|
113
117
|
content-type:
|
114
118
|
- application/json; charset=utf-8
|
115
119
|
etag:
|
116
|
-
- '"
|
120
|
+
- '"2aca0c5cf770d27fd29b6d93a5be476c"'
|
117
121
|
cache-control:
|
118
122
|
- max-age=0, private, must-revalidate
|
119
123
|
x-request-id:
|
120
|
-
-
|
124
|
+
- 21f3b3e7-d4e5-430b-98a0-6e0a179ed467
|
121
125
|
x-runtime:
|
122
|
-
- '
|
126
|
+
- '0.972532'
|
123
127
|
connection:
|
124
128
|
- close
|
125
129
|
server:
|
126
130
|
- thin
|
127
131
|
body:
|
128
132
|
encoding: UTF-8
|
129
|
-
string: '[{"id":
|
133
|
+
string: '[{"id":1,"url":"http://quadernoapp.com","auth_key":"Ze024XpO9CJ6Fy2frwWV4Q","events_types":["invoice.created","expense.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:53:54.000Z","updated_at":"2017-06-12T11:53:54.000Z"},{"id":6,"url":"http://google.com","auth_key":"ETE71RWTFL_cCSsRjvoM1g","events_types":["invoice.created","invoice.updated"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:25.000Z","updated_at":"2017-06-12T11:54:25.000Z"},{"id":7,"url":"http://quadernoapp.com","auth_key":"_z8eyeOmCcKYyxuf8KIS-A","events_types":["expense.created","expense.updated","contact.deleted"],"last_sent_at":null,"last_error":null,"events_sent":0,"created_at":"2017-06-12T11:54:27.000Z","updated_at":"2017-06-12T11:54:27.000Z"}]'
|
130
134
|
http_version: '1.1'
|
131
|
-
recorded_at:
|
135
|
+
recorded_at: Mon, 12 Jun 2017 11:54:28 GMT
|
132
136
|
- request:
|
133
137
|
method: delete
|
134
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/
|
138
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/6.json
|
135
139
|
body:
|
136
140
|
encoding: US-ASCII
|
137
141
|
string: ''
|
@@ -150,15 +154,15 @@ http_interactions:
|
|
150
154
|
x-ratelimit-limit:
|
151
155
|
- '2000'
|
152
156
|
x-ratelimit-reset:
|
153
|
-
- '
|
157
|
+
- '8'
|
154
158
|
x-ratelimit-remaining:
|
155
|
-
- '
|
159
|
+
- '95'
|
156
160
|
cache-control:
|
157
161
|
- no-cache
|
158
162
|
x-request-id:
|
159
|
-
-
|
163
|
+
- bef9a96d-295f-4c3a-a9df-7ef83573b8bd
|
160
164
|
x-runtime:
|
161
|
-
- '2.
|
165
|
+
- '2.112362'
|
162
166
|
connection:
|
163
167
|
- close
|
164
168
|
server:
|
@@ -167,10 +171,10 @@ http_interactions:
|
|
167
171
|
encoding: US-ASCII
|
168
172
|
string: ''
|
169
173
|
http_version: '1.1'
|
170
|
-
recorded_at:
|
174
|
+
recorded_at: Mon, 12 Jun 2017 11:54:31 GMT
|
171
175
|
- request:
|
172
176
|
method: delete
|
173
|
-
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/
|
177
|
+
uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/webhooks/7.json
|
174
178
|
body:
|
175
179
|
encoding: US-ASCII
|
176
180
|
string: ''
|
@@ -189,15 +193,15 @@ http_interactions:
|
|
189
193
|
x-ratelimit-limit:
|
190
194
|
- '2000'
|
191
195
|
x-ratelimit-reset:
|
192
|
-
- '
|
196
|
+
- '8'
|
193
197
|
x-ratelimit-remaining:
|
194
|
-
- '
|
198
|
+
- '94'
|
195
199
|
cache-control:
|
196
200
|
- no-cache
|
197
201
|
x-request-id:
|
198
|
-
-
|
202
|
+
- 4ff5b60a-edf1-41ca-abef-efaf40eed570
|
199
203
|
x-runtime:
|
200
|
-
- '0.
|
204
|
+
- '0.919043'
|
201
205
|
connection:
|
202
206
|
- close
|
203
207
|
server:
|
@@ -206,5 +210,5 @@ http_interactions:
|
|
206
210
|
encoding: US-ASCII
|
207
211
|
string: ''
|
208
212
|
http_version: '1.1'
|
209
|
-
recorded_at:
|
213
|
+
recorded_at: Mon, 12 Jun 2017 11:54:32 GMT
|
210
214
|
recorded_with: VCR 2.9.2
|