didit-sdk 2.18.0 → 2.20.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 -0
- data/README.md +11 -1
- data/lib/didit/internal/request.rb +78 -13
- data/lib/didit/resources/database_validation.rb +7 -0
- data/lib/didit/version.rb +1 -1
- data/sig/didit/internal.rbs +17 -4
- data/sig/didit/resources/database_validation.rbs +1 -1
- data/sig/didit/types/database_validation.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58596e10eb50e7a57f33c7024c52a0201b68090c2ce1724ed0a95d9bb43787ae
|
|
4
|
+
data.tar.gz: 0655b223441a6aad276de0cf8d4d85fa966e20898024a808213363e9920b9124
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 730e39c0fff1151cda0e223a56a0a721fed943470c391f14d2be78fa906322196bfa1651ae740021d38aab3be75e693da50cb63587db437abc6a2fc35d04ee2e
|
|
7
|
+
data.tar.gz: 20d98d5fdefcc2861614f80357a060f2be272a0e5b3d5b61186188f50aee83641c200c05ad78141349d310cf1894915691d66192e3ae4d57c9603032cc2b66d9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.20.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.19.0...v2.20.0) (2026-11-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* per-request idempotency key ([#66](https://github.com/didit-protocol/sdk-ruby/issues/66)) ([896586c](https://github.com/didit-protocol/sdk-ruby/commit/896586c7083049d43ebf0b27b7d39cf5623ab36d))
|
|
9
|
+
|
|
10
|
+
## [2.19.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.18.0...v2.19.0) (2026-11-14)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **spec:** sync API spec 2026-11-14 ([88cf3be](https://github.com/didit-protocol/sdk-ruby/commit/88cf3bed69ba504cb2351743b0891fbfdb6812d6))
|
|
16
|
+
|
|
3
17
|
## [2.18.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.17.0...v2.18.0) (2026-11-14)
|
|
4
18
|
|
|
5
19
|
|
data/README.md
CHANGED
|
@@ -72,7 +72,7 @@ didit = Didit::Client.new(
|
|
|
72
72
|
|
|
73
73
|
- One client per process is the intended use. It is thread safe, keeps connections open per host, and a forked child never reuses its parent's connections.
|
|
74
74
|
- `with_options` returns a copy with some options changed that shares the connections: `didit.with_options(timeout: 5, max_retries: 0)`.
|
|
75
|
-
- Every method takes `request_options:` for one call: `{ timeout:, max_retries:, extra_headers:, extra_query:, extra_body: }`.
|
|
75
|
+
- Every method takes `request_options:` for one call: `{ timeout:, max_retries:, extra_headers:, extra_query:, extra_body:, idempotency_key: }`.
|
|
76
76
|
- Application-scoped methods (all of `cases`, `networks`, `regulatory_reports`, `report_templates` and `business_sessions`, and some of `sessions`, `users`, `businesses` and `transactions`): the SDK fills `organization_id` and `application_id` from the client, and raises `Didit::ConfigurationError` before sending when either is missing.
|
|
77
77
|
- The API key is sent only to `base_url`. It never appears in logs, error messages or error bodies.
|
|
78
78
|
|
|
@@ -136,6 +136,16 @@ Failed requests are retried up to `max_retries` times (default 2) with exponenti
|
|
|
136
136
|
GET, HEAD, PUT and DELETE are retried on connection errors, timeouts, 408, 429 and 5xx.
|
|
137
137
|
POST and PATCH are retried only on 429 and when the connection failed before the request was sent, never after it may have reached the server.
|
|
138
138
|
|
|
139
|
+
### Idempotency
|
|
140
|
+
|
|
141
|
+
The `idempotency_key` request option sends an `Idempotency-Key` header, so repeating the same operation with the same key never runs or bills it twice.
|
|
142
|
+
|
|
143
|
+
```ruby
|
|
144
|
+
didit.sessions.create(workflow_id: "wf", request_options: { idempotency_key: "signup-8c1f" })
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
With a key, POST and PATCH are retried like GET.
|
|
148
|
+
|
|
139
149
|
## Pagination
|
|
140
150
|
|
|
141
151
|
```ruby
|
|
@@ -20,7 +20,11 @@ module Didit
|
|
|
20
20
|
INITIAL_RETRY_DELAY = 0.5
|
|
21
21
|
MAX_RETRY_DELAY = 8.0
|
|
22
22
|
MAX_RETRY_AFTER = 60.0
|
|
23
|
-
OPTION_KEYS = %i[timeout max_retries extra_headers extra_query extra_body].freeze
|
|
23
|
+
OPTION_KEYS = %i[timeout max_retries extra_headers extra_query extra_body idempotency_key].freeze
|
|
24
|
+
IDEMPOTENCY_HEADER = "Idempotency-Key"
|
|
25
|
+
IDEMPOTENCY_KEY_MAX = 255
|
|
26
|
+
KEY_METHODS = %i[post put patch delete].freeze
|
|
27
|
+
RETRYABLE_WITH_KEY = %i[post patch].freeze
|
|
24
28
|
UNRESERVED = /[^A-Za-z0-9\-._~]/
|
|
25
29
|
|
|
26
30
|
module_function
|
|
@@ -41,10 +45,22 @@ module Didit
|
|
|
41
45
|
max_retries: Config.check_max_retries(opts.fetch(:max_retries, config.max_retries)),
|
|
42
46
|
extra_headers: opts[:extra_headers] || {},
|
|
43
47
|
extra_query: opts[:extra_query] || {},
|
|
44
|
-
extra_body: opts[:extra_body] || {}
|
|
48
|
+
extra_body: opts[:extra_body] || {},
|
|
49
|
+
idempotency_key: opts.key?(:idempotency_key) ? check_idempotency_key(opts[:idempotency_key]) : nil
|
|
45
50
|
}
|
|
46
51
|
end
|
|
47
52
|
|
|
53
|
+
# The key must be a String of 1 to 255 characters.
|
|
54
|
+
def check_idempotency_key(value)
|
|
55
|
+
unless value.is_a?(String) && value.length.between?(1, IDEMPOTENCY_KEY_MAX)
|
|
56
|
+
shown = value.is_a?(String) ? "a String of #{value.length} characters" : value.inspect
|
|
57
|
+
raise ConfigurationError, "idempotency_key must be a String of 1 to #{IDEMPOTENCY_KEY_MAX} characters, " \
|
|
58
|
+
"got #{shown}."
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
value
|
|
62
|
+
end
|
|
63
|
+
|
|
48
64
|
# @return [Prepared]
|
|
49
65
|
def prepare(config, http_method, path, opts, path_params: {}, query: nil, body: nil, encoding: :json,
|
|
50
66
|
file_fields: [], headers: {}, auth: :api_key, api: :verification, scope: nil,
|
|
@@ -58,8 +74,9 @@ module Didit
|
|
|
58
74
|
body_bytes, content_type = encode_body(body, opts[:extra_body], encoding, file_fields)
|
|
59
75
|
Prepared.new(
|
|
60
76
|
http_method: http_method, uri: uri, origin: Util.origin(base),
|
|
61
|
-
headers: build_headers(config, auth, accept: accept, content_type: content_type,
|
|
62
|
-
extra_headers: opts[:extra_headers]
|
|
77
|
+
headers: build_headers(config, auth, accept: accept, content_type: content_type,
|
|
78
|
+
op_headers: headers, extra_headers: opts[:extra_headers],
|
|
79
|
+
http_method: http_method, idempotency_key: opts[:idempotency_key]),
|
|
63
80
|
body: body_bytes, timeout: opts[:timeout], max_retries: opts[:max_retries],
|
|
64
81
|
redact: [config.api_key, config.account_token].compact
|
|
65
82
|
)
|
|
@@ -177,16 +194,38 @@ module Didit
|
|
|
177
194
|
end
|
|
178
195
|
end
|
|
179
196
|
|
|
180
|
-
def build_headers(config, auth, accept:, content_type:, op_headers:, extra_headers:
|
|
197
|
+
def build_headers(config, auth, accept:, content_type:, op_headers:, extra_headers:, http_method: :post,
|
|
198
|
+
idempotency_key: nil)
|
|
181
199
|
# @type var pairs: Array[[untyped, untyped]]
|
|
182
200
|
pairs = [["Accept", accept], ["User-Agent", Util.user_agent], ["X-Didit-Client", Util.client_header]]
|
|
183
|
-
|
|
201
|
+
# A client-wide default Idempotency-Key never counts.
|
|
202
|
+
pairs.concat(config.default_headers.to_a.reject { |name, _| idempotency_name?(name) })
|
|
184
203
|
credential = credential_header(config, auth)
|
|
185
204
|
pairs << credential if credential
|
|
186
205
|
pairs << ["Content-Type", content_type] if content_type
|
|
187
206
|
pairs.concat(op_headers.reject { |_, value| value.equal?(OMIT) }.to_a)
|
|
188
207
|
pairs.concat(extra_headers.to_a)
|
|
189
|
-
|
|
208
|
+
pairs << [IDEMPOTENCY_HEADER, idempotency_key] if idempotency_key
|
|
209
|
+
merge_headers(with_effective_key(pairs, http_method))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
def idempotency_name?(name)
|
|
213
|
+
name.to_s.casecmp?(IDEMPOTENCY_HEADER)
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Collapses every Idempotency-Key pair into the effective key (the last one; nil removes it),
|
|
217
|
+
# validates it whatever its source, and sends it only on the allow-listed methods.
|
|
218
|
+
def with_effective_key(pairs, http_method)
|
|
219
|
+
keyed, others = pairs.partition { |name, _| idempotency_name?(name) }
|
|
220
|
+
effective = keyed.empty? ? nil : keyed.last&.last
|
|
221
|
+
return others if effective.nil?
|
|
222
|
+
|
|
223
|
+
check_idempotency_key(effective)
|
|
224
|
+
return others unless KEY_METHODS.include?(http_method)
|
|
225
|
+
|
|
226
|
+
# @type var pair: [untyped, untyped]
|
|
227
|
+
pair = [IDEMPOTENCY_HEADER, effective]
|
|
228
|
+
others + [pair]
|
|
190
229
|
end
|
|
191
230
|
|
|
192
231
|
# Header names are case-insensitive: a later value replaces an earlier one whatever its
|
|
@@ -258,7 +297,7 @@ module Didit
|
|
|
258
297
|
def retry_delay(config, prepared, attempt, retries)
|
|
259
298
|
left = prepared.max_retries - retries
|
|
260
299
|
if (failure = attempt.failure)
|
|
261
|
-
return nil if attempt.streamed || left <= 0 || !retry_failure?(prepared
|
|
300
|
+
return nil if attempt.streamed || left <= 0 || !retry_failure?(prepared, failure)
|
|
262
301
|
|
|
263
302
|
delay = backoff(retries)
|
|
264
303
|
Log.retry(config, prepared, failure.timeout? ? "timed out" : failure.error.class.name, delay, left)
|
|
@@ -268,22 +307,48 @@ module Didit
|
|
|
268
307
|
return nil unless response
|
|
269
308
|
|
|
270
309
|
Log.response(config, prepared, response, attempt.elapsed)
|
|
271
|
-
return nil if left <= 0 || !retry_status?(prepared
|
|
310
|
+
return nil if left <= 0 || !retry_status?(prepared, response)
|
|
272
311
|
|
|
273
312
|
delay = retry_after(response.headers["retry-after"]) || backoff(retries)
|
|
274
313
|
Log.retry(config, prepared, "HTTP #{response.status}", delay, left)
|
|
275
314
|
delay
|
|
276
315
|
end
|
|
277
316
|
|
|
278
|
-
def retry_status?(
|
|
317
|
+
def retry_status?(prepared, response)
|
|
318
|
+
status = response.status
|
|
279
319
|
return true if status == 429
|
|
280
|
-
return
|
|
320
|
+
return key_in_progress?(response) if status == 409 && carries_key?(prepared)
|
|
321
|
+
return false unless safe_to_repeat?(prepared)
|
|
281
322
|
|
|
282
323
|
status == 408 || status.between?(500, 599)
|
|
283
324
|
end
|
|
284
325
|
|
|
285
|
-
def retry_failure?(
|
|
286
|
-
!failure.sent ||
|
|
326
|
+
def retry_failure?(prepared, failure)
|
|
327
|
+
!failure.sent || safe_to_repeat?(prepared)
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# GET, HEAD, PUT and DELETE, and a POST or PATCH that carries an Idempotency-Key.
|
|
331
|
+
def safe_to_repeat?(prepared)
|
|
332
|
+
IDEMPOTENT.include?(prepared.http_method) || keyed?(prepared)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Whether the key makes this method retryable: only POST and PATCH (the others already are).
|
|
336
|
+
def keyed?(prepared)
|
|
337
|
+
RETRYABLE_WITH_KEY.include?(prepared.http_method) && carries_key?(prepared)
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Whether the request carries an Idempotency-Key (any of the four allow-listed methods).
|
|
341
|
+
def carries_key?(prepared)
|
|
342
|
+
KEY_METHODS.include?(prepared.http_method) &&
|
|
343
|
+
prepared.headers.keys.any? { |name| name.casecmp?(IDEMPOTENCY_HEADER) }
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# A 409 whose JSON body says the first request with this key is still running.
|
|
347
|
+
def key_in_progress?(response)
|
|
348
|
+
body = JSON.parse(response.body.to_s)
|
|
349
|
+
body.is_a?(Hash) && body["code"] == "idempotency_key_in_progress"
|
|
350
|
+
rescue JSON::ParserError
|
|
351
|
+
false
|
|
287
352
|
end
|
|
288
353
|
|
|
289
354
|
# Exponential backoff from 0.5 s with full jitter, capped at 8 s.
|
|
@@ -75,6 +75,11 @@ module Didit
|
|
|
75
75
|
# @param consent [Boolean] Set to `true` when the end user has explicitly consented to the selected validation
|
|
76
76
|
# services. Required for services flagged `requires_consent=true` in the catalog - without it those services
|
|
77
77
|
# return `400` with `services_requiring_consent`.
|
|
78
|
+
# @param electoral_roll_only [Boolean] Paraguay (`pry_cedula`) only. Set to `true` to check the cédula against
|
|
79
|
+
# the TSJE electoral roll alone. The electoral roll lists only citizens aged 18 or over, so a `MATCH` also
|
|
80
|
+
# confirms that the holder is an adult, and a cédula that is not on the roll returns `DOCUMENT_NOT_FOUND`.
|
|
81
|
+
# Defaults to `false`, which also checks the DNIT taxpayer register for wider identity coverage but cannot
|
|
82
|
+
# confirm age....
|
|
78
83
|
# @param identification_number [String] Universal identification number - automatically mapped to the correct
|
|
79
84
|
# country-specific field, so you can use it instead of `personal_number`/`tax_number`/`document_number`:
|
|
80
85
|
# ARG→document_number (DNI), BOL→document_number (CI), BRA→tax_number (CPF, 11 digits), CHL→personal_number
|
|
@@ -214,6 +219,7 @@ module Didit
|
|
|
214
219
|
services: OMIT,
|
|
215
220
|
validation_type: OMIT,
|
|
216
221
|
consent: OMIT,
|
|
222
|
+
electoral_roll_only: OMIT,
|
|
217
223
|
identification_number: OMIT,
|
|
218
224
|
first_name: OMIT,
|
|
219
225
|
last_name: OMIT,
|
|
@@ -302,6 +308,7 @@ module Didit
|
|
|
302
308
|
"services" => services,
|
|
303
309
|
"validation_type" => validation_type,
|
|
304
310
|
"consent" => consent,
|
|
311
|
+
"electoral_roll_only" => electoral_roll_only,
|
|
305
312
|
"identification_number" => identification_number,
|
|
306
313
|
"first_name" => first_name,
|
|
307
314
|
"last_name" => last_name,
|
data/lib/didit/version.rb
CHANGED
data/sig/didit/internal.rbs
CHANGED
|
@@ -105,13 +105,18 @@ module Didit
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
type options = { timeout: Float, max_retries: Integer, extra_headers: Hash[untyped, untyped],
|
|
108
|
-
extra_query: Hash[untyped, untyped], extra_body: Hash[untyped, untyped]
|
|
108
|
+
extra_query: Hash[untyped, untyped], extra_body: Hash[untyped, untyped],
|
|
109
|
+
idempotency_key: String? }
|
|
109
110
|
|
|
110
111
|
IDEMPOTENT: Array[Symbol]
|
|
111
112
|
INITIAL_RETRY_DELAY: Float
|
|
112
113
|
MAX_RETRY_DELAY: Float
|
|
113
114
|
MAX_RETRY_AFTER: Float
|
|
114
115
|
OPTION_KEYS: Array[Symbol]
|
|
116
|
+
IDEMPOTENCY_HEADER: String
|
|
117
|
+
IDEMPOTENCY_KEY_MAX: Integer
|
|
118
|
+
KEY_METHODS: Array[Symbol]
|
|
119
|
+
RETRYABLE_WITH_KEY: Array[Symbol]
|
|
115
120
|
UNRESERVED: Regexp
|
|
116
121
|
|
|
117
122
|
def self?.options: (Config config, untyped raw) -> options
|
|
@@ -119,6 +124,9 @@ module Didit
|
|
|
119
124
|
?query: Hash[String, untyped]?, ?body: untyped, ?encoding: Symbol, ?file_fields: Array[String],
|
|
120
125
|
?headers: Hash[String, untyped], ?auth: Symbol, ?api: Symbol, ?scope: Symbol?,
|
|
121
126
|
?accept: String) -> Prepared
|
|
127
|
+
def self?.check_idempotency_key: (untyped value) -> String
|
|
128
|
+
def self?.idempotency_name?: (untyped name) -> bool
|
|
129
|
+
def self?.with_effective_key: (Array[[untyped, untyped]] pairs, Symbol http_method) -> Array[[untyped, untyped]]
|
|
122
130
|
def self?.scoped: (Config config, Hash[String, untyped] path_params) -> Hash[String, untyped]
|
|
123
131
|
def self?.check_credentials: (Config config, Symbol auth) -> void
|
|
124
132
|
def self?.encode_path: (String path, Hash[String, untyped] params) -> String
|
|
@@ -129,7 +137,8 @@ module Didit
|
|
|
129
137
|
def self?.encode_body: (untyped body, untyped extra_body, Symbol encoding, Array[String] file_fields) -> [String?, String?]
|
|
130
138
|
def self?.json_value: (untyped value) -> untyped
|
|
131
139
|
def self?.build_headers: (Config config, Symbol auth, accept: String, content_type: String?,
|
|
132
|
-
op_headers: Hash[String, untyped], extra_headers: Hash[untyped, untyped]
|
|
140
|
+
op_headers: Hash[String, untyped], extra_headers: Hash[untyped, untyped],
|
|
141
|
+
?http_method: Symbol, ?idempotency_key: String?) -> Hash[String, String]
|
|
133
142
|
def self?.merge_headers: (Array[[untyped, untyped]] pairs) -> Hash[String, String]
|
|
134
143
|
def self?.credential_header: (Config config, Symbol auth) -> [String, String]?
|
|
135
144
|
class Attempt < Struct[untyped]
|
|
@@ -144,8 +153,12 @@ module Didit
|
|
|
144
153
|
def self?.perform: (Config config, Transport transport, Prepared prepared) ?{ (String chunk) -> void } -> Result
|
|
145
154
|
def self?.attempt: (Transport transport, Prepared prepared) ?{ (String chunk) -> void } -> Attempt
|
|
146
155
|
def self?.retry_delay: (Config config, Prepared prepared, Attempt attempt, Integer retries) -> Float?
|
|
147
|
-
def self?.retry_status?: (
|
|
148
|
-
def self?.retry_failure?: (
|
|
156
|
+
def self?.retry_status?: (Prepared prepared, Transport::Response response) -> bool
|
|
157
|
+
def self?.retry_failure?: (Prepared prepared, Transport::Failure failure) -> bool
|
|
158
|
+
def self?.safe_to_repeat?: (Prepared prepared) -> bool
|
|
159
|
+
def self?.keyed?: (Prepared prepared) -> bool
|
|
160
|
+
def self?.carries_key?: (Prepared prepared) -> bool
|
|
161
|
+
def self?.key_in_progress?: (Transport::Response response) -> bool
|
|
149
162
|
def self?.backoff: (Integer retries_taken) -> Float
|
|
150
163
|
def self?.retry_after: (String? value, ?now: Time) -> Float?
|
|
151
164
|
def self?.http_date_seconds: (String text, Time now) -> Float?
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Didit
|
|
4
4
|
module Resources
|
|
5
5
|
class DatabaseValidation < Didit::Resource
|
|
6
|
-
def validate: (issuing_state: String, ?services: Array[String], ?validation_type: String, ?consent: bool, ?identification_number: String, ?first_name: String, ?last_name: String, ?middle_name: String, ?full_name: String, ?date_of_birth: Date | String, ?personal_number: String, ?tax_number: String, ?document_number: String, ?document_type: String, ?expiration_date: Date | String, ?date_of_issue: Date | String, ?nationality: String, ?gender: String, ?address: (Didit::Types::database_validation_validate_params_address_variant1 | String), ?address_element_1: String, ?address_element_2: String, ?address_element_3: String, ?address_element_4: String, ?address_element_5: String, ?postal_code: String, ?driver_license_number: String, ?driver_license_card_number: String, ?driver_license_state: String, ?driver_license_version: String, ?passport_number: String, ?passport_expiration_date: Date | String, ?passport_file_number: String, ?passport_issue_country: String, ?medicare_card_number: String, ?immi_card_number: String, ?immi_card_expiry_date: Date | String, ?citizenship_certificate_number: String, ?birth_registration_number: String, ?birth_registration_date: Date | String, ?birth_registration_state: String, ?marriage_certificate_number: String, ?change_of_name_certificate_number: String, ?first_partner_name: String, ?last_partner_name: String, ?voter_id: String, ?epic_card: String, ?pan: String, ?national_id: String, ?cic: String, ?identificador_ciudadano: String, ?ocr: String, ?voter_number: String, ?emission_number: String, ?bvn: String, ?bank_card_number: String, ?company_registration_number: String, ?company_name: String, ?initials: String, ?licence_number: String, ?refugee_file_number: String, ?bank_name: String, ?bank_account_number: String, ?account_type: String, ?phone_number: String, ?right_thumb: String, ?left_thumb: String, ?score_level: Integer, ?max_matches: Integer, ?vehicle_register_number: String, ?vehicle_licence_plate: String, ?vin: String, ?ssn: String, ?phone: String, ?landline: String, ?email: String, ?country_of_residence: String, ?partial_match_action: String, ?no_match_action: String, ?save_api_request: bool, ?vendor_data: String, ?metadata: (Hash[String | Symbol, untyped])?, ?selfie: Didit::upload, ?request_options: Didit::request_options?) -> Didit::Types::DatabaseValidationValidateResponse
|
|
6
|
+
def validate: (issuing_state: String, ?services: Array[String], ?validation_type: String, ?consent: bool, ?electoral_roll_only: bool, ?identification_number: String, ?first_name: String, ?last_name: String, ?middle_name: String, ?full_name: String, ?date_of_birth: Date | String, ?personal_number: String, ?tax_number: String, ?document_number: String, ?document_type: String, ?expiration_date: Date | String, ?date_of_issue: Date | String, ?nationality: String, ?gender: String, ?address: (Didit::Types::database_validation_validate_params_address_variant1 | String), ?address_element_1: String, ?address_element_2: String, ?address_element_3: String, ?address_element_4: String, ?address_element_5: String, ?postal_code: String, ?driver_license_number: String, ?driver_license_card_number: String, ?driver_license_state: String, ?driver_license_version: String, ?passport_number: String, ?passport_expiration_date: Date | String, ?passport_file_number: String, ?passport_issue_country: String, ?medicare_card_number: String, ?immi_card_number: String, ?immi_card_expiry_date: Date | String, ?citizenship_certificate_number: String, ?birth_registration_number: String, ?birth_registration_date: Date | String, ?birth_registration_state: String, ?marriage_certificate_number: String, ?change_of_name_certificate_number: String, ?first_partner_name: String, ?last_partner_name: String, ?voter_id: String, ?epic_card: String, ?pan: String, ?national_id: String, ?cic: String, ?identificador_ciudadano: String, ?ocr: String, ?voter_number: String, ?emission_number: String, ?bvn: String, ?bank_card_number: String, ?company_registration_number: String, ?company_name: String, ?initials: String, ?licence_number: String, ?refugee_file_number: String, ?bank_name: String, ?bank_account_number: String, ?account_type: String, ?phone_number: String, ?right_thumb: String, ?left_thumb: String, ?score_level: Integer, ?max_matches: Integer, ?vehicle_register_number: String, ?vehicle_licence_plate: String, ?vin: String, ?ssn: String, ?phone: String, ?landline: String, ?email: String, ?country_of_residence: String, ?partial_match_action: String, ?no_match_action: String, ?save_api_request: bool, ?vendor_data: String, ?metadata: (Hash[String | Symbol, untyped])?, ?selfie: Didit::upload, ?request_options: Didit::request_options?) -> Didit::Types::DatabaseValidationValidateResponse
|
|
7
7
|
end
|
|
8
8
|
end
|
|
9
9
|
end
|
|
@@ -145,7 +145,7 @@ module Didit
|
|
|
145
145
|
def long_description: () -> String?
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
type database_validation_validate_params = { issuing_state: String, ?services: Array[String], ?validation_type: String, ?consent: bool, ?identification_number: String, ?first_name: String, ?last_name: String, ?middle_name: String, ?full_name: String, ?date_of_birth: Date | String, ?personal_number: String, ?tax_number: String, ?document_number: String, ?document_type: String, ?expiration_date: Date | String, ?date_of_issue: Date | String, ?nationality: String, ?gender: String, ?address: (Didit::Types::database_validation_validate_params_address_variant1 | String), ?address_element_1: String, ?address_element_2: String, ?address_element_3: String, ?address_element_4: String, ?address_element_5: String, ?postal_code: String, ?driver_license_number: String, ?driver_license_card_number: String, ?driver_license_state: String, ?driver_license_version: String, ?passport_number: String, ?passport_expiration_date: Date | String, ?passport_file_number: String, ?passport_issue_country: String, ?medicare_card_number: String, ?immi_card_number: String, ?immi_card_expiry_date: Date | String, ?citizenship_certificate_number: String, ?birth_registration_number: String, ?birth_registration_date: Date | String, ?birth_registration_state: String, ?marriage_certificate_number: String, ?change_of_name_certificate_number: String, ?first_partner_name: String, ?last_partner_name: String, ?voter_id: String, ?epic_card: String, ?pan: String, ?national_id: String, ?cic: String, ?identificador_ciudadano: String, ?ocr: String, ?voter_number: String, ?emission_number: String, ?bvn: String, ?bank_card_number: String, ?company_registration_number: String, ?company_name: String, ?initials: String, ?licence_number: String, ?refugee_file_number: String, ?bank_name: String, ?bank_account_number: String, ?account_type: String, ?phone_number: String, ?right_thumb: String, ?left_thumb: String, ?score_level: Integer, ?max_matches: Integer, ?vehicle_register_number: String, ?vehicle_licence_plate: String, ?vin: String, ?ssn: String, ?phone: String, ?landline: String, ?email: String, ?country_of_residence: String, ?partial_match_action: String, ?no_match_action: String, ?save_api_request: bool, ?vendor_data: String, ?metadata: (Hash[String | Symbol, untyped])?, ?selfie: Didit::upload }
|
|
148
|
+
type database_validation_validate_params = { issuing_state: String, ?services: Array[String], ?validation_type: String, ?consent: bool, ?electoral_roll_only: bool, ?identification_number: String, ?first_name: String, ?last_name: String, ?middle_name: String, ?full_name: String, ?date_of_birth: Date | String, ?personal_number: String, ?tax_number: String, ?document_number: String, ?document_type: String, ?expiration_date: Date | String, ?date_of_issue: Date | String, ?nationality: String, ?gender: String, ?address: (Didit::Types::database_validation_validate_params_address_variant1 | String), ?address_element_1: String, ?address_element_2: String, ?address_element_3: String, ?address_element_4: String, ?address_element_5: String, ?postal_code: String, ?driver_license_number: String, ?driver_license_card_number: String, ?driver_license_state: String, ?driver_license_version: String, ?passport_number: String, ?passport_expiration_date: Date | String, ?passport_file_number: String, ?passport_issue_country: String, ?medicare_card_number: String, ?immi_card_number: String, ?immi_card_expiry_date: Date | String, ?citizenship_certificate_number: String, ?birth_registration_number: String, ?birth_registration_date: Date | String, ?birth_registration_state: String, ?marriage_certificate_number: String, ?change_of_name_certificate_number: String, ?first_partner_name: String, ?last_partner_name: String, ?voter_id: String, ?epic_card: String, ?pan: String, ?national_id: String, ?cic: String, ?identificador_ciudadano: String, ?ocr: String, ?voter_number: String, ?emission_number: String, ?bvn: String, ?bank_card_number: String, ?company_registration_number: String, ?company_name: String, ?initials: String, ?licence_number: String, ?refugee_file_number: String, ?bank_name: String, ?bank_account_number: String, ?account_type: String, ?phone_number: String, ?right_thumb: String, ?left_thumb: String, ?score_level: Integer, ?max_matches: Integer, ?vehicle_register_number: String, ?vehicle_licence_plate: String, ?vin: String, ?ssn: String, ?phone: String, ?landline: String, ?email: String, ?country_of_residence: String, ?partial_match_action: String, ?no_match_action: String, ?save_api_request: bool, ?vendor_data: String, ?metadata: (Hash[String | Symbol, untyped])?, ?selfie: Didit::upload }
|
|
149
149
|
|
|
150
150
|
type database_validation_validate_params_address_variant1 = { ?street_1: String, ?street_2: String, ?city: String, ?region: String, ?postal_code: String, ?country: String }
|
|
151
151
|
end
|