didit-sdk 2.29.0 → 2.30.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.
@@ -8,9 +8,9 @@ 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. 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
13
- # product.
11
+ # transactions add-ons, ongoing access to bank data, and the account check. A method a country does not offer
12
+ # today shows as not available, with no price. Use it to quote a bank step before you build a workflow, or to
13
+ # show bank prices in your own product.
14
14
  #
15
15
  # Public: send no auth header. The response contains no organization data and is the same for every caller. It
16
16
  # is cached publicly for one hour and carries an `ETag`, so send `If-None-Match` to get a `304 Not Modified`
@@ -712,8 +712,8 @@ module Didit
712
712
  # @param ownership_validation_mode [String] See the response field of the same name.
713
713
  # @param simplified_validation_threshold [String] Decimal string, 0 or more.
714
714
  # @param data_sharing_fields [Hash] Merged per entity type: an entity type you leave out keeps its current
715
- # choice. A choice that cannot meet the originator obligations of your `jurisdiction` regime (EU TFR or FATF
716
- # Recommendation 16), an empty list included, is refused with `400`.
715
+ # choice. A choice that cannot meet the originator obligations of your `jurisdiction` regime (EU TFR, FINTRAC
716
+ # for `canada`, FinCEN for `us`, or FATF Recommendation 16), an empty list included, is refused with `400`.
717
717
  # @param matching_rules [Hash] Merged per entity type, and per field inside it. A field that entity type does
718
718
  # not compare (for example `date_of_birth` for `company`) is refused with `400`.
719
719
  # @param inbound_auto_accept [Boolean]
@@ -3,6 +3,132 @@
3
3
 
4
4
  module Didit
5
5
  module Types
6
+ # `one_time` (default) reads the data once. `ongoing` keeps access open until the consent ends or someone stops
7
+ # it. With `institution_id` set, a bank that cannot keep access open answers `400 ongoing_access_not_available`
8
+ # before any screen. Without it, the bank picker lists only banks that can.
9
+ module BankCreateLinkParamsAccess
10
+ ONE_TIME = "one_time"
11
+ ONGOING = "ongoing"
6
12
 
13
+ VALUES = [ONE_TIME, ONGOING].freeze
14
+ end
15
+
16
+ # Known values of an open enum: the API may send others.
17
+ module BankCreateLinkParamsData
18
+ ACCOUNTS = "accounts"
19
+ BALANCES = "balances"
20
+ TRANSACTIONS = "transactions"
21
+
22
+ VALUES = [ACCOUNTS, BALANCES, TRANSACTIONS].freeze
23
+ end
24
+
25
+ # `reuse` (default) completes a link that resolves to accounts you already share as a renewal of that connection.
26
+ # `allow` creates an independent second connection.
27
+ module BankCreateLinkParamsDuplicates
28
+ REUSE = "reuse"
29
+ ALLOW = "allow"
30
+
31
+ VALUES = [REUSE, ALLOW].freeze
32
+ end
33
+
34
+ # `allow_extra_auth` lets a bank that asks for one more confirmation release older history.
35
+ module BankCreateLinkParamsExtendedHistory
36
+ STANDARD = "standard"
37
+ ALLOW_EXTRA_AUTH = "allow_extra_auth"
38
+
39
+ VALUES = [STANDARD, ALLOW_EXTRA_AUTH].freeze
40
+ end
41
+
42
+ # `connect` (default) creates a new connection. `renew` needs `connection_id` and reuses that connection's
43
+ # settings.
44
+ module BankCreateLinkParamsMode
45
+ CONNECT = "connect"
46
+ RENEW = "renew"
47
+
48
+ VALUES = [CONNECT, RENEW].freeze
49
+ end
50
+
51
+ # The Test Bank customer: `personal_basic` (one current account, 60 movements), `business_multi` (three accounts
52
+ # held by a company), `long_history` (one account with 400 days and 1,400 movements; a read returns the last 365
53
+ # days, so set `history_days` to 365), `pending` (includes pending transactions), `sparse_fields` (no value date,
54
+ # no counterparty IBAN, no bank reference) or `no_ongoing` (a bank that only allows one-time access: use
55
+ # `allow_one_time_fallback`).
56
+ module BankCreateLinkParamsSandboxPersona
57
+ PERSONAL_BASIC = "personal_basic"
58
+ BUSINESS_MULTI = "business_multi"
59
+ LONG_HISTORY = "long_history"
60
+ PENDING = "pending"
61
+ SPARSE_FIELDS = "sparse_fields"
62
+ NO_ONGOING = "no_ongoing"
63
+
64
+ VALUES = [PERSONAL_BASIC, BUSINESS_MULTI, LONG_HISTORY, PENDING, SPARSE_FIELDS, NO_ONGOING].freeze
65
+ end
66
+
67
+ # Known values of an open enum: the API may send others.
68
+ module BankCreateLinkParamsSandboxSwitches
69
+ PARTIAL_GRANT = "partial_grant"
70
+ RENEWAL_OTHER_LOGIN = "renewal_other_login"
71
+ EXPIRED_CURSOR = "expired_cursor"
72
+ WEBHOOK_TWICE = "webhook_twice"
73
+ MIDNIGHT_BOOKING = "midnight_booking"
74
+ BLOCKED_POPUP = "blocked_popup"
75
+ BANK_APP_RETURN = "bank_app_return"
76
+
77
+ VALUES = [PARTIAL_GRANT, RENEWAL_OTHER_LOGIN, EXPIRED_CURSOR, WEBHOOK_TWICE, MIDNIGHT_BOOKING, BLOCKED_POPUP, BANK_APP_RETURN].freeze
78
+ end
79
+
80
+ # Filters the picker and tells the bank which login to open where the bank separates them. Default `any`.
81
+ module BankCreateLinkParamsSegment
82
+ PERSONAL = "personal"
83
+ BUSINESS = "business"
84
+ ANY = "any"
85
+
86
+ VALUES = [PERSONAL, BUSINESS, ANY].freeze
87
+ end
88
+
89
+ # Known values of an open enum: the API may send others.
90
+ module BankListConnectionsParamsAccess
91
+ ONE_TIME = "one_time"
92
+ ONGOING = "ongoing"
93
+
94
+ VALUES = [ONE_TIME, ONGOING].freeze
95
+ end
96
+
97
+ # Known values of an open enum: the API may send others.
98
+ module BankListConnectionsParamsStatus
99
+ PENDING = "pending"
100
+ ACTIVE = "active"
101
+ RENEWAL_REQUIRED = "renewal_required"
102
+ PAUSED = "paused"
103
+ REVOKED = "revoked"
104
+ DELETED = "deleted"
105
+ FAILED = "failed"
106
+
107
+ VALUES = [PENDING, ACTIVE, RENEWAL_REQUIRED, PAUSED, REVOKED, DELETED, FAILED].freeze
108
+ end
109
+
110
+ # Known values of an open enum: the API may send others.
111
+ module BankListInstitutionsParamsAccess
112
+ ONE_TIME = "one_time"
113
+ ONGOING = "ongoing"
114
+
115
+ VALUES = [ONE_TIME, ONGOING].freeze
116
+ end
117
+
118
+ # Known values of an open enum: the API may send others.
119
+ module BankListInstitutionsParamsSegment
120
+ PERSONAL = "personal"
121
+ BUSINESS = "business"
122
+
123
+ VALUES = [PERSONAL, BUSINESS].freeze
124
+ end
125
+
126
+ # Known values of an open enum: the API may send others.
127
+ module BankListTransactionsParamsStatus
128
+ BOOKED = "booked"
129
+ PENDING = "pending"
130
+
131
+ VALUES = [BOOKED, PENDING].freeze
132
+ end
7
133
  end
8
134
  end