lib/onfido/resources/document.rb in onfido-0.7.1 vs lib/onfido/resources/document.rb in onfido-0.8.1
- old
+ new
@@ -7,7 +7,19 @@
post(
url: url_for("applicants/#{applicant_id}/documents"),
payload: payload
)
end
+
+ def find(applicant_id, document_id)
+ get(url: url_for("applicants/#{applicant_id}/documents/#{document_id}"))
+ end
+
+ def download(applicant_id, document_id)
+ get(url: url_for("applicants/#{applicant_id}/documents/#{document_id}/download"))
+ end
+
+ def all(applicant_id)
+ get(url: url_for("applicants/#{applicant_id}/documents"))
+ end
end
end