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.
@@ -79,6 +79,144 @@ module Didit
79
79
  VALUES = [NO_ACTION, DECLINE].freeze
80
80
  end
81
81
 
82
+ # Final status of the phone verification. Matches the top-level `status` for finalized checks.
83
+ module PhoneCheckCodeResponsePhoneStatus
84
+ APPROVED = "Approved"
85
+ DECLINED = "Declined"
86
+ IN_REVIEW = "In Review"
87
+ NOT_FINISHED = "Not Finished"
88
+ EXPIRED = "Expired"
89
+
90
+ VALUES = [APPROVED, DECLINED, IN_REVIEW, NOT_FINISHED, EXPIRED].freeze
91
+ end
92
+
93
+ # Severity. `error` risks decline the verification, `warning` flags it for review, `information` is recorded
94
+ # without affecting the status.
95
+ module PhoneCheckCodeResponsePhoneWarningsLogType
96
+ ERROR = "error"
97
+ WARNING = "warning"
98
+ INFORMATION = "information"
99
+
100
+ VALUES = [ERROR, WARNING, INFORMATION].freeze
101
+ end
102
+
103
+ # `Approved` - correct code, no declining risk. `Declined` - terminal: a declining risk matched or the attempt
104
+ # budget (3) was exhausted. `Failed` - wrong code, attempts remaining. `Expired or Not Found` - no pending
105
+ # verification for this number in the last 5 minutes.
106
+ module PhoneCheckCodeResponseStatus
107
+ APPROVED = "Approved"
108
+ DECLINED = "Declined"
109
+ FAILED = "Failed"
110
+ EXPIRED_OR_NOT_FOUND = "Expired or Not Found"
111
+
112
+ VALUES = [APPROVED, DECLINED, FAILED, EXPIRED_OR_NOT_FOUND].freeze
113
+ end
114
+
115
+ # The factor to enroll: `totp`, for an authenticator app.
116
+ module PhoneFactorsCreateParamsType
117
+ TOTP = "totp"
118
+
119
+ VALUES = [TOTP].freeze
120
+ end
121
+
122
+ # Known values of an open enum: the API may send others.
123
+ module PhoneFactorsListParamsFormat
124
+ JSON = "json"
125
+ CSV = "csv"
126
+
127
+ VALUES = [JSON, CSV].freeze
128
+ end
129
+
130
+ # Known values of an open enum: the API may send others.
131
+ module PhoneFactorsListParamsStatus
132
+ UNVERIFIED = "unverified"
133
+ VERIFIED = "verified"
134
+ DISABLED = "disabled"
135
+
136
+ VALUES = [UNVERIFIED, VERIFIED, DISABLED].freeze
137
+ end
138
+
139
+ # Known values of an open enum: the API may send others.
140
+ module PhoneFactorsListParamsType
141
+ TOTP = "totp"
142
+
143
+ VALUES = [TOTP].freeze
144
+ end
145
+
146
+ # `disabled` stops the factor's checks; `verified` turns a disabled factor back on.
147
+ module PhoneFactorsUpdateParamsStatus
148
+ DISABLED = "disabled"
149
+ VERIFIED = "verified"
150
+
151
+ VALUES = [DISABLED, VERIFIED].freeze
152
+ end
153
+
154
+ # The network feature to ask approval for.
155
+ module PhoneNetworkRegistrationsCreateParamsFeature
156
+ SILENT_VERIFICATION = "silent_verification"
157
+ SIM_SWAP = "sim_swap"
158
+ NUMBER_VERIFICATION = "number_verification"
159
+
160
+ VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
161
+ end
162
+
163
+ # What you use the feature for.
164
+ module PhoneNetworkRegistrationsCreateParamsUseCase
165
+ SIGNUP = "signup"
166
+ LOGIN = "login"
167
+ PAYMENT = "payment"
168
+ ACCOUNT_RECOVERY = "account_recovery"
169
+ FRAUD_CHECK = "fraud_check"
170
+
171
+ VALUES = [SIGNUP, LOGIN, PAYMENT, ACCOUNT_RECOVERY, FRAUD_CHECK].freeze
172
+ end
173
+
174
+ # Known values of an open enum: the API may send others.
175
+ module PhoneNetworkRegistrationsListParamsFeature
176
+ SILENT_VERIFICATION = "silent_verification"
177
+ SIM_SWAP = "sim_swap"
178
+ NUMBER_VERIFICATION = "number_verification"
179
+
180
+ VALUES = [SILENT_VERIFICATION, SIM_SWAP, NUMBER_VERIFICATION].freeze
181
+ end
182
+
183
+ # Known values of an open enum: the API may send others.
184
+ module PhoneNetworkRegistrationsListParamsFormat
185
+ JSON = "json"
186
+ CSV = "csv"
187
+
188
+ VALUES = [JSON, CSV].freeze
189
+ end
190
+
191
+ # Known values of an open enum: the API may send others.
192
+ module PhoneNetworkRegistrationsListParamsStatus
193
+ SUBMITTED = "submitted"
194
+ IN_REVIEW = "in_review"
195
+ APPROVED = "approved"
196
+ PARTLY_APPROVED = "partly_approved"
197
+ REJECTED = "rejected"
198
+
199
+ VALUES = [SUBMITTED, IN_REVIEW, APPROVED, PARTLY_APPROVED, REJECTED].freeze
200
+ end
201
+
202
+ # The platform the key is for: `ios`, `android` or `web`.
203
+ module PhoneSdkKeysCreateParamsPlatform
204
+ IOS = "ios"
205
+ ANDROID = "android"
206
+ WEB = "web"
207
+
208
+ VALUES = [IOS, ANDROID, WEB].freeze
209
+ end
210
+
211
+ # Known values of an open enum: the API may send others.
212
+ module PhoneSdkKeysListParamsPlatform
213
+ IOS = "ios"
214
+ ANDROID = "android"
215
+ WEB = "web"
216
+
217
+ VALUES = [IOS, ANDROID, WEB].freeze
218
+ end
219
+
82
220
  # Preferred delivery channel. If the channel is unavailable for the destination country or number, the message
83
221
  # automatically falls back to SMS - the send still reports `Success`.
84
222
  module PhoneSendCodeParamsOptionsPreferredChannel
@@ -103,5 +241,83 @@ module Didit
103
241
 
104
242
  VALUES = [ANDROID, IOS, IPADOS, TVOS, WEB].freeze
105
243
  end
244
+
245
+ # What silent verification is used for.
246
+ module PhoneSilentRegistrationsCreateParamsUseCase
247
+ SIGNUP = "signup"
248
+ LOGIN = "login"
249
+ PAYMENT = "payment"
250
+ ACCOUNT_RECOVERY = "account_recovery"
251
+
252
+ VALUES = [SIGNUP, LOGIN, PAYMENT, ACCOUNT_RECOVERY].freeze
253
+ end
254
+
255
+ class PhoneCheckCodeResponse < Didit::Model
256
+ field :request_id, "request_id", :string
257
+ field :status, "status", :string
258
+ field :message, "message", :string
259
+ field :phone, "phone", "PhoneCheckCodeResponsePhone"
260
+ field :vendor_data, "vendor_data", :string
261
+ field :metadata, "metadata", :any
262
+ field :created_at, "created_at", :datetime
263
+ field :verification_id, "verification_id", :string
264
+ field :attempts, "attempts", :integer
265
+ end
266
+
267
+ # Full phone report. Present (non-null) only on finalized outcomes (`Approved`/`Declined`); `null` on `Failed` and
268
+ # absent on `Expired or Not Found`.
269
+ class PhoneCheckCodeResponsePhone < Didit::Model
270
+ field :status, "status", :string
271
+ field :phone_number_prefix, "phone_number_prefix", :string
272
+ field :phone_number, "phone_number", :string
273
+ field :full_number, "full_number", :string
274
+ field :country_code, "country_code", :string
275
+ field :country_name, "country_name", :string
276
+ field :carrier, "carrier", "PhoneCheckCodeResponsePhoneCarrier"
277
+ field :is_disposable, "is_disposable", :boolean
278
+ field :is_virtual, "is_virtual", :boolean
279
+ field :verification_method, "verification_method", :string
280
+ field :verification_attempts, "verification_attempts", :integer
281
+ field :verified_at, "verified_at", :datetime
282
+ field :warnings, "warnings", [:array, "PhoneCheckCodeResponsePhoneWarnings"]
283
+ field :lifecycle, "lifecycle", [:array, "PhoneCheckCodeResponsePhoneLifecycle"]
284
+ field :matches, "matches", [:array, "PhoneCheckCodeResponsePhoneMatches"]
285
+ field :phone_social, "phone_social", "PhoneSocialFootprint"
286
+ field :phone_intelligence, "phone_intelligence", "PhoneIntelligence"
287
+ end
288
+
289
+ # Current network serving the number, from the carrier lookup run at finalization.
290
+ class PhoneCheckCodeResponsePhoneCarrier < Didit::Model
291
+ field :name, "name", :string
292
+ field :type, "type", :string
293
+ end
294
+
295
+ class PhoneCheckCodeResponsePhoneLifecycle < Didit::Model
296
+ field :type, "type", :string
297
+ field :timestamp, "timestamp", :datetime
298
+ field :details, "details", :any
299
+ field :fee, "fee", :float
300
+ end
301
+
302
+ class PhoneCheckCodeResponsePhoneMatches < Didit::Model
303
+ field :session_id, "session_id", :string
304
+ field :session_number, "session_number", :integer
305
+ field :vendor_data, "vendor_data", :string
306
+ field :verification_date, "verification_date", :string
307
+ field :phone_number, "phone_number", :string
308
+ field :status, "status", :string
309
+ field :is_blocklisted, "is_blocklisted", :boolean
310
+ field :api_service, "api_service", :string
311
+ field :source, "source", :string
312
+ end
313
+
314
+ class PhoneCheckCodeResponsePhoneWarnings < Didit::Model
315
+ field :feature, "feature", :string
316
+ field :risk, "risk", :string
317
+ field :additional_data, "additional_data", :any
318
+ field :log_type, "log_type", :string
319
+ field :short_description, "short_description", :string
320
+ field :long_description, "long_description", :string
321
+ end
106
322
  end
107
323
  end
data/lib/didit/types.rb CHANGED
@@ -255,6 +255,10 @@ module Didit
255
255
  autoload :BankSignInPricingAddOns, "didit/types/components"
256
256
  autoload :BankSignInPricingOneTimeData, "didit/types/components"
257
257
  autoload :BankSignInPricingOngoing, "didit/types/components"
258
+ autoload :BankSimulateConnectionParamsAction, "didit/types/bank"
259
+ autoload :BankSimulateLinkParamsErrorCode, "didit/types/bank"
260
+ autoload :BankSimulateLinkParamsOutcome, "didit/types/bank"
261
+ autoload :BankSimulateLinkParamsPersona, "didit/types/bank"
258
262
  autoload :BankStatementUploadPricing, "didit/types/components"
259
263
  autoload :BankSyncBudget, "didit/types/components"
260
264
  autoload :BankSyncBudgetResource, "didit/types/components"
@@ -279,6 +283,19 @@ module Didit
279
283
  autoload :BankTransactionPage, "didit/types/components"
280
284
  autoload :BankTransactionRemittance, "didit/types/components"
281
285
  autoload :BankTransactionStatus, "didit/types/components"
286
+ autoload :BankVerificationCountryCoverage, "didit/types/components"
287
+ autoload :BankVerificationCoverage, "didit/types/components"
288
+ autoload :BankVerificationCoverageAvailability, "didit/types/components"
289
+ autoload :BankVerificationCoverageBank, "didit/types/components"
290
+ autoload :BankVerificationCoverageBankAccess, "didit/types/components"
291
+ autoload :BankVerificationCoverageBankSegments, "didit/types/components"
292
+ autoload :BankVerificationCoverageBankStatus, "didit/types/components"
293
+ autoload :BankVerificationCoverageCountriesValue, "didit/types/components"
294
+ autoload :BankVerificationCoverageCountriesValueBanksBySegment, "didit/types/components"
295
+ autoload :BankVerificationCoverageDataRead, "didit/types/components"
296
+ autoload :BankVerificationCoverageOpen, "didit/types/components"
297
+ autoload :BankVerificationOneTimeAvailability, "didit/types/components"
298
+ autoload :BankVerificationOngoingAvailability, "didit/types/components"
282
299
  autoload :BankVerificationPricing, "didit/types/components"
283
300
  autoload :BankVerificationPricingCountry, "didit/types/components"
284
301
  autoload :BankVerificationPricingCurrency, "didit/types/components"
@@ -306,6 +323,7 @@ module Didit
306
323
  autoload :BankVerificationResultRoute, "didit/types/components"
307
324
  autoload :BankVerificationResultRouteCredentialSource, "didit/types/components"
308
325
  autoload :BankVerificationResultStatus, "didit/types/components"
326
+ autoload :BankVerificationWorkflowsAvailability, "didit/types/components"
309
327
  autoload :BillingRetrieveBalanceResponse, "didit/types/billing"
310
328
  autoload :BillingTopUpCharge, "didit/types/components"
311
329
  autoload :BillingTopUpChargeOutcome, "didit/types/components"
@@ -1088,28 +1106,80 @@ module Didit
1088
1106
  autoload :PhoneCheckCodeParamsPhoneTypeRiskAction, "didit/types/phone"
1089
1107
  autoload :PhoneCheckCodeParamsRecentPortAction, "didit/types/phone"
1090
1108
  autoload :PhoneCheckCodeParamsVoipNumberAction, "didit/types/phone"
1109
+ autoload :PhoneCheckCodeResponse, "didit/types/phone"
1110
+ autoload :PhoneCheckCodeResponsePhone, "didit/types/phone"
1111
+ autoload :PhoneCheckCodeResponsePhoneCarrier, "didit/types/phone"
1112
+ autoload :PhoneCheckCodeResponsePhoneLifecycle, "didit/types/phone"
1113
+ autoload :PhoneCheckCodeResponsePhoneMatches, "didit/types/phone"
1114
+ autoload :PhoneCheckCodeResponsePhoneStatus, "didit/types/phone"
1115
+ autoload :PhoneCheckCodeResponsePhoneWarnings, "didit/types/phone"
1116
+ autoload :PhoneCheckCodeResponsePhoneWarningsLogType, "didit/types/phone"
1117
+ autoload :PhoneCheckCodeResponseStatus, "didit/types/phone"
1118
+ autoload :PhoneFactor, "didit/types/components"
1119
+ autoload :PhoneFactorEnrollment, "didit/types/components"
1120
+ autoload :PhoneFactorEnrollmentStatus, "didit/types/components"
1121
+ autoload :PhoneFactorEnrollmentTotp, "didit/types/components"
1122
+ autoload :PhoneFactorEnrollmentType, "didit/types/components"
1123
+ autoload :PhoneFactorStatus, "didit/types/components"
1124
+ autoload :PhoneFactorType, "didit/types/components"
1125
+ autoload :PhoneFactorsCreateParamsType, "didit/types/phone"
1126
+ autoload :PhoneFactorsListParamsFormat, "didit/types/phone"
1127
+ autoload :PhoneFactorsListParamsStatus, "didit/types/phone"
1128
+ autoload :PhoneFactorsListParamsType, "didit/types/phone"
1129
+ autoload :PhoneFactorsPage, "didit/types/components"
1130
+ autoload :PhoneFactorsUpdateParamsStatus, "didit/types/phone"
1091
1131
  autoload :PhoneIntelligence, "didit/types/components"
1092
1132
  autoload :PhoneIntelligenceReasonCodes, "didit/types/components"
1093
1133
  autoload :PhoneIntelligenceReasonCodesDirection, "didit/types/components"
1094
1134
  autoload :PhoneMatchItem, "didit/types/components"
1135
+ autoload :PhoneNetworkDecision, "didit/types/components"
1136
+ autoload :PhoneNetworkDecisionStatus, "didit/types/components"
1137
+ autoload :PhoneNetworkRegistration, "didit/types/components"
1138
+ autoload :PhoneNetworkRegistrationFeature, "didit/types/components"
1139
+ autoload :PhoneNetworkRegistrationStatus, "didit/types/components"
1140
+ autoload :PhoneNetworkRegistrationSummary, "didit/types/components"
1141
+ autoload :PhoneNetworkRegistrationSummaryFeature, "didit/types/components"
1142
+ autoload :PhoneNetworkRegistrationSummaryStatus, "didit/types/components"
1143
+ autoload :PhoneNetworkRegistrationTestAccess, "didit/types/components"
1144
+ autoload :PhoneNetworkRegistrationTestNumber, "didit/types/components"
1145
+ autoload :PhoneNetworkRegistrationTestNumberStatus, "didit/types/components"
1146
+ autoload :PhoneNetworkRegistrationTestNumberTestAccess, "didit/types/components"
1147
+ autoload :PhoneNetworkRegistrationsCreateParamsFeature, "didit/types/phone"
1148
+ autoload :PhoneNetworkRegistrationsCreateParamsUseCase, "didit/types/phone"
1149
+ autoload :PhoneNetworkRegistrationsListParamsFeature, "didit/types/phone"
1150
+ autoload :PhoneNetworkRegistrationsListParamsFormat, "didit/types/phone"
1151
+ autoload :PhoneNetworkRegistrationsListParamsStatus, "didit/types/phone"
1152
+ autoload :PhoneNetworkRegistrationsPage, "didit/types/components"
1095
1153
  autoload :PhoneRiskResponse, "didit/types/components"
1096
1154
  autoload :PhoneRiskResponsePhone, "didit/types/components"
1097
1155
  autoload :PhoneRiskResponsePhoneCarrier, "didit/types/components"
1098
1156
  autoload :PhoneRiskResponsePhoneStatus, "didit/types/components"
1099
1157
  autoload :PhoneRiskResponseStatus, "didit/types/components"
1158
+ autoload :PhoneSdkKey, "didit/types/components"
1159
+ autoload :PhoneSdkKeyPlatform, "didit/types/components"
1160
+ autoload :PhoneSdkKeyRotated, "didit/types/components"
1161
+ autoload :PhoneSdkKeyRotatedPlatform, "didit/types/components"
1162
+ autoload :PhoneSdkKeyRotatedStatus, "didit/types/components"
1163
+ autoload :PhoneSdkKeyStatus, "didit/types/components"
1164
+ autoload :PhoneSdkKeySummary, "didit/types/components"
1165
+ autoload :PhoneSdkKeySummaryPlatform, "didit/types/components"
1166
+ autoload :PhoneSdkKeySummaryStatus, "didit/types/components"
1167
+ autoload :PhoneSdkKeysCreateParamsPlatform, "didit/types/phone"
1168
+ autoload :PhoneSdkKeysListParamsPlatform, "didit/types/phone"
1169
+ autoload :PhoneSdkKeysPage, "didit/types/components"
1100
1170
  autoload :PhoneSendCodeParamsOptionsPreferredChannel, "didit/types/phone"
1101
1171
  autoload :PhoneSendCodeParamsSignalsDevicePlatform, "didit/types/phone"
1172
+ autoload :PhoneSilentCoverage, "didit/types/components"
1173
+ autoload :PhoneSilentCoverageCountry, "didit/types/components"
1174
+ autoload :PhoneSilentCoverageNetwork, "didit/types/components"
1175
+ autoload :PhoneSilentCoverageNetworkApproval, "didit/types/components"
1176
+ autoload :PhoneSilentEligibility, "didit/types/components"
1177
+ autoload :PhoneSilentEligibilityReason, "didit/types/components"
1178
+ autoload :PhoneSilentRegistration, "didit/types/components"
1179
+ autoload :PhoneSilentRegistrationStatus, "didit/types/components"
1180
+ autoload :PhoneSilentRegistrationsCreateParamsUseCase, "didit/types/phone"
1102
1181
  autoload :PhoneSocialFootprint, "didit/types/components"
1103
1182
  autoload :PhoneSocialFootprintWhatsappProfileCompleteness, "didit/types/components"
1104
- autoload :PhoneVerificationCheckResponse, "didit/types/components"
1105
- autoload :PhoneVerificationCheckResponsePhone, "didit/types/components"
1106
- autoload :PhoneVerificationCheckResponsePhoneCarrier, "didit/types/components"
1107
- autoload :PhoneVerificationCheckResponsePhoneLifecycle, "didit/types/components"
1108
- autoload :PhoneVerificationCheckResponsePhoneMatches, "didit/types/components"
1109
- autoload :PhoneVerificationCheckResponsePhoneStatus, "didit/types/components"
1110
- autoload :PhoneVerificationCheckResponsePhoneWarnings, "didit/types/components"
1111
- autoload :PhoneVerificationCheckResponsePhoneWarningsLogType, "didit/types/components"
1112
- autoload :PhoneVerificationCheckResponseStatus, "didit/types/components"
1113
1183
  autoload :PhoneVerificationSendResponse, "didit/types/components"
1114
1184
  autoload :PhoneVerificationSendResponseStatus, "didit/types/components"
1115
1185
  autoload :ProofOfAddressVerifyParamsPoaAddressMismatchAction, "didit/types/proof_of_address"
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.34.0" # x-release-please-version
4
+ VERSION = "2.35.0" # x-release-please-version
5
5
  end
@@ -22,6 +22,8 @@ module Didit
22
22
  def refresh_connection: (String id, ?wait: bool, ?idempotency_key: String, ?request_options: Didit::request_options?) -> (Didit::Types::BankSyncCompleted | Didit::Types::BankRefreshAccepted)
23
23
  def renew_connection: (String id, ?redirect_url: String, ?allowed_origins: Array[String], ?language: String, ?expires_in: Integer, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::BankLink
24
24
  def revoke_connection: (String id, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::BankConnection
25
+ def simulate_connection: (String id, action: String, ?days: Integer, ?count: Integer, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::BankConnection
26
+ def simulate_link: (String id, ?persona: String, ?outcome: String, ?error_code: String, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::BankLink
25
27
  def sync_transactions: (String id, ?cursor: String, ?limit: Integer, ?page_token: String, ?request_options: Didit::request_options?) -> Didit::Types::BankTransactionChanges
26
28
  end
27
29
  end
@@ -3,9 +3,48 @@
3
3
  module Didit
4
4
  module Resources
5
5
  class Phone < Didit::Resource
6
+ def factors: () -> Didit::Resources::Phone::Factors
7
+ def network: () -> Didit::Resources::Phone::Network
8
+ def sdk_keys: () -> Didit::Resources::Phone::SdkKeys
9
+ def silent: () -> Didit::Resources::Phone::Silent
6
10
  def assess_risk: (phone_number: String, ?country_code: String, ?signals: Didit::Types::risk_signals, ?vendor_data: String, ?metadata: (Hash[String | Symbol, untyped])?, ?enable_social: bool, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneRiskResponse
7
- def check_code: (phone_number: String, code: String, ?duplicated_phone_number_action: String, ?disposable_number_action: String, ?voip_number_action: String, ?enable_enrichment: bool, ?phone_intelligence_score_action: String, ?phone_type_risk_action: String, ?recent_port_action: String, ?low_phone_trust_action: String, ?enable_social: bool, ?phone_no_social_presence_action: String, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneVerificationCheckResponse
11
+ def check_code: (code: String, ?phone_number: String, ?duplicated_phone_number_action: String, ?disposable_number_action: String, ?voip_number_action: String, ?enable_enrichment: bool, ?phone_intelligence_score_action: String, ?phone_type_risk_action: String, ?recent_port_action: String, ?low_phone_trust_action: String, ?enable_social: bool, ?phone_no_social_presence_action: String, ?factor_id: String, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneCheckCodeResponse
8
12
  def send_code: (phone_number: String, ?options: Didit::Types::phone_send_code_params_options, ?signals: Didit::Types::phone_send_code_params_signals, ?vendor_data: String, ?metadata: (Hash[String | Symbol, untyped])?, ?idempotency_key: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneVerificationSendResponse
13
+ class Factors < Didit::Resource
14
+ def create: (type: String, user_id: String, ?friendly_name: String, ?metadata: Hash[String | Symbol, String], ?request_options: Didit::request_options?) -> Didit::Types::PhoneFactorEnrollment
15
+ def delete: (String factor_id, ?request_options: Didit::request_options?) -> nil
16
+ def list: (user_id: String, ?type: String, ?status: String, ?limit: Integer, ?offset: Integer, ?format: String, ?request_options: Didit::request_options?) -> Didit::Page[Didit::Types::PhoneFactor]
17
+ def retrieve: (String factor_id, ?request_options: Didit::request_options?) -> Didit::Types::PhoneFactor
18
+ def update: (String factor_id, ?friendly_name: String, ?metadata: Hash[String | Symbol, String], ?status: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneFactor
19
+ end
20
+ class Network < Didit::Resource
21
+ def registrations: () -> Didit::Resources::Phone::Network::Registrations
22
+ class Registrations < Didit::Resource
23
+ def test_numbers: () -> Didit::Resources::Phone::Network::Registrations::TestNumbers
24
+ def create: (feature: String, country: String, use_case: String, company_name: String, website: String, ?networks: Array[String], ?purpose: String, ?monthly_volume: Integer, ?request_options: Didit::request_options?) -> Didit::Types::PhoneNetworkRegistration
25
+ def list: (?feature: String, ?country: String, ?status: String, ?limit: Integer, ?offset: Integer, ?format: String, ?request_options: Didit::request_options?) -> Didit::Page[Didit::Types::PhoneNetworkRegistrationSummary]
26
+ def retrieve: (String registration_id, ?request_options: Didit::request_options?) -> Didit::Types::PhoneNetworkRegistration
27
+ class TestNumbers < Didit::Resource
28
+ def create: (String registration_id, phone_number: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneNetworkRegistrationTestNumber
29
+ def delete: (String registration_id, String phone_number, ?request_options: Didit::request_options?) -> nil
30
+ end
31
+ end
32
+ end
33
+ class SdkKeys < Didit::Resource
34
+ def create: (platform: String, app_ids: Array[String], ?name: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneSdkKey
35
+ def list: (?platform: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneSdkKeysPage
36
+ def revoke: (String key_id, ?request_options: Didit::request_options?) -> nil
37
+ def rotate: (String key_id, ?overlap_hours: Integer, ?request_options: Didit::request_options?) -> Didit::Types::PhoneSdkKeyRotated
38
+ end
39
+ class Silent < Didit::Resource
40
+ def registrations: () -> Didit::Resources::Phone::Silent::Registrations
41
+ def coverage: (?country: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneSilentCoverage
42
+ def eligibility: (phone_number: String, ?ip_address: String, ?request_options: Didit::request_options?) -> Didit::Types::PhoneSilentEligibility
43
+ class Registrations < Didit::Resource
44
+ def create: (country: String, use_case: String, company_name: String, website: String, ?networks: Array[String], ?monthly_volume: Integer, ?flow_screenshots: Array[String], ?request_options: Didit::request_options?) -> Didit::Types::PhoneSilentRegistration
45
+ def retrieve: (String registration_id, ?request_options: Didit::request_options?) -> Didit::Types::PhoneSilentRegistration
46
+ end
47
+ end
9
48
  end
10
49
  end
11
50
  end
@@ -4,6 +4,8 @@ module Didit
4
4
  module Resources
5
5
  class Pricing < Didit::Resource
6
6
  def bank_verification: (?request_options: Didit::request_options?) -> Didit::Types::BankVerificationPricing
7
+ def bank_verification_country_coverage: (String country, ?request_options: Didit::request_options?) -> Didit::Types::BankVerificationCountryCoverage
8
+ def bank_verification_coverage: (?request_options: Didit::request_options?) -> Didit::Types::BankVerificationCoverage
7
9
  def price_book: (?request_options: Didit::request_options?) -> Didit::Types::PublicPriceBook
8
10
  end
9
11
  end
@@ -110,6 +110,60 @@ module Didit
110
110
  VALUES: Array[String]
111
111
  end
112
112
 
113
+ module BankSimulateConnectionParamsAction
114
+ NEW_TRANSACTIONS: String
115
+ PENDING_POSTED: String
116
+ BOOKING_CORRECTION: String
117
+ CONSENT_EXPIRING: String
118
+ CONSENT_EXPIRED: String
119
+ REVOKED_BY_USER: String
120
+ REVOKED_BY_BANK: String
121
+ SYNC_FAILED: String
122
+ SYNC_RECOVERED: String
123
+ WEBHOOK_TWICE: String
124
+ MIDNIGHT_BOOKING: String
125
+ BUDGET_USED: String
126
+ BUDGET_RESET: String
127
+
128
+ VALUES: Array[String]
129
+ end
130
+
131
+ module BankSimulateLinkParamsErrorCode
132
+ DUPLICATE_CONFLICT: String
133
+ RENEWAL_LOGIN_MISMATCH: String
134
+ REDUCED_GRANT: String
135
+ CORPORATE_APPROVAL_NOT_SUPPORTED: String
136
+ ONGOING_ACCESS_NOT_AVAILABLE: String
137
+ BANK_UNAVAILABLE: String
138
+ BANK_CANCELLED: String
139
+ CONSENT_DECLINED: String
140
+ READ_LIMIT: String
141
+
142
+ VALUES: Array[String]
143
+ end
144
+
145
+ module BankSimulateLinkParamsOutcome
146
+ COMPLETED: String
147
+ CANCELLED: String
148
+ FAILED: String
149
+ DUPLICATE_CONFLICT: String
150
+ REDUCED_GRANT: String
151
+ RENEWAL_LOGIN_MISMATCH: String
152
+
153
+ VALUES: Array[String]
154
+ end
155
+
156
+ module BankSimulateLinkParamsPersona
157
+ PERSONAL_BASIC: String
158
+ BUSINESS_MULTI: String
159
+ LONG_HISTORY: String
160
+ PENDING: String
161
+ SPARSE_FIELDS: String
162
+ NO_ONGOING: String
163
+
164
+ VALUES: Array[String]
165
+ end
166
+
113
167
  type bank_account_check_params = { country: String, account: Didit::Types::bank_account_check_params_account, holder: (Didit::Types::bank_account_check_person_holder | Didit::Types::bank_account_check_business_holder), ?vendor_data: String?, ?consent: bool }
114
168
 
115
169
  type bank_account_check_params_account = { ?iban: String, ?account_number: String, ?sort_code: String, ?routing_number: String, ?transit_institution: String, ?bsb: String, ?ifsc: String, ?bank_code: String, ?bic: String, ?clabe: String, ?cbu_cvu: String, ?registration_id: String }
@@ -121,5 +175,9 @@ module Didit
121
175
  type bank_refresh_connection_params = { ?wait: bool }
122
176
 
123
177
  type bank_renew_connection_params = { ?redirect_url: String, ?allowed_origins: Array[String], ?language: String, ?expires_in: Integer }
178
+
179
+ type bank_simulate_connection_params = { action: String, ?days: Integer, ?count: Integer }
180
+
181
+ type bank_simulate_link_params = { ?persona: String, ?outcome: String, ?error_code: String }
124
182
  end
125
183
  end