veriff 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18137dfe0da5d540baec7b5c5d8c533ec3733bb49cb233991c6075918383a1ae
4
- data.tar.gz: 0ee20bb30f2929f6898291eccda51906f5fe6e4c375e09e83cc754419a9f114c
3
+ metadata.gz: f196209ae91bba8e1e92f4a27c47e94503b0cd2b614669e9fd567a52b5ecfce4
4
+ data.tar.gz: 3ad548f1c8c4bbbd05567ab8bb9b7c0df9f3101e83713171bd2a2ecdba4fc85a
5
5
  SHA512:
6
- metadata.gz: 24e01aacf098fcb456f268cbaa82e38aa75cbf2bc576c7b314c3b8f36464ef07dbb01592b67cae8c34daf67b5f1969528ee793d6e0d4fb983c3582fb4b8c2117
7
- data.tar.gz: f40711fb0faa3c3574e8d1db30b072650f8066c2eb1b594d6b7d578b00e18d6b1b55bcdaa1c858afb952b1d8c752228f584db568906d5d3c5b297e75c2f730be
6
+ metadata.gz: a3b509f3a59513a0eb863a88fe054916b9c1f646b73f11e6895763d3aabbd3722fe509e05a85a2f38807ce2f77c0038913a1ae0555caf1c0ae9e61d70171abf5
7
+ data.tar.gz: 233b529e773e0cc7daa6a1fa081491404950e0c350f697141e669505f3bd24e4160dc532ae8925183178eecd0ac45f26af3c9e58812deb52bc9a3cc79d7db33d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veriff (0.1.0)
4
+ veriff (0.2.0)
5
5
  httparty (~> 0.17, >= 0.17.3)
6
6
 
7
7
  GEM
@@ -42,5 +42,11 @@ module Veriff
42
42
  .parsed_response[:verification]
43
43
  )
44
44
  end
45
+
46
+ def watchlist_screening
47
+ @watchlist_screening ||= WatchlistScreening.new(
48
+ Veriff.get("/sessions/#{id}/watchlist-screening", signature: id).parsed_response[:data]
49
+ )
50
+ end
45
51
  end
46
52
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Veriff
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class WatchlistScreening < Model
5
+ def initialize(data_hash)
6
+ data_hash.fetch(:attempt_id)
7
+ @data_hash = data_hash
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ module Webhooks
5
+ class WatchlistScreening < Model
6
+ extend Webhook
7
+
8
+ def initialize(body)
9
+ super(Parser.call(body, :json))
10
+ end
11
+ end
12
+ end
13
+ end
data/lib/veriff.rb CHANGED
@@ -16,12 +16,13 @@ require 'veriff/person'
16
16
  require 'veriff/session'
17
17
  require 'veriff/timestamp'
18
18
  require 'veriff/decision'
19
+ require 'veriff/watchlist_screening'
19
20
 
20
21
  require 'veriff/webhook'
21
22
  require 'veriff/webhooks/invalid_signature_error'
22
23
  require 'veriff/webhooks/event'
23
24
  require 'veriff/webhooks/decision'
24
-
25
+ require 'veriff/webhooks/watchlist_screening'
25
26
 
26
27
  module Veriff
27
28
  include HTTParty
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veriff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wojtek Widenka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2021-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -120,10 +120,12 @@ files:
120
120
  - lib/veriff/session.rb
121
121
  - lib/veriff/timestamp.rb
122
122
  - lib/veriff/version.rb
123
+ - lib/veriff/watchlist_screening.rb
123
124
  - lib/veriff/webhook.rb
124
125
  - lib/veriff/webhooks/decision.rb
125
126
  - lib/veriff/webhooks/event.rb
126
127
  - lib/veriff/webhooks/invalid_signature_error.rb
128
+ - lib/veriff/webhooks/watchlist_screening.rb
127
129
  - veriff.gemspec
128
130
  homepage: https://github.com/BankToTheFuture/veriff_ruby
129
131
  licenses:
@@ -131,7 +133,7 @@ licenses:
131
133
  metadata:
132
134
  homepage_uri: https://github.com/BankToTheFuture/veriff_ruby
133
135
  source_code_uri: https://github.com/BankToTheFuture/veriff_ruby
134
- post_install_message:
136
+ post_install_message:
135
137
  rdoc_options: []
136
138
  require_paths:
137
139
  - lib
@@ -146,8 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
148
  - !ruby/object:Gem::Version
147
149
  version: '0'
148
150
  requirements: []
149
- rubygems_version: 3.0.3
150
- signing_key:
151
+ rubygems_version: 3.0.9
152
+ signing_key:
151
153
  specification_version: 4
152
154
  summary: Simple wrapper on Verff.com API
153
155
  test_files: []