didit-sdk 2.34.0 → 2.35.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.
@@ -37,6 +37,48 @@ module Didit
37
37
  )
38
38
  end
39
39
 
40
+ # List the banks of one country (public, unauthenticated)
41
+ #
42
+ # Lists the banks Didit covers in one country: id, name, segments, access modes, history days, pending
43
+ # transactions and whether the bank is operational. Public: no auth header. One cached document per country.
44
+ #
45
+ # +GET /v3/organization/bank-verification-coverage/{country}/+
46
+ #
47
+ # @param country [String] ISO 3166-1 alpha-3 code, for example `ESP`.
48
+ # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
49
+ # @return [Didit::Types::BankVerificationCountryCoverage]
50
+ def bank_verification_country_coverage(country, request_options: nil)
51
+ @client.request(
52
+ :get,
53
+ "/v3/organization/bank-verification-coverage/{country}/",
54
+ path_params: { "country" => country },
55
+ auth: :none,
56
+ response: Types::BankVerificationCountryCoverage,
57
+ request_options: request_options
58
+ )
59
+ end
60
+
61
+ # List the countries with bank coverage (public, unauthenticated)
62
+ #
63
+ # Lists the countries where Didit covers banks, how many, and what is open today for each product. Public: no
64
+ # auth header. Cached publicly and revalidated with an `ETag`. What is open is read on every request from the
65
+ # switches the API uses, so a product that is not open today reads `false` even when its banks are listed. It
66
+ # carries no prices (see the bank verification pricing feed) and never names a supplier.
67
+ #
68
+ # +GET /v3/organization/bank-verification-coverage/+
69
+ #
70
+ # @param request_options [Hash, nil] :timeout, :max_retries, :extra_headers, :extra_query, :extra_body
71
+ # @return [Didit::Types::BankVerificationCoverage]
72
+ def bank_verification_coverage(request_options: nil)
73
+ @client.request(
74
+ :get,
75
+ "/v3/organization/bank-verification-coverage/",
76
+ auth: :none,
77
+ response: Types::BankVerificationCoverage,
78
+ request_options: request_options
79
+ )
80
+ end
81
+
40
82
  # Get the price book (public, unauthenticated)
41
83
  #
42
84
  # Returns Didit's public list prices: every plan with its monthly and yearly price and its discount, the white
@@ -135,5 +135,65 @@ module Didit
135
135
 
136
136
  VALUES = [BOOKED, PENDING].freeze
137
137
  end
138
+
139
+ # What happens. The operation description explains each value.
140
+ module BankSimulateConnectionParamsAction
141
+ NEW_TRANSACTIONS = "new_transactions"
142
+ PENDING_POSTED = "pending_posted"
143
+ BOOKING_CORRECTION = "booking_correction"
144
+ CONSENT_EXPIRING = "consent_expiring"
145
+ CONSENT_EXPIRED = "consent_expired"
146
+ REVOKED_BY_USER = "revoked_by_user"
147
+ REVOKED_BY_BANK = "revoked_by_bank"
148
+ SYNC_FAILED = "sync_failed"
149
+ SYNC_RECOVERED = "sync_recovered"
150
+ WEBHOOK_TWICE = "webhook_twice"
151
+ MIDNIGHT_BOOKING = "midnight_booking"
152
+ BUDGET_USED = "budget_used"
153
+ BUDGET_RESET = "budget_reset"
154
+
155
+ VALUES = [NEW_TRANSACTIONS, PENDING_POSTED, BOOKING_CORRECTION, CONSENT_EXPIRING, CONSENT_EXPIRED, REVOKED_BY_USER, REVOKED_BY_BANK, SYNC_FAILED, SYNC_RECOVERED, WEBHOOK_TWICE, MIDNIGHT_BOOKING, BUDGET_USED, BUDGET_RESET].freeze
156
+ end
157
+
158
+ # The failure the link records. Only accepted with `outcome: failed`, where it defaults to `bank_unavailable`.
159
+ module BankSimulateLinkParamsErrorCode
160
+ DUPLICATE_CONFLICT = "duplicate_conflict"
161
+ RENEWAL_LOGIN_MISMATCH = "renewal_login_mismatch"
162
+ REDUCED_GRANT = "reduced_grant"
163
+ CORPORATE_APPROVAL_NOT_SUPPORTED = "corporate_approval_not_supported"
164
+ ONGOING_ACCESS_NOT_AVAILABLE = "ongoing_access_not_available"
165
+ BANK_UNAVAILABLE = "bank_unavailable"
166
+ BANK_CANCELLED = "bank_cancelled"
167
+ CONSENT_DECLINED = "consent_declined"
168
+ READ_LIMIT = "read_limit"
169
+
170
+ VALUES = [DUPLICATE_CONFLICT, RENEWAL_LOGIN_MISMATCH, REDUCED_GRANT, CORPORATE_APPROVAL_NOT_SUPPORTED, ONGOING_ACCESS_NOT_AVAILABLE, BANK_UNAVAILABLE, BANK_CANCELLED, CONSENT_DECLINED, READ_LIMIT].freeze
171
+ end
172
+
173
+ # How the link ends.
174
+ module BankSimulateLinkParamsOutcome
175
+ COMPLETED = "completed"
176
+ CANCELLED = "cancelled"
177
+ FAILED = "failed"
178
+ DUPLICATE_CONFLICT = "duplicate_conflict"
179
+ REDUCED_GRANT = "reduced_grant"
180
+ RENEWAL_LOGIN_MISMATCH = "renewal_login_mismatch"
181
+
182
+ VALUES = [COMPLETED, CANCELLED, FAILED, DUPLICATE_CONFLICT, REDUCED_GRANT, RENEWAL_LOGIN_MISMATCH].freeze
183
+ end
184
+
185
+ # The Test Bank customer who signs in: `personal_basic` (one current account), `business_multi` (several business
186
+ # accounts), `long_history` (a long transaction history), `pending` (pending rows), `sparse_fields` (transactions
187
+ # with fields missing, one automatic sync a day) or `no_ongoing` (a bank that cannot keep access open).
188
+ module BankSimulateLinkParamsPersona
189
+ PERSONAL_BASIC = "personal_basic"
190
+ BUSINESS_MULTI = "business_multi"
191
+ LONG_HISTORY = "long_history"
192
+ PENDING = "pending"
193
+ SPARSE_FIELDS = "sparse_fields"
194
+ NO_ONGOING = "no_ongoing"
195
+
196
+ VALUES = [PERSONAL_BASIC, BUSINESS_MULTI, LONG_HISTORY, PENDING, SPARSE_FIELDS, NO_ONGOING].freeze
197
+ end
138
198
  end
139
199
  end