Package com.vonage.client.numberinsight2
Class FraudCheckResponse
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numberinsight2.FraudCheckResponse
- All Implemented Interfaces:
Jsonable
Fraud check results as obtained from
NumberInsight2Client.fraudCheck(String, Insight, Insight...).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FraudCheckResponseCreates an instance of this class from a JSON payload.Result of the fraud score insight operation.getPhone()An object containing at least the phone number that was used in the fraud check.Unique ID for this request for reference.Result of the SIM swap insight operation.protected StringgetType()The type of lookup used in the request.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
-
FraudCheckResponse
protected FraudCheckResponse()
-
-
Method Details
-
getType
The type of lookup used in the request. Currently always "phone".- Returns:
- The lookup type as a string.
-
getRequestId
Unique ID for this request for reference.- Returns:
- The request reference UUID.
-
getPhone
An object containing at least the phone number that was used in the fraud check. If Insight.FRAUD_SCORE was also requested and successful, other phone information (carrier and type) will be returned.- Returns:
- Information about the phone number.
-
getFraudScore
Result of the fraud score insight operation. Only returned if Insight.FRAUD_SCORE was requested.- Returns:
- The fraud score details, or
nullif not applicable.
-
getSimSwap
Result of the SIM swap insight operation. Only returned if Insight.SIM_SWAP was requested.- Returns:
- The SIM swap details, or
nullif not applicable.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with the fields populated, if present.
-