class Onfido::WebhookEventType

Constants

AUDIT_LOG_CREATED
CHECK_COMPLETED
CHECK_FORM_COMPLETED
CHECK_REOPENED
CHECK_STARTED
CHECK_WITHDRAWN
REPORT_AWAITING_APPROVAL
REPORT_CANCELLED
REPORT_COMPLETED
REPORT_RESUMED
REPORT_WITHDRAWN
UNKNOWN_DEFAULT_OPEN_API
WATCHLIST_MONITOR_MATCHES_UPDATED
WORKFLOW_RUN_COMPLETED
WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED
WORKFLOW_TASK_COMPLETED
WORKFLOW_TASK_STARTED
WORKFLOW_TIMELINE_FILE_CREATED

Public Class Methods

all_vars() click to toggle source
# File lib/onfido/models/webhook_event_type.rb, line 37
def self.all_vars
  @all_vars ||= [AUDIT_LOG_CREATED, WATCHLIST_MONITOR_MATCHES_UPDATED, WORKFLOW_RUN_COMPLETED, WORKFLOW_TASK_STARTED, WORKFLOW_TASK_COMPLETED, CHECK_STARTED, CHECK_REOPENED, CHECK_WITHDRAWN, CHECK_COMPLETED, CHECK_FORM_COMPLETED, REPORT_WITHDRAWN, REPORT_RESUMED, REPORT_CANCELLED, REPORT_AWAITING_APPROVAL, REPORT_COMPLETED, WORKFLOW_TIMELINE_FILE_CREATED, WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED, UNKNOWN_DEFAULT_OPEN_API].freeze
end
build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/onfido/models/webhook_event_type.rb, line 44
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/onfido/models/webhook_event_type.rb, line 51
def build_from_hash(value)
  return value if WebhookEventType.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #WebhookEventType"
end