Class: Onfido::WebhookEventType
- Inherits:
-
Object
- Object
- Onfido::WebhookEventType
- Defined in:
- lib/onfido/models/webhook_event_type.rb
Constant Summary collapse
- AUDIT_LOG_CREATED =
"audit_log.created".freeze
- WATCHLIST_MONITOR_MATCHES_UPDATED =
"watchlist_monitor.matches_updated".freeze
- WORKFLOW_RUN_COMPLETED =
"workflow_run.completed".freeze
- WORKFLOW_TASK_STARTED =
"workflow_task.started".freeze
- WORKFLOW_TASK_COMPLETED =
"workflow_task.completed".freeze
- CHECK_STARTED =
"check.started".freeze
- CHECK_REOPENED =
"check.reopened".freeze
- CHECK_WITHDRAWN =
"check.withdrawn".freeze
- CHECK_COMPLETED =
"check.completed".freeze
- CHECK_FORM_COMPLETED =
"check.form_completed".freeze
- REPORT_WITHDRAWN =
"report.withdrawn".freeze
- REPORT_RESUMED =
"report.resumed".freeze
- REPORT_CANCELLED =
"report.cancelled".freeze
- REPORT_AWAITING_APPROVAL =
"report.awaiting_approval".freeze
- REPORT_COMPLETED =
"report.completed".freeze
- WORKFLOW_TIMELINE_FILE_CREATED =
"workflow_timeline_file.created".freeze
- WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED =
"workflow_signed_evidence_file.created".freeze
- UNKNOWN_DEFAULT_OPEN_API =
"unknown_default_open_api".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
37 38 39 |
# 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) ⇒ String
Builds the enum from string
44 45 46 |
# File 'lib/onfido/models/webhook_event_type.rb', line 44 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
51 52 53 54 |
# 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 |