Class: Onfido::DefaultApi
- Inherits:
-
Object
- Object
- Onfido::DefaultApi
- Defined in:
- lib/onfido/api/default_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#cancel_report(report_id, opts = {}) ⇒ nil
Cancel report Cancels single paused reports.
-
#cancel_report_with_http_info(report_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Cancel report Cancels single paused reports.
-
#complete_task(workflow_run_id, task_id, complete_task_builder, opts = {}) ⇒ nil
Complete Task Completes a Send / Receive Data Task.
-
#complete_task_with_http_info(workflow_run_id, task_id, complete_task_builder, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Complete Task Completes a Send / Receive Data Task.
-
#create_applicant(applicant_builder, opts = {}) ⇒ Applicant
Create Applicant Creates a single applicant.
-
#create_applicant_with_http_info(applicant_builder, opts = {}) ⇒ Array<(Applicant, Integer, Hash)>
Create Applicant Creates a single applicant.
-
#create_check(check_builder, opts = {}) ⇒ Check
Create a check Initiates a check for an applicant, which can contain one or more reports.
-
#create_check_with_http_info(check_builder, opts = {}) ⇒ Array<(Check, Integer, Hash)>
Create a check Initiates a check for an applicant, which can contain one or more reports.
-
#create_timeline_file(workflow_run_id, opts = {}) ⇒ TimelineFileReference
Create Timeline File for Workflow Run Triggers the generation of the Timeline File for the designated Workflow Run.
-
#create_timeline_file_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(TimelineFileReference, Integer, Hash)>
Create Timeline File for Workflow Run Triggers the generation of the Timeline File for the designated Workflow Run.
-
#create_watchlist_monitor(watchlist_monitor_builder, opts = {}) ⇒ WatchlistMonitor
Create monitor Creates a new monitor for the applicant.
-
#create_watchlist_monitor_with_http_info(watchlist_monitor_builder, opts = {}) ⇒ Array<(WatchlistMonitor, Integer, Hash)>
Create monitor Creates a new monitor for the applicant.
-
#create_webhook(webhook_builder, opts = {}) ⇒ Webhook
Register webhook Registers a webhook.
-
#create_webhook_with_http_info(webhook_builder, opts = {}) ⇒ Array<(Webhook, Integer, Hash)>
Register webhook Registers a webhook.
-
#create_workflow_run(workflow_run_builder, opts = {}) ⇒ WorkflowRun
Create a Workflow Run Creates and starts a Workflow Run.
-
#create_workflow_run_with_http_info(workflow_run_builder, opts = {}) ⇒ Array<(WorkflowRun, Integer, Hash)>
Create a Workflow Run Creates and starts a Workflow Run.
-
#delete_applicant(applicant_id, opts = {}) ⇒ nil
Delete Applicant Deletes a single applicant.
-
#delete_applicant_with_http_info(applicant_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete Applicant Deletes a single applicant.
-
#delete_watchlist_monitor(monitor_id, opts = {}) ⇒ nil
Delete monitor Deactivates the given monitor.
-
#delete_watchlist_monitor_with_http_info(monitor_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete monitor Deactivates the given monitor.
-
#delete_webhook(webhook_id, opts = {}) ⇒ nil
Delete a webhook Deletes a webhook.
-
#delete_webhook_with_http_info(webhook_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a webhook Deletes a webhook.
-
#download_check(check_id, opts = {}) ⇒ File
Download check Downloads a PDF of a check with a given check ID.
-
#download_check_with_http_info(check_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download check Downloads a PDF of a check with a given check ID.
-
#download_document(document_id, opts = {}) ⇒ File
Download document Downloads specific documents belonging to an applicant.
-
#download_document_video(document_id, opts = {}) ⇒ File
Download document video Downloads a document video.
-
#download_document_video_with_http_info(document_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download document video Downloads a document video.
-
#download_document_with_http_info(document_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download document Downloads specific documents belonging to an applicant.
-
#download_id_photo(id_photo_id, opts = {}) ⇒ File
Download ID photo ID photos are downloaded using this endpoint.
-
#download_id_photo_with_http_info(id_photo_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download ID photo ID photos are downloaded using this endpoint.
-
#download_live_photo(live_photo_id, opts = {}) ⇒ File
Download live photo Live photos are downloaded using this endpoint.
-
#download_live_photo_with_http_info(live_photo_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download live photo Live photos are downloaded using this endpoint.
-
#download_live_video(live_video_id, opts = {}) ⇒ File
Download live video Live videos are downloaded using this endpoint.
-
#download_live_video_frame(live_video_id, opts = {}) ⇒ File
Download live video frame Returns the binary data representing a single frame from a live video.
-
#download_live_video_frame_with_http_info(live_video_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download live video frame Returns the binary data representing a single frame from a live video.
-
#download_live_video_with_http_info(live_video_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download live video Live videos are downloaded using this endpoint.
-
#download_motion_capture(motion_capture_id, opts = {}) ⇒ File
Download motion capture Motion captures are downloaded using this endpoint.
-
#download_motion_capture_frame(motion_capture_id, opts = {}) ⇒ File
Download motion capture frame Instead of the whole capture binary, a single frame can be downloaded using this endpoint.
-
#download_motion_capture_frame_with_http_info(motion_capture_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download motion capture frame Instead of the whole capture binary, a single frame can be downloaded using this endpoint.
-
#download_motion_capture_with_http_info(motion_capture_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download motion capture Motion captures are downloaded using this endpoint.
-
#download_qes_document(workflow_run_id, file_id, opts = {}) ⇒ File
Retrieves the signed document or application form Retrieves the signed document or application form depending on the file_id provided.
-
#download_qes_document_with_http_info(workflow_run_id, file_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Retrieves the signed document or application form Retrieves the signed document or application form depending on the file_id provided.
-
#download_signed_evidence_file(workflow_run_id, opts = {}) ⇒ File
Retrieve Workflow Run Evidence Summary File Retrieves the signed evidence file for the designated Workflow Run.
-
#download_signed_evidence_file_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Retrieve Workflow Run Evidence Summary File Retrieves the signed evidence file for the designated Workflow Run.
-
#extract(extract_request, opts = {}) ⇒ Extraction
Autofill Extract information from a document.
-
#extract_with_http_info(extract_request, opts = {}) ⇒ Array<(Extraction, Integer, Hash)>
Autofill Extract information from a document.
-
#find_addresses(postcode, opts = {}) ⇒ AddressesList
Address Picker Search for addresses by postcode.
-
#find_addresses_with_http_info(postcode, opts = {}) ⇒ Array<(AddressesList, Integer, Hash)>
Address Picker Search for addresses by postcode.
-
#find_applicant(applicant_id, opts = {}) ⇒ Applicant
Retrieve Applicant Retrieves a single applicant.
-
#find_applicant_with_http_info(applicant_id, opts = {}) ⇒ Array<(Applicant, Integer, Hash)>
Retrieve Applicant Retrieves a single applicant.
-
#find_check(check_id, opts = {}) ⇒ Check
Retrieve a Check Retrieves a single check.
-
#find_check_with_http_info(check_id, opts = {}) ⇒ Array<(Check, Integer, Hash)>
Retrieve a Check Retrieves a single check.
-
#find_document(document_id, opts = {}) ⇒ Document
Retrieve document A single document can be retrieved by calling this endpoint with the document’s unique identifier.
-
#find_document_with_http_info(document_id, opts = {}) ⇒ Array<(Document, Integer, Hash)>
Retrieve document A single document can be retrieved by calling this endpoint with the document's unique identifier.
-
#find_id_photo(id_photo_id, opts = {}) ⇒ IdPhoto
Retrieve ID photo Retrieves a single ID photo.
-
#find_id_photo_with_http_info(id_photo_id, opts = {}) ⇒ Array<(IdPhoto, Integer, Hash)>
Retrieve ID photo Retrieves a single ID photo.
-
#find_live_photo(live_photo_id, opts = {}) ⇒ LivePhoto
Retrieve live photo Retrieves a single live photo.
-
#find_live_photo_with_http_info(live_photo_id, opts = {}) ⇒ Array<(LivePhoto, Integer, Hash)>
Retrieve live photo Retrieves a single live photo.
-
#find_live_video(live_video_id, opts = {}) ⇒ LiveVideo
Retrieve live video Retrieves a single live video.
-
#find_live_video_with_http_info(live_video_id, opts = {}) ⇒ Array<(LiveVideo, Integer, Hash)>
Retrieve live video Retrieves a single live video.
-
#find_motion_capture(motion_capture_id, opts = {}) ⇒ MotionCapture
Retrieve motion capture Retrieves a single motion capture.
-
#find_motion_capture_with_http_info(motion_capture_id, opts = {}) ⇒ Array<(MotionCapture, Integer, Hash)>
Retrieve motion capture Retrieves a single motion capture.
-
#find_report(report_id, opts = {}) ⇒ Report
Retrieve report A single report can be retrieved using this endpoint with the corresponding unique identifier.
-
#find_report_with_http_info(report_id, opts = {}) ⇒ Array<(Report, Integer, Hash)>
Retrieve report A single report can be retrieved using this endpoint with the corresponding unique identifier.
-
#find_task(workflow_run_id, task_id, opts = {}) ⇒ Task
Retrieve Task A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
-
#find_task_with_http_info(workflow_run_id, task_id, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Retrieve Task A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
-
#find_timeline_file(workflow_run_id, timeline_file_id, opts = {}) ⇒ File
Retrieve Timeline File for Workflow Run Retrieves the Timeline File for the designated Workflow Run.
-
#find_timeline_file_with_http_info(workflow_run_id, timeline_file_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Retrieve Timeline File for Workflow Run Retrieves the Timeline File for the designated Workflow Run.
-
#find_watchlist_monitor(monitor_id, opts = {}) ⇒ WatchlistMonitor
Retrieve monitor Retrieves a single monitor.
-
#find_watchlist_monitor_with_http_info(monitor_id, opts = {}) ⇒ Array<(WatchlistMonitor, Integer, Hash)>
Retrieve monitor Retrieves a single monitor.
-
#find_webhook(webhook_id, opts = {}) ⇒ Webhook
Retrieve a Webhook Retrieves a single webhook.
-
#find_webhook_with_http_info(webhook_id, opts = {}) ⇒ Array<(Webhook, Integer, Hash)>
Retrieve a Webhook Retrieves a single webhook.
-
#find_workflow_run(workflow_run_id, opts = {}) ⇒ WorkflowRun
Retrieve Workflow Run A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
-
#find_workflow_run_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(WorkflowRun, Integer, Hash)>
Retrieve Workflow Run A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
-
#force_report_creation_from_watchlist_monitor(monitor_id, opts = {}) ⇒ nil
Force new report creation (BETA) Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update.
-
#force_report_creation_from_watchlist_monitor_with_http_info(monitor_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Force new report creation (BETA) Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update.
-
#generate_sdk_token(sdk_token_builder, opts = {}) ⇒ SdkToken
Generate a SDK token Generates an SDK token.
-
#generate_sdk_token_with_http_info(sdk_token_builder, opts = {}) ⇒ Array<(SdkToken, Integer, Hash)>
Generate a SDK token Generates an SDK token.
-
#initialize(api_client = ApiClient.default) ⇒ DefaultApi
constructor
A new instance of DefaultApi.
-
#list_applicants(opts = {}) ⇒ ApplicantsList
List Applicants Lists all applicants you’ve created, sorted by creation date in descending order.
-
#list_applicants_with_http_info(opts = {}) ⇒ Array<(ApplicantsList, Integer, Hash)>
List Applicants Lists all applicants you've created, sorted by creation date in descending order.
-
#list_checks(applicant_id, opts = {}) ⇒ ChecksList
Retrieve Checks Retrieves a single check.
-
#list_checks_with_http_info(applicant_id, opts = {}) ⇒ Array<(ChecksList, Integer, Hash)>
Retrieve Checks Retrieves a single check.
-
#list_documents(applicant_id, opts = {}) ⇒ DocumentsList
List documents All documents belonging to an applicant can be listed from this endpoint.
-
#list_documents_with_http_info(applicant_id, opts = {}) ⇒ Array<(DocumentsList, Integer, Hash)>
List documents All documents belonging to an applicant can be listed from this endpoint.
-
#list_id_photos(applicant_id, opts = {}) ⇒ IdPhotosList
List ID photos Lists the ID photos that belong to an applicant.
-
#list_id_photos_with_http_info(applicant_id, opts = {}) ⇒ Array<(IdPhotosList, Integer, Hash)>
List ID photos Lists the ID photos that belong to an applicant.
-
#list_live_photos(applicant_id, opts = {}) ⇒ LivePhotosList
List live photos Lists the live photos that belong to an applicant.
-
#list_live_photos_with_http_info(applicant_id, opts = {}) ⇒ Array<(LivePhotosList, Integer, Hash)>
List live photos Lists the live photos that belong to an applicant.
-
#list_live_videos(applicant_id, opts = {}) ⇒ LiveVideosList
List live videos Lists all the live videos that belong to an applicant.
-
#list_live_videos_with_http_info(applicant_id, opts = {}) ⇒ Array<(LiveVideosList, Integer, Hash)>
List live videos Lists all the live videos that belong to an applicant.
-
#list_motion_captures(applicant_id, opts = {}) ⇒ MotionCapturesList
List motion captures Lists all the motion captures that belong to an applicant.
-
#list_motion_captures_with_http_info(applicant_id, opts = {}) ⇒ Array<(MotionCapturesList, Integer, Hash)>
List motion captures Lists all the motion captures that belong to an applicant.
-
#list_repeat_attempts(report_id, opts = {}) ⇒ RepeatAttemptsList
Retrieve repeat attempts Returns all repeat attempts for a given Document report.
-
#list_repeat_attempts_with_http_info(report_id, opts = {}) ⇒ Array<(RepeatAttemptsList, Integer, Hash)>
Retrieve repeat attempts Returns all repeat attempts for a given Document report.
-
#list_reports(check_id, opts = {}) ⇒ ReportsList
List reports All the reports belonging to a particular check can be listed from this endpoint.
-
#list_reports_with_http_info(check_id, opts = {}) ⇒ Array<(ReportsList, Integer, Hash)>
List reports All the reports belonging to a particular check can be listed from this endpoint.
-
#list_tasks(workflow_run_id, opts = {}) ⇒ Array<TaskItem>
List Tasks The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
-
#list_tasks_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(Array<TaskItem>, Integer, Hash)>
List Tasks The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
-
#list_watchlist_monitor_matches(monitor_id, opts = {}) ⇒ WatchlistMonitorMatchesList
List matches (BETA) List match IDs on this monitor, as well as their enabled/disabled status.
-
#list_watchlist_monitor_matches_with_http_info(monitor_id, opts = {}) ⇒ Array<(WatchlistMonitorMatchesList, Integer, Hash)>
List matches (BETA) List match IDs on this monitor, as well as their enabled/disabled status.
-
#list_watchlist_monitors(applicant_id, opts = {}) ⇒ WatchlistMonitorsList
List monitors List all available monitors for an applicant.
-
#list_watchlist_monitors_with_http_info(applicant_id, opts = {}) ⇒ Array<(WatchlistMonitorsList, Integer, Hash)>
List monitors List all available monitors for an applicant.
-
#list_webhooks(opts = {}) ⇒ WebhooksList
List webhooks Lists all webhooks you’ve created.
-
#list_webhooks_with_http_info(opts = {}) ⇒ Array<(WebhooksList, Integer, Hash)>
List webhooks Lists all webhooks you've created.
-
#list_workflow_runs(opts = {}) ⇒ Array<WorkflowRun>
List Workflow Runs Retrieves the Workflow Runs of the client.
-
#list_workflow_runs_with_http_info(opts = {}) ⇒ Array<(Array<WorkflowRun>, Integer, Hash)>
List Workflow Runs Retrieves the Workflow Runs of the client.
-
#ping(opts = {}) ⇒ String
Ping Run a health check on the Onfido API.
-
#ping_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>
Ping Run a health check on the Onfido API.
-
#post_results_feedback(results_feedback, opts = {}) ⇒ ResultsFeedback
Fraud reporting (ALPHA) Create Feedback on checks and reports.
-
#post_results_feedback_with_http_info(results_feedback, opts = {}) ⇒ Array<(ResultsFeedback, Integer, Hash)>
Fraud reporting (ALPHA) Create Feedback on checks and reports.
-
#resend_webhooks(webhook_resend, opts = {}) ⇒ nil
Resends webhooks Resends events to all webhooks registered with a matching environment in your account.
-
#resend_webhooks_with_http_info(webhook_resend, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Resends webhooks Resends events to all webhooks registered with a matching environment in your account.
-
#restore_applicant(applicant_id, opts = {}) ⇒ nil
Restore Applicant Restores a single applicant scheduled for deletion.
-
#restore_applicant_with_http_info(applicant_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Restore Applicant Restores a single applicant scheduled for deletion.
-
#resume_check(check_id, opts = {}) ⇒ nil
Resume a Check Resumes a paused check.
-
#resume_check_with_http_info(check_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Resume a Check Resumes a paused check.
-
#resume_report(report_id, opts = {}) ⇒ nil
Resume report Resumes a single paused report.
-
#resume_report_with_http_info(report_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Resume report Resumes a single paused report.
-
#update_applicant(applicant_id, applicant_updater, opts = {}) ⇒ Applicant
Update Applicant Allows updating applicant’s information before any checks is created.
-
#update_applicant_with_http_info(applicant_id, applicant_updater, opts = {}) ⇒ Array<(Applicant, Integer, Hash)>
Update Applicant Allows updating applicant's information before any checks is created.
-
#update_watchlist_monitor_match(monitor_id, watchlist_monitor_matches_updater, opts = {}) ⇒ WatchlistMonitorMatchesList
Set match status (BETA) Update the status of the given matches.
-
#update_watchlist_monitor_match_with_http_info(monitor_id, watchlist_monitor_matches_updater, opts = {}) ⇒ Array<(WatchlistMonitorMatchesList, Integer, Hash)>
Set match status (BETA) Update the status of the given matches.
-
#update_webhook(webhook_id, webhook_updater, opts = {}) ⇒ Webhook
Edit a webhook Edits a webhook.
-
#update_webhook_with_http_info(webhook_id, webhook_updater, opts = {}) ⇒ Array<(Webhook, Integer, Hash)>
Edit a webhook Edits a webhook.
-
#upload_document(type, applicant_id, file, opts = {}) ⇒ Document
Upload a document Documents are uploaded using this endpoint.
-
#upload_document_with_http_info(type, applicant_id, file, opts = {}) ⇒ Array<(Document, Integer, Hash)>
Upload a document Documents are uploaded using this endpoint.
-
#upload_id_photo(opts = {}) ⇒ IdPhoto
Upload ID photo You can upload ID photos to this endpoint.
-
#upload_id_photo_with_http_info(opts = {}) ⇒ Array<(IdPhoto, Integer, Hash)>
Upload ID photo You can upload ID photos to this endpoint.
-
#upload_live_photo(opts = {}) ⇒ LivePhoto
Upload live photo You can upload live photos to this endpoint.
-
#upload_live_photo_with_http_info(opts = {}) ⇒ Array<(LivePhoto, Integer, Hash)>
Upload live photo You can upload live photos to this endpoint.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ DefaultApi
Returns a new instance of DefaultApi.
19 20 21 |
# File 'lib/onfido/api/default_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/onfido/api/default_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#cancel_report(report_id, opts = {}) ⇒ nil
Cancel report Cancels single paused reports.
27 28 29 30 |
# File 'lib/onfido/api/default_api.rb', line 27 def cancel_report(report_id, opts = {}) cancel_report_with_http_info(report_id, opts) nil end |
#cancel_report_with_http_info(report_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Cancel report Cancels single paused reports.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/onfido/api/default_api.rb', line 37 def cancel_report_with_http_info(report_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.cancel_report ...' end # verify the required parameter 'report_id' is set if @api_client.config.client_side_validation && report_id.nil? fail ArgumentError, "Missing the required parameter 'report_id' when calling DefaultApi.cancel_report" end # resource path local_var_path = '/reports/{report_id}/cancel'.sub('{' + 'report_id' + '}', CGI.escape(report_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.cancel_report", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#cancel_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#complete_task(workflow_run_id, task_id, complete_task_builder, opts = {}) ⇒ nil
Complete Task Completes a Send / Receive Data Task.
92 93 94 95 |
# File 'lib/onfido/api/default_api.rb', line 92 def complete_task(workflow_run_id, task_id, complete_task_builder, opts = {}) complete_task_with_http_info(workflow_run_id, task_id, complete_task_builder, opts) nil end |
#complete_task_with_http_info(workflow_run_id, task_id, complete_task_builder, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Complete Task Completes a Send / Receive Data Task.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/onfido/api/default_api.rb', line 104 def complete_task_with_http_info(workflow_run_id, task_id, complete_task_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.complete_task ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.complete_task" end # verify the required parameter 'task_id' is set if @api_client.config.client_side_validation && task_id.nil? fail ArgumentError, "Missing the required parameter 'task_id' when calling DefaultApi.complete_task" end # verify the required parameter 'complete_task_builder' is set if @api_client.config.client_side_validation && complete_task_builder.nil? fail ArgumentError, "Missing the required parameter 'complete_task_builder' when calling DefaultApi.complete_task" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}/tasks/{task_id}/complete'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)).sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(complete_task_builder) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.complete_task", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#complete_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_applicant(applicant_builder, opts = {}) ⇒ Applicant
Create Applicant Creates a single applicant. Returns an applicant object.
170 171 172 173 |
# File 'lib/onfido/api/default_api.rb', line 170 def create_applicant(applicant_builder, opts = {}) data, _status_code, _headers = create_applicant_with_http_info(applicant_builder, opts) data end |
#create_applicant_with_http_info(applicant_builder, opts = {}) ⇒ Array<(Applicant, Integer, Hash)>
Create Applicant Creates a single applicant. Returns an applicant object.
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/onfido/api/default_api.rb', line 180 def create_applicant_with_http_info(applicant_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_applicant ...' end # verify the required parameter 'applicant_builder' is set if @api_client.config.client_side_validation && applicant_builder.nil? fail ArgumentError, "Missing the required parameter 'applicant_builder' when calling DefaultApi.create_applicant" end # resource path local_var_path = '/applicants' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(applicant_builder) # return_type return_type = opts[:debug_return_type] || 'Applicant' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.create_applicant", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_check(check_builder, opts = {}) ⇒ Check
Create a check Initiates a check for an applicant, which can contain one or more reports. Returns a check object.
238 239 240 241 |
# File 'lib/onfido/api/default_api.rb', line 238 def create_check(check_builder, opts = {}) data, _status_code, _headers = create_check_with_http_info(check_builder, opts) data end |
#create_check_with_http_info(check_builder, opts = {}) ⇒ Array<(Check, Integer, Hash)>
Create a check Initiates a check for an applicant, which can contain one or more reports. Returns a check object.
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/onfido/api/default_api.rb', line 248 def create_check_with_http_info(check_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_check ...' end # verify the required parameter 'check_builder' is set if @api_client.config.client_side_validation && check_builder.nil? fail ArgumentError, "Missing the required parameter 'check_builder' when calling DefaultApi.create_check" end # resource path local_var_path = '/checks' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(check_builder) # return_type return_type = opts[:debug_return_type] || 'Check' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.create_check", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_timeline_file(workflow_run_id, opts = {}) ⇒ TimelineFileReference
Create Timeline File for Workflow Run Triggers the generation of the Timeline File for the designated Workflow Run.
306 307 308 309 |
# File 'lib/onfido/api/default_api.rb', line 306 def create_timeline_file(workflow_run_id, opts = {}) data, _status_code, _headers = create_timeline_file_with_http_info(workflow_run_id, opts) data end |
#create_timeline_file_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(TimelineFileReference, Integer, Hash)>
Create Timeline File for Workflow Run Triggers the generation of the Timeline File for the designated Workflow Run.
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 |
# File 'lib/onfido/api/default_api.rb', line 316 def create_timeline_file_with_http_info(workflow_run_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_timeline_file ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.create_timeline_file" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}/timeline_file'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'TimelineFileReference' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.create_timeline_file", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_timeline_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_watchlist_monitor(watchlist_monitor_builder, opts = {}) ⇒ WatchlistMonitor
Create monitor Creates a new monitor for the applicant
369 370 371 372 |
# File 'lib/onfido/api/default_api.rb', line 369 def create_watchlist_monitor(watchlist_monitor_builder, opts = {}) data, _status_code, _headers = create_watchlist_monitor_with_http_info(watchlist_monitor_builder, opts) data end |
#create_watchlist_monitor_with_http_info(watchlist_monitor_builder, opts = {}) ⇒ Array<(WatchlistMonitor, Integer, Hash)>
Create monitor Creates a new monitor for the applicant
379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/onfido/api/default_api.rb', line 379 def create_watchlist_monitor_with_http_info(watchlist_monitor_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_watchlist_monitor ...' end # verify the required parameter 'watchlist_monitor_builder' is set if @api_client.config.client_side_validation && watchlist_monitor_builder.nil? fail ArgumentError, "Missing the required parameter 'watchlist_monitor_builder' when calling DefaultApi.create_watchlist_monitor" end # resource path local_var_path = '/watchlist_monitors' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(watchlist_monitor_builder) # return_type return_type = opts[:debug_return_type] || 'WatchlistMonitor' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.create_watchlist_monitor", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_watchlist_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_webhook(webhook_builder, opts = {}) ⇒ Webhook
Register webhook Registers a webhook. Returns a webhook object.
437 438 439 440 |
# File 'lib/onfido/api/default_api.rb', line 437 def create_webhook(webhook_builder, opts = {}) data, _status_code, _headers = create_webhook_with_http_info(webhook_builder, opts) data end |
#create_webhook_with_http_info(webhook_builder, opts = {}) ⇒ Array<(Webhook, Integer, Hash)>
Register webhook Registers a webhook. Returns a webhook object.
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/onfido/api/default_api.rb', line 447 def create_webhook_with_http_info(webhook_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_webhook ...' end # verify the required parameter 'webhook_builder' is set if @api_client.config.client_side_validation && webhook_builder.nil? fail ArgumentError, "Missing the required parameter 'webhook_builder' when calling DefaultApi.create_webhook" end # resource path local_var_path = '/webhooks' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_builder) # return_type return_type = opts[:debug_return_type] || 'Webhook' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.create_webhook", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_workflow_run(workflow_run_builder, opts = {}) ⇒ WorkflowRun
Create a Workflow Run Creates and starts a Workflow Run. Returns a Workflow Run object.
505 506 507 508 |
# File 'lib/onfido/api/default_api.rb', line 505 def create_workflow_run(workflow_run_builder, opts = {}) data, _status_code, _headers = create_workflow_run_with_http_info(workflow_run_builder, opts) data end |
#create_workflow_run_with_http_info(workflow_run_builder, opts = {}) ⇒ Array<(WorkflowRun, Integer, Hash)>
Create a Workflow Run Creates and starts a Workflow Run. Returns a Workflow Run object.
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/onfido/api/default_api.rb', line 515 def create_workflow_run_with_http_info(workflow_run_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_workflow_run ...' end # verify the required parameter 'workflow_run_builder' is set if @api_client.config.client_side_validation && workflow_run_builder.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_builder' when calling DefaultApi.create_workflow_run" end # resource path local_var_path = '/workflow_runs' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(workflow_run_builder) # return_type return_type = opts[:debug_return_type] || 'WorkflowRun' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.create_workflow_run", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_workflow_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_applicant(applicant_id, opts = {}) ⇒ nil
Delete Applicant Deletes a single applicant.
573 574 575 576 |
# File 'lib/onfido/api/default_api.rb', line 573 def delete_applicant(applicant_id, opts = {}) delete_applicant_with_http_info(applicant_id, opts) nil end |
#delete_applicant_with_http_info(applicant_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete Applicant Deletes a single applicant.
583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 |
# File 'lib/onfido/api/default_api.rb', line 583 def delete_applicant_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_applicant ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.delete_applicant" end # resource path local_var_path = '/applicants/{applicant_id}'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.delete_applicant", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_watchlist_monitor(monitor_id, opts = {}) ⇒ nil
Delete monitor Deactivates the given monitor
636 637 638 639 |
# File 'lib/onfido/api/default_api.rb', line 636 def delete_watchlist_monitor(monitor_id, opts = {}) delete_watchlist_monitor_with_http_info(monitor_id, opts) nil end |
#delete_watchlist_monitor_with_http_info(monitor_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete monitor Deactivates the given monitor
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/onfido/api/default_api.rb', line 646 def delete_watchlist_monitor_with_http_info(monitor_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_watchlist_monitor ...' end # verify the required parameter 'monitor_id' is set if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DefaultApi.delete_watchlist_monitor" end # resource path local_var_path = '/watchlist_monitors/{monitor_id}'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.delete_watchlist_monitor", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_watchlist_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_webhook(webhook_id, opts = {}) ⇒ nil
Delete a webhook Deletes a webhook.
699 700 701 702 |
# File 'lib/onfido/api/default_api.rb', line 699 def delete_webhook(webhook_id, opts = {}) delete_webhook_with_http_info(webhook_id, opts) nil end |
#delete_webhook_with_http_info(webhook_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete a webhook Deletes a webhook.
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 |
# File 'lib/onfido/api/default_api.rb', line 709 def delete_webhook_with_http_info(webhook_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_webhook ...' end # verify the required parameter 'webhook_id' is set if @api_client.config.client_side_validation && webhook_id.nil? fail ArgumentError, "Missing the required parameter 'webhook_id' when calling DefaultApi.delete_webhook" end # resource path local_var_path = '/webhooks/{webhook_id}'.sub('{' + 'webhook_id' + '}', CGI.escape(webhook_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.delete_webhook", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_check(check_id, opts = {}) ⇒ File
Download check Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
762 763 764 765 |
# File 'lib/onfido/api/default_api.rb', line 762 def download_check(check_id, opts = {}) data, _status_code, _headers = download_check_with_http_info(check_id, opts) data end |
#download_check_with_http_info(check_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download check Downloads a PDF of a check with a given check ID. Returns the binary data representing the PDF.
772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 |
# File 'lib/onfido/api/default_api.rb', line 772 def download_check_with_http_info(check_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_check ...' end # verify the required parameter 'check_id' is set if @api_client.config.client_side_validation && check_id.nil? fail ArgumentError, "Missing the required parameter 'check_id' when calling DefaultApi.download_check" end # resource path local_var_path = '/checks/{check_id}/download'.sub('{' + 'check_id' + '}', CGI.escape(check_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_check", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_document(document_id, opts = {}) ⇒ File
Download document Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
825 826 827 828 |
# File 'lib/onfido/api/default_api.rb', line 825 def download_document(document_id, opts = {}) data, _status_code, _headers = download_document_with_http_info(document_id, opts) data end |
#download_document_video(document_id, opts = {}) ⇒ File
Download document video Downloads a document video. If successful, the response will be the binary data representing the video.
888 889 890 891 |
# File 'lib/onfido/api/default_api.rb', line 888 def download_document_video(document_id, opts = {}) data, _status_code, _headers = download_document_video_with_http_info(document_id, opts) data end |
#download_document_video_with_http_info(document_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download document video Downloads a document video. If successful, the response will be the binary data representing the video.
898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 |
# File 'lib/onfido/api/default_api.rb', line 898 def download_document_video_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_document_video ...' end # verify the required parameter 'document_id' is set if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling DefaultApi.download_document_video" end # resource path local_var_path = '/documents/{document_id}/video/download'.sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_document_video", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_document_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_document_with_http_info(document_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download document Downloads specific documents belonging to an applicant. If successful, the response will be the binary data representing the image.
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 |
# File 'lib/onfido/api/default_api.rb', line 835 def download_document_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_document ...' end # verify the required parameter 'document_id' is set if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling DefaultApi.download_document" end # resource path local_var_path = '/documents/{document_id}/download'.sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_document", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_id_photo(id_photo_id, opts = {}) ⇒ File
Download ID photo ID photos are downloaded using this endpoint.
951 952 953 954 |
# File 'lib/onfido/api/default_api.rb', line 951 def download_id_photo(id_photo_id, opts = {}) data, _status_code, _headers = download_id_photo_with_http_info(id_photo_id, opts) data end |
#download_id_photo_with_http_info(id_photo_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download ID photo ID photos are downloaded using this endpoint.
961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 |
# File 'lib/onfido/api/default_api.rb', line 961 def download_id_photo_with_http_info(id_photo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_id_photo ...' end # verify the required parameter 'id_photo_id' is set if @api_client.config.client_side_validation && id_photo_id.nil? fail ArgumentError, "Missing the required parameter 'id_photo_id' when calling DefaultApi.download_id_photo" end # resource path local_var_path = '/id_photos/{id_photo_id}/download'.sub('{' + 'id_photo_id' + '}', CGI.escape(id_photo_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_id_photo", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_id_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_live_photo(live_photo_id, opts = {}) ⇒ File
Download live photo Live photos are downloaded using this endpoint.
1014 1015 1016 1017 |
# File 'lib/onfido/api/default_api.rb', line 1014 def download_live_photo(live_photo_id, opts = {}) data, _status_code, _headers = download_live_photo_with_http_info(live_photo_id, opts) data end |
#download_live_photo_with_http_info(live_photo_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download live photo Live photos are downloaded using this endpoint.
1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 |
# File 'lib/onfido/api/default_api.rb', line 1024 def download_live_photo_with_http_info(live_photo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_live_photo ...' end # verify the required parameter 'live_photo_id' is set if @api_client.config.client_side_validation && live_photo_id.nil? fail ArgumentError, "Missing the required parameter 'live_photo_id' when calling DefaultApi.download_live_photo" end # resource path local_var_path = '/live_photos/{live_photo_id}/download'.sub('{' + 'live_photo_id' + '}', CGI.escape(live_photo_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_live_photo", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_live_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_live_video(live_video_id, opts = {}) ⇒ File
Download live video Live videos are downloaded using this endpoint.
1077 1078 1079 1080 |
# File 'lib/onfido/api/default_api.rb', line 1077 def download_live_video(live_video_id, opts = {}) data, _status_code, _headers = download_live_video_with_http_info(live_video_id, opts) data end |
#download_live_video_frame(live_video_id, opts = {}) ⇒ File
Download live video frame Returns the binary data representing a single frame from a live video.
1140 1141 1142 1143 |
# File 'lib/onfido/api/default_api.rb', line 1140 def download_live_video_frame(live_video_id, opts = {}) data, _status_code, _headers = download_live_video_frame_with_http_info(live_video_id, opts) data end |
#download_live_video_frame_with_http_info(live_video_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download live video frame Returns the binary data representing a single frame from a live video.
1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/onfido/api/default_api.rb', line 1150 def download_live_video_frame_with_http_info(live_video_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_live_video_frame ...' end # verify the required parameter 'live_video_id' is set if @api_client.config.client_side_validation && live_video_id.nil? fail ArgumentError, "Missing the required parameter 'live_video_id' when calling DefaultApi.download_live_video_frame" end # resource path local_var_path = '/live_videos/{live_video_id}/frame'.sub('{' + 'live_video_id' + '}', CGI.escape(live_video_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_live_video_frame", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_live_video_frame\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_live_video_with_http_info(live_video_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download live video Live videos are downloaded using this endpoint.
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 |
# File 'lib/onfido/api/default_api.rb', line 1087 def download_live_video_with_http_info(live_video_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_live_video ...' end # verify the required parameter 'live_video_id' is set if @api_client.config.client_side_validation && live_video_id.nil? fail ArgumentError, "Missing the required parameter 'live_video_id' when calling DefaultApi.download_live_video" end # resource path local_var_path = '/live_videos/{live_video_id}/download'.sub('{' + 'live_video_id' + '}', CGI.escape(live_video_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_live_video", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_live_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_motion_capture(motion_capture_id, opts = {}) ⇒ File
Download motion capture Motion captures are downloaded using this endpoint.
1203 1204 1205 1206 |
# File 'lib/onfido/api/default_api.rb', line 1203 def download_motion_capture(motion_capture_id, opts = {}) data, _status_code, _headers = download_motion_capture_with_http_info(motion_capture_id, opts) data end |
#download_motion_capture_frame(motion_capture_id, opts = {}) ⇒ File
Download motion capture frame Instead of the whole capture binary, a single frame can be downloaded using this endpoint. Returns the binary data representing the frame.
1266 1267 1268 1269 |
# File 'lib/onfido/api/default_api.rb', line 1266 def download_motion_capture_frame(motion_capture_id, opts = {}) data, _status_code, _headers = download_motion_capture_frame_with_http_info(motion_capture_id, opts) data end |
#download_motion_capture_frame_with_http_info(motion_capture_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download motion capture frame Instead of the whole capture binary, a single frame can be downloaded using this endpoint. Returns the binary data representing the frame.
1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 |
# File 'lib/onfido/api/default_api.rb', line 1276 def download_motion_capture_frame_with_http_info(motion_capture_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_motion_capture_frame ...' end # verify the required parameter 'motion_capture_id' is set if @api_client.config.client_side_validation && motion_capture_id.nil? fail ArgumentError, "Missing the required parameter 'motion_capture_id' when calling DefaultApi.download_motion_capture_frame" end # resource path local_var_path = '/motion_captures/{motion_capture_id}/frame'.sub('{' + 'motion_capture_id' + '}', CGI.escape(motion_capture_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_motion_capture_frame", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_motion_capture_frame\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_motion_capture_with_http_info(motion_capture_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Download motion capture Motion captures are downloaded using this endpoint.
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 |
# File 'lib/onfido/api/default_api.rb', line 1213 def download_motion_capture_with_http_info(motion_capture_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_motion_capture ...' end # verify the required parameter 'motion_capture_id' is set if @api_client.config.client_side_validation && motion_capture_id.nil? fail ArgumentError, "Missing the required parameter 'motion_capture_id' when calling DefaultApi.download_motion_capture" end # resource path local_var_path = '/motion_captures/{motion_capture_id}/download'.sub('{' + 'motion_capture_id' + '}', CGI.escape(motion_capture_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_motion_capture", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_motion_capture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_qes_document(workflow_run_id, file_id, opts = {}) ⇒ File
Retrieves the signed document or application form Retrieves the signed document or application form depending on the file_id provided.
1330 1331 1332 1333 |
# File 'lib/onfido/api/default_api.rb', line 1330 def download_qes_document(workflow_run_id, file_id, opts = {}) data, _status_code, _headers = download_qes_document_with_http_info(workflow_run_id, file_id, opts) data end |
#download_qes_document_with_http_info(workflow_run_id, file_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Retrieves the signed document or application form Retrieves the signed document or application form depending on the file_id provided.
1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 |
# File 'lib/onfido/api/default_api.rb', line 1341 def download_qes_document_with_http_info(workflow_run_id, file_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_qes_document ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.download_qes_document" end # verify the required parameter 'file_id' is set if @api_client.config.client_side_validation && file_id.nil? fail ArgumentError, "Missing the required parameter 'file_id' when calling DefaultApi.download_qes_document" end # resource path local_var_path = '/qualified_electronic_signature/documents' # query parameters query_params = opts[:query_params] || {} query_params[:'workflow_run_id'] = workflow_run_id query_params[:'file_id'] = file_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_qes_document", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_qes_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#download_signed_evidence_file(workflow_run_id, opts = {}) ⇒ File
Retrieve Workflow Run Evidence Summary File Retrieves the signed evidence file for the designated Workflow Run
1400 1401 1402 1403 |
# File 'lib/onfido/api/default_api.rb', line 1400 def download_signed_evidence_file(workflow_run_id, opts = {}) data, _status_code, _headers = download_signed_evidence_file_with_http_info(workflow_run_id, opts) data end |
#download_signed_evidence_file_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Retrieve Workflow Run Evidence Summary File Retrieves the signed evidence file for the designated Workflow Run
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 |
# File 'lib/onfido/api/default_api.rb', line 1410 def download_signed_evidence_file_with_http_info(workflow_run_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.download_signed_evidence_file ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.download_signed_evidence_file" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}/signed_evidence_file'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.download_signed_evidence_file", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#download_signed_evidence_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#extract(extract_request, opts = {}) ⇒ Extraction
Autofill Extract information from a document
1463 1464 1465 1466 |
# File 'lib/onfido/api/default_api.rb', line 1463 def extract(extract_request, opts = {}) data, _status_code, _headers = extract_with_http_info(extract_request, opts) data end |
#extract_with_http_info(extract_request, opts = {}) ⇒ Array<(Extraction, Integer, Hash)>
Autofill Extract information from a document
1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 |
# File 'lib/onfido/api/default_api.rb', line 1473 def extract_with_http_info(extract_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.extract ...' end # verify the required parameter 'extract_request' is set if @api_client.config.client_side_validation && extract_request.nil? fail ArgumentError, "Missing the required parameter 'extract_request' when calling DefaultApi.extract" end # resource path local_var_path = '/extractions' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(extract_request) # return_type return_type = opts[:debug_return_type] || 'Extraction' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.extract", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#extract\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_addresses(postcode, opts = {}) ⇒ AddressesList
Address Picker Search for addresses by postcode
1531 1532 1533 1534 |
# File 'lib/onfido/api/default_api.rb', line 1531 def find_addresses(postcode, opts = {}) data, _status_code, _headers = find_addresses_with_http_info(postcode, opts) data end |
#find_addresses_with_http_info(postcode, opts = {}) ⇒ Array<(AddressesList, Integer, Hash)>
Address Picker Search for addresses by postcode
1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 |
# File 'lib/onfido/api/default_api.rb', line 1541 def find_addresses_with_http_info(postcode, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_addresses ...' end # verify the required parameter 'postcode' is set if @api_client.config.client_side_validation && postcode.nil? fail ArgumentError, "Missing the required parameter 'postcode' when calling DefaultApi.find_addresses" end # resource path local_var_path = '/addresses/pick' # query parameters query_params = opts[:query_params] || {} query_params[:'postcode'] = postcode # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'AddressesList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_addresses", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_applicant(applicant_id, opts = {}) ⇒ Applicant
Retrieve Applicant Retrieves a single applicant. Returns an applicant object.
1595 1596 1597 1598 |
# File 'lib/onfido/api/default_api.rb', line 1595 def find_applicant(applicant_id, opts = {}) data, _status_code, _headers = find_applicant_with_http_info(applicant_id, opts) data end |
#find_applicant_with_http_info(applicant_id, opts = {}) ⇒ Array<(Applicant, Integer, Hash)>
Retrieve Applicant Retrieves a single applicant. Returns an applicant object.
1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 |
# File 'lib/onfido/api/default_api.rb', line 1605 def find_applicant_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_applicant ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.find_applicant" end # resource path local_var_path = '/applicants/{applicant_id}'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Applicant' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_applicant", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_check(check_id, opts = {}) ⇒ Check
Retrieve a Check Retrieves a single check. Returns a check object.
1658 1659 1660 1661 |
# File 'lib/onfido/api/default_api.rb', line 1658 def find_check(check_id, opts = {}) data, _status_code, _headers = find_check_with_http_info(check_id, opts) data end |
#find_check_with_http_info(check_id, opts = {}) ⇒ Array<(Check, Integer, Hash)>
Retrieve a Check Retrieves a single check. Returns a check object.
1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 |
# File 'lib/onfido/api/default_api.rb', line 1668 def find_check_with_http_info(check_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_check ...' end # verify the required parameter 'check_id' is set if @api_client.config.client_side_validation && check_id.nil? fail ArgumentError, "Missing the required parameter 'check_id' when calling DefaultApi.find_check" end # resource path local_var_path = '/checks/{check_id}'.sub('{' + 'check_id' + '}', CGI.escape(check_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Check' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_check", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_document(document_id, opts = {}) ⇒ Document
Retrieve document A single document can be retrieved by calling this endpoint with the document’s unique identifier.
1721 1722 1723 1724 |
# File 'lib/onfido/api/default_api.rb', line 1721 def find_document(document_id, opts = {}) data, _status_code, _headers = find_document_with_http_info(document_id, opts) data end |
#find_document_with_http_info(document_id, opts = {}) ⇒ Array<(Document, Integer, Hash)>
Retrieve document A single document can be retrieved by calling this endpoint with the document's unique identifier.
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 |
# File 'lib/onfido/api/default_api.rb', line 1731 def find_document_with_http_info(document_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_document ...' end # verify the required parameter 'document_id' is set if @api_client.config.client_side_validation && document_id.nil? fail ArgumentError, "Missing the required parameter 'document_id' when calling DefaultApi.find_document" end # resource path local_var_path = '/documents/{document_id}'.sub('{' + 'document_id' + '}', CGI.escape(document_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Document' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_document", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_id_photo(id_photo_id, opts = {}) ⇒ IdPhoto
Retrieve ID photo Retrieves a single ID photo. Returns a ID photo object.
1784 1785 1786 1787 |
# File 'lib/onfido/api/default_api.rb', line 1784 def find_id_photo(id_photo_id, opts = {}) data, _status_code, _headers = find_id_photo_with_http_info(id_photo_id, opts) data end |
#find_id_photo_with_http_info(id_photo_id, opts = {}) ⇒ Array<(IdPhoto, Integer, Hash)>
Retrieve ID photo Retrieves a single ID photo. Returns a ID photo object.
1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 |
# File 'lib/onfido/api/default_api.rb', line 1794 def find_id_photo_with_http_info(id_photo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_id_photo ...' end # verify the required parameter 'id_photo_id' is set if @api_client.config.client_side_validation && id_photo_id.nil? fail ArgumentError, "Missing the required parameter 'id_photo_id' when calling DefaultApi.find_id_photo" end # resource path local_var_path = '/id_photos/{id_photo_id}'.sub('{' + 'id_photo_id' + '}', CGI.escape(id_photo_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IdPhoto' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_id_photo", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_id_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_live_photo(live_photo_id, opts = {}) ⇒ LivePhoto
Retrieve live photo Retrieves a single live photo. Returns a live photo object.
1847 1848 1849 1850 |
# File 'lib/onfido/api/default_api.rb', line 1847 def find_live_photo(live_photo_id, opts = {}) data, _status_code, _headers = find_live_photo_with_http_info(live_photo_id, opts) data end |
#find_live_photo_with_http_info(live_photo_id, opts = {}) ⇒ Array<(LivePhoto, Integer, Hash)>
Retrieve live photo Retrieves a single live photo. Returns a live photo object.
1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 |
# File 'lib/onfido/api/default_api.rb', line 1857 def find_live_photo_with_http_info(live_photo_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_live_photo ...' end # verify the required parameter 'live_photo_id' is set if @api_client.config.client_side_validation && live_photo_id.nil? fail ArgumentError, "Missing the required parameter 'live_photo_id' when calling DefaultApi.find_live_photo" end # resource path local_var_path = '/live_photos/{live_photo_id}'.sub('{' + 'live_photo_id' + '}', CGI.escape(live_photo_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LivePhoto' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_live_photo", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_live_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_live_video(live_video_id, opts = {}) ⇒ LiveVideo
Retrieve live video Retrieves a single live video. Returns the corresponding live video object.
1910 1911 1912 1913 |
# File 'lib/onfido/api/default_api.rb', line 1910 def find_live_video(live_video_id, opts = {}) data, _status_code, _headers = find_live_video_with_http_info(live_video_id, opts) data end |
#find_live_video_with_http_info(live_video_id, opts = {}) ⇒ Array<(LiveVideo, Integer, Hash)>
Retrieve live video Retrieves a single live video. Returns the corresponding live video object.
1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 |
# File 'lib/onfido/api/default_api.rb', line 1920 def find_live_video_with_http_info(live_video_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_live_video ...' end # verify the required parameter 'live_video_id' is set if @api_client.config.client_side_validation && live_video_id.nil? fail ArgumentError, "Missing the required parameter 'live_video_id' when calling DefaultApi.find_live_video" end # resource path local_var_path = '/live_videos/{live_video_id}'.sub('{' + 'live_video_id' + '}', CGI.escape(live_video_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LiveVideo' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_live_video", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_live_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_motion_capture(motion_capture_id, opts = {}) ⇒ MotionCapture
Retrieve motion capture Retrieves a single motion capture. Returns the corresponding motion capture object.
1973 1974 1975 1976 |
# File 'lib/onfido/api/default_api.rb', line 1973 def find_motion_capture(motion_capture_id, opts = {}) data, _status_code, _headers = find_motion_capture_with_http_info(motion_capture_id, opts) data end |
#find_motion_capture_with_http_info(motion_capture_id, opts = {}) ⇒ Array<(MotionCapture, Integer, Hash)>
Retrieve motion capture Retrieves a single motion capture. Returns the corresponding motion capture object.
1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 |
# File 'lib/onfido/api/default_api.rb', line 1983 def find_motion_capture_with_http_info(motion_capture_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_motion_capture ...' end # verify the required parameter 'motion_capture_id' is set if @api_client.config.client_side_validation && motion_capture_id.nil? fail ArgumentError, "Missing the required parameter 'motion_capture_id' when calling DefaultApi.find_motion_capture" end # resource path local_var_path = '/motion_captures/{motion_capture_id}'.sub('{' + 'motion_capture_id' + '}', CGI.escape(motion_capture_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MotionCapture' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_motion_capture", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_motion_capture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_report(report_id, opts = {}) ⇒ Report
Retrieve report A single report can be retrieved using this endpoint with the corresponding unique identifier.
2036 2037 2038 2039 |
# File 'lib/onfido/api/default_api.rb', line 2036 def find_report(report_id, opts = {}) data, _status_code, _headers = find_report_with_http_info(report_id, opts) data end |
#find_report_with_http_info(report_id, opts = {}) ⇒ Array<(Report, Integer, Hash)>
Retrieve report A single report can be retrieved using this endpoint with the corresponding unique identifier.
2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 |
# File 'lib/onfido/api/default_api.rb', line 2046 def find_report_with_http_info(report_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_report ...' end # verify the required parameter 'report_id' is set if @api_client.config.client_side_validation && report_id.nil? fail ArgumentError, "Missing the required parameter 'report_id' when calling DefaultApi.find_report" end # resource path local_var_path = '/reports/{report_id}'.sub('{' + 'report_id' + '}', CGI.escape(report_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Report' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_report", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_task(workflow_run_id, task_id, opts = {}) ⇒ Task
Retrieve Task A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
2100 2101 2102 2103 |
# File 'lib/onfido/api/default_api.rb', line 2100 def find_task(workflow_run_id, task_id, opts = {}) data, _status_code, _headers = find_task_with_http_info(workflow_run_id, task_id, opts) data end |
#find_task_with_http_info(workflow_run_id, task_id, opts = {}) ⇒ Array<(Task, Integer, Hash)>
Retrieve Task A single task can be retrieved by calling this endpoint with the unique identifier of the Task and Workflow Run.
2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 |
# File 'lib/onfido/api/default_api.rb', line 2111 def find_task_with_http_info(workflow_run_id, task_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_task ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.find_task" end # verify the required parameter 'task_id' is set if @api_client.config.client_side_validation && task_id.nil? fail ArgumentError, "Missing the required parameter 'task_id' when calling DefaultApi.find_task" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}/tasks/{task_id}'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)).sub('{' + 'task_id' + '}', CGI.escape(task_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Task' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_task", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_timeline_file(workflow_run_id, timeline_file_id, opts = {}) ⇒ File
Retrieve Timeline File for Workflow Run Retrieves the Timeline File for the designated Workflow Run.
2169 2170 2171 2172 |
# File 'lib/onfido/api/default_api.rb', line 2169 def find_timeline_file(workflow_run_id, timeline_file_id, opts = {}) data, _status_code, _headers = find_timeline_file_with_http_info(workflow_run_id, timeline_file_id, opts) data end |
#find_timeline_file_with_http_info(workflow_run_id, timeline_file_id, opts = {}) ⇒ Array<(File, Integer, Hash)>
Retrieve Timeline File for Workflow Run Retrieves the Timeline File for the designated Workflow Run.
2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 |
# File 'lib/onfido/api/default_api.rb', line 2180 def find_timeline_file_with_http_info(workflow_run_id, timeline_file_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_timeline_file ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.find_timeline_file" end # verify the required parameter 'timeline_file_id' is set if @api_client.config.client_side_validation && timeline_file_id.nil? fail ArgumentError, "Missing the required parameter 'timeline_file_id' when calling DefaultApi.find_timeline_file" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}/timeline_file/{timeline_file_id}'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)).sub('{' + 'timeline_file_id' + '}', CGI.escape(timeline_file_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/pdf', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'File' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_timeline_file", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_timeline_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_watchlist_monitor(monitor_id, opts = {}) ⇒ WatchlistMonitor
Retrieve monitor Retrieves a single monitor
2237 2238 2239 2240 |
# File 'lib/onfido/api/default_api.rb', line 2237 def find_watchlist_monitor(monitor_id, opts = {}) data, _status_code, _headers = find_watchlist_monitor_with_http_info(monitor_id, opts) data end |
#find_watchlist_monitor_with_http_info(monitor_id, opts = {}) ⇒ Array<(WatchlistMonitor, Integer, Hash)>
Retrieve monitor Retrieves a single monitor
2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 |
# File 'lib/onfido/api/default_api.rb', line 2247 def find_watchlist_monitor_with_http_info(monitor_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_watchlist_monitor ...' end # verify the required parameter 'monitor_id' is set if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DefaultApi.find_watchlist_monitor" end # resource path local_var_path = '/watchlist_monitors/{monitor_id}'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'WatchlistMonitor' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_watchlist_monitor", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_watchlist_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_webhook(webhook_id, opts = {}) ⇒ Webhook
Retrieve a Webhook Retrieves a single webhook. Returns a webhook object.
2300 2301 2302 2303 |
# File 'lib/onfido/api/default_api.rb', line 2300 def find_webhook(webhook_id, opts = {}) data, _status_code, _headers = find_webhook_with_http_info(webhook_id, opts) data end |
#find_webhook_with_http_info(webhook_id, opts = {}) ⇒ Array<(Webhook, Integer, Hash)>
Retrieve a Webhook Retrieves a single webhook. Returns a webhook object.
2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 |
# File 'lib/onfido/api/default_api.rb', line 2310 def find_webhook_with_http_info(webhook_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_webhook ...' end # verify the required parameter 'webhook_id' is set if @api_client.config.client_side_validation && webhook_id.nil? fail ArgumentError, "Missing the required parameter 'webhook_id' when calling DefaultApi.find_webhook" end # resource path local_var_path = '/webhooks/{webhook_id}'.sub('{' + 'webhook_id' + '}', CGI.escape(webhook_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Webhook' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_webhook", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#find_workflow_run(workflow_run_id, opts = {}) ⇒ WorkflowRun
Retrieve Workflow Run A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
2363 2364 2365 2366 |
# File 'lib/onfido/api/default_api.rb', line 2363 def find_workflow_run(workflow_run_id, opts = {}) data, _status_code, _headers = find_workflow_run_with_http_info(workflow_run_id, opts) data end |
#find_workflow_run_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(WorkflowRun, Integer, Hash)>
Retrieve Workflow Run A single workflow run can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 |
# File 'lib/onfido/api/default_api.rb', line 2373 def find_workflow_run_with_http_info(workflow_run_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.find_workflow_run ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.find_workflow_run" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'WorkflowRun' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.find_workflow_run", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#find_workflow_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#force_report_creation_from_watchlist_monitor(monitor_id, opts = {}) ⇒ nil
Force new report creation (BETA) Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update.
2426 2427 2428 2429 |
# File 'lib/onfido/api/default_api.rb', line 2426 def force_report_creation_from_watchlist_monitor(monitor_id, opts = {}) force_report_creation_from_watchlist_monitor_with_http_info(monitor_id, opts) nil end |
#force_report_creation_from_watchlist_monitor_with_http_info(monitor_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Force new report creation (BETA) Triggers a new check with an updated report to be generated by the monitor, as if the monitor had received an update.
2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 |
# File 'lib/onfido/api/default_api.rb', line 2436 def force_report_creation_from_watchlist_monitor_with_http_info(monitor_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.force_report_creation_from_watchlist_monitor ...' end # verify the required parameter 'monitor_id' is set if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DefaultApi.force_report_creation_from_watchlist_monitor" end # resource path local_var_path = '/watchlist_monitors/{monitor_id}/new_report'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.force_report_creation_from_watchlist_monitor", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#force_report_creation_from_watchlist_monitor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#generate_sdk_token(sdk_token_builder, opts = {}) ⇒ SdkToken
Generate a SDK token Generates an SDK token. Returns a token object containing the SDK token.
2489 2490 2491 2492 |
# File 'lib/onfido/api/default_api.rb', line 2489 def generate_sdk_token(sdk_token_builder, opts = {}) data, _status_code, _headers = generate_sdk_token_with_http_info(sdk_token_builder, opts) data end |
#generate_sdk_token_with_http_info(sdk_token_builder, opts = {}) ⇒ Array<(SdkToken, Integer, Hash)>
Generate a SDK token Generates an SDK token. Returns a token object containing the SDK token.
2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 |
# File 'lib/onfido/api/default_api.rb', line 2499 def generate_sdk_token_with_http_info(sdk_token_builder, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.generate_sdk_token ...' end # verify the required parameter 'sdk_token_builder' is set if @api_client.config.client_side_validation && sdk_token_builder.nil? fail ArgumentError, "Missing the required parameter 'sdk_token_builder' when calling DefaultApi.generate_sdk_token" end # resource path local_var_path = '/sdk_token' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(sdk_token_builder) # return_type return_type = opts[:debug_return_type] || 'SdkToken' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.generate_sdk_token", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#generate_sdk_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_applicants(opts = {}) ⇒ ApplicantsList
List Applicants Lists all applicants you’ve created, sorted by creation date in descending order.
2559 2560 2561 2562 |
# File 'lib/onfido/api/default_api.rb', line 2559 def list_applicants(opts = {}) data, _status_code, _headers = list_applicants_with_http_info(opts) data end |
#list_applicants_with_http_info(opts = {}) ⇒ Array<(ApplicantsList, Integer, Hash)>
List Applicants Lists all applicants you've created, sorted by creation date in descending order.
2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 |
# File 'lib/onfido/api/default_api.rb', line 2571 def list_applicants_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_applicants ...' end # resource path local_var_path = '/applicants' # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil? query_params[:'include_deleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ApplicantsList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_applicants", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_applicants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_checks(applicant_id, opts = {}) ⇒ ChecksList
Retrieve Checks Retrieves a single check. Returns a check object.
2623 2624 2625 2626 |
# File 'lib/onfido/api/default_api.rb', line 2623 def list_checks(applicant_id, opts = {}) data, _status_code, _headers = list_checks_with_http_info(applicant_id, opts) data end |
#list_checks_with_http_info(applicant_id, opts = {}) ⇒ Array<(ChecksList, Integer, Hash)>
Retrieve Checks Retrieves a single check. Returns a check object.
2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 |
# File 'lib/onfido/api/default_api.rb', line 2633 def list_checks_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_checks ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_checks" end # resource path local_var_path = '/checks' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ChecksList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_checks", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_checks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_documents(applicant_id, opts = {}) ⇒ DocumentsList
List documents All documents belonging to an applicant can be listed from this endpoint
2687 2688 2689 2690 |
# File 'lib/onfido/api/default_api.rb', line 2687 def list_documents(applicant_id, opts = {}) data, _status_code, _headers = list_documents_with_http_info(applicant_id, opts) data end |
#list_documents_with_http_info(applicant_id, opts = {}) ⇒ Array<(DocumentsList, Integer, Hash)>
List documents All documents belonging to an applicant can be listed from this endpoint
2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 |
# File 'lib/onfido/api/default_api.rb', line 2697 def list_documents_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_documents ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_documents" end # resource path local_var_path = '/documents' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'DocumentsList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_documents", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_documents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_id_photos(applicant_id, opts = {}) ⇒ IdPhotosList
List ID photos Lists the ID photos that belong to an applicant.
2751 2752 2753 2754 |
# File 'lib/onfido/api/default_api.rb', line 2751 def list_id_photos(applicant_id, opts = {}) data, _status_code, _headers = list_id_photos_with_http_info(applicant_id, opts) data end |
#list_id_photos_with_http_info(applicant_id, opts = {}) ⇒ Array<(IdPhotosList, Integer, Hash)>
List ID photos Lists the ID photos that belong to an applicant.
2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 |
# File 'lib/onfido/api/default_api.rb', line 2761 def list_id_photos_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_id_photos ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_id_photos" end # resource path local_var_path = '/id_photos' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IdPhotosList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_id_photos", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_id_photos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_live_photos(applicant_id, opts = {}) ⇒ LivePhotosList
List live photos Lists the live photos that belong to an applicant.
2815 2816 2817 2818 |
# File 'lib/onfido/api/default_api.rb', line 2815 def list_live_photos(applicant_id, opts = {}) data, _status_code, _headers = list_live_photos_with_http_info(applicant_id, opts) data end |
#list_live_photos_with_http_info(applicant_id, opts = {}) ⇒ Array<(LivePhotosList, Integer, Hash)>
List live photos Lists the live photos that belong to an applicant.
2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 |
# File 'lib/onfido/api/default_api.rb', line 2825 def list_live_photos_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_live_photos ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_live_photos" end # resource path local_var_path = '/live_photos' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LivePhotosList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_live_photos", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_live_photos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_live_videos(applicant_id, opts = {}) ⇒ LiveVideosList
List live videos Lists all the live videos that belong to an applicant.
2879 2880 2881 2882 |
# File 'lib/onfido/api/default_api.rb', line 2879 def list_live_videos(applicant_id, opts = {}) data, _status_code, _headers = list_live_videos_with_http_info(applicant_id, opts) data end |
#list_live_videos_with_http_info(applicant_id, opts = {}) ⇒ Array<(LiveVideosList, Integer, Hash)>
List live videos Lists all the live videos that belong to an applicant.
2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 |
# File 'lib/onfido/api/default_api.rb', line 2889 def list_live_videos_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_live_videos ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_live_videos" end # resource path local_var_path = '/live_videos' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LiveVideosList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_live_videos", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_live_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_motion_captures(applicant_id, opts = {}) ⇒ MotionCapturesList
List motion captures Lists all the motion captures that belong to an applicant.
2943 2944 2945 2946 |
# File 'lib/onfido/api/default_api.rb', line 2943 def list_motion_captures(applicant_id, opts = {}) data, _status_code, _headers = list_motion_captures_with_http_info(applicant_id, opts) data end |
#list_motion_captures_with_http_info(applicant_id, opts = {}) ⇒ Array<(MotionCapturesList, Integer, Hash)>
List motion captures Lists all the motion captures that belong to an applicant.
2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 |
# File 'lib/onfido/api/default_api.rb', line 2953 def list_motion_captures_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_motion_captures ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_motion_captures" end # resource path local_var_path = '/motion_captures' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'MotionCapturesList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_motion_captures", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_motion_captures\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_repeat_attempts(report_id, opts = {}) ⇒ RepeatAttemptsList
Retrieve repeat attempts Returns all repeat attempts for a given Document report
3007 3008 3009 3010 |
# File 'lib/onfido/api/default_api.rb', line 3007 def list_repeat_attempts(report_id, opts = {}) data, _status_code, _headers = list_repeat_attempts_with_http_info(report_id, opts) data end |
#list_repeat_attempts_with_http_info(report_id, opts = {}) ⇒ Array<(RepeatAttemptsList, Integer, Hash)>
Retrieve repeat attempts Returns all repeat attempts for a given Document report
3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 |
# File 'lib/onfido/api/default_api.rb', line 3017 def list_repeat_attempts_with_http_info(report_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_repeat_attempts ...' end # verify the required parameter 'report_id' is set if @api_client.config.client_side_validation && report_id.nil? fail ArgumentError, "Missing the required parameter 'report_id' when calling DefaultApi.list_repeat_attempts" end # resource path local_var_path = '/repeat_attempts/{report_id}'.sub('{' + 'report_id' + '}', CGI.escape(report_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'RepeatAttemptsList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_repeat_attempts", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_repeat_attempts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_reports(check_id, opts = {}) ⇒ ReportsList
List reports All the reports belonging to a particular check can be listed from this endpoint.
3070 3071 3072 3073 |
# File 'lib/onfido/api/default_api.rb', line 3070 def list_reports(check_id, opts = {}) data, _status_code, _headers = list_reports_with_http_info(check_id, opts) data end |
#list_reports_with_http_info(check_id, opts = {}) ⇒ Array<(ReportsList, Integer, Hash)>
List reports All the reports belonging to a particular check can be listed from this endpoint.
3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 |
# File 'lib/onfido/api/default_api.rb', line 3080 def list_reports_with_http_info(check_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_reports ...' end # verify the required parameter 'check_id' is set if @api_client.config.client_side_validation && check_id.nil? fail ArgumentError, "Missing the required parameter 'check_id' when calling DefaultApi.list_reports" end # resource path local_var_path = '/reports' # query parameters query_params = opts[:query_params] || {} query_params[:'check_id'] = check_id # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ReportsList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_reports", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_tasks(workflow_run_id, opts = {}) ⇒ Array<TaskItem>
List Tasks The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
3134 3135 3136 3137 |
# File 'lib/onfido/api/default_api.rb', line 3134 def list_tasks(workflow_run_id, opts = {}) data, _status_code, _headers = list_tasks_with_http_info(workflow_run_id, opts) data end |
#list_tasks_with_http_info(workflow_run_id, opts = {}) ⇒ Array<(Array<TaskItem>, Integer, Hash)>
List Tasks The tasks of a Workflow can be retrieved by calling this endpoint with the unique identifier of the Workflow Run.
3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 |
# File 'lib/onfido/api/default_api.rb', line 3144 def list_tasks_with_http_info(workflow_run_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tasks ...' end # verify the required parameter 'workflow_run_id' is set if @api_client.config.client_side_validation && workflow_run_id.nil? fail ArgumentError, "Missing the required parameter 'workflow_run_id' when calling DefaultApi.list_tasks" end # resource path local_var_path = '/workflow_runs/{workflow_run_id}/tasks'.sub('{' + 'workflow_run_id' + '}', CGI.escape(workflow_run_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<TaskItem>' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_tasks", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_watchlist_monitor_matches(monitor_id, opts = {}) ⇒ WatchlistMonitorMatchesList
List matches (BETA) List match IDs on this monitor, as well as their enabled/disabled status
3197 3198 3199 3200 |
# File 'lib/onfido/api/default_api.rb', line 3197 def list_watchlist_monitor_matches(monitor_id, opts = {}) data, _status_code, _headers = list_watchlist_monitor_matches_with_http_info(monitor_id, opts) data end |
#list_watchlist_monitor_matches_with_http_info(monitor_id, opts = {}) ⇒ Array<(WatchlistMonitorMatchesList, Integer, Hash)>
List matches (BETA) List match IDs on this monitor, as well as their enabled/disabled status
3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 |
# File 'lib/onfido/api/default_api.rb', line 3207 def list_watchlist_monitor_matches_with_http_info(monitor_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_watchlist_monitor_matches ...' end # verify the required parameter 'monitor_id' is set if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DefaultApi.list_watchlist_monitor_matches" end # resource path local_var_path = '/watchlist_monitors/{monitor_id}/matches'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'WatchlistMonitorMatchesList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_watchlist_monitor_matches", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_watchlist_monitor_matches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_watchlist_monitors(applicant_id, opts = {}) ⇒ WatchlistMonitorsList
List monitors List all available monitors for an applicant
3261 3262 3263 3264 |
# File 'lib/onfido/api/default_api.rb', line 3261 def list_watchlist_monitors(applicant_id, opts = {}) data, _status_code, _headers = list_watchlist_monitors_with_http_info(applicant_id, opts) data end |
#list_watchlist_monitors_with_http_info(applicant_id, opts = {}) ⇒ Array<(WatchlistMonitorsList, Integer, Hash)>
List monitors List all available monitors for an applicant
3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 |
# File 'lib/onfido/api/default_api.rb', line 3272 def list_watchlist_monitors_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_watchlist_monitors ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.list_watchlist_monitors" end # resource path local_var_path = '/watchlist_monitors' # query parameters query_params = opts[:query_params] || {} query_params[:'applicant_id'] = applicant_id query_params[:'include_deleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'WatchlistMonitorsList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_watchlist_monitors", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_watchlist_monitors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_webhooks(opts = {}) ⇒ WebhooksList
List webhooks Lists all webhooks you’ve created.
3326 3327 3328 3329 |
# File 'lib/onfido/api/default_api.rb', line 3326 def list_webhooks(opts = {}) data, _status_code, _headers = list_webhooks_with_http_info(opts) data end |
#list_webhooks_with_http_info(opts = {}) ⇒ Array<(WebhooksList, Integer, Hash)>
List webhooks Lists all webhooks you've created.
3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 |
# File 'lib/onfido/api/default_api.rb', line 3335 def list_webhooks_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_webhooks ...' end # resource path local_var_path = '/webhooks' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'WebhooksList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_webhooks", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_workflow_runs(opts = {}) ⇒ Array<WorkflowRun>
List Workflow Runs Retrieves the Workflow Runs of the client. Returns a list of Workflow Run objects.
3388 3389 3390 3391 |
# File 'lib/onfido/api/default_api.rb', line 3388 def list_workflow_runs(opts = {}) data, _status_code, _headers = list_workflow_runs_with_http_info(opts) data end |
#list_workflow_runs_with_http_info(opts = {}) ⇒ Array<(Array<WorkflowRun>, Integer, Hash)>
List Workflow Runs Retrieves the Workflow Runs of the client. Returns a list of Workflow Run objects.
3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 |
# File 'lib/onfido/api/default_api.rb', line 3402 def list_workflow_runs_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_workflow_runs ...' end allowable_values = ["desc", "asc", "unknown_default_open_api"] if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort']) fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}" end # resource path local_var_path = '/workflow_runs' # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil? query_params[:'created_at_gt'] = opts[:'created_at_gt'] if !opts[:'created_at_gt'].nil? query_params[:'created_at_lt'] = opts[:'created_at_lt'] if !opts[:'created_at_lt'].nil? query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<WorkflowRun>' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.list_workflow_runs", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_workflow_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#ping(opts = {}) ⇒ String
Ping Run a health check on the Onfido API
3459 3460 3461 3462 |
# File 'lib/onfido/api/default_api.rb', line 3459 def ping(opts = {}) data, _status_code, _headers = ping_with_http_info(opts) data end |
#ping_with_http_info(opts = {}) ⇒ Array<(String, Integer, Hash)>
Ping Run a health check on the Onfido API
3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 |
# File 'lib/onfido/api/default_api.rb', line 3468 def ping_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.ping ...' end # resource path local_var_path = '/ping' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['text/plain', 'application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'String' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.ping", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#post_results_feedback(results_feedback, opts = {}) ⇒ ResultsFeedback
Fraud reporting (ALPHA) Create Feedback on checks and reports
3517 3518 3519 3520 |
# File 'lib/onfido/api/default_api.rb', line 3517 def post_results_feedback(results_feedback, opts = {}) data, _status_code, _headers = post_results_feedback_with_http_info(results_feedback, opts) data end |
#post_results_feedback_with_http_info(results_feedback, opts = {}) ⇒ Array<(ResultsFeedback, Integer, Hash)>
Fraud reporting (ALPHA) Create Feedback on checks and reports
3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 |
# File 'lib/onfido/api/default_api.rb', line 3527 def post_results_feedback_with_http_info(results_feedback, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.post_results_feedback ...' end # verify the required parameter 'results_feedback' is set if @api_client.config.client_side_validation && results_feedback.nil? fail ArgumentError, "Missing the required parameter 'results_feedback' when calling DefaultApi.post_results_feedback" end # resource path local_var_path = '/results_feedback' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(results_feedback) # return_type return_type = opts[:debug_return_type] || 'ResultsFeedback' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.post_results_feedback", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#post_results_feedback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#resend_webhooks(webhook_resend, opts = {}) ⇒ nil
Resends webhooks Resends events to all webhooks registered with a matching environment in your account.
3585 3586 3587 3588 |
# File 'lib/onfido/api/default_api.rb', line 3585 def resend_webhooks(webhook_resend, opts = {}) resend_webhooks_with_http_info(webhook_resend, opts) nil end |
#resend_webhooks_with_http_info(webhook_resend, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Resends webhooks Resends events to all webhooks registered with a matching environment in your account.
3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 |
# File 'lib/onfido/api/default_api.rb', line 3595 def resend_webhooks_with_http_info(webhook_resend, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.resend_webhooks ...' end # verify the required parameter 'webhook_resend' is set if @api_client.config.client_side_validation && webhook_resend.nil? fail ArgumentError, "Missing the required parameter 'webhook_resend' when calling DefaultApi.resend_webhooks" end # resource path local_var_path = '/webhooks/resend' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_resend) # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.resend_webhooks", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#resend_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#restore_applicant(applicant_id, opts = {}) ⇒ nil
Restore Applicant Restores a single applicant scheduled for deletion.
3653 3654 3655 3656 |
# File 'lib/onfido/api/default_api.rb', line 3653 def restore_applicant(applicant_id, opts = {}) restore_applicant_with_http_info(applicant_id, opts) nil end |
#restore_applicant_with_http_info(applicant_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Restore Applicant Restores a single applicant scheduled for deletion.
3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 |
# File 'lib/onfido/api/default_api.rb', line 3663 def restore_applicant_with_http_info(applicant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.restore_applicant ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.restore_applicant" end # resource path local_var_path = '/applicants/{applicant_id}/restore'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.restore_applicant", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#restore_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#resume_check(check_id, opts = {}) ⇒ nil
Resume a Check Resumes a paused check.
3716 3717 3718 3719 |
# File 'lib/onfido/api/default_api.rb', line 3716 def resume_check(check_id, opts = {}) resume_check_with_http_info(check_id, opts) nil end |
#resume_check_with_http_info(check_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Resume a Check Resumes a paused check.
3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 |
# File 'lib/onfido/api/default_api.rb', line 3726 def resume_check_with_http_info(check_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.resume_check ...' end # verify the required parameter 'check_id' is set if @api_client.config.client_side_validation && check_id.nil? fail ArgumentError, "Missing the required parameter 'check_id' when calling DefaultApi.resume_check" end # resource path local_var_path = '/checks/{check_id}/resume'.sub('{' + 'check_id' + '}', CGI.escape(check_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.resume_check", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#resume_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#resume_report(report_id, opts = {}) ⇒ nil
Resume report Resumes a single paused report.
3779 3780 3781 3782 |
# File 'lib/onfido/api/default_api.rb', line 3779 def resume_report(report_id, opts = {}) resume_report_with_http_info(report_id, opts) nil end |
#resume_report_with_http_info(report_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Resume report Resumes a single paused report.
3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 |
# File 'lib/onfido/api/default_api.rb', line 3789 def resume_report_with_http_info(report_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.resume_report ...' end # verify the required parameter 'report_id' is set if @api_client.config.client_side_validation && report_id.nil? fail ArgumentError, "Missing the required parameter 'report_id' when calling DefaultApi.resume_report" end # resource path local_var_path = '/reports/{report_id}/resume'.sub('{' + 'report_id' + '}', CGI.escape(report_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.resume_report", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#resume_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_applicant(applicant_id, applicant_updater, opts = {}) ⇒ Applicant
Update Applicant Allows updating applicant’s information before any checks is created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant
3843 3844 3845 3846 |
# File 'lib/onfido/api/default_api.rb', line 3843 def update_applicant(applicant_id, applicant_updater, opts = {}) data, _status_code, _headers = update_applicant_with_http_info(applicant_id, applicant_updater, opts) data end |
#update_applicant_with_http_info(applicant_id, applicant_updater, opts = {}) ⇒ Array<(Applicant, Integer, Hash)>
Update Applicant Allows updating applicant's information before any checks is created. - Partial updates - Addresses and ID numbers present will replace existing ones - Same applicant validations to create applicant
3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 |
# File 'lib/onfido/api/default_api.rb', line 3854 def update_applicant_with_http_info(applicant_id, applicant_updater, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_applicant ...' end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.update_applicant" end # verify the required parameter 'applicant_updater' is set if @api_client.config.client_side_validation && applicant_updater.nil? fail ArgumentError, "Missing the required parameter 'applicant_updater' when calling DefaultApi.update_applicant" end # resource path local_var_path = '/applicants/{applicant_id}'.sub('{' + 'applicant_id' + '}', CGI.escape(applicant_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(applicant_updater) # return_type return_type = opts[:debug_return_type] || 'Applicant' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.update_applicant", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_applicant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_watchlist_monitor_match(monitor_id, watchlist_monitor_matches_updater, opts = {}) ⇒ WatchlistMonitorMatchesList
Set match status (BETA) Update the status of the given matches
3917 3918 3919 3920 |
# File 'lib/onfido/api/default_api.rb', line 3917 def update_watchlist_monitor_match(monitor_id, watchlist_monitor_matches_updater, opts = {}) data, _status_code, _headers = update_watchlist_monitor_match_with_http_info(monitor_id, watchlist_monitor_matches_updater, opts) data end |
#update_watchlist_monitor_match_with_http_info(monitor_id, watchlist_monitor_matches_updater, opts = {}) ⇒ Array<(WatchlistMonitorMatchesList, Integer, Hash)>
Set match status (BETA) Update the status of the given matches
3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 |
# File 'lib/onfido/api/default_api.rb', line 3928 def update_watchlist_monitor_match_with_http_info(monitor_id, watchlist_monitor_matches_updater, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_watchlist_monitor_match ...' end # verify the required parameter 'monitor_id' is set if @api_client.config.client_side_validation && monitor_id.nil? fail ArgumentError, "Missing the required parameter 'monitor_id' when calling DefaultApi.update_watchlist_monitor_match" end # verify the required parameter 'watchlist_monitor_matches_updater' is set if @api_client.config.client_side_validation && watchlist_monitor_matches_updater.nil? fail ArgumentError, "Missing the required parameter 'watchlist_monitor_matches_updater' when calling DefaultApi.update_watchlist_monitor_match" end # resource path local_var_path = '/watchlist_monitors/{monitor_id}/matches'.sub('{' + 'monitor_id' + '}', CGI.escape(monitor_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(watchlist_monitor_matches_updater) # return_type return_type = opts[:debug_return_type] || 'WatchlistMonitorMatchesList' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.update_watchlist_monitor_match", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_watchlist_monitor_match\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_webhook(webhook_id, webhook_updater, opts = {}) ⇒ Webhook
Edit a webhook Edits a webhook. Returns the updated webhook object.
3991 3992 3993 3994 |
# File 'lib/onfido/api/default_api.rb', line 3991 def update_webhook(webhook_id, webhook_updater, opts = {}) data, _status_code, _headers = update_webhook_with_http_info(webhook_id, webhook_updater, opts) data end |
#update_webhook_with_http_info(webhook_id, webhook_updater, opts = {}) ⇒ Array<(Webhook, Integer, Hash)>
Edit a webhook Edits a webhook. Returns the updated webhook object.
4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 |
# File 'lib/onfido/api/default_api.rb', line 4002 def update_webhook_with_http_info(webhook_id, webhook_updater, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_webhook ...' end # verify the required parameter 'webhook_id' is set if @api_client.config.client_side_validation && webhook_id.nil? fail ArgumentError, "Missing the required parameter 'webhook_id' when calling DefaultApi.update_webhook" end # verify the required parameter 'webhook_updater' is set if @api_client.config.client_side_validation && webhook_updater.nil? fail ArgumentError, "Missing the required parameter 'webhook_updater' when calling DefaultApi.update_webhook" end # resource path local_var_path = '/webhooks/{webhook_id}'.sub('{' + 'webhook_id' + '}', CGI.escape(webhook_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_updater) # return_type return_type = opts[:debug_return_type] || 'Webhook' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.update_webhook", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#upload_document(type, applicant_id, file, opts = {}) ⇒ Document
Upload a document Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB.
4071 4072 4073 4074 |
# File 'lib/onfido/api/default_api.rb', line 4071 def upload_document(type, applicant_id, file, opts = {}) data, _status_code, _headers = upload_document_with_http_info(type, applicant_id, file, opts) data end |
#upload_document_with_http_info(type, applicant_id, file, opts = {}) ⇒ Array<(Document, Integer, Hash)>
Upload a document Documents are uploaded using this endpoint. Along with the file upload the relevant document type must be specified. Documents must be uploaded as a multipart form. The valid file types are: jpg, png and pdf. The file size must be between 2KB and 3MB.
4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 |
# File 'lib/onfido/api/default_api.rb', line 4088 def upload_document_with_http_info(type, applicant_id, file, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.upload_document ...' end # verify the required parameter 'type' is set if @api_client.config.client_side_validation && type.nil? fail ArgumentError, "Missing the required parameter 'type' when calling DefaultApi.upload_document" end # verify the required parameter 'applicant_id' is set if @api_client.config.client_side_validation && applicant_id.nil? fail ArgumentError, "Missing the required parameter 'applicant_id' when calling DefaultApi.upload_document" end # verify the required parameter 'file' is set if @api_client.config.client_side_validation && file.nil? fail ArgumentError, "Missing the required parameter 'file' when calling DefaultApi.upload_document" end allowable_values = ["jpg", "jpeg", "png", "pdf", "unknown_default_open_api"] if @api_client.config.client_side_validation && opts[:'file_type'] && !allowable_values.include?(opts[:'file_type']) fail ArgumentError, "invalid value for \"file_type\", must be one of #{allowable_values}" end allowable_values = ["front", "back", "unknown_default_open_api"] if @api_client.config.client_side_validation && opts[:'side'] && !allowable_values.include?(opts[:'side']) fail ArgumentError, "invalid value for \"side\", must be one of #{allowable_values}" end # resource path local_var_path = '/documents' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['type'] = type form_params['applicant_id'] = applicant_id form_params['file'] = file form_params['file_type'] = opts[:'file_type'] if !opts[:'file_type'].nil? form_params['side'] = opts[:'side'] if !opts[:'side'].nil? form_params['issuing_country'] = opts[:'issuing_country'] if !opts[:'issuing_country'].nil? form_params['validate_image_quality'] = opts[:'validate_image_quality'] if !opts[:'validate_image_quality'].nil? form_params['location'] = opts[:'location'] if !opts[:'location'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Document' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.upload_document", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#upload_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#upload_id_photo(opts = {}) ⇒ IdPhoto
Upload ID photo You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
4171 4172 4173 4174 |
# File 'lib/onfido/api/default_api.rb', line 4171 def upload_id_photo(opts = {}) data, _status_code, _headers = upload_id_photo_with_http_info(opts) data end |
#upload_id_photo_with_http_info(opts = {}) ⇒ Array<(IdPhoto, Integer, Hash)>
Upload ID photo You can upload ID photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB.
4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 |
# File 'lib/onfido/api/default_api.rb', line 4182 def upload_id_photo_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.upload_id_photo ...' end # resource path local_var_path = '/id_photos' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['applicant_id'] = opts[:'applicant_id'] if !opts[:'applicant_id'].nil? form_params['file'] = opts[:'file'] if !opts[:'file'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'IdPhoto' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.upload_id_photo", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#upload_id_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#upload_live_photo(opts = {}) ⇒ LivePhoto
Upload live photo You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
4240 4241 4242 4243 |
# File 'lib/onfido/api/default_api.rb', line 4240 def upload_live_photo(opts = {}) data, _status_code, _headers = upload_live_photo_with_http_info(opts) data end |
#upload_live_photo_with_http_info(opts = {}) ⇒ Array<(LivePhoto, Integer, Hash)>
Upload live photo You can upload live photos to this endpoint. Like document upload, files must be uploaded as a multipart form. Valid file types are jpg, png and pdf. The file size must be between 32KB and 10MB. Live photos are validated at the point of upload to check that they contain exactly one face. This validation can be disabled by setting the advanced_validation argument to false.
4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 |
# File 'lib/onfido/api/default_api.rb', line 4252 def upload_live_photo_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.upload_live_photo ...' end # resource path local_var_path = '/live_photos' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['multipart/form-data']) if !content_type.nil? header_params['Content-Type'] = content_type end # form parameters form_params = opts[:form_params] || {} form_params['applicant_id'] = opts[:'applicant_id'] if !opts[:'applicant_id'].nil? form_params['file'] = opts[:'file'] if !opts[:'file'].nil? form_params['advanced_validation'] = opts[:'advanced_validation'] if !opts[:'advanced_validation'].nil? # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'LivePhoto' # auth_names auth_names = opts[:debug_auth_names] || ['Token'] = opts.merge( :operation => :"DefaultApi.upload_live_photo", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#upload_live_photo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |