Class Phone

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

public class Phone extends JsonableBaseObject
Represents details of the phone number in FraudCheckResponse.getPhone().
  • Constructor Details

    • Phone

      protected Phone()
  • Method Details

    • getNumber

      public String getNumber()
      Phone number used in the fraud check operation(s).
      Returns:
      The phone number in E.164 format.
    • getCarrier

      public String getCarrier()
      Name of the network carrier, if Insight.FRAUD_SCORE was requested.
      Returns:
      The network carrier name, or null if not applicable.
    • getType

      public PhoneType getType()
      Type of phone, if Insight.FRAUD_SCORE was requested.
      Returns:
      The phone type as an enum, or null if not applicable.