-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from getyoti/release/1.9.0
Release 1.9.0
- Loading branch information
Showing
18 changed files
with
367 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: check-yaml | ||
- repo: local | ||
hooks: | ||
- id: lint | ||
name: 'lint' | ||
entry: bundle exec rake rubocop | ||
language: system | ||
description: "Lint" | ||
- id: test | ||
name: 'test' | ||
entry: bundle exec rake spec | ||
language: system | ||
description: "Test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
lib/yoti/doc_scan/session/create/requested_id_document_comparison_check.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# frozen_string_literal: true | ||
|
||
module Yoti | ||
module DocScan | ||
module Session | ||
module Create | ||
# | ||
# Requests creation of an ID Document Comparison Check | ||
# | ||
class RequestedIdDocumentComparisonCheck < RequestedCheck | ||
def initialize(config) | ||
Validation.assert_is_a( | ||
RequestedIdDocumentComparisonCheckConfig, | ||
config, | ||
'config' | ||
) | ||
|
||
super(Constants::ID_DOCUMENT_COMPARISON, config) | ||
end | ||
|
||
# | ||
# @return [RequestedIdDocumentComparisonCheckBuilder] | ||
# | ||
def self.builder | ||
RequestedIdDocumentComparisonCheckBuilder.new | ||
end | ||
end | ||
|
||
# | ||
# The configuration applied when creating a {RequestedIdDocumentComparisonCheck} | ||
# | ||
class RequestedIdDocumentComparisonCheckConfig | ||
def as_json(*_args) | ||
{} | ||
end | ||
end | ||
|
||
# | ||
# Builder to assist the creation of {RequestedIdDocumentComparisonCheck} | ||
# | ||
class RequestedIdDocumentComparisonCheckBuilder | ||
# | ||
# @return [RequestedIdDocumentComparisonCheck] | ||
# | ||
def build | ||
config = RequestedIdDocumentComparisonCheckConfig.new | ||
RequestedIdDocumentComparisonCheck.new(config) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.