Class FraudCheckResponse

java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numberinsight2.FraudCheckResponse
All Implemented Interfaces:
Jsonable

  • Constructor Details

  • Method Details

    • getType

      protected String getType()
      The type of lookup used in the request. Currently always "phone".
      Returns:
      The lookup type as a string.
    • getRequestId

      public UUID getRequestId()
      Unique ID for this request for reference.
      Returns:
      The request reference UUID.
    • getPhone

      public Phone 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 null if not applicable.
    • getSimSwap

      public SimSwap getSimSwap()
      Result of the SIM swap insight operation. Only returned if Insight.SIM_SWAP was requested.
      Returns:
      The SIM swap details, or null if not applicable.
    • fromJson

      public static FraudCheckResponse fromJson(String json)
      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.