Class FraudCheckResponse
- Namespace
- Vonage.NumberInsightV2.FraudCheck
- Assembly
- Vonage.dll
Represents the response from a fraud check request to the Number Insight V2 API.
public record FraudCheckResponse : IEquatable<FraudCheckResponse>
- Inheritance
-
FraudCheckResponse
- Implements
- Inherited Members
Constructors
FraudCheckResponse(Guid, string, PhoneData, Maybe<FraudScore>, Maybe<SimSwap>)
Represents the response from a fraud check request to the Number Insight V2 API.
public FraudCheckResponse(Guid RequestId, string Type, PhoneData Phone, Maybe<FraudScore> FraudScore, Maybe<SimSwap> SimSwap)
Parameters
RequestIdGuidUnique identifier for this request, useful for tracking and support inquiries.
TypestringThe type of lookup performed. Currently always "phone" for phone number lookups.
PhonePhoneDataPhone number details including carrier and type information when fraud_score insight is requested.
FraudScoreMaybe<FraudScore>The fraud score result, present only when "fraud_score" was requested in Insights. Contains risk score (0-100), risk recommendation, and risk label.
SimSwapMaybe<SimSwap>The SIM swap check result, present only when "sim_swap" was requested in Insights. Indicates whether the SIM was swapped in the last 7 days.
Properties
FraudScore
The fraud score result, present only when "fraud_score" was requested in Insights. Contains risk score (0-100), risk recommendation, and risk label.
[JsonConverter(typeof(MaybeJsonConverter<FraudScore>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<FraudScore> FraudScore { get; init; }
Property Value
Phone
Phone number details including carrier and type information when fraud_score insight is requested.
public PhoneData Phone { get; init; }
Property Value
RequestId
Unique identifier for this request, useful for tracking and support inquiries.
public Guid RequestId { get; init; }
Property Value
SimSwap
The SIM swap check result, present only when "sim_swap" was requested in Insights. Indicates whether the SIM was swapped in the last 7 days.
[JsonConverter(typeof(MaybeJsonConverter<SimSwap>))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Maybe<SimSwap> SimSwap { get; init; }
Property Value
Type
The type of lookup performed. Currently always "phone" for phone number lookups.
public string Type { get; init; }