Record Class IpRiskReason

java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.IpRiskReason
Record Components:
code - This provides a machine-readable code identifying the reason. Although more codes may be added in the future, the current codes are:
ANONYMOUS_IP
The IP address belongs to an anonymous network. See the object at .IPAddress.Traits for more details.
BILLING_POSTAL_VELOCITY
Many different billing postal codes have been seen on this IP address.
EMAIL_VELOCITY
Many different email addresses have been seen on this IP address.
HIGH_RISK_DEVICE
A high risk device was seen on this IP address.
HIGH_RISK_EMAIL
A high risk email address was seen on this IP address in your past transactions.
ISSUER_ID_NUMBER_VELOCITY
Many different issuer ID numbers have been seen on this IP address.
MINFRAUD_NETWORK_ACTIVITY
Suspicious activity has been seen on this IP address across minFraud customers.
reason - This field provides a human-readable explanation of the reason. The description may change at any time and should not be matched against.
All Implemented Interfaces:
JsonSerializable

public record IpRiskReason(String code, String reason) extends Record implements JsonSerializable
This class represents the reason for the IP risk.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IpRiskReason(String code, String reason)
    Creates an instance of a IpRiskReason record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the code record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use code() instead.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use reason() instead.
    final int
    Returns a hash code value for this object.
    Returns the value of the reason record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface JsonSerializable

    toJson
  • Constructor Details

    • IpRiskReason

      public IpRiskReason(String code, String reason)
      Creates an instance of a IpRiskReason record class.
      Parameters:
      code - the value for the code record component
      reason - the value for the reason record component
  • Method Details

    • getCode

      @Deprecated(since="4.0.0", forRemoval=true) public String getCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use code() instead. This method will be removed in 5.0.0.
      This provides a machine-readable code identifying the reason. Although more codes may be added in the future, the current codes are:
      ANONYMOUS_IP
      The IP address belongs to an anonymous network. See the object at .IPAddress.Traits for more details.
      BILLING_POSTAL_VELOCITY
      Many different billing postal codes have been seen on this IP address.
      EMAIL_VELOCITY
      Many different email addresses have been seen on this IP address.
      HIGH_RISK_DEVICE
      A high risk device was seen on this IP address.
      HIGH_RISK_EMAIL
      A high risk email address was seen on this IP address in your past transactions.
      ISSUER_ID_NUMBER_VELOCITY
      Many different issuer ID numbers have been seen on this IP address.
      MINFRAUD_NETWORK_ACTIVITY
      Suspicious activity has been seen on this IP address across minFraud customers.
      Returns:
      The reason code.
    • getReason

      @Deprecated(since="4.0.0", forRemoval=true) public String getReason()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use reason() instead. This method will be removed in 5.0.0.
      Returns:
      This field provides a human-readable explanation of the reason. The description may change at any time and should not be matched against.
    • 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.
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component