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

public record BillingAddress(Integer distanceToIpLocation, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude) extends Record implements JsonSerializable
This class contains minFraud response data related to the billing address.
  • Constructor Details

    • BillingAddress

      public BillingAddress()
      Constructs an instance of BillingAddress with no data.
    • BillingAddress

      public BillingAddress(Integer distanceToIpLocation, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude)
      Creates an instance of a BillingAddress record class.
      Parameters:
      distanceToIpLocation - the value for the distanceToIpLocation record component
      isInIpCountry - the value for the isInIpCountry record component
      isPostalInCity - the value for the isPostalInCity record component
      latitude - the value for the latitude record component
      longitude - the value for the longitude record component
  • Method Details

    • getLatitude

      @Deprecated(since="4.0.0", forRemoval=true) public Double getLatitude()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use latitude() instead. This method will be removed in 5.0.0.
      Returns:
      The latitude associated with the address.
    • getLongitude

      @Deprecated(since="4.0.0", forRemoval=true) public Double getLongitude()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use longitude() instead. This method will be removed in 5.0.0.
      Returns:
      The longitude associated with the address.
    • getDistanceToIpLocation

      @Deprecated(since="4.0.0", forRemoval=true) public Integer getDistanceToIpLocation()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use distanceToIpLocation() instead. This method will be removed in 5.0.0.
      Returns:
      The distance in kilometers from the address to the IP location.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • distanceToIpLocation

      public Integer distanceToIpLocation()
      Returns the value of the distanceToIpLocation record component.
      Returns:
      the value of the distanceToIpLocation record component
    • isInIpCountry

      public Boolean isInIpCountry()
      Returns the value of the isInIpCountry record component.
      Returns:
      the value of the isInIpCountry record component
    • isPostalInCity

      public Boolean isPostalInCity()
      Returns the value of the isPostalInCity record component.
      Returns:
      the value of the isPostalInCity record component
    • latitude

      public Double latitude()
      Returns the value of the latitude record component.
      Returns:
      the value of the latitude record component
    • longitude

      public Double longitude()
      Returns the value of the longitude record component.
      Returns:
      the value of the longitude record component