Record Class CreditCard

java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.CreditCard
Record Components:
brand - The credit card brand.
country - The two letter ISO 3166-1 alpha-2 country code associated with the location of the majority of customers using this credit card as determined by their billing address. In cases where the location of customers is highly mixed, this defaults to the country of the bank issuing the card.
isBusiness - True if the card is a business card. False if not a business card. If the IIN was not provided or is unknown, null will be returned.
isIssuedInBillingAddressCountry - True if the country of the billing address matches the country of the majority of customers using that IIN. In cases where the location of customers is highly mixed, the match is to the country of the bank issuing the card.
isPrepaid - True if the card is a prepaid card. False if not prepaid. If the IIN was not provided or is unknown, null will be returned.
isVirtual - True if the card is a virtual card. False if not virtual. If the IIN was not provided or is unknown, null will be returned.
issuer - The Issuer model object.
type - The credit card type.
All Implemented Interfaces:
JsonSerializable

public record CreditCard(String brand, String country, Boolean isBusiness, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type) extends Record implements JsonSerializable
This class contains minFraud response data related to the credit card.
  • Constructor Details

    • CreditCard

      public CreditCard(String brand, String country, Boolean isBusiness, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type)
      Compact canonical constructor that sets defaults for null values.
    • CreditCard

      public CreditCard()
      Constructs an instance of CreditCard with no data.
  • Method Details

    • getIssuer

      @Deprecated(since="4.0.0", forRemoval=true) public Issuer getIssuer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use issuer() instead. This method will be removed in 5.0.0.
      Returns:
      The Issuer model object.
    • getBrand

      @Deprecated(since="4.0.0", forRemoval=true) public String getBrand()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use brand() instead. This method will be removed in 5.0.0.
      Returns:
      The credit card brand.
    • getCountry

      @Deprecated(since="4.0.0", forRemoval=true) public String getCountry()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use country() instead. This method will be removed in 5.0.0.
      Returns:
      The two letter ISO 3166-1 alpha-2 country code associated with the location of the majority of customers using this credit card as determined by their billing address. In cases where the location of customers is highly mixed, this defaults to the country of the bank issuing the card.
    • getType

      @Deprecated(since="4.0.0", forRemoval=true) public String getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use type() instead. This method will be removed in 5.0.0.
      Returns:
      The credit card type.
    • 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.
    • brand

      public String brand()
      Returns the value of the brand record component.
      Returns:
      the value of the brand record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • isBusiness

      public Boolean isBusiness()
      Returns the value of the isBusiness record component.
      Returns:
      the value of the isBusiness record component
    • isIssuedInBillingAddressCountry

      public Boolean isIssuedInBillingAddressCountry()
      Returns the value of the isIssuedInBillingAddressCountry record component.
      Returns:
      the value of the isIssuedInBillingAddressCountry record component
    • isPrepaid

      public Boolean isPrepaid()
      Returns the value of the isPrepaid record component.
      Returns:
      the value of the isPrepaid record component
    • isVirtual

      public Boolean isVirtual()
      Returns the value of the isVirtual record component.
      Returns:
      the value of the isVirtual record component
    • issuer

      public Issuer issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • type

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