Table of Contents

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

Status SimSwapStatus

The outcome of the SIM swap check: completed or failed.

Swapped bool

True if the SIM was swapped in the last 7 days, false otherwise. Only valid when Status is Completed.

Reason string

The error reason when the SIM swap check fails. Only populated when Status is Failed.

Properties

Reason

The error reason when the SIM swap check fails. Only populated when Status is Failed.

[JsonPropertyName("reason")]
public string Reason { get; init; }

Property Value

string

Status

The outcome of the SIM swap check: completed or failed.

[JsonPropertyName("status")]
[JsonConverter(typeof(EnumDescriptionJsonConverter<SimSwapStatus>))]
public SimSwapStatus Status { get; init; }

Property Value

SimSwapStatus

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; }

Property Value

bool