Package com.maxmind.minfraud.response
Class CreditCard
- java.lang.Object
-
- com.maxmind.minfraud.AbstractModel
-
- com.maxmind.minfraud.response.CreditCard
-
public final class CreditCard extends AbstractModel
This class contains minFraud response data related to the credit card.
-
-
Constructor Summary
Constructors Constructor Description CreditCard()
CreditCard(String brand, String country, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Issuer issuer, String type)
CreditCard(String brand, String country, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type)
CreditCard(String brand, String country, Boolean isBusiness, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBrand()
String
getCountry()
Issuer
getIssuer()
String
getType()
Boolean
isBusiness()
Boolean
isIssuedInBillingAddressCountry()
Boolean
isPrepaid()
Boolean
isVirtual()
-
Methods inherited from class com.maxmind.minfraud.AbstractModel
toJson, toString
-
-
-
-
Constructor Detail
-
CreditCard
public CreditCard(String brand, String country, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Issuer issuer, String type)
-
CreditCard
public CreditCard(String brand, String country, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type)
-
CreditCard
public CreditCard(String brand, String country, Boolean isBusiness, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type)
-
CreditCard
public CreditCard()
-
-
Method Detail
-
getIssuer
public Issuer getIssuer()
- Returns:
- The
Issuer
model object.
-
getBrand
public String getBrand()
- Returns:
- The credit card brand.
-
getCountry
public String getCountry()
- 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.
-
isBusiness
public Boolean isBusiness()
- Returns:
- 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
public Boolean isIssuedInBillingAddressCountry()
- Returns:
- 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
public Boolean isPrepaid()
- Returns:
- 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
public Boolean isVirtual()
- Returns:
- 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.
-
getType
public String getType()
- Returns:
- The credit card type.
-
-