class Onfido::WebhookEventObjectStatus

Constants

ABANDONED
APPROVED
AWAITING_APPLICANT
AWAITING_APPROVAL
AWAITING_CLIENT_INPUT
AWAITING_DATA
AWAITING_INPUT
CANCELLED
COMPLETE
COMPLETED
DECLINED
ERROR
IN_PROGRESS
PAUSED
PROCESSING
REOPENED
REVIEW
STARTED
UNKNOWN_DEFAULT_OPEN_API
WITHDRAWN

Public Class Methods

all_vars() click to toggle source
# File lib/onfido/models/webhook_event_object_status.rb, line 39
def self.all_vars
  @all_vars ||= [PROCESSING, AWAITING_INPUT, AWAITING_CLIENT_INPUT, APPROVED, DECLINED, REVIEW, ABANDONED, ERROR, STARTED, CANCELLED, COMPLETED, AWAITING_DATA, AWAITING_APPROVAL, COMPLETE, WITHDRAWN, IN_PROGRESS, AWAITING_APPLICANT, PAUSED, REOPENED, 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_object_status.rb, line 46
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_object_status.rb, line 53
def build_from_hash(value)
  return value if WebhookEventObjectStatus.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #WebhookEventObjectStatus"
end