Class ShippingAddress


public final class ShippingAddress extends AbstractAddress
This class contains minFraud response data related to the shipping address.
  • Constructor Details

    • ShippingAddress

      public ShippingAddress(Integer distanceToBillingAddress, Integer distanceToIpLocation, Boolean isHighRisk, Boolean isInIpCountry, Boolean isPostalInCity, Double latitude, Double longitude)
      Constructor for ShippingAddress.
      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 for ShippingAddress.
  • Method Details

    • isHighRisk

      public Boolean 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

      public Integer getDistanceToBillingAddress()
      Returns:
      The distance in kilometers from the shipping address to billing address.