Record Class ShippingAddress
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.ShippingAddress
- Record Components:
distanceToBillingAddress- The distance in kilometers from the shipping address to billing address.distanceToIpLocation- The distance in kilometers from the address to the IP location. This will be null if there is no value in the response.isHighRisk- This returns true if the shipping address is an address associated with fraudulent transactions. It returns false when the address is not associated with increased risk. If the address could not be parsed or was not provided, null is returned.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 ShippingAddress(Integer distanceToBillingAddress, Integer distanceToIpLocation, Boolean isHighRisk, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude)
extends Record
implements JsonSerializable
This class contains minFraud response data related to the shipping address.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofShippingAddresswith no data.ShippingAddress(Integer distanceToBillingAddress, Integer distanceToIpLocation, Boolean isHighRisk, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude) Creates an instance of aShippingAddressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedistanceToBillingAddressrecord component.Returns 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.UsedistanceToIpLocation()instead.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 theisHighRiskrecord component.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
-
ShippingAddress
public ShippingAddress()Constructs an instance ofShippingAddresswith no data. -
ShippingAddress
public ShippingAddress(Integer distanceToBillingAddress, Integer distanceToIpLocation, Boolean isHighRisk, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude) Creates an instance of aShippingAddressrecord class.- Parameters:
distanceToBillingAddress- the value for thedistanceToBillingAddressrecord componentdistanceToIpLocation- the value for thedistanceToIpLocationrecord componentisHighRisk- the value for theisHighRiskrecord componentisInIpCountry- the value for theisInIpCountryrecord componentisPostalInCity- the value for theisPostalInCityrecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord component
-
-
Method Details
-
getDistanceToBillingAddress
Deprecated, for removal: This API element is subject to removal in a future version.UsedistanceToBillingAddress()instead. This method will be removed in 5.0.0.- Returns:
- The distance in kilometers from the shipping address to billing address.
-
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). -
distanceToBillingAddress
Returns the value of thedistanceToBillingAddressrecord component.- Returns:
- the value of the
distanceToBillingAddressrecord component
-
distanceToIpLocation
Returns the value of thedistanceToIpLocationrecord component.- Returns:
- the value of the
distanceToIpLocationrecord component
-
isHighRisk
Returns the value of theisHighRiskrecord component.- Returns:
- the value of the
isHighRiskrecord 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
-
distanceToBillingAddress()instead.