class Yoti::DocScan::Session::Create::RequestedFaceMatchCheckBuilder

Builder to assist the creation of {RequestedFaceMatchCheck}

Public Instance Methods

build() click to toggle source
# File lib/yoti/doc_scan/session/create/requested_face_match_check.rb, line 87
def build
  config = RequestedFaceMatchCheckConfig.new(@manual_check)
  RequestedFaceMatchCheck.new(config)
end
with_manual_check_always() click to toggle source

Requires that a manual follow-up check is always performed

@return [self]

# File lib/yoti/doc_scan/session/create/requested_face_match_check.rb, line 60
def with_manual_check_always
  @manual_check = Constants::ALWAYS
  self
end
with_manual_check_fallback() click to toggle source

Requires that a manual follow-up check is performed only on failed checks, and those with a low level of confidence

@return [self]

# File lib/yoti/doc_scan/session/create/requested_face_match_check.rb, line 71
def with_manual_check_fallback
  @manual_check = Constants::FALLBACK
  self
end
with_manual_check_never() click to toggle source

Requires that only an automated check is performed. No manual follow-up Check will ever be initiated

@return [self]

# File lib/yoti/doc_scan/session/create/requested_face_match_check.rb, line 82
def with_manual_check_never
  @manual_check = Constants::NEVER
  self
end