java.lang.Object
com.maxmind.minfraud.AbstractModel
com.maxmind.minfraud.response.AbstractAddress
com.maxmind.minfraud.response.ShippingAddress
This class contains minFraud response data related to the shipping address.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.maxmind.minfraud.response.AbstractAddress
getDistanceToIpLocation, getLatitude, getLongitude, isInIpCountry, isPostalInCity
Methods inherited from class com.maxmind.minfraud.AbstractModel
toJson, toString
-
Constructor Details
-
ShippingAddress
public ShippingAddress(Integer distanceToBillingAddress, Integer distanceToIpLocation, Boolean isHighRisk, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude) Constructor forShippingAddress
.- Parameters:
distanceToBillingAddress
- The distance in kilometers from the shipping address to the billing address.distanceToIpLocation
- The distance in kilometers from the shipping address to the IP location.isHighRisk
- This is true if the shipping address is associated with fraudulent transactions.isInIpCountry
- This is true if the shipping address is in the IP country.isPostalInCity
- This is true if the shipping postal code is in the city for the IP location.latitude
- The latitude associated with the IP address.longitude
- The longitude associated with the IP address.
-
ShippingAddress
public ShippingAddress()Constructor forShippingAddress
.
-
-
Method Details
-
isHighRisk
- Returns:
- 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.
-
getDistanceToBillingAddress
- Returns:
- The distance in kilometers from the shipping address to billing address.
-