lib/onfido/resources/webhook.rb in onfido-1.0.0 vs lib/onfido/resources/webhook.rb in onfido-1.1.0

- old
+ new

@@ -11,9 +11,13 @@ def all get(path: 'webhooks') end + def destroy(webhook_id) + delete(path: "webhooks/#{webhook_id}") + end + # As well as being a normal resource, Onfido::Webhook also supports # verifying the authenticity of a webhook by comparing the signature on the # request to one computed from the body def self.valid?(request_body, request_signature, token) if [request_body, request_signature, token].any?(&:nil?)