didit-sdk 2.1.0 → 2.1.2

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: 1fa451d45da8ebb9f7175d6a30ab643f3fb301afc67b1c7dfb820ceff65e9ede
4
- data.tar.gz: e5bb12c7c01fd0703e167b009ab48d77191f48f80ee1ab3f8138aa0a2ac97380
3
+ metadata.gz: 75e7989e163c261e1874b2364284742fb3055b87e3cb7a04b9b44b17a4cad721
4
+ data.tar.gz: 45ab740c6754aa34b26b52a582a0e0f5c0ae91ac7d042a28df512385980a9339
5
5
  SHA512:
6
- metadata.gz: 94e2d08d505c8d899af221bd6a57c73b17423037a2974d5d41d7cb8a9d8cc54301b25d9d98b3d90c24c8b2db37e43e49d0c2507febe3c788cc34982f884c9b09
7
- data.tar.gz: 7ba084aacf9fa7180ac50d2e3b33c9013a37e6c097ba991b81709086c0e743cb46ffed007265c72b46853b9df2635b09f36b41495a678950d4f58014dfdba3f7
6
+ metadata.gz: 83d4c5f5da7a60ee9967a13dd81a2995f2ff11aa8a872d6fb9c9b47f863cd6f9dbff5d1d07e81f1b75a91eeb327e63390e3fb987ba145af7c7ff52997cc28e1b
7
+ data.tar.gz: ba47419cad5abce47ef1139c7f77b38db529f49f6126c60142ebdd087c73fd65d4e99af35d14a4f87a1a366946f61243ff7cada0e4bc8923398d8891a44964c2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.2](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.1...v2.1.2) (2026-11-07)
4
+
5
+
6
+ ### API Spec Updates
7
+
8
+ * **spec:** sync API spec 2026-11-07 ([2a75a53](https://github.com/didit-protocol/sdk-ruby/commit/2a75a5351502a982285b2588f9c95d696ececb0c))
9
+ * **spec:** sync API spec 2026-11-07 ([d8b0851](https://github.com/didit-protocol/sdk-ruby/commit/d8b08515b4c0b773f0f5003c8f4cd9eb41558632))
10
+
11
+ ## [2.1.1](https://github.com/didit-protocol/sdk-ruby/compare/v2.1.0...v2.1.1) (2026-11-06)
12
+
13
+
14
+ ### API Spec Updates
15
+
16
+ * **spec:** sync API spec 2026-11-06 ([f8f754d](https://github.com/didit-protocol/sdk-ruby/commit/f8f754de2ebf64b106e4d4936243e2f72d39f0f1))
17
+ * **spec:** sync API spec 2026-11-06 ([92a13b6](https://github.com/didit-protocol/sdk-ruby/commit/92a13b6bce036a7100e46cc51d3c6fa95d9ca729))
18
+
3
19
  ## [2.1.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.0.0...v2.1.0) (2026-11-05)
4
20
 
5
21
 
@@ -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.** Where Bank Verification is available, a sandbox key calls no bank and is charged nothing. The
34
- # last 4 characters of the IBAN, else of the account number, choose the answer: `0001` a `close_match` with a
35
- # `holder_name`, `0002` a `close_match` without one, `0003` and `0006` a `no_match`, `0004` `cannot_verify`,
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 `GBR`. Lowercase is
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`,
@@ -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 downstream send failure reports
218
- # the same way.
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. Bank Verification is not enabled in production yet, so a bank
12
- # step is refused on production workflows until it is; treat these prices as a list price, not as an offer you
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
@@ -19,9 +19,11 @@ module Didit
19
19
  # holder name, and address are extracted with LLM-based extraction. The address is parsed and geocoded into
20
20
  # `poa_parsed_address`. PDF/EXIF forensics screen for tampering - modification after digital signing, known PDF
21
21
  # editors, overlay-text manipulation, suspicious re-exports - surfacing `SUSPECTED_DOCUMENT_MANIPULATION` or
22
- # `DOCUMENT_METADATA_MISMATCH`. Document age is validated against `poa_document_age_months`, and the language
23
- # against `poa_languages_allowed`. If you pass `expected_address`, `expected_country`, or
24
- # `expected_first_name`/`expected_last_name`, the extracted values are cross-checked and mismatches are flagged.
22
+ # `DOCUMENT_METADATA_MISMATCH`. A text field that was blanked and re-typed in another font, where the file
23
+ # itself holds no proof of whether its content changed, surfaces `POA_DOCUMENT_UNPROVEN_TEXT_REPLACEMENT`.
24
+ # Document age is validated against `poa_document_age_months`, and the language against `poa_languages_allowed`.
25
+ # If you pass `expected_address`, `expected_country`, or `expected_first_name`/`expected_last_name`, the
26
+ # extracted values are cross-checked and mismatches are flagged.
25
27
  #
26
28
  # **Decision logic.** `status` is `Approved` unless at least one warning resolves to a decline. Hard failures
27
29
  # always decline: `MISSING_ADDRESS_INFORMATION`, `POA_DOCUMENT_EXPIRED`, `INVALID_DOCUMENT_TYPE`,
@@ -94,7 +96,9 @@ module Didit
94
96
  # `DOCUMENT_METADATA_MISMATCH` is produced by this endpoint.
95
97
  # @param poa_document_authenticity_action [String] What to do when document manipulation is suspected
96
98
  # (`SUSPECTED_DOCUMENT_MANIPULATION`) - e.g. the PDF was modified after digital signing, processed by a known
97
- # PDF editor, shows overlay-text manipulation, or has inconsistent EXIF dates.
99
+ # PDF editor, shows overlay-text manipulation, or has inconsistent EXIF dates. Also governs
100
+ # `POA_DOCUMENT_UNPROVEN_TEXT_REPLACEMENT` (a re-typed text field the file cannot prove changed or unchanged):
101
+ # `DECLINE` declines it too, `NO_ACTION` ke...
98
102
  # @param poa_unsupported_language_action [String] What to do when the document language is outside
99
103
  # `poa_languages_allowed` (`UNSUPPORTED_DOCUMENT_LANGUAGE`).
100
104
  # @param poa_address_mismatch_action [String] What to do when the extracted details disagree with the
@@ -14,7 +14,8 @@ module Didit
14
14
 
15
15
  # What to do when document manipulation is suspected (`SUSPECTED_DOCUMENT_MANIPULATION`) - e.g. the PDF was
16
16
  # modified after digital signing, processed by a known PDF editor, shows overlay-text manipulation, or has
17
- # inconsistent EXIF dates.
17
+ # inconsistent EXIF dates. Also governs `POA_DOCUMENT_UNPROVEN_TEXT_REPLACEMENT` (a re-typed text field the file
18
+ # cannot prove changed or unchanged): `DECLINE` declines it too, `NO_ACTION` keeps it as a warning.
18
19
  module ProofOfAddressVerifyParamsPoaDocumentAuthenticityAction
19
20
  DECLINE = "DECLINE"
20
21
  NO_ACTION = "NO_ACTION"
data/lib/didit/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Didit
4
- VERSION = "2.1.0" # x-release-please-version
4
+ VERSION = "2.1.2" # x-release-please-version
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: didit-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didit