Package com.vonage.client.numberinsight2
Class SimSwap
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numberinsight2.SimSwap
- All Implemented Interfaces:
Jsonable
Represents the sim swap insight results in
FraudCheckResponse.getSimSwap().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReason for a sim swap error response.Status of the sim swap call.Whether the sim was swapped within the past week.Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
SimSwap
protected SimSwap()
-
-
Method Details
-
getStatus
Status of the sim swap call.- Returns:
- The insight status as an enum.
-
getSwapped
Whether the sim was swapped within the past week. Returned only if the sim swap check succeeds.- Returns:
trueif the sim was swapped in the last 7 days, ornullif the check failed.
-
getReason
Reason for a sim swap error response. Returned only if the sim swap check fails.- Returns:
- The error response description, or
nullif the call succeeded.
-