didit-sdk 2.32.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 +15 -0
- data/lib/didit/resources/bank.rb +41 -19
- data/lib/didit/types/bank.rb +10 -5
- data/lib/didit/types/components.rb +12 -7
- data/lib/didit/version.rb +1 -1
- data/sig/didit/types/bank.rbs +1 -0
- data/sig/didit/types/components.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,20 @@
|
|
|
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
|
+
|
|
10
|
+
## [2.33.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.32.0...v2.33.0) (2026-11-23)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **spec:** sync API spec 2026-11-23 ([c6974d8](https://github.com/didit-protocol/sdk-ruby/commit/c6974d882e15c5cd686497386a543fdff3269a48))
|
|
16
|
+
* **spec:** sync API spec 2026-11-23 ([2f3aada](https://github.com/didit-protocol/sdk-ruby/commit/2f3aada196817eeb6bff71fdfba6a93e9c256cf1))
|
|
17
|
+
|
|
3
18
|
## [2.32.0](https://github.com/didit-protocol/sdk-ruby/compare/v2.31.0...v2.32.0) (2026-11-23)
|
|
4
19
|
|
|
5
20
|
|
data/lib/didit/resources/bank.rb
CHANGED
|
@@ -131,23 +131,28 @@ module Didit
|
|
|
131
131
|
# @param mode [String] `connect` (default) creates a new connection. `renew` needs `connection_id` and reuses
|
|
132
132
|
# that connection's settings.
|
|
133
133
|
# @param connection_id [String] The connection to renew. Only with `mode: renew`.
|
|
134
|
-
# @param access [String] `one_time` (default) reads the data once
|
|
135
|
-
#
|
|
136
|
-
#
|
|
134
|
+
# @param access [String] `one_time` (default) reads the data once: when the read completes the connection ends
|
|
135
|
+
# itself and reads `status: revoked` with `status_reason: collection_complete`, and its data stays readable
|
|
136
|
+
# until `consent.retain_until`. `ongoing` keeps access open until the consent ends or someone stops it. With
|
|
137
|
+
# `institution_id` set, a bank that cannot keep access open answers `400 ongoing_access_not_available`...
|
|
137
138
|
# @param country [String] Optional. Without it the person picks among the countries your application enabled. It
|
|
138
|
-
# has to be a country Bank Link serves;
|
|
139
|
+
# has to be a country Bank Link serves; a malformed value answers `400 invalid_request`, and a country the
|
|
140
|
+
# product does not serve, or where no bank is offered, answers `400 country_not_available`, both with `field:
|
|
139
141
|
# country`. An empty request body stays valid.
|
|
140
142
|
# @param institution_id [String] Optional bank to preselect, from `list_institutions`. Skips the picker.
|
|
141
143
|
# @param segment [String] Filters the picker and tells the bank which login to open where the bank separates
|
|
142
144
|
# them. Default `any`.
|
|
143
145
|
# @param data [Array<String>] What to read. `accounts` is always included: name, type, currency, identifiers and
|
|
144
146
|
# the holder name where the bank shares it. Default `["accounts"]`.
|
|
145
|
-
# @param history_days [Integer]
|
|
146
|
-
#
|
|
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
|
|
147
150
|
# `history_from`.
|
|
148
|
-
# @param history_from [Date, String]
|
|
149
|
-
#
|
|
150
|
-
#
|
|
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...
|
|
151
156
|
# @param extended_history [String] `allow_extra_auth` lets a bank that asks for one more confirmation release
|
|
152
157
|
# older history.
|
|
153
158
|
# @param consent_days [Integer] Ongoing only. How many days to ask the bank to keep access open, 1 or more.
|
|
@@ -170,11 +175,12 @@ module Didit
|
|
|
170
175
|
# bank that cannot keep access open, after confirming the reduced access on its own screen. The quote shows what
|
|
171
176
|
# that costs. Only with `access: ongoing`: with one-time access it answers `400 invalid_request` with `field:
|
|
172
177
|
# allow_one_time_fallback`.
|
|
173
|
-
# @param accept_reduced_grant [Boolean] When the bank or the person grants less than
|
|
174
|
-
# link and charge only
|
|
175
|
-
# charged.
|
|
176
|
-
#
|
|
177
|
-
#
|
|
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.
|
|
178
184
|
# @param idempotency_key [String] sent as the Idempotency-Key header
|
|
179
185
|
# @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
|
|
180
186
|
# @return [Didit::Types::BankLink]
|
|
@@ -486,6 +492,12 @@ module Didit
|
|
|
486
492
|
# Lists the connections of your application, newest first, with cursor pagination. All filters apply inside your
|
|
487
493
|
# application and environment.
|
|
488
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
|
+
#
|
|
489
501
|
# Needs an API key with the Bank data permission (`bank-data`): read for this operation. A key with full access
|
|
490
502
|
# does not include it: grant it explicitly when you create the key, or the call answers `403
|
|
491
503
|
# bank_data_access_denied`.
|
|
@@ -495,7 +507,8 @@ module Didit
|
|
|
495
507
|
#
|
|
496
508
|
# +GET /v3/bank/connections/+
|
|
497
509
|
#
|
|
498
|
-
# @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.
|
|
499
512
|
# @param access [String] Only this access mode.
|
|
500
513
|
# @param institution_id [String] Only this bank.
|
|
501
514
|
# @param country [String] Only banks in this country.
|
|
@@ -704,7 +717,9 @@ module Didit
|
|
|
704
717
|
# something. A key with full access does not include it: grant it explicitly when you create the key, or the
|
|
705
718
|
# call answers `403 bank_data_access_denied`.
|
|
706
719
|
#
|
|
707
|
-
# Refreshing a deleted connection answers `409 connection_not_active`.
|
|
720
|
+
# Refreshing a deleted connection answers `409 connection_not_active`. A one-time connection is read once and
|
|
721
|
+
# its access then ends, so refreshing it answers `409 one_time_connection`: create a new link to read the bank
|
|
722
|
+
# again.
|
|
708
723
|
#
|
|
709
724
|
# +POST /v3/bank/connections/{id}/refresh/+
|
|
710
725
|
#
|
|
@@ -735,8 +750,13 @@ module Didit
|
|
|
735
750
|
# Creates a renew link for this connection, a shortcut for `create_link` with `mode: renew`. The connection id
|
|
736
751
|
# and every account id stay the same.
|
|
737
752
|
#
|
|
738
|
-
#
|
|
739
|
-
#
|
|
753
|
+
# Send the returned `url` to the person: the hosted page shows what continues to be shared and until when, the
|
|
754
|
+
# person signs in at their bank once and returns to your `redirect_url`, and `bank.connection.renewed` confirms
|
|
755
|
+
# it. Afterwards the connection's `consent` shows a new `version`, `renewed_count`, `expires_at` and `renew_by`,
|
|
756
|
+
# with `renewal_action` `bank_auth`.
|
|
757
|
+
#
|
|
758
|
+
# A one-time connection has no consent to renew: it answers `409 one_time_connection`, and a new link reads the
|
|
759
|
+
# bank again.
|
|
740
760
|
#
|
|
741
761
|
# Until the consent has 30 days left or fewer it answers `409 renewal_not_needed`; after
|
|
742
762
|
# `consent.renewable_until` it answers `409 renewal_window_expired` and the person connects again.
|
|
@@ -787,7 +807,9 @@ module Didit
|
|
|
787
807
|
#
|
|
788
808
|
# Stops access to the bank. Bank fetches stop the moment you ask, even while the bank's confirmation is pending:
|
|
789
809
|
# the consent reads `revocation_pending`, then `revoked` once the bank confirms access is terminated, or
|
|
790
|
-
# `revocation_failed` while the call is retried automatically. `consent.ended_by` is `customer`.
|
|
810
|
+
# `revocation_failed` while the call is retried automatically. `consent.ended_by` is `customer`. Until the bank
|
|
811
|
+
# confirms, `status` keeps its value and `status_reason` is `null`; once `status` is `revoked`, `status_reason`
|
|
812
|
+
# is `revoked_by_customer`.
|
|
791
813
|
#
|
|
792
814
|
# Revoking does not delete anything: stored accounts, balances and transactions stay readable until
|
|
793
815
|
# `consent.retain_until`, the retention setting of your application, and nothing is charged. To delete them now,
|
data/lib/didit/types/bank.rb
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
module Didit
|
|
5
5
|
module Types
|
|
6
|
-
# `one_time` (default) reads the data once
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# `one_time` (default) reads the data once: when the read completes the connection ends itself and reads `status:
|
|
7
|
+
# revoked` with `status_reason: collection_complete`, and its data stays readable until `consent.retain_until`.
|
|
8
|
+
# `ongoing` keeps access open until the consent ends or someone stops it. With `institution_id` set, a bank that
|
|
9
|
+
# cannot keep access open answers `400 ongoing_access_not_available` before any screen. Without it, the bank
|
|
10
|
+
# picker lists only banks that can.
|
|
9
11
|
module BankCreateLinkParamsAccess
|
|
10
12
|
ONE_TIME = "one_time"
|
|
11
13
|
ONGOING = "ongoing"
|
|
@@ -52,7 +54,9 @@ module Didit
|
|
|
52
54
|
# held by a company), `long_history` (one account with 400 days and 1,400 movements; a read returns the last 365
|
|
53
55
|
# days, so set `history_days` to 365), `pending` (includes pending transactions), `sparse_fields` (no value date,
|
|
54
56
|
# no counterparty IBAN, no bank reference) or `no_ongoing` (a bank that only allows one-time access: use
|
|
55
|
-
# `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.
|
|
56
60
|
module BankCreateLinkParamsSandboxPersona
|
|
57
61
|
PERSONAL_BASIC = "personal_basic"
|
|
58
62
|
BUSINESS_MULTI = "business_multi"
|
|
@@ -60,8 +64,9 @@ module Didit
|
|
|
60
64
|
PENDING = "pending"
|
|
61
65
|
SPARSE_FIELDS = "sparse_fields"
|
|
62
66
|
NO_ONGOING = "no_ongoing"
|
|
67
|
+
REQUIRES_EMAIL = "requires_email"
|
|
63
68
|
|
|
64
|
-
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
|
|
65
70
|
end
|
|
66
71
|
|
|
67
72
|
# Known values of an open enum: the API may send others.
|
|
@@ -449,14 +449,16 @@ module Didit
|
|
|
449
449
|
VALUES = [CONNECTION_MONTH, ONE_TIME].freeze
|
|
450
450
|
end
|
|
451
451
|
|
|
452
|
-
# Who ended access, set from evidence. `
|
|
452
|
+
# Who ended access, set from evidence. `system` when Didit ended it by design: a one-time connection once its read
|
|
453
|
+
# is complete. `unknown` when neither the bank nor the sync says.
|
|
453
454
|
module BankConnectionConsentEndedBy
|
|
454
455
|
END_USER = "end_user"
|
|
455
456
|
BANK = "bank"
|
|
456
457
|
CUSTOMER = "customer"
|
|
458
|
+
SYSTEM = "system"
|
|
457
459
|
UNKNOWN = "unknown"
|
|
458
460
|
|
|
459
|
-
VALUES = [END_USER, BANK, CUSTOMER, UNKNOWN].freeze
|
|
461
|
+
VALUES = [END_USER, BANK, CUSTOMER, SYSTEM, UNKNOWN].freeze
|
|
460
462
|
end
|
|
461
463
|
|
|
462
464
|
# How a renewal works: `reconfirm` is the person confirming on Didit's screen with no bank sign-in, where the bank
|
|
@@ -563,8 +565,10 @@ module Didit
|
|
|
563
565
|
|
|
564
566
|
# `pending`: first sync running. `active`: consent valid. `renewal_required`: the consent ended or the bank wants
|
|
565
567
|
# the person to sign in again, data readable as last synced and nothing charged. `paused`: balance too low for the
|
|
566
|
-
# month. `revoked`: access stopped by the person, the bank or you
|
|
567
|
-
# `status_reason`, `created_at` and `erasure` remain.
|
|
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. The
|
|
570
|
+
# list returns these only for `status=deleted`; reading one by id always returns it. `failed`: the first sync
|
|
571
|
+
# never succeeded.
|
|
568
572
|
module BankConnectionStatus
|
|
569
573
|
PENDING = "pending"
|
|
570
574
|
ACTIVE = "active"
|
|
@@ -577,8 +581,9 @@ module Didit
|
|
|
577
581
|
VALUES = [PENDING, ACTIVE, RENEWAL_REQUIRED, PAUSED, REVOKED, DELETED, FAILED].freeze
|
|
578
582
|
end
|
|
579
583
|
|
|
580
|
-
# Why the connection is in this status. `
|
|
581
|
-
#
|
|
584
|
+
# Why the connection is in this status. `collection_complete`: a one-time connection whose read is complete, so
|
|
585
|
+
# its access has ended. `paused_by_customer` is reserved. On a `deleted` connection: `deleted_by_customer`,
|
|
586
|
+
# `consent_lapsed`, `retention_elapsed` or `application_deleted`.
|
|
582
587
|
module BankConnectionStatusReason
|
|
583
588
|
COLLECTION_COMPLETE = "collection_complete"
|
|
584
589
|
CONSENT_EXPIRED = "consent_expired"
|
|
@@ -8573,7 +8578,7 @@ module Didit
|
|
|
8573
8578
|
field :erased_at, "erased_at", :datetime
|
|
8574
8579
|
end
|
|
8575
8580
|
|
|
8576
|
-
# A page of connections.
|
|
8581
|
+
# A page of connections. Deleted connections are not in it unless the request asked for `status=deleted`.
|
|
8577
8582
|
class BankConnectionList < Didit::Model
|
|
8578
8583
|
field :items, "items", [:array, "BankConnection"]
|
|
8579
8584
|
field :next_cursor, "next_cursor", :string
|
data/lib/didit/version.rb
CHANGED
data/sig/didit/types/bank.rbs
CHANGED