java.lang.Object
com.maxmind.minfraud.AbstractModel
com.maxmind.minfraud.response.Phone
This class contains minFraud response data related to the phone number.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.maxmind.minfraud.AbstractModel
toJson, toString
-
Constructor Details
-
Phone
- Parameters:
country
- The ISO 3166-2 country code for the phone number.isVoip
- Whether the number is VoIP.networkOperator
- The network operator associated with the phone number.numberType
- The type of the phone number.
-
Phone
public Phone()Constructor forPhone
.
-
-
Method Details
-
getCountry
- Returns:
- The two-character ISO 3166-1 country code for the country associated with the phone number.
-
isVoip
- Returns:
- Whether the phone number is a Voice over Internet Protocol (VoIP) number allocated
by a regulator. The value will be
null
if a valid phone number was not provided or if we do not have data for the phone number.
-
getNetworkOperator
- Returns:
- The name of the original network operator associated with the phone number. This field does not reflect phone numbers that have been ported from the original operator to another, nor does it identify mobile virtual network operators.
-
getNumberType
- Returns:
- One of the following values:
fixed
ormobile
. Additional values may be added in the future.
-