Class: PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse
- Defined in:
- lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb,
sig/prelude_sdk/models/verification/phone/history_retrieve_response.rbs
Overview
Defined Under Namespace
Modules: BlockReason, DevicePlatform, PhoneNumberCondition, PhoneNumberCurrentCondition, SignalsHashStatus, Status Classes: Lifecycle, Signals
Instance Attribute Summary collapse
-
#app_version ⇒ String?
Version of your application, when known.
-
#block_reasons ⇒ Array<Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason>?
Why the anti-fraud system blocked the verification.
-
#carrier ⇒ PreludeSDK::Models::Verification::Phone::PhoneVerificationCarrier?
The end user's mobile network.
-
#correlation_id ⇒ String?
The correlation identifier you supplied when creating the verification.
- #created_at ⇒ Time
-
#device_model ⇒ String?
Model of the end-user device, when known.
-
#device_platform ⇒ Symbol, ...
Platform of the end-user device, when known.
- #expires_at ⇒ Time
-
#id ⇒ String
The verification identifier.
-
#ip_address ⇒ String?
IP address the verification was created from.
-
#ip_address_region ⇒ String?
ISO 3166-1 alpha-2 region of the caller's IP address.
-
#ip_distance_meters ⇒ Integer?
Distance between the phone number region and the IP location.
-
#lifecycle ⇒ PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle?
Chronological timeline of the verification: creation, message attempts with delivery events, code checks and signals reception.
-
#phone_number ⇒ String
The E.164 phone number the verification targeted.
-
#phone_number_condition ⇒ Symbol, ...
Whether the phone number was allow-listed, block-listed, or sandboxed at verification time.
-
#phone_number_current_condition ⇒ Symbol, ...
Whether the phone number is currently allow-listed, block-listed, or sandboxed.
-
#phone_number_region ⇒ String?
ISO 3166-1 alpha-2 region of the phone number.
-
#signals ⇒ PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals?
The anti-fraud signals you forwarded when creating the verification.
-
#signals_hash_status ⇒ Symbol, ...
Whether the SDK signals integrity check passed.
-
#status ⇒ Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Status
The outcome of the verification.
-
#template_id ⇒ String?
The template used for this verification.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(is_trusted_user:, device_id: nil, ja4_fingerprint: nil, os_version: nil, user_agent: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Signals for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(is_trusted_user:, device_id: nil, ja4_fingerprint: nil, os_version: nil, user_agent: nil) ⇒ Object
Some parameter documentations has been truncated, see Signals for more details.
The anti-fraud signals you forwarded when creating the verification.
|
|
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 182
|
Instance Attribute Details
#app_version ⇒ String?
Version of your application, when known.
58 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 58 optional :app_version, String |
#block_reasons ⇒ Array<Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason>?
Why the anti-fraud system blocked the verification. Empty unless it did.
behavioral_pattern- The phone number past behavior during verification flows exhibits suspicious patterns.device_attribute- The end-user device reported attributes associated with fraud or emulation.fraud_database- The phone number appears in a fraud database.location_discrepancy- The phone number region and the observed location disagree.missing_signals- The verification expected Prelude SDK signals and none arrived.network_fingerprint- The network fingerprint matches known fraudulent traffic.poor_conversion_history- The phone number rarely completes the verifications it starts.prefix_concentration- The phone number is part of a range known to be associated with suspicious activity patterns.repeated_number- The phone number was used far more often than normal traffic would explain.suspected_request_tampering- The SDK signals were altered or expired between collection and use.suspicious_ip_address- The originating IP address is associated with suspicious activity.temporary_phone_number- The phone number is known to be a temporary or disposable number.
88 89 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 88 optional :block_reasons, -> { PreludeSDK::Internal::Type::ArrayOf[enum: PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::BlockReason] } |
#carrier ⇒ PreludeSDK::Models::Verification::Phone::PhoneVerificationCarrier?
The end user's mobile network.
95 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 95 optional :carrier, -> { PreludeSDK::Verification::Phone::PhoneVerificationCarrier } |
#correlation_id ⇒ String?
The correlation identifier you supplied when creating the verification.
101 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 101 optional :correlation_id, String |
#created_at ⇒ Time
18 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 18 required :created_at, Time |
#device_model ⇒ String?
Model of the end-user device, when known.
107 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 107 optional :device_model, String |
#device_platform ⇒ Symbol, ...
Platform of the end-user device, when known.
113 114 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 113 optional :device_platform, enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::DevicePlatform } |
#expires_at ⇒ Time
23 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 23 required :expires_at, Time |
#id ⇒ String
The verification identifier.
13 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 13 required :id, String |
#ip_address ⇒ String?
IP address the verification was created from.
120 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 120 optional :ip_address, String |
#ip_address_region ⇒ String?
ISO 3166-1 alpha-2 region of the caller's IP address.
126 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 126 optional :ip_address_region, String |
#ip_distance_meters ⇒ Integer?
Distance between the phone number region and the IP location.
132 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 132 optional :ip_distance_meters, Integer |
#lifecycle ⇒ PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle?
Chronological timeline of the verification: creation, message attempts with delivery events, code checks and signals reception. Omitted when Prelude holds no timeline for the verification.
140 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 140 optional :lifecycle, -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Lifecycle } |
#phone_number ⇒ String
The E.164 phone number the verification targeted.
29 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 29 required :phone_number, String |
#phone_number_condition ⇒ Symbol, ...
Whether the phone number was allow-listed, block-listed, or sandboxed at verification time.
147 148 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 147 optional :phone_number_condition, enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCondition } |
#phone_number_current_condition ⇒ Symbol, ...
Whether the phone number is currently allow-listed, block-listed, or sandboxed.
154 155 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 154 optional :phone_number_current_condition, enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::PhoneNumberCurrentCondition } |
#phone_number_region ⇒ String?
ISO 3166-1 alpha-2 region of the phone number.
161 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 161 optional :phone_number_region, String |
#signals ⇒ PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals?
The anti-fraud signals you forwarded when creating the verification.
167 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 167 optional :signals, -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Signals } |
#signals_hash_status ⇒ Symbol, ...
Whether the SDK signals integrity check passed.
173 174 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 173 optional :signals_hash_status, enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::SignalsHashStatus } |
#status ⇒ Symbol, PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Status
The outcome of the verification.
converted- The end user submitted a valid code.not_converted- The verification expired without a valid code.pending_check- A code was delivered and Prelude is still waiting for a check.sent- A code was sent and the verification window is still open.challenged- The verification was restricted to non-SMS and non-voice channels.suspected_fraud- The anti-fraud system blocked the verification.in_blocklist- The phone number is on the configured block list.invalid_line- The phone number is not a valid line type.invalid_number- The phone number is not a valid number.rate_limited- The verification was refused by a rate limit.expired_signals- The SDK signals were collected too long before the request.shadowed- The anti-fraud system flagged the verification without blocking it.
52 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 52 required :status, enum: -> { PreludeSDK::Models::Verification::Phone::HistoryRetrieveResponse::Status } |
#template_id ⇒ String?
The template used for this verification.
180 |
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 180 optional :template_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/prelude_sdk/models/verification/phone/history_retrieve_response.rb', line 267
|
Instance Method Details
#to_hash ⇒ {
145 |
# File 'sig/prelude_sdk/models/verification/phone/history_retrieve_response.rbs', line 145 def to_hash: -> { |