usesmileid 13.0.0 → 13.1.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 +4 -4
- data/CHANGELOG.md +14 -1
- data/README.md +36 -0
- data/lib/usesmileid/client/client.rb +17 -15
- data/lib/usesmileid/client/resources.rb +104 -0
- data/lib/usesmileid/generated/models.rb +79 -0
- data/lib/usesmileid/generated/operations.rb +41 -8
- data/lib/usesmileid/helpers/multipart.rb +1 -1
- data/lib/usesmileid/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2abbefedec80a0a8a9ec33c54da9f4087ecc0db963a420478306d29b9d42554b
|
|
4
|
+
data.tar.gz: de2fa39a788afa69c0eafe263d79eb8b261b4d797977f5fca6a03f7f14589d7b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5edaeda6981ae5a1b5a285b60efee1a13ffd3be5d4dcf8e3a2ab90e6302827833182c133ceb3300132b9668d2605c5265bb62be40f23d6bce72b3fbabbe2963c
|
|
7
|
+
data.tar.gz: 7855b6f07f25c6ded0bcb7a3058756dbba9e7984db046238fcd5a99c6e283976a0a90fd9af11c3f04a11011017f20cbf0a5f97856d4e8c4642b461c4e16e446c
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [13.1.0] - 2026-11-19
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- One-Time AML: `aml.submit` (async, result on the callback URL) and `aml.submit_sync` (result returned inline, with an optional `idempotency_key:`). The inline result is a `OneTimeAmlResult` that also carries the `SmileID-Job-ID`, `Response-Signature` and `Response-Timestamp` response headers.
|
|
15
|
+
- AML Monitoring: `aml_monitoring.submit` and `aml_monitoring.news`, which reads the news articles for one person in a monitoring result.
|
|
16
|
+
- `countries` and `aliases` are sent as JSON multipart parts, as the AML endpoints require.
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- `aml_monitoring.news` now mints its token with the `aml` product claim, as the spec's `x-smile-token-product` requires. Each operation's product now comes from the generated operations table (`Operation#product`), and `Client::PRODUCT_BY_PATH` is derived from it.
|
|
21
|
+
|
|
10
22
|
## [13.0.0] - 2026-11-09
|
|
11
23
|
|
|
12
24
|
Version 12.2.0 was never published. Its changes are in this release, which is a major version because it breaks the 12.1.0 API.
|
|
@@ -65,7 +77,8 @@ First public release.
|
|
|
65
77
|
- Typed errors under `SmileID::Errors`, keyed on HTTP status.
|
|
66
78
|
- Bank codes, supported ID types and supported documents lookups.
|
|
67
79
|
|
|
68
|
-
[Unreleased]: https://github.com/smileidentity/smileid-sdk-ruby/compare/v13.
|
|
80
|
+
[Unreleased]: https://github.com/smileidentity/smileid-sdk-ruby/compare/v13.1.0...HEAD
|
|
81
|
+
[13.1.0]: https://github.com/smileidentity/smileid-sdk-ruby/compare/v13.0.0...v13.1.0
|
|
69
82
|
[13.0.0]: https://github.com/smileidentity/smileid-sdk-ruby/compare/v12.1.0...v13.0.0
|
|
70
83
|
[12.1.0]: https://github.com/smileidentity/smileid-sdk-ruby/compare/v12.0.0...v12.1.0
|
|
71
84
|
[12.0.0]: https://github.com/smileidentity/smileid-sdk-ruby/releases/tag/v12.0.0
|
data/README.md
CHANGED
|
@@ -110,6 +110,42 @@ accepted.job_id # => "job_..."
|
|
|
110
110
|
accepted.accepted? # => true
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
+
### AML screening
|
|
114
|
+
|
|
115
|
+
One-Time AML screens a name against sanctions, PEP and adverse-media lists. `aml.submit` queues the screening and the result goes to your callback URL:
|
|
116
|
+
|
|
117
|
+
```ruby
|
|
118
|
+
accepted = smile.aml.submit(
|
|
119
|
+
countries: ["NG", "KE"],
|
|
120
|
+
full_name: "John Doe",
|
|
121
|
+
user_details: user_details,
|
|
122
|
+
consent: consent,
|
|
123
|
+
callback_url: "https://example.com/callback" # optional if a default is configured
|
|
124
|
+
)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`aml.submit_sync` takes the same arguments but returns the result in the response, so `callback_url` is optional. Pass an `idempotency_key:` (16 to 128 characters of `A-Z a-z 0-9 - _`) so a retry returns the original result instead of a second billed screening. A provider timeout raises `SmileID::Errors::SmileIDError` with `status_code` 408.
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
result = smile.aml.submit_sync(
|
|
131
|
+
countries: ["NG"], full_name: "John Doe",
|
|
132
|
+
user_details: user_details, consent: consent,
|
|
133
|
+
idempotency_key: "onboarding-8f14e45fceea167a"
|
|
134
|
+
)
|
|
135
|
+
result.status # => "clear", "block", "attention" or "error"
|
|
136
|
+
result.no_of_persons_found # => 0
|
|
137
|
+
result.job_id # from the SmileID-Job-ID header
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
AML Monitoring enrols the person for ongoing screening. `aml_monitoring.submit` takes the same arguments (`full_name:` is optional with `search_existing_user: true` and a `user_id:`). `aml_monitoring.news` reads the news articles behind a person reference in a result:
|
|
141
|
+
|
|
142
|
+
```ruby
|
|
143
|
+
smile.aml_monitoring.submit(countries: ["NG"], full_name: "Jane Doe",
|
|
144
|
+
user_details: user_details, consent: consent)
|
|
145
|
+
news = smile.aml_monitoring.news("a1b2c3d4e5", "ref_001", news_category: "financial_crime", page: 1, limit: 25)
|
|
146
|
+
news.news.first.title
|
|
147
|
+
```
|
|
148
|
+
|
|
113
149
|
### Document verification
|
|
114
150
|
|
|
115
151
|
```ruby
|
|
@@ -7,18 +7,12 @@ module SmileID
|
|
|
7
7
|
# The Smile ID client (spec section 2.1, 4). Construct once, then call
|
|
8
8
|
# resource verbs, e.g. client.enhanced_kyc.verify(...).
|
|
9
9
|
class Client
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'/v3/residency_document_verification' => 'residency_document_verification',
|
|
17
|
-
'/v3/biometric_kyc' => 'biometric_kyc',
|
|
18
|
-
'/v3/registration' => 'smart_selfie_registration',
|
|
19
|
-
'/v3/authentication' => 'smart_selfie_authentication',
|
|
20
|
-
'/v3/compare' => 'smart_selfie_compare'
|
|
21
|
-
}.freeze
|
|
10
|
+
# Product claim by path, taken from the spec's x-smile-token-product via the
|
|
11
|
+
# generated operations table. Kept for compatibility; the client reads each
|
|
12
|
+
# operation's product directly.
|
|
13
|
+
PRODUCT_BY_PATH = Generated::Operations::OPS.values
|
|
14
|
+
.select(&:product)
|
|
15
|
+
.to_h { |op| [op.path, op.product] }.freeze
|
|
22
16
|
|
|
23
17
|
attr_reader :config
|
|
24
18
|
|
|
@@ -57,6 +51,14 @@ module SmileID
|
|
|
57
51
|
@users ||= Resources::Users.new(self)
|
|
58
52
|
end
|
|
59
53
|
|
|
54
|
+
def aml
|
|
55
|
+
@aml ||= Resources::Aml.new(self)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
def aml_monitoring
|
|
59
|
+
@aml_monitoring ||= Resources::AmlMonitoring.new(self)
|
|
60
|
+
end
|
|
61
|
+
|
|
60
62
|
def services
|
|
61
63
|
@services ||= Resources::Services.new(self)
|
|
62
64
|
end
|
|
@@ -68,13 +70,13 @@ module SmileID
|
|
|
68
70
|
#
|
|
69
71
|
# @return [SmileID::Response] on a success status for the operation.
|
|
70
72
|
def call(op_key, form: nil, path_params: {}, query: {}, user_id_header: nil, timeout: nil,
|
|
71
|
-
use_enrolled_image: false)
|
|
73
|
+
use_enrolled_image: false, extra_headers: nil)
|
|
72
74
|
op = Generated::Operations.fetch(op_key)
|
|
73
75
|
url = @config.base_url + interpolate(op.path, path_params)
|
|
74
76
|
content_type, body = serialize(op, form)
|
|
75
77
|
token = mint_token(op, form, user_id_header, use_enrolled_image, timeout) if op.authenticated
|
|
76
78
|
|
|
77
|
-
headers = build_headers(op, content_type, user_id_header, token)
|
|
79
|
+
headers = build_headers(op, content_type, user_id_header, token).merge(extra_headers || {})
|
|
78
80
|
response = @transport.send_request(
|
|
79
81
|
method: op.http_method, url: url, headers: headers, query: query || {},
|
|
80
82
|
body: body, retryable: op.idempotent, timeout: timeout
|
|
@@ -106,7 +108,7 @@ module SmileID
|
|
|
106
108
|
# (use_enrolled_image) authorises a captureless job for one user, so it must
|
|
107
109
|
# never reach another call's token.
|
|
108
110
|
def mint_token(op, form, user_id_header, use_enrolled_image, timeout)
|
|
109
|
-
product =
|
|
111
|
+
product = op.product
|
|
110
112
|
user_id = job_user_id(form, user_id_header) if product
|
|
111
113
|
if use_enrolled_image && user_id.nil?
|
|
112
114
|
raise Errors::ValidationError.new('user_id is required when use_enrolled_image is true')
|
|
@@ -236,6 +236,110 @@ module SmileID
|
|
|
236
236
|
end
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
+
# POST /v3/aml and /v3/aml/sync
|
|
240
|
+
class Aml < Base
|
|
241
|
+
# Queues a One-Time AML screening. The result arrives on callback_url.
|
|
242
|
+
def submit(countries:, full_name:, user_details:, consent:, birth_year: nil,
|
|
243
|
+
strict_match: nil, aliases: nil, search_existing_user: nil,
|
|
244
|
+
callback_url: nil, partner_params: nil, metadata: nil, user_id: nil, timeout: nil)
|
|
245
|
+
form = aml_form(
|
|
246
|
+
countries: countries, full_name: full_name, user_details: user_details,
|
|
247
|
+
consent: consent, birth_year: birth_year, strict_match: strict_match,
|
|
248
|
+
aliases: aliases, search_existing_user: search_existing_user,
|
|
249
|
+
callback_url: resolve_callback(callback_url), partner_params: partner_params,
|
|
250
|
+
metadata: metadata, user_id: user_id
|
|
251
|
+
)
|
|
252
|
+
accepted(@client.call(:one_time_aml, form: form, user_id_header: user_id, timeout: timeout))
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Runs the same screening and returns the terminal result in the response.
|
|
256
|
+
# callback_url is optional: no callback is sent, but a given one is kept
|
|
257
|
+
# for replay. Send the same idempotency_key on a retry to get the original
|
|
258
|
+
# result instead of a second, billed screening. A provider timeout raises
|
|
259
|
+
# SmileIDError with status_code 408; nothing is billed.
|
|
260
|
+
def submit_sync(countries:, full_name:, user_details:, consent:, birth_year: nil,
|
|
261
|
+
strict_match: nil, aliases: nil, search_existing_user: nil,
|
|
262
|
+
callback_url: nil, partner_params: nil, metadata: nil, user_id: nil,
|
|
263
|
+
idempotency_key: nil, timeout: nil)
|
|
264
|
+
Config.validate_callback_url!(callback_url) if callback_url
|
|
265
|
+
form = aml_form(
|
|
266
|
+
countries: countries, full_name: full_name, user_details: user_details,
|
|
267
|
+
consent: consent, birth_year: birth_year, strict_match: strict_match,
|
|
268
|
+
aliases: aliases, search_existing_user: search_existing_user,
|
|
269
|
+
callback_url: callback_url, partner_params: partner_params,
|
|
270
|
+
metadata: metadata, user_id: user_id
|
|
271
|
+
)
|
|
272
|
+
extra_headers = idempotency_key ? { 'SmileID-Idempotency-Key' => idempotency_key } : nil
|
|
273
|
+
response = @client.call(:one_time_aml_sync, form: form, user_id_header: user_id,
|
|
274
|
+
timeout: timeout, extra_headers: extra_headers)
|
|
275
|
+
Generated::Models::OneTimeAmlResult.from(response.json, response.headers)
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
private
|
|
279
|
+
|
|
280
|
+
def aml_form(countries:, full_name:, user_details:, consent:, birth_year:, strict_match:,
|
|
281
|
+
aliases:, search_existing_user:, callback_url:, partner_params:, metadata:, user_id:)
|
|
282
|
+
{
|
|
283
|
+
'countries' => countries,
|
|
284
|
+
'full_name' => full_name,
|
|
285
|
+
'birth_year' => birth_year,
|
|
286
|
+
'strict_match' => strict_match,
|
|
287
|
+
'aliases' => aliases,
|
|
288
|
+
'search_existing_user' => search_existing_user,
|
|
289
|
+
'user_id' => user_id,
|
|
290
|
+
'user_details' => coerce_user_details(user_details),
|
|
291
|
+
'consent' => coerce_consent(consent),
|
|
292
|
+
'callback_url' => callback_url,
|
|
293
|
+
'partner_params' => partner_params,
|
|
294
|
+
'metadata' => metadata
|
|
295
|
+
}.compact
|
|
296
|
+
end
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# POST /v3/aml/monitoring and GET /v3/aml/monitoring/{job_id}/news/{reference}
|
|
300
|
+
class AmlMonitoring < Base
|
|
301
|
+
NEWS_CATEGORIES = %w[
|
|
302
|
+
arms_trafficking credit_update environmental_crime financial_crime
|
|
303
|
+
human_rights_violation leadership_change legal_risk location_change narcotics
|
|
304
|
+
other other_crime ownership_change product_change regulatory sexual_crime
|
|
305
|
+
technology_event terrorism violent_crime
|
|
306
|
+
].freeze
|
|
307
|
+
|
|
308
|
+
# full_name is required unless search_existing_user is true, which takes
|
|
309
|
+
# the name from the user's earlier KYC record and needs user_id.
|
|
310
|
+
def submit(countries:, user_details:, consent:, full_name: nil, birth_year: nil,
|
|
311
|
+
strict_match: nil, aliases: nil, search_existing_user: nil,
|
|
312
|
+
callback_url: nil, partner_params: nil, metadata: nil, user_id: nil, timeout: nil)
|
|
313
|
+
form = {
|
|
314
|
+
'countries' => countries,
|
|
315
|
+
'full_name' => full_name,
|
|
316
|
+
'birth_year' => birth_year,
|
|
317
|
+
'strict_match' => strict_match,
|
|
318
|
+
'aliases' => aliases,
|
|
319
|
+
'search_existing_user' => search_existing_user,
|
|
320
|
+
'user_id' => user_id,
|
|
321
|
+
'user_details' => coerce_user_details(user_details),
|
|
322
|
+
'consent' => coerce_consent(consent),
|
|
323
|
+
'callback_url' => resolve_callback(callback_url),
|
|
324
|
+
'partner_params' => partner_params,
|
|
325
|
+
'metadata' => metadata
|
|
326
|
+
}.compact
|
|
327
|
+
accepted(@client.call(:aml_monitoring, form: form, user_id_header: user_id, timeout: timeout))
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def news(job_id, reference, news_category:, page: nil, limit: nil, timeout: nil)
|
|
331
|
+
unless NEWS_CATEGORIES.include?(news_category.to_s)
|
|
332
|
+
raise Errors::ValidationError.new("news_category must be one of #{NEWS_CATEGORIES.join(', ')}")
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
query = { 'news_category' => news_category, 'page' => page, 'limit' => limit }.compact
|
|
336
|
+
response = @client.call(:aml_monitoring_news,
|
|
337
|
+
path_params: { 'job_id' => job_id, 'reference' => reference },
|
|
338
|
+
query: query, timeout: timeout)
|
|
339
|
+
Generated::Models::AmlMonitoringNewsResponse.from(response.json)
|
|
340
|
+
end
|
|
341
|
+
end
|
|
342
|
+
|
|
239
343
|
# GET /v3/status, POST /v3/replay, plus the wait_until_complete poll helper.
|
|
240
344
|
class Verifications < Base
|
|
241
345
|
def retrieve(job_id, timeout: nil)
|
|
@@ -107,6 +107,85 @@ module SmileID
|
|
|
107
107
|
end
|
|
108
108
|
end
|
|
109
109
|
|
|
110
|
+
# Result of a One-Time AML screening: the body of POST /v3/aml/sync, which
|
|
111
|
+
# is the payload the async callback would have delivered. `status` is
|
|
112
|
+
# `clear`, `block`, `attention` or `error`. The response headers are kept
|
|
113
|
+
# alongside the body: the job and user ids, and the signature and
|
|
114
|
+
# timestamp that webhook verification code can check unchanged.
|
|
115
|
+
class OneTimeAmlResult
|
|
116
|
+
attr_reader :status, :message, :reason, :created_at, :completed_at, :product,
|
|
117
|
+
:partner_params, :kyc_receipt, :strict_match, :no_of_persons_found,
|
|
118
|
+
:people, :user_provided_info, :consent, :antifraud, :device_signals,
|
|
119
|
+
:job_id, :user_id, :response_signature, :response_timestamp, :raw
|
|
120
|
+
|
|
121
|
+
def initialize(hash, headers = {})
|
|
122
|
+
@status = hash['status']
|
|
123
|
+
@message = hash['message']
|
|
124
|
+
@reason = hash['reason']
|
|
125
|
+
@created_at = hash['created_at']
|
|
126
|
+
@completed_at = hash['completed_at']
|
|
127
|
+
@product = hash['product']
|
|
128
|
+
@partner_params = hash['partner_params']
|
|
129
|
+
@kyc_receipt = hash['kyc_receipt']
|
|
130
|
+
@strict_match = hash['strict_match']
|
|
131
|
+
@no_of_persons_found = hash['no_of_persons_found']
|
|
132
|
+
@people = hash['people'] || []
|
|
133
|
+
@user_provided_info = hash['user_provided_info']
|
|
134
|
+
@consent = hash['consent']
|
|
135
|
+
@antifraud = hash['antifraud']
|
|
136
|
+
@device_signals = hash['device_signals']
|
|
137
|
+
@job_id = headers['smileid-job-id']
|
|
138
|
+
@user_id = headers['user-id']
|
|
139
|
+
@response_signature = headers['response-signature']
|
|
140
|
+
@response_timestamp = headers['response-timestamp']
|
|
141
|
+
@raw = hash
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def self.from(hash, headers = {})
|
|
145
|
+
new(hash, headers)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# One article in an AML Monitoring news response.
|
|
150
|
+
class AmlMonitoringNewsItem
|
|
151
|
+
attr_reader :body, :published_date, :publisher, :publisher_country_code,
|
|
152
|
+
:title, :url, :raw
|
|
153
|
+
|
|
154
|
+
def initialize(hash)
|
|
155
|
+
@body = hash['body']
|
|
156
|
+
@published_date = hash['published_date']
|
|
157
|
+
@publisher = hash['publisher']
|
|
158
|
+
@publisher_country_code = hash['publisher_country_code']
|
|
159
|
+
@title = hash['title']
|
|
160
|
+
@url = hash['url']
|
|
161
|
+
@raw = hash
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def self.from(hash)
|
|
165
|
+
new(hash)
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Response from GET /v3/aml/monitoring/{job_id}/news/{reference}. `meta`
|
|
170
|
+
# is a plain hash with string keys (`current_page`, `limit`,
|
|
171
|
+
# `total_count`); `news` holds AmlMonitoringNewsItem objects.
|
|
172
|
+
class AmlMonitoringNewsResponse
|
|
173
|
+
attr_reader :job_id, :product, :user_id, :meta, :news, :raw
|
|
174
|
+
|
|
175
|
+
def initialize(hash)
|
|
176
|
+
@job_id = hash['job_id']
|
|
177
|
+
@product = hash['product']
|
|
178
|
+
@user_id = hash['user_id']
|
|
179
|
+
@meta = hash['meta']
|
|
180
|
+
@news = (hash['news'] || []).map { |item| AmlMonitoringNewsItem.from(item) }
|
|
181
|
+
@raw = hash
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
def self.from(hash)
|
|
185
|
+
new(hash)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
110
189
|
# Service responses (spec section 5.2). Nested collections are exposed as
|
|
111
190
|
# plain hashes with string keys, exactly as they arrive on the wire.
|
|
112
191
|
class BankCodesResponse
|
|
@@ -14,6 +14,7 @@ module SmileID
|
|
|
14
14
|
:body_kind, # :multipart / :json / nil
|
|
15
15
|
:idempotent, # safe to auto-retry? (GETs + token only)
|
|
16
16
|
:success_statuses, # statuses treated as success (not raised)
|
|
17
|
+
:product, # x-smile-token-product: the token's product claim, nil for none
|
|
17
18
|
keyword_init: true
|
|
18
19
|
)
|
|
19
20
|
|
|
@@ -21,42 +22,74 @@ module SmileID
|
|
|
21
22
|
enhanced_kyc: Operation.new(
|
|
22
23
|
http_method: :post, path: '/v3/enhanced_kyc', authenticated: true,
|
|
23
24
|
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
24
|
-
success_statuses: [202]
|
|
25
|
+
success_statuses: [202],
|
|
26
|
+
product: 'enhanced_kyc'
|
|
25
27
|
),
|
|
26
28
|
document_verification: Operation.new(
|
|
27
29
|
http_method: :post, path: '/v3/document_verification', authenticated: true,
|
|
28
30
|
partner_id_header: true, body_kind: :multipart, idempotent: false,
|
|
29
|
-
success_statuses: [202]
|
|
31
|
+
success_statuses: [202],
|
|
32
|
+
product: 'document_verification'
|
|
30
33
|
),
|
|
31
34
|
enhanced_document_verification: Operation.new(
|
|
32
35
|
http_method: :post, path: '/v3/enhanced_document_verification', authenticated: true,
|
|
33
36
|
partner_id_header: true, body_kind: :multipart, idempotent: false,
|
|
34
|
-
success_statuses: [202]
|
|
37
|
+
success_statuses: [202],
|
|
38
|
+
product: 'enhanced_document_verification'
|
|
35
39
|
),
|
|
36
40
|
residency_document_verification: Operation.new(
|
|
37
41
|
http_method: :post, path: '/v3/residency_document_verification', authenticated: true,
|
|
38
42
|
partner_id_header: true, body_kind: :multipart, idempotent: false,
|
|
39
|
-
success_statuses: [202]
|
|
43
|
+
success_statuses: [202],
|
|
44
|
+
product: 'residency_document_verification'
|
|
40
45
|
),
|
|
41
46
|
biometric_kyc: Operation.new(
|
|
42
47
|
http_method: :post, path: '/v3/biometric_kyc', authenticated: true,
|
|
43
48
|
partner_id_header: true, body_kind: :multipart, idempotent: false,
|
|
44
|
-
success_statuses: [202]
|
|
49
|
+
success_statuses: [202],
|
|
50
|
+
product: 'biometric_kyc'
|
|
45
51
|
),
|
|
46
52
|
registration: Operation.new(
|
|
47
53
|
http_method: :post, path: '/v3/registration', authenticated: true,
|
|
48
54
|
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
49
|
-
success_statuses: [202]
|
|
55
|
+
success_statuses: [202],
|
|
56
|
+
product: 'smart_selfie_registration'
|
|
50
57
|
),
|
|
51
58
|
authentication: Operation.new(
|
|
52
59
|
http_method: :post, path: '/v3/authentication', authenticated: true,
|
|
53
60
|
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
54
|
-
success_statuses: [202]
|
|
61
|
+
success_statuses: [202],
|
|
62
|
+
product: 'smart_selfie_authentication'
|
|
55
63
|
),
|
|
56
64
|
compare: Operation.new(
|
|
57
65
|
http_method: :post, path: '/v3/compare', authenticated: true,
|
|
58
66
|
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
59
|
-
success_statuses: [202]
|
|
67
|
+
success_statuses: [202],
|
|
68
|
+
product: 'smart_selfie_compare'
|
|
69
|
+
),
|
|
70
|
+
one_time_aml: Operation.new(
|
|
71
|
+
http_method: :post, path: '/v3/aml', authenticated: true,
|
|
72
|
+
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
73
|
+
success_statuses: [202],
|
|
74
|
+
product: 'one_time_aml'
|
|
75
|
+
),
|
|
76
|
+
one_time_aml_sync: Operation.new(
|
|
77
|
+
http_method: :post, path: '/v3/aml/sync', authenticated: true,
|
|
78
|
+
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
79
|
+
success_statuses: [200],
|
|
80
|
+
product: 'one_time_aml'
|
|
81
|
+
),
|
|
82
|
+
aml_monitoring: Operation.new(
|
|
83
|
+
http_method: :post, path: '/v3/aml/monitoring', authenticated: true,
|
|
84
|
+
partner_id_header: false, body_kind: :multipart, idempotent: false,
|
|
85
|
+
success_statuses: [202],
|
|
86
|
+
product: 'aml'
|
|
87
|
+
),
|
|
88
|
+
aml_monitoring_news: Operation.new(
|
|
89
|
+
http_method: :get, path: '/v3/aml/monitoring/{job_id}/news/{reference}',
|
|
90
|
+
authenticated: true, partner_id_header: false, body_kind: nil, idempotent: true,
|
|
91
|
+
success_statuses: [200],
|
|
92
|
+
product: 'aml'
|
|
60
93
|
),
|
|
61
94
|
status: Operation.new(
|
|
62
95
|
http_method: :get, path: '/v3/status/{job_id}', authenticated: true,
|
|
@@ -19,7 +19,7 @@ module SmileID
|
|
|
19
19
|
# item 4, the OpenAPI-Generator bug to avoid).
|
|
20
20
|
module Multipart
|
|
21
21
|
# Fields serialized as JSON parts.
|
|
22
|
-
JSON_PART_FIELDS = %w[consent user_details partner_params metadata].freeze
|
|
22
|
+
JSON_PART_FIELDS = %w[consent user_details partner_params metadata countries aliases].freeze
|
|
23
23
|
# Single binary fields.
|
|
24
24
|
BINARY_FIELDS = %w[selfie_image document document_back visa comparison_image].freeze
|
|
25
25
|
# Repeated binary fields.
|
data/lib/usesmileid/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: usesmileid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 13.
|
|
4
|
+
version: 13.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Smile Identity
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
|
-
rubygems_version: 3.4.
|
|
85
|
+
rubygems_version: 3.4.19
|
|
86
86
|
signing_key:
|
|
87
87
|
specification_version: 4
|
|
88
88
|
summary: Official Smile ID server-side SDK for Ruby.
|