Class SimSwap
- Namespace
- Vonage.NumberInsightV2.FraudCheck
- Assembly
- Vonage.dll
Contains the SIM swap check results indicating whether the phone number's SIM was recently changed.
public record SimSwap : IEquatable<SimSwap>
- Inheritance
-
SimSwap
- Implements
- Inherited Members
Constructors
SimSwap(SimSwapStatus, bool, string)
Contains the SIM swap check results indicating whether the phone number's SIM was recently changed.
public SimSwap(SimSwapStatus Status, bool Swapped, string Reason)
Parameters
StatusSimSwapStatusThe outcome of the SIM swap check: completed or failed.
SwappedboolTrue if the SIM was swapped in the last 7 days, false otherwise. Only valid when Status is Completed.
ReasonstringThe error reason when the SIM swap check fails. Only populated when Status is Failed.
Properties
Reason
[JsonPropertyName("reason")]
public string Reason { get; init; }
Property Value
Status
The outcome of the SIM swap check: completed or failed.
[JsonPropertyName("status")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<SimSwapStatus>))]
public SimSwapStatus Status { get; init; }
Property Value
Swapped
True if the SIM was swapped in the last 7 days, false otherwise. Only valid when Status is Completed.
[JsonPropertyName("swapped")]
public bool Swapped { get; init; }