class Yoti::DocScan::Session::Create::RequestedDocumentAuthenticityCheckBuilder

Builder to assist the creation of {RequestedDocumentAuthenticityCheck}

Public Instance Methods

build() click to toggle source

@return [RequestedDocumentAuthenticityCheck]

# File lib/yoti/doc_scan/session/create/requested_document_authenticity_check.rb, line 87
def build
  config = RequestedDocumentAuthenticityCheckConfig.new(@manual_check)
  RequestedDocumentAuthenticityCheck.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_document_authenticity_check.rb, line 57
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_document_authenticity_check.rb, line 68
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_document_authenticity_check.rb, line 79
def with_manual_check_never
  @manual_check = Constants::NEVER
  self
end