Record Class BillingAddress
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.BillingAddress
- Record Components:
distanceToIpLocation- The distance in kilometers from the address to the IP location. This will be null if there is no value in the response.isInIpCountry- 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 geolocated, then null will be returned.isPostalInCity- 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.latitude- The latitude associated with the address. This will be null if there is no value in the response.longitude- The longitude associated with the address. This will be null if there is no value in the response.
- All Implemented Interfaces:
JsonSerializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistanceToIpLocationrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Uselatitude()instead.Deprecated, for removal: This API element is subject to removal in a future version.Uselongitude()instead.final inthashCode()Returns a hash code value for this object.Returns the value of theisInIpCountryrecord component.Returns the value of theisPostalInCityrecord component.latitude()Returns the value of thelatituderecord component.Returns the value of thelongituderecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
BillingAddress
public BillingAddress()Constructs an instance ofBillingAddresswith no data. -
BillingAddress
public BillingAddress(Integer distanceToIpLocation, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude) Creates an instance of aBillingAddressrecord class.- Parameters:
distanceToIpLocation- the value for thedistanceToIpLocationrecord componentisInIpCountry- the value for theisInIpCountryrecord componentisPostalInCity- the value for theisPostalInCityrecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord component
-
-
Method Details
-
getLatitude
Deprecated, for removal: This API element is subject to removal in a future version.Uselatitude()instead. This method will be removed in 5.0.0.- Returns:
- The latitude associated with the address.
-
getLongitude
Deprecated, for removal: This API element is subject to removal in a future version.Uselongitude()instead. This method will be removed in 5.0.0.- Returns:
- The longitude associated with the address.
-
getDistanceToIpLocation
Deprecated, for removal: This API element is subject to removal in a future version.UsedistanceToIpLocation()instead. This method will be removed in 5.0.0.- Returns:
- The distance in kilometers from the address to the IP location.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
distanceToIpLocation
Returns the value of thedistanceToIpLocationrecord component.- Returns:
- the value of the
distanceToIpLocationrecord component
-
isInIpCountry
Returns the value of theisInIpCountryrecord component.- Returns:
- the value of the
isInIpCountryrecord component
-
isPostalInCity
Returns the value of theisPostalInCityrecord component.- Returns:
- the value of the
isPostalInCityrecord component
-
latitude
-
longitude
-
distanceToIpLocation()instead.