Package com.maxmind.minfraud.response
Class CreditCard
java.lang.Object
com.maxmind.minfraud.AbstractModel
com.maxmind.minfraud.response.CreditCard
This class contains minFraud response data related to the credit card.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.maxmind.minfraud.AbstractModel
toJson, toString
-
Constructor Details
-
CreditCard
public CreditCard(String brand, String country, Boolean isBusiness, Boolean isIssuedInBillingAddressCountry, Boolean isPrepaid, Boolean isVirtual, Issuer issuer, String type) - Parameters:
brand
- The credit card brand.country
- The country the card was issued in.isBusiness
- Whether it is a business card.isIssuedInBillingAddressCountry
- Whether the issuing country matches billing country.isPrepaid
- Whether the card was prepaid.isVirtual
- Whether it is a virtual card.issuer
- The issuer information.type
- The type.
-
CreditCard
public CreditCard()
-
-
Method Details
-
getIssuer
- Returns:
- The
Issuer
model object.
-
getBrand
- Returns:
- The credit card brand.
-
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
- 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
- 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
- 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
- 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
- Returns:
- The credit card type.
-