Package com.maxmind.minfraud.response
Class AbstractAddress
- java.lang.Object
-
- com.maxmind.minfraud.AbstractModel
-
- com.maxmind.minfraud.response.AbstractAddress
-
- Direct Known Subclasses:
BillingAddress
,ShippingAddress
public abstract class AbstractAddress extends AbstractModel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getDistanceToIpLocation()
Double
getLatitude()
Double
getLongitude()
Boolean
isInIpCountry()
Boolean
isPostalInCity()
-
Methods inherited from class com.maxmind.minfraud.AbstractModel
toJson, toString
-
-
-
-
Method Detail
-
isInIpCountry
public final Boolean isInIpCountry()
- Returns:
- This returns true if the address is in the IP country. It is false when the address is not in the IP country. If the address could not be parsed or was not provided or the IP address could not be geo-located, then null will be returned.
-
getLatitude
public final Double getLatitude()
- Returns:
- The latitude associated with the address. This will be null if there is no value in the response.
-
getLongitude
public final Double getLongitude()
- Returns:
- The longitude associated with the address. This will be null if there is no value in the response.
-
getDistanceToIpLocation
public final Integer getDistanceToIpLocation()
- Returns:
- The distance in kilometers from the address to the IP location in kilometers. This will be null if there is no value in the response.
-
isPostalInCity
public final Boolean isPostalInCity()
- Returns:
- This will return true if the postal code provided with the address is in the city for the address. It will return false when the postal code is not in the city. If the address was not provided or could not be parsed, null will be returned.
-
-