Sha256: df34f4bc05a9eb581b84169a8955ec7e55f3bd852cf3ef7edb5801adfa368d36
Contents?: true
Size: 601 Bytes
Versions: 13
Compression:
Stored size: 601 Bytes
Contents
# frozen_string_literal: true module Onfido class Check < Resource def create(applicant_id:, report_names:, **payload) payload[:applicant_id] = applicant_id payload[:report_names] = report_names post(path: 'checks', payload: payload) end def find(check_id) get(path: "checks/#{check_id}") end def all(applicant_id) get(path: "checks?applicant_id=#{applicant_id}") end def resume(check_id) post(path: "checks/#{check_id}/resume") end def download(check_id) get(path: "checks/#{check_id}/download") end end end
Version data entries
13 entries across 13 versions & 1 rubygems