Package com.vonage.client.numberinsight2
Class Phone
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.numberinsight2.Phone
- All Implemented Interfaces:
Jsonable
Represents details of the phone number in
FraudCheckResponse.getPhone().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName of the network carrier, if Insight.FRAUD_SCORE was requested.Phone number used in the fraud check operation(s).getType()Type of phone, if Insight.FRAUD_SCORE was requested.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
-
Phone
protected Phone()
-
-
Method Details
-
getNumber
Phone number used in the fraud check operation(s).- Returns:
- The phone number in E.164 format.
-
getCarrier
Name of the network carrier, if Insight.FRAUD_SCORE was requested.- Returns:
- The network carrier name, or
nullif not applicable.
-
getType
Type of phone, if Insight.FRAUD_SCORE was requested.- Returns:
- The phone type as an enum, or
nullif not applicable.
-