didit-sdk 2.1.1 → 2.2.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 +15 -0
- data/README.md +8 -1
- data/lib/didit/resources/bank.rb +5 -9
- data/lib/didit/resources/database_validation.rb +2 -2
- data/lib/didit/resources/email.rb +3 -2
- data/lib/didit/resources/pricing.rb +2 -3
- data/lib/didit/types/components.rb +2 -0
- data/lib/didit/version.rb +1 -1
- data/sig/didit/types/components.rbs +2 -0
- 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: 3c7718e92289382e11454238650820657559cfdfe42035b64bc04851e5c126cb
|
|
4
|
+
data.tar.gz: f4704f4f9b3272cb0e02ed347b0768d4b710fe3194bc613060c47b0c92c72fc3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5e2853cbd7438a2be97c2b082bd08c202a0d425b56b875d12592bde576e2c366767f96bdae1100f95b8e45fc9b10aa476a2f8ff21e7bee9d16b53ec587570ae4
|
|
7
|
+
data.tar.gz: 837cf285c9ff7da4d9ef79addf0ee509895f7b05e847c99acd5b44b4b1ac6c49a43e6e85967927522e26d38e8df98178ffe106009310cc077fe33b10485512bf
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.2.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.2...v2.2.0) (2026-11-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **spec:** sync API spec 2026-11-09 ([588db3d](https://github.com/didit-protocol/sdk-ruby/commit/588db3d2b4ed0e1ef0e141d1b52ec20fa7feb28b))
|
|
9
|
+
|
|
10
|
+
## [2.1.2](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.1...v2.1.2) (2026-11-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### API Spec Updates
|
|
14
|
+
|
|
15
|
+
* **spec:** sync API spec 2026-11-07 ([2a75a53](https://github.com/didit-protocol/sdk-ruby/commit/2a75a5351502a982285b2588f9c95d696ececb0c))
|
|
16
|
+
* **spec:** sync API spec 2026-11-07 ([d8b0851](https://github.com/didit-protocol/sdk-ruby/commit/d8b08515b4c0b773f0f5003c8f4cd9eb41558632))
|
|
17
|
+
|
|
3
18
|
## [2.1.1](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.0...v2.1.1) (2026-11-06)
|
|
4
19
|
|
|
5
20
|
|
data/README.md
CHANGED
|
@@ -261,7 +261,14 @@ See [CONTRIBUTING.md](CONTRIBUTING.md): generated versus hand-written code, `bun
|
|
|
261
261
|
|
|
262
262
|
## Versioning
|
|
263
263
|
|
|
264
|
-
[Semantic versioning](https://semver.org)
|
|
264
|
+
[Semantic versioning](https://semver.org), with one rule for API changes (DESIGN section 13):
|
|
265
|
+
|
|
266
|
+
- A change that mirrors the Didit API ships in a minor version, even when it can break typed code: a type change, a field that can now be null, or a removed field, operation or enum value. The API already behaves that way for every caller, so an older SDK version is not safer. The release notes list these changes under "API changes that can break typed code"; read that section before you upgrade, because a `~> 2.1` requirement installs new minor versions.
|
|
267
|
+
- A major version is only for a change to the SDK's own design: renaming or removing a method or resource the API still has, changing client configuration, errors, retries, pagination or webhook verification, or dropping a Ruby version.
|
|
268
|
+
- A method whose operation was removed upstream stays one more minor version, marked deprecated.
|
|
269
|
+
- A change limited to the API documentation releases nothing on its own; it ships with the next release.
|
|
270
|
+
|
|
271
|
+
The gem moved to 2.0.0 on 2026-11-05 under an earlier rule and continues from there. Releases are cut by release-please and the changelog is generated.
|
|
265
272
|
|
|
266
273
|
## Links
|
|
267
274
|
|
data/lib/didit/resources/bank.rb
CHANGED
|
@@ -7,10 +7,6 @@ module Didit
|
|
|
7
7
|
class Bank < Didit::Resource
|
|
8
8
|
# Check a bank account
|
|
9
9
|
#
|
|
10
|
-
# **Not available in production yet.** Bank Verification is switched off in production, so until it is switched
|
|
11
|
-
# on this endpoint answers `404` with `bank_verification_not_available`. Do not build on it yet. The rest of
|
|
12
|
-
# this description is what the endpoint does once it is available.
|
|
13
|
-
#
|
|
14
10
|
# Check that a bank account belongs to the person or company you name, before you send money to it. No session
|
|
15
11
|
# and no sign-in: send the name and the account, read the result. It is the [account
|
|
16
12
|
# check](/core-technology/bank-verification/account-check) of the Bank Verification step, run from your backend.
|
|
@@ -30,16 +26,16 @@ module Didit
|
|
|
30
26
|
# **Every request is a new check.** There is no idempotency key and no endpoint to read a check back, so a
|
|
31
27
|
# retried request runs, and is billed, again. Store the response.
|
|
32
28
|
#
|
|
33
|
-
# **Sandbox.**
|
|
34
|
-
# last 4 characters of the IBAN, else of the account number, choose the answer: `0001` a
|
|
35
|
-
# `holder_name`, `0002` a `close_match` without one, `0003` and `0006` a `no_match`, `0004`
|
|
36
|
-
# `0005` a `503` and `0009` a `400`. Any other ending is a `match`.
|
|
29
|
+
# **Sandbox.** Use a sandbox API key with the sample account details. A sandbox key calls no bank and is charged
|
|
30
|
+
# nothing. The last 4 characters of the IBAN, else of the account number, choose the answer: `0001` a
|
|
31
|
+
# `close_match` with a `holder_name`, `0002` a `close_match` without one, `0003` and `0006` a `no_match`, `0004`
|
|
32
|
+
# `cannot_verify`, `0005` a `503` and `0009` a `400`. Any other ending is a `match`.
|
|
37
33
|
#
|
|
38
34
|
# **API keys.** A scoped API key needs write access to sessions.
|
|
39
35
|
#
|
|
40
36
|
# +POST /v3/bank/account-check/+
|
|
41
37
|
#
|
|
42
|
-
# @param country [String] The account's country, as an ISO 3166-1 alpha-3 code, for example `
|
|
38
|
+
# @param country [String] The account's country, as an ISO 3166-1 alpha-3 code, for example `NGA`. Lowercase is
|
|
43
39
|
# accepted.
|
|
44
40
|
# @param account [Hash] The account the way its country writes it: an `iban`, or an `account_number` with the
|
|
45
41
|
# bank or branch code the country needs (`sort_code`, `routing_number`, `transit_institution`, `bsb`, `ifsc`,
|
|
@@ -193,8 +193,8 @@ module Didit
|
|
|
193
193
|
# @param phone [String] Phone number for phone-verification services.
|
|
194
194
|
# @param landline [String] Landline number for phone-verification services.
|
|
195
195
|
# @param email [String] Email address for identity-verification services.
|
|
196
|
-
# @param country_of_residence [String] ISO 3166-1 alpha-2 country of residence.
|
|
197
|
-
# identity-enrichment
|
|
196
|
+
# @param country_of_residence [String] ISO 3166-1 alpha-2 country of residence. It was used only by the retired
|
|
197
|
+
# global identity-enrichment service (`glb_identity_enrichment`), which Didit no longer offers.
|
|
198
198
|
# @param partial_match_action [String] What a `partial_match` does to `database_validation.status`. Defaults to
|
|
199
199
|
# `NO_ACTION` (status stays `Approved`, with a warning).
|
|
200
200
|
# @param no_match_action [String] What a `no_match` does to `database_validation.status`. Defaults to `DECLINE`.
|
|
@@ -214,8 +214,9 @@ module Didit
|
|
|
214
214
|
# **Deliverability pre-check.** Before anything is sent, the address goes through syntax and DNS/MX validation.
|
|
215
215
|
# Addresses that cannot receive mail return `200` with `status: "Undeliverable"` and `reason:
|
|
216
216
|
# "email_can_not_be_delivered"` - no email is sent, nothing is billed, and the verification is immediately
|
|
217
|
-
# finalized as `Declined` (a follow-up check returns `Expired or Not Found`). A
|
|
218
|
-
# the
|
|
217
|
+
# finalized as `Declined` (a follow-up check returns `Expired or Not Found`). A send that fails for a reason
|
|
218
|
+
# that is not the address (the email could not be handed over for delivery) returns `503` instead: no code is
|
|
219
|
+
# sent, nothing is billed, the verification stays open and the same request can be repeated.
|
|
219
220
|
#
|
|
220
221
|
# **Code format and branding.** Codes are 4-8 characters (`options.code_size`, default 6), numeric by default;
|
|
221
222
|
# set `options.alphanumeric_code: true` for uppercase letters and digits (the check comparison is
|
|
@@ -8,9 +8,8 @@ module Didit
|
|
|
8
8
|
# Get bank verification prices (public, unauthenticated)
|
|
9
9
|
#
|
|
10
10
|
# Returns the list price of each Bank Verification method in every country: bank sign-in with its balance and
|
|
11
|
-
# transactions add-ons, and the account check.
|
|
12
|
-
#
|
|
13
|
-
# can buy today. Use it to quote a bank step before you build a workflow, or to show bank prices in your own
|
|
11
|
+
# transactions add-ons, and the account check. A method a country does not offer today shows as not available,
|
|
12
|
+
# with no price. Use it to quote a bank step before you build a workflow, or to show bank prices in your own
|
|
14
13
|
# product.
|
|
15
14
|
#
|
|
16
15
|
# Public: send no auth header. The response contains no organization data and is the same for every caller. It
|
|
@@ -9906,6 +9906,7 @@ module Didit
|
|
|
9906
9906
|
class SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulation < Didit::Model
|
|
9907
9907
|
field :detected, "detected", :boolean
|
|
9908
9908
|
field :analyzed, "analyzed", :boolean
|
|
9909
|
+
field :analysis_incomplete, "analysis_incomplete", :boolean
|
|
9909
9910
|
field :signals, "signals", [:array, :string]
|
|
9910
9911
|
field :manipulated_regions, "manipulated_regions", [:array, "SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulationManipulatedRegions"]
|
|
9911
9912
|
end
|
|
@@ -11007,6 +11008,7 @@ module Didit
|
|
|
11007
11008
|
class SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulation < Didit::Model
|
|
11008
11009
|
field :detected, "detected", :boolean
|
|
11009
11010
|
field :analyzed, "analyzed", :boolean
|
|
11011
|
+
field :analysis_incomplete, "analysis_incomplete", :boolean
|
|
11010
11012
|
field :signals, "signals", [:array, :string]
|
|
11011
11013
|
field :manipulated_regions, "manipulated_regions", [:array, "SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulationManipulatedRegions"]
|
|
11012
11014
|
end
|
data/lib/didit/version.rb
CHANGED
|
@@ -8676,6 +8676,7 @@ module Didit
|
|
|
8676
8676
|
class SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulation < Didit::Model
|
|
8677
8677
|
def detected: () -> bool?
|
|
8678
8678
|
def analyzed: () -> bool?
|
|
8679
|
+
def analysis_incomplete: () -> bool?
|
|
8679
8680
|
def signals: () -> Array[String]?
|
|
8680
8681
|
def manipulated_regions: () -> Array[Didit::Types::SessionDecisionDocumentVerificationsItemsDocumentMetadataOverlayManipulationManipulatedRegions]?
|
|
8681
8682
|
end
|
|
@@ -9689,6 +9690,7 @@ module Didit
|
|
|
9689
9690
|
class SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulation < Didit::Model
|
|
9690
9691
|
def detected: () -> bool?
|
|
9691
9692
|
def analyzed: () -> bool?
|
|
9693
|
+
def analysis_incomplete: () -> bool?
|
|
9692
9694
|
def signals: () -> Array[String]?
|
|
9693
9695
|
def manipulated_regions: () -> Array[Didit::Types::SessionDecisionPoaVerificationsDocumentMetadataOverlayManipulationManipulatedRegions]?
|
|
9694
9696
|
end
|