Record Class Issuer

java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.Issuer
Record Components:
matchesProvidedName - This is true if the name matches the name provided.
matchesProvidedPhoneNumber - This is true if the phone number matches the one provided.
name - The name of the bank which issued the credit card.
phoneNumber - The phone number of the bank which issued the credit card. In some cases the phone number we return may be out of date.
All Implemented Interfaces:
JsonSerializable

public record Issuer(Boolean matchesProvidedName, Boolean matchesProvidedPhoneNumber, String name, String phoneNumber) extends Record implements JsonSerializable
This class contains minFraud response data related to the credit card issuer.
  • Constructor Details

    • Issuer

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

      public Issuer(Boolean matchesProvidedName, Boolean matchesProvidedPhoneNumber, String name, String phoneNumber)
      Creates an instance of a Issuer record class.
      Parameters:
      matchesProvidedName - the value for the matchesProvidedName record component
      matchesProvidedPhoneNumber - the value for the matchesProvidedPhoneNumber record component
      name - the value for the name record component
      phoneNumber - the value for the phoneNumber record component
  • Method Details

    • getName

      @Deprecated(since="4.0.0", forRemoval=true) public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use name() instead. This method will be removed in 5.0.0.
      Returns:
      The name of the bank which issued the credit card.
    • getPhoneNumber

      @Deprecated(since="4.0.0", forRemoval=true) public String getPhoneNumber()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use phoneNumber() instead. This method will be removed in 5.0.0.
      Returns:
      The phone number of the bank which issued the credit card. In some cases the phone number we return may be out of date.
    • 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.
    • matchesProvidedName

      public Boolean matchesProvidedName()
      Returns the value of the matchesProvidedName record component.
      Returns:
      the value of the matchesProvidedName record component
    • matchesProvidedPhoneNumber

      public Boolean matchesProvidedPhoneNumber()
      Returns the value of the matchesProvidedPhoneNumber record component.
      Returns:
      the value of the matchesProvidedPhoneNumber record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • phoneNumber

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