smile-identity-core 2.2.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b08d29788e9df7942697da8ef9391fdc7200e5d31ac8b0e6520649d9051fbc0
4
- data.tar.gz: 4e27841299e6c26392883a14d38a72ae104195df8cc06492bb27457198a96e89
3
+ metadata.gz: abb8ad5e4e436c109342eab8da6d4d24f497f5b3f7dca2ab368683b31a628624
4
+ data.tar.gz: 0d2c119d4d28d2ea8ef1b8e7ad96cf4293b64ae8fc6bb0399b0a7f198926a577
5
5
  SHA512:
6
- metadata.gz: b08f43d9d9849048f18adb39ef3553c442cdf5aa2ccb4e77a97048df1b2b1a0b72a36fa2d8c0750e13177d9b7a2db987d7f3746c5218f771402da047721cc73b
7
- data.tar.gz: febc9a1df0e0535fc93f3fc4d7562ee118f0f87031445da6ddc2ec2c91e5a9c52df27c05e8bc0e4db4377b81924e9f26e8b87b1594583e8554495923e898be54
6
+ metadata.gz: d6356d1c4f5b32060274bb87ab75959cc34b7bddb4446143ccecee1c62ef364c9825413ad8afb5725b23ade388b7861d0b0bdfc4c4499ca193bec2148d4ed846
7
+ data.tar.gz: 83be55109d9f4aa6bfb74278fd2c50dc4efe687aae53ef52fe85579dbde2d750ffd1765f6b73049f28b87e407b700a524129c671f771311f6f9a05278dfbd482
@@ -0,0 +1,12 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: monthly
7
+ day: tuesday
8
+ time: '15:00'
9
+ groups:
10
+ github-actions:
11
+ patterns:
12
+ - '*'
@@ -10,7 +10,7 @@ jobs:
10
10
  needs: test
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
- - uses: actions/checkout@v3
13
+ - uses: actions/checkout@v4
14
14
  with:
15
15
  set-safe-directory: false
16
16
  - name: Release Gem
data/.rubocop.yml CHANGED
@@ -1,9 +1,149 @@
1
+ ---
2
+
1
3
  require:
2
- - rubocop-rake
3
- - rubocop-rspec
4
+ - rubocop-rake
5
+ - rubocop-rspec
4
6
 
5
7
  AllCops:
6
- TargetRubyVersion: 2.5
8
+ TargetRubyVersion: 2.6
9
+ NewCops: enable
10
+
11
+ Bundler/DuplicatedGem:
12
+ Enabled: true
13
+
14
+ Bundler/GemFilename:
15
+ Enabled: true
16
+
17
+ Layout/ArgumentAlignment:
18
+ Enabled: true
19
+ EnforcedStyle: with_fixed_indentation
20
+
21
+ Layout/ArrayAlignment:
22
+ Enabled: true
23
+
24
+ Layout/AssignmentIndentation:
25
+ Enabled: true
26
+
27
+ Layout/BlockAlignment:
28
+ Enabled: true
29
+
30
+ Layout/CaseIndentation:
31
+ Enabled: true
32
+
33
+ Layout/ConditionPosition:
34
+ Enabled: true
35
+
36
+ Layout/ElseAlignment:
37
+ Enabled: true
38
+
39
+ Layout/EmptyLineAfterGuardClause:
40
+ Enabled: true
41
+
42
+ Layout/EmptyLineAfterMagicComment:
43
+ Enabled: true
44
+
45
+ Layout/EmptyLinesAroundBlockBody:
46
+ Enabled: true
47
+
48
+ Layout/EmptyLinesAroundClassBody:
49
+ Enabled: true
50
+
51
+ Layout/EmptyLinesAroundModuleBody:
52
+ Enabled: true
53
+
54
+ Layout/EndAlignment:
55
+ Enabled: true
56
+
57
+ Layout/EndOfLine:
58
+ Enabled: true
59
+
60
+ Layout/ExtraSpacing:
61
+ Enabled: true
62
+ ForceEqualSignAlignment: false
63
+ AllowForAlignment: false
64
+
65
+ Layout/FirstArgumentIndentation:
66
+ Enabled: true
67
+ EnforcedStyle: consistent
68
+
69
+ Layout/FirstArrayElementIndentation:
70
+ Enabled: true
71
+ EnforcedStyle: consistent
72
+
73
+ Layout/FirstHashElementIndentation:
74
+ Enabled: true
75
+ EnforcedStyle: consistent
76
+
77
+ Layout/HashAlignment:
78
+ Enabled: true
79
+
80
+ Layout/IndentationConsistency:
81
+ Enabled: true
82
+
83
+ Layout/IndentationStyle:
84
+ Enabled: true
85
+
86
+ Layout/IndentationWidth:
87
+ Enabled: true
88
+
89
+ Layout/LeadingEmptyLines:
90
+ Enabled: true
91
+
92
+ Layout/MultilineBlockLayout:
93
+ Enabled: true
94
+
95
+ Layout/MultilineMethodCallIndentation:
96
+ Enabled: true
97
+ EnforcedStyle: indented
98
+
99
+ Layout/MultilineOperationIndentation:
100
+ Enabled: true
101
+ EnforcedStyle: indented
102
+
103
+ Layout/ParameterAlignment:
104
+ Enabled: true
105
+
106
+ Layout/SpaceAfterComma:
107
+ Enabled: true
108
+
109
+ Layout/SpaceAroundKeyword:
110
+ Enabled: true
111
+
112
+ Layout/SpaceAroundOperators:
113
+ Enabled: true
114
+
115
+ Layout/SpaceBeforeBlockBraces:
116
+ Enabled: true
117
+
118
+ Layout/SpaceBeforeFirstArg:
119
+ Enabled: true
120
+
121
+ Layout/SpaceInsideBlockBraces:
122
+ Enabled: true
123
+
124
+ Layout/SpaceInsideParens:
125
+ Enabled: true
126
+
127
+ Layout/TrailingEmptyLines:
128
+ Enabled: true
129
+
130
+ Layout/TrailingWhitespace:
131
+ Enabled: true
132
+
133
+ Lint/AmbiguousAssignment:
134
+ Enabled: true
135
+
136
+ Lint/AmbiguousBlockAssociation:
137
+ Enabled: true
138
+
139
+ Lint/AmbiguousOperator:
140
+ Enabled: true
141
+
142
+ Lint/AmbiguousRange:
143
+ Enabled: true
144
+
145
+ Lint/DuplicateElsifCondition:
146
+ Enabled: true
7
147
 
8
148
  Metrics/AbcSize:
9
149
  Max: 30
@@ -24,7 +164,8 @@ Naming/FileName:
24
164
  Enabled: false
25
165
 
26
166
  RSpec/ExampleLength:
27
- Enabled: false
167
+ Enabled: true
168
+ Max: 150
28
169
 
29
170
  RSpec/FilePath:
30
171
  Enabled: false
@@ -33,13 +174,45 @@ RSpec/InstanceVariable:
33
174
  Enabled: false
34
175
 
35
176
  RSpec/MultipleExpectations:
36
- Enabled: false
177
+ Enabled: true
178
+ Max: 10
37
179
 
38
180
  RSpec/MultipleMemoizedHelpers:
39
181
  Enabled: false
40
-
182
+
41
183
  RSpec/NestedGroups:
42
- Enabled: false
184
+ Enabled: true
185
+ Max: 4
43
186
 
44
- RSpec/RepeatedExampleGroupDescription:
187
+ RSpec/NoExpectationExample:
45
188
  Enabled: false
189
+
190
+ Style/RedundantBegin:
191
+ Enabled: true
192
+
193
+ Style/RedundantCondition:
194
+ Enabled: true
195
+
196
+ Style/RedundantInterpolation:
197
+ Enabled: true
198
+
199
+ Style/RedundantParentheses:
200
+ Enabled: true
201
+
202
+ Style/RedundantReturn:
203
+ Enabled: true
204
+
205
+ Style/StringLiterals:
206
+ Enabled: true
207
+
208
+ Style/TrailingCommaInArguments:
209
+ Enabled: true
210
+ EnforcedStyleForMultiline: comma
211
+
212
+ Style/TrailingCommaInArrayLiteral:
213
+ Enabled: true
214
+ EnforcedStyleForMultiline: comma
215
+
216
+ Style/TrailingCommaInHashLiteral:
217
+ Enabled: true
218
+ EnforcedStyleForMultiline: comma
data/CHANGELOG.md CHANGED
@@ -1,125 +1,145 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [2.2.3] - 2023-10-20
8
- ## Added
9
- - Adds support for Enhanced Document Verification
10
-
11
7
  ## [Unreleased]
8
+ ## [2.3.0] - 2024-12-10
9
+ ### Added
10
+ - Support for Address verification
11
+
12
+ ## [2.2.5] - 2024-06-11
13
+ ### Fixed
14
+ - No changes, fixed deployment issue
15
+
16
+ ## [2.2.4] - 2024-06-10
17
+ ### Added
18
+ - Enhanced `strict_match` functionality in AML
19
+
20
+ ### Changed
21
+ - Linted the project with internal RuboCop rules
22
+
23
+ ### Fixed
24
+ - Removed support for Ruby 2.5 in RuboCop configuration and the gemspec file
25
+
26
+ ## [2.2.3] - 2023-10-20
27
+ ### Added
28
+ - Support for Enhanced Document Verification
12
29
 
13
30
  ## [2.2.2] - 2023-10-05
14
31
  ### Changed
15
- - Lint project. Enforce rubocop rules via github action
32
+ - Lint project. Enforce RuboCop rules via GitHub action
16
33
 
17
- ## Added
18
- Support Ruby 3.2
34
+ ### Added
35
+ - Support for Ruby 3.2
19
36
 
20
37
  ## [2.2.1] - 2023-08-31
21
38
  ### Changed
22
- - Don't validate the presence of `id_type` and `id_number` for Document Verification jobs
39
+ - Removed the validation of `id_type` and `id_number` for Document Verification jobs
23
40
 
24
41
  ## [2.2.0] - 2023-04-05
25
42
  ### Added
26
- - Adds support for AML check
43
+ - Support for AML check
44
+
27
45
  ### Changed
28
- - Fix business verification docstrings
46
+ - Fixed business verification docstrings
29
47
 
30
48
  ## [2.1.2] - 2023-03-09
31
49
  ### Changed
32
- - Fix `get_web_token` by ensuring signature merges to request_params
50
+ - Fixed `get_web_token` by ensuring signature merges into request_params
33
51
 
34
52
  ## [2.1.1] - 2022-12-13
35
53
  ### Added
36
- - Adds UPDATE_PHOTO and COMPARE_USER_INFO to JobType
54
+ - UPDATE_PHOTO and COMPARE_USER_INFO to JobType
55
+
37
56
  ### Changed
38
- - Fix wrong constant values for JobType SMART_SELFIE_AUTHENTICATION and SMART_SELFIE_REGISTRATION
57
+ - Fixed incorrect constant values for JobType SMART_SELFIE_AUTHENTICATION and SMART_SELFIE_REGISTRATION
39
58
 
40
- # [2.1.0] - 2022-10-28
41
- ## Changed
59
+ ## [2.1.0] - 2022-10-28
60
+ ### Changed
42
61
  - Moved Business verification to IDApi
43
62
 
44
- # [2.0.0] - 2022-10-24
63
+ ## [2.0.0] - 2022-10-24
45
64
  ### Added
46
- - build: Adds support for ruby 3.1
47
- - docs: adds "examples" folder
48
- - Adds Business Verification product
65
+ - Support for Ruby 3.1
66
+ - "Examples" folder in documentation
67
+ - Business Verification product
49
68
 
50
69
  ### Changed
51
- - ci: Move from TravisCI to Github Actions
52
- - core: Enforces the use of signature on all API calls
53
- - core: Adds helper constants SMILE_IDENTITY_CORE::ENV, SMILE_IDENTITY_CORE::ImageType, SMILE_IDENTITY_CORE::JobType
54
- - Fixes invalid links in gemspec
70
+ - Transition from TravisCI to GitHub Actions
71
+ - Enforced the use of signature on all API calls
72
+ - Added helper constants SMILE_IDENTITY_CORE::ENV, SMILE_IDENTITY_CORE::ImageType, SMILE_IDENTITY_CORE::JobType
73
+ - Fixed invalid links in gemspec
55
74
 
56
75
  ### Removed
57
- - build: Drops support for ruby 2.5.1
58
- - core: Removes support for `sec_key` as an authentication method
59
-
76
+ - Support for Ruby 2.5.1
77
+ - `sec_key` as an authentication method
78
+
60
79
  ## [1.2.1] - 2021-12-02
61
80
  ### Changed
62
- - Revert changes to version SmileIdentityCore.version_as_hash
63
- - Uses hard coded apiVersion
81
+ - Reverted changes to version SmileIdentityCore.version_as_hash
82
+ - Used hardcoded apiVersion
64
83
 
65
84
  ## [1.2.0] - 2021-10-08
66
85
  ### Added
67
- - Add Signature option for signing requests
86
+ - Signature option for signing requests
68
87
 
69
88
  ## [1.1.0] - 2021-09-29
70
- Set version information from SmileIdentityCore.version_as_hash
71
- - Change the urls for both test and prod aa55a72d10854f05a35db4dad3ea63930e8996f6
89
+ ### Added
90
+ - Version information from SmileIdentityCore.version_as_hash
91
+ - Changed URLs for both test and production environments
72
92
 
73
93
  ## [1.0.2] - 2020-01-16
74
- Add {"success":true,"smile_job_id":"job_id"} to the response when we poll job status too
94
+ ### Added
95
+ - {"success":true,"smile_job_id":"job_id"} to the response when polling job status
75
96
 
76
97
  ## [1.0.1] - 2019-10-24
77
- ## Updated
78
- Remove first_name and last_name validations from id information in Web Api
79
- Add country, id_number and id_type validations for id information in ID Api
98
+ ### Updated
99
+ - Removed first_name and last_name validations from ID information in Web API
100
+ - Added country, id_number, and id_type validations for ID information in ID API
80
101
 
81
102
  ## [1.0.0] - 2019-10-11
82
- ## Updated
83
- Amend the success response when job status is false to be a JSON String containing {"success":true,"smile_job_id":"job_id"}
84
- Add the ID API Class
85
- Add the ability to query ID Api from the Web API class
86
- Update the documentation
103
+ ### Updated
104
+ - Amended the success response when job status is false to be a JSON String containing {"success":true,"smile_job_id":"job_id"}
105
+ - Added the ID API Class
106
+ - Added the ability to query ID API from the Web API class
107
+ - Updated the documentation
87
108
 
88
109
  ## [0.2.3] - 2019-09-17
89
110
  ### Changed
90
- - Lenient Decoding of the api key
111
+ - Lenient decoding of the API key
91
112
 
92
113
  ## [0.2.2] - 2019-09-17
93
114
  ### Added
94
- - Add the language to the package information
115
+ - Language to the package information
95
116
 
96
117
  ## [0.2.1] - 2019-09-05
97
-
98
118
  ### Added
99
- - Accept more formats as inputs
100
- - Use the signature class in the Web API class
101
- - Add a Utilities class with get_job_status that we use internally to expose a public get_job_status method on WebApi
119
+ - Support for additional formats as inputs
120
+ - Usage of the signature class in the Web API class
121
+ - Utilities class with a public `get_job_status` method on WebApi
102
122
 
103
123
  ### Updated
104
- - Updates to the readme
105
- - Update some error messages
124
+ - Readme updates
125
+ - Updated some error messages
106
126
 
107
127
  ### Fixed
108
- - Fix the loss of optional_callback
109
- - Ensure that we allow nil inputs or empty hashes for options and id_info
110
- - Confirm the signature when querying the job status
128
+ - Issue with the loss of optional_callback
129
+ - Ensured allowance for nil inputs or empty hashes for options and id_info
130
+ - Confirmation of signature when querying job status
111
131
 
112
132
  ## [0.2.0] - 2019-08-14
113
133
  ### Added
114
- - Introduced return_history and image_links
134
+ - Return_history and image_links features
115
135
 
116
136
  ### Removed
117
- - Removed two parameters: optional_callback and return_job_status in the submit_job function in favour of an options hash.
137
+ - Two parameters: optional_callback and return_job_status in the submit_job function in favor of an options hash
118
138
 
119
139
  ## [0.1.1] - 2019-07-23
120
140
  ### Added
121
- - Some package configurations were added.
141
+ - Additional package configurations
122
142
 
123
143
  ## [0.1.0] - 2019-07-19
124
144
  ### Added
125
- - The first release version of Web Api.
145
+ - The first release version of Web API
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smile-identity-core (2.2.3)
4
+ smile-identity-core (2.3.0)
5
5
  rubyzip (~> 1.2, >= 1.2.3)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -21,7 +21,7 @@ GEM
21
21
  rainbow (3.1.1)
22
22
  rake (12.3.3)
23
23
  regexp_parser (2.6.0)
24
- rexml (3.2.5)
24
+ rexml (3.3.9)
25
25
  rspec (3.8.0)
26
26
  rspec-core (~> 3.8.0)
27
27
  rspec-expectations (~> 3.8.0)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Smile Identity provides the best solutions for real time Digital KYC, identity verification, user onboarding, and user authentication across Africa. Our server side libraries make it easy to integrate us on the server-side. Since the library is server-side, you will be required to pass the images (if required) to the library.
4
4
 
5
- If you haven’t already, [sign up for a free Smile Identity account](https://www.smileidentity.com/schedule-a-demo/), which comes with Sandbox access.
5
+ If you haven’t already, [sign up for a free Smile Identity account](https://usesmileid.com/talk-to-an-expert/), which comes with Sandbox access.
6
6
 
7
7
  Please see [CHANGELOG.md](CHANGELOG.md) for release versions and changes.
8
8
 
@@ -12,12 +12,12 @@ The library exposes four classes namely; the WebApi class, the IDApi class, the
12
12
 
13
13
  The WebApi class has the following public methods:
14
14
 
15
- - `submit_job` - handles submission of any of Smile Identity products that requires an image i.e. [Biometric KYC](https://docs.smileidentity.com/products/biometric-kyc), [Document Verification](https://docs.smileidentity.com/products/document-verification), [SmartSelfieTM Authentication](https://docs.smileidentity.com/products/biometric-authentication) and [Business Verification](https://docs.smileidentity.com/products/for-businesses-kyb/business-verification).
16
- - `get_web_token` - handles generation of web token, if you are using the [Hosted Web Integration](https://docs.smileidentity.com/web-mobile-web/web-integration-beta).
15
+ - `submit_job` - handles submission of any of Smile Identity products that requires an image i.e. [Biometric KYC](https://docs.usesmileid.com/products/biometric-kyc), [Document Verification](https://docs.usesmileid.com/products/document-verification), [SmartSelfieTM Authentication](https://docs.usesmileid.com/products/biometric-authentication) and [Business Verification](https://docs.usesmileid.com/products/for-businesses-kyb/business-verification).
16
+ - `get_web_token` - handles generation of web token, if you are using the [Hosted Web Integration](https://docs.usesmileid.com/web-mobile-web/web-integration-beta).
17
17
 
18
18
  The IDApi class has the following public method:
19
19
 
20
- - `submit_job` - handles submission of [Enhanced KYC](https://docs.smileidentity.com/products/identity-lookup) and [Basic KYC](https://docs.smileidentity.com/products/id-verification).
20
+ - `submit_job` - handles submission of [Enhanced KYC](https://docs.usesmileid.com/products/identity-lookup) and [Basic KYC](https://docs.usesmileid.com/products/id-verification).
21
21
 
22
22
  The Signature class has the following public methods:
23
23
 
@@ -26,7 +26,7 @@ The Signature class has the following public methods:
26
26
 
27
27
  The Utilities Class allows you as the Partner to have access to our general Utility functions to gain access to your data. It has the following public methods:
28
28
 
29
- - `get_job_status` - retrieve information & results of a job. Read more on job status in the [Smile Identity documentation](https://docs.smileidentity.com/further-reading/job-status).
29
+ - `get_job_status` - retrieve information & results of a job. Read more on job status in the [Smile Identity documentation](https://docs.usesmileid.com/further-reading/job-status).
30
30
 
31
31
  ## Installation
32
32
 
@@ -52,13 +52,13 @@ gem install smile-identity-core
52
52
 
53
53
  ## Documentation
54
54
 
55
- For extensive instructions on usage of the library and sample codes, please refer to the official Smile Identity [documentation](https://docs.smileidentity.com/server-to-server/ruby).
55
+ For extensive instructions on usage of the library and sample codes, please refer to the official Smile Identity [documentation](https://docs.usesmileid.com/server-to-server/ruby).
56
56
 
57
57
  Before that, you should take a look at the examples in the [examples](/examples) folder.
58
58
 
59
59
  ## Getting Help
60
60
 
61
- For usage questions, the best resource is [our official documentation](https://docs.smileidentity.com). However, if you require further assistance, you can file a [support ticket via our portal](https://portal.smileidentity.com/partner/support/tickets) or visit the [contact us page](https://portal.smileidentity.com/partner/support/tickets) on our website.
61
+ For usage questions, the best resource is [our official documentation](https://docs.usesmileid.com). However, if you require further assistance, you can file a [support ticket via our portal](https://portal.usesmileid.com/partner/support/tickets) or visit the [contact us page](https://portal.usesmileid.com/partner/support/tickets) on our website.
62
62
 
63
63
  ## Contributing
64
64
 
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'smile-identity-core'
4
+ # See https://docs.usesmileid.com/products/for-individuals-kyc/address-verification for
5
+ # more information on address verification
6
+
7
+ # Initialize
8
+ partner_id = '' # login to the Smile Identity portal to view your partner id
9
+ api_key = '' # copy your API key from the Smile Identity portal
10
+ sid_server = '0' # Use 0 for the sandbox server, use 1 for production server
11
+
12
+ # Array of example cases for different countries
13
+ example_cases = [
14
+ {
15
+ description: 'Example for South Africa (ZA)',
16
+ request_params: {
17
+ country: 'ZA', # (Required) Must be 'NG' or 'ZA'.
18
+ address: 'Cape Town', # (Required) A valid and complete address.
19
+ id_number: '1234567891234', # (Required for ZA) The 13-digit national ID number.
20
+ full_name: 'Doe Joe Leo', # (Optional) Full name for additional verification.
21
+ callback_url: 'https://webhook.site', # (Required) Callback URL for the response.
22
+ },
23
+ },
24
+ {
25
+ description: 'Example for Nigeria (NG)',
26
+ request_params: {
27
+ country: 'NG', # (Required) Must be 'NG' or 'ZA'.
28
+ address: 'Lagos', # (Required) A valid and complete address.
29
+ utility_number: '12345678911', # (Required for NG) Utility account number.
30
+ utility_provider: 'IkejaElectric', # (Required for NG) Utility provider name.
31
+ full_name: 'John Doe', # (Optional) Full name for additional verification.
32
+ callback_url: 'https://webhook.site', # (Required) Callback URL for the response.
33
+ },
34
+ },
35
+ ]
36
+
37
+ # Create a connection object
38
+ connection = SmileIdentityCore::AddressVerification.new(partner_id, api_key, sid_server)
39
+
40
+ # Loop through the example cases and make requests
41
+ example_cases.each do |example|
42
+ puts example[:description]
43
+ response = connection.submit_job(example[:request_params])
44
+ pp response
45
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'smile-identity-core'
4
4
  require 'securerandom'
5
- # See https://docs.smileidentity.com/products/for-individuals-kyc/aml-check for
5
+ # See https://docs.usesmileid.com/products/for-individuals-kyc/aml-check for
6
6
  # more information on business verification
7
7
 
8
8
  # Initialize
@@ -18,7 +18,8 @@ request_params = {
18
18
  full_name: 'John Leo Doe',
19
19
  countries: ['US'],
20
20
  birth_year: '1984', # yyyy
21
- search_existing_user: false
21
+ search_existing_user: false,
22
+ strict_match: true, # optional - default is true
22
23
  }
23
24
 
24
25
  # Submit the job
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'smile-identity-core'
4
4
 
5
- # See https://docs.smileidentity.com/server-to-server/ruby/products/biometric-kyc for
5
+ # See https://docs.usesmileid.com/server-to-server/ruby/products/biometric-kyc for
6
6
  # how to setup and retrieve configuation values for the WebApi class.
7
7
 
8
8
  # Initialize
@@ -17,7 +17,7 @@ connection = SmileIdentityCore::WebApi.new(partner_id, default_callback, api_key
17
17
  partner_params = {
18
18
  user_id: '<put your unique ID for the user here>',
19
19
  job_id: '<put your unique job ID here>',
20
- job_type: 1
20
+ job_type: 1,
21
21
  }
22
22
 
23
23
  # Create image list
@@ -29,13 +29,13 @@ partner_params = {
29
29
  image_details = [
30
30
  {
31
31
  image_type_id: '<0 | 2>',
32
- image: '<full path to selfie image or base64image string>'
32
+ image: '<full path to selfie image or base64image string>',
33
33
  },
34
34
  { # Not required if you don't require proof of life (note photo of
35
35
  # photo check will still be performed on the uploaded selfie)
36
36
  image_type_id: '<4 | 6>',
37
- image: '<full path to liveness image or base64 image string>'
38
- }
37
+ image: '<full path to liveness image or base64 image string>',
38
+ },
39
39
  ]
40
40
 
41
41
  # Create ID number info
@@ -46,7 +46,7 @@ id_info = {
46
46
  id_type: '<id type>',
47
47
  id_number: '<valid id number>',
48
48
  dob: '<date of birth>', # yyyy-mm-dd
49
- entered: 'true' # must be a string
49
+ entered: 'true', # must be a string
50
50
  }
51
51
 
52
52
  # Set options for the job
@@ -60,7 +60,7 @@ options = {
60
60
  # Set to true to receive links to the selfie and the photo
61
61
  # it was compared to. You must set return_job_status to true to use this flag.
62
62
  return_image_links: '<true | false>',
63
- signature: true
63
+ signature: true,
64
64
  }
65
65
 
66
66
  # Submit the job
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'smile-identity-core'
4
4
  require 'securerandom'
5
- # See https://docs.smileidentity.com/products/for-businesses-kyb/business-verification for
5
+ # See https://docs.usesmileid.com/products/for-businesses-kyb/business-verification for
6
6
  # more information on business verification
7
7
 
8
8
  # Initialize
@@ -17,7 +17,7 @@ connection = SmileIdentityCore::IDApi.new(partner_id, default_callback, api_key,
17
17
  partner_params = {
18
18
  job_id: '<put your unique job ID here>',
19
19
  user_id: '<put your unique ID for the user here>',
20
- job_type: SmileIdentityCore::JobType::BUSINESS_VERIFICATION
20
+ job_type: SmileIdentityCore::JobType::BUSINESS_VERIFICATION,
21
21
  }
22
22
 
23
23
  # Create ID info
@@ -35,7 +35,7 @@ id_info = {
35
35
  # Postal address of business. Only Required for BUSINESS_REGISTRATION in Kenya
36
36
  postal_address: '<postal address>',
37
37
  # Postal code of business. Only Required for BUSINESS_REGISTRATION in Kenya
38
- postal_code: '<postal code>'
38
+ postal_code: '<postal code>',
39
39
  }
40
40
 
41
41
  # Set the options for the job