java.lang.Object
com.maxmind.minfraud.AbstractModel
com.maxmind.minfraud.response.Phone

public final class Phone extends AbstractModel
This class contains minFraud response data related to the phone number.
  • Constructor Details

    • Phone

      public Phone(String country, Boolean isVoip, Boolean matchesPostal, String networkOperator, String numberType)
      Parameters:
      country - The ISO 3166-2 country code for the phone number.
      isVoip - Whether the number is VoIP.
      matchesPostal - Whether the phone number matches the postal code.
      networkOperator - The network operator associated with the phone number.
      numberType - The type of the phone number.
    • Phone

      @Deprecated public Phone(String country, Boolean isVoip, String networkOperator, String numberType)
      Deprecated.
      use other constructor instead.
      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 for Phone.
  • Method Details

    • getCountry

      public String getCountry()
      Returns:
      The two-character ISO 3166-1 country code for the country associated with the phone number.
    • isVoip

      public Boolean 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.
    • matchesPostal

      public Boolean matchesPostal()
      Returns:
      This is true if the phone number's prefix is commonly associated with the postal code. It is false if the prefix is not associated with the postal code. It is non-null only when the phone number is in the US, the number prefix is in our database, and the postal code and country are provided in the request.
    • getNetworkOperator

      public String 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

      public String getNumberType()
      Returns:
      One of the following values: fixed or mobile. Additional values may be added in the future.