didit-sdk 2.33.0 → 2.34.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 +7 -0
- data/lib/didit/resources/bank.rb +22 -11
- data/lib/didit/types/bank.rb +5 -2
- data/lib/didit/types/components.rb +4 -3
- data/lib/didit/version.rb +1 -1
- data/sig/didit/types/bank.rbs +1 -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: 4dfa8017ceaf9ff6249c19fd5b07154f73bb14081cd799eec9d433058d8dc05b
|
|
4
|
+
data.tar.gz: 7b7042698ac615a5f84b0276ba5988ac5f5c23034902548908a71c8ac632e3e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c71140e9cb299cbbc53241ce49cb58dff907b060d84837570830000fec13b8edf73525238d1ffbb7982099073c77ae9dfc6d4f7c6663294cf0a43141711ea7c
|
|
7
|
+
data.tar.gz: 42729e8a26e23a4fc7f60b34afb0b16f24f3eaccbe465ddf5e6ea6542346649cf4753835e806461a0661f39d585d9a1684aca2a7ed36f179e900a6ece4d45de4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.34.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.33.0...v2.34.0) (2026-11-23)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **spec:** sync API spec 2026-11-23 ([f7298bb](https://github.com/didit-protocol/sdk-ruby/commit/f7298bbf9ded092032702987febc4cac478c539d))
|
|
9
|
+
|
|
3
10
|
## [2.33.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.32.0...v2.33.0) (2026-11-23)
|
|
4
11
|
|
|
5
12
|
|
data/lib/didit/resources/bank.rb
CHANGED
|
@@ -144,12 +144,15 @@ module Didit
|
|
|
144
144
|
# them. Default `any`.
|
|
145
145
|
# @param data [Array<String>] What to read. `accounts` is always included: name, type, currency, identifiers and
|
|
146
146
|
# the holder name where the bank shares it. Default `["accounts"]`.
|
|
147
|
-
# @param history_days [Integer]
|
|
148
|
-
#
|
|
147
|
+
# @param history_days [Integer] The most days of transaction history to request, 1 to 365, default 90. It is a
|
|
148
|
+
# request "up to": when the bank or the connection can give less, the link still completes with the history it
|
|
149
|
+
# can give, and each account reports what was obtained in `history_coverage`. Cannot be sent with
|
|
149
150
|
# `history_from`.
|
|
150
|
-
# @param history_from [Date, String]
|
|
151
|
-
#
|
|
152
|
-
#
|
|
151
|
+
# @param history_from [Date, String] The earliest date of history to request, instead of `history_days`; it is a
|
|
152
|
+
# request "up to", like `history_days`: when the bank or the connection can give less, the link still completes
|
|
153
|
+
# with the history it can give and `history_coverage` reports it. Cannot be sent with `history_days`: both
|
|
154
|
+
# together answer `400 history_window_ambiguous`. A date older than 365 days, or in the future, answers `400
|
|
155
|
+
# w...
|
|
153
156
|
# @param extended_history [String] `allow_extra_auth` lets a bank that asks for one more confirmation release
|
|
154
157
|
# older history.
|
|
155
158
|
# @param consent_days [Integer] Ongoing only. How many days to ask the bank to keep access open, 1 or more.
|
|
@@ -172,11 +175,12 @@ module Didit
|
|
|
172
175
|
# bank that cannot keep access open, after confirming the reduced access on its own screen. The quote shows what
|
|
173
176
|
# that costs. Only with `access: ongoing`: with one-time access it answers `400 invalid_request` with `field:
|
|
174
177
|
# allow_one_time_fallback`.
|
|
175
|
-
# @param accept_reduced_grant [Boolean] When the bank or the person grants less than
|
|
176
|
-
# link and charge only
|
|
177
|
-
# charged.
|
|
178
|
-
#
|
|
179
|
-
#
|
|
178
|
+
# @param accept_reduced_grant [Boolean] When the bank or the person grants less data than the link required (a
|
|
179
|
+
# data scope or an account), complete the link and charge only what was granted. Otherwise the link ends
|
|
180
|
+
# `failed` with `reduced_grant` and nothing is charged. A shorter history than asked for is never a reduced
|
|
181
|
+
# grant: the link completes and `history_coverage` reports what was obtained.
|
|
182
|
+
# @param sandbox [Hash] Sandbox applications only: picks the Didit Test Bank customer. A live application that
|
|
183
|
+
# sends it, with any key, answers `400 invalid_request` with `field: sandbox` and no link is created.
|
|
180
184
|
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
181
185
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
182
186
|
# @return [Didit::Types::BankLink]
|
|
@@ -488,6 +492,12 @@ module Didit
|
|
|
488
492
|
# Lists the connections of your application, newest first, with cursor pagination. All filters apply inside your
|
|
489
493
|
# application and environment.
|
|
490
494
|
#
|
|
495
|
+
# Connections that were deleted are left out of the list by default. To list them, ask with `status=deleted`,
|
|
496
|
+
# which returns only them. The `status` filter takes one value, so a list of statuses answers `400
|
|
497
|
+
# invalid_request` with `field` `status`. A deleted connection is a record that the deletion happened: it
|
|
498
|
+
# carries no bank data, and reading it by id returns the same minimal record (`id`, `status`, `status_reason`,
|
|
499
|
+
# `created_at` and `erasure`).
|
|
500
|
+
#
|
|
491
501
|
# Needs an API key with the Bank data permission (`bank-data`): read for this operation. A key with full access
|
|
492
502
|
# does not include it: grant it explicitly when you create the key, or the call answers `403
|
|
493
503
|
# bank_data_access_denied`.
|
|
@@ -497,7 +507,8 @@ module Didit
|
|
|
497
507
|
#
|
|
498
508
|
# +GET /v3/bank/connections/+
|
|
499
509
|
#
|
|
500
|
-
# @param status [String] Only connections in this status.
|
|
510
|
+
# @param status [String] Only connections in this status, one value. Without this filter the list leaves out
|
|
511
|
+
# `deleted` connections; `status=deleted` returns only them. A deleted connection carries no bank data.
|
|
501
512
|
# @param access [String] Only this access mode.
|
|
502
513
|
# @param institution_id [String] Only this bank.
|
|
503
514
|
# @param country [String] Only banks in this country.
|
data/lib/didit/types/bank.rb
CHANGED
|
@@ -54,7 +54,9 @@ module Didit
|
|
|
54
54
|
# held by a company), `long_history` (one account with 400 days and 1,400 movements; a read returns the last 365
|
|
55
55
|
# days, so set `history_days` to 365), `pending` (includes pending transactions), `sparse_fields` (no value date,
|
|
56
56
|
# no counterparty IBAN, no bank reference) or `no_ongoing` (a bank that only allows one-time access: use
|
|
57
|
-
# `allow_one_time_fallback`).
|
|
57
|
+
# `allow_one_time_fallback`). `requires_email`: the Test Bank behaves as a bank that needs the person's email, so
|
|
58
|
+
# the link asks for an email address and a code before the bank. In sandbox no email is sent and the code is
|
|
59
|
+
# always `123456`; ignored for live applications.
|
|
58
60
|
module BankCreateLinkParamsSandboxPersona
|
|
59
61
|
PERSONAL_BASIC = "personal_basic"
|
|
60
62
|
BUSINESS_MULTI = "business_multi"
|
|
@@ -62,8 +64,9 @@ module Didit
|
|
|
62
64
|
PENDING = "pending"
|
|
63
65
|
SPARSE_FIELDS = "sparse_fields"
|
|
64
66
|
NO_ONGOING = "no_ongoing"
|
|
67
|
+
REQUIRES_EMAIL = "requires_email"
|
|
65
68
|
|
|
66
|
-
VALUES = [PERSONAL_BASIC, BUSINESS_MULTI, LONG_HISTORY, PENDING, SPARSE_FIELDS, NO_ONGOING].freeze
|
|
69
|
+
VALUES = [PERSONAL_BASIC, BUSINESS_MULTI, LONG_HISTORY, PENDING, SPARSE_FIELDS, NO_ONGOING, REQUIRES_EMAIL].freeze
|
|
67
70
|
end
|
|
68
71
|
|
|
69
72
|
# Known values of an open enum: the API may send others.
|
|
@@ -566,8 +566,9 @@ module Didit
|
|
|
566
566
|
# `pending`: first sync running. `active`: consent valid. `renewal_required`: the consent ended or the bank wants
|
|
567
567
|
# the person to sign in again, data readable as last synced and nothing charged. `paused`: balance too low for the
|
|
568
568
|
# month. `revoked`: access stopped by the person, the bank or you, or ended because the read of a one-time
|
|
569
|
-
# connection is complete. `deleted`: only `id`, `status`, `status_reason`, `created_at` and `erasure` remain.
|
|
570
|
-
# `failed`: the first sync
|
|
569
|
+
# connection is complete. `deleted`: only `id`, `status`, `status_reason`, `created_at` and `erasure` remain. The
|
|
570
|
+
# list returns these only for `status=deleted`; reading one by id always returns it. `failed`: the first sync
|
|
571
|
+
# never succeeded.
|
|
571
572
|
module BankConnectionStatus
|
|
572
573
|
PENDING = "pending"
|
|
573
574
|
ACTIVE = "active"
|
|
@@ -8577,7 +8578,7 @@ module Didit
|
|
|
8577
8578
|
field :erased_at, "erased_at", :datetime
|
|
8578
8579
|
end
|
|
8579
8580
|
|
|
8580
|
-
# A page of connections.
|
|
8581
|
+
# A page of connections. Deleted connections are not in it unless the request asked for `status=deleted`.
|
|
8581
8582
|
class BankConnectionList < Didit::Model
|
|
8582
8583
|
field :items, "items", [:array, "BankConnection"]
|
|
8583
8584
|
field :next_cursor, "next_cursor", :string
|
data/lib/didit/version.rb
CHANGED
data/sig/didit/types/bank.rbs
CHANGED