smile-identity-core 2.2.0 → 2.2.1

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: 1cd1f7ec1f9a1c9418ce0e3d5501eb8e32fcfaf029da9b9188145a16dbbdf70b
4
- data.tar.gz: 4bb53eafd0b561c05599a33fda6450099ab7208d1800a7ed19f5f304745e9985
3
+ metadata.gz: 5436921cd5f8d337cec031b4b193f73a11d15389481ac860195e6c28164296a5
4
+ data.tar.gz: da6562fc3a5647137338336e5f9f710e042cba36451339e485a0f818532805a2
5
5
  SHA512:
6
- metadata.gz: fd09fe7c7e6117497dada79d8132eae2b08e58fd36def75626cd8883f151138d54868c16eb3b5ad5f45977c5d0fe6c1e01e9184350d8147bde3dee6513da0ea2
7
- data.tar.gz: b442ba3c424a3d0eaf5f2fedba6596825da09053bf4d4a9221d8999c5e18c7359dde3c8abc2db6f23154d0e306cf220aa654a4ad3e4c1d9afe5fcb34f5e1038e
6
+ metadata.gz: 28f93dbeab2f0aeb9a80145e245b583c0479dd6b17b0a96fdd0ef471623c401bcdd8112a407e90265716aa1bc4a51a84c7dade6b866a929001d9189c4c89e371
7
+ data.tar.gz: c910e027a0420cc594862676a42f4022b9ad1b45e657d63c5977a3f6b38db2f0280e079e74df233a63f5ba3c26fb4637eda6c30cb8bc7cde102ecb91878d2ae9
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.2.1] - 2023-08-31
10
+ ### Changed
11
+ - Don't validate the presence of `id_type` and `id_number` for Document Verification jobs
12
+
9
13
  ## [2.2.0] - 2023-04-05
10
14
  ### Added
11
15
  - Adds support for AML check
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smile-identity-core (2.2.0)
4
+ smile-identity-core (2.2.1)
5
5
  rubyzip (~> 1.2, >= 1.2.3)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SmileIdentityCore
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.1'
5
5
  SOURCE_SDK = 'Ruby'
6
6
  end
@@ -91,8 +91,15 @@ module SmileIdentityCore
91
91
  # if it's a boolean
92
92
  updated_id_info[:entered] = id_info[:entered].to_s if !updated_id_info[:entered].nil? == updated_id_info[:entered]
93
93
 
94
- if updated_id_info[:entered] && updated_id_info[:entered] == 'true'
95
- %i[country id_type id_number].each do |key|
94
+ is_jt6 = @partner_params[:job_type].to_i == JobType::DOCUMENT_VERIFICATION
95
+ keys = if is_jt6
96
+ %i[country]
97
+ else
98
+ %i[country id_type id_number]
99
+ end
100
+
101
+ if updated_id_info[:entered] == 'true' || is_jt6
102
+ keys.each do |key|
96
103
  raise ArgumentError, "Please make sure that #{key} is included in the id_info" if id_info[key].to_s.empty?
97
104
  end
98
105
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smile-identity-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Smile Identity
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -201,7 +201,7 @@ metadata:
201
201
  source_code_uri: https://github.com/smileidentity/smile-identity-core-ruby
202
202
  documentation_uri: https://docs.smileidentity.com
203
203
  changelog_uri: https://github.com/smileidentity/smile-identity-core-ruby/blob/master/CHANGELOG.md
204
- post_install_message:
204
+ post_install_message:
205
205
  rdoc_options: []
206
206
  require_paths:
207
207
  - lib
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  version: '0'
218
218
  requirements: []
219
219
  rubygems_version: 3.4.10
220
- signing_key:
220
+ signing_key:
221
221
  specification_version: 4
222
222
  summary: The Smile Identity Web API allows the user to access\ most of the features
223
223
  of the Smile Identity system through direct server to server queries.