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- TheIssuermodel object.type- The credit card type.
- All Implemented Interfaces:
JsonSerializable
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofCreditCardwith no data.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. -
Method Summary
Modifier and TypeMethodDescriptionbrand()Returns the value of thebrandrecord component.country()Returns the value of thecountryrecord component.final booleanIndicates whether some other object is "equal to" this one.getBrand()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Usecountry()instead.Deprecated, for removal: This API element is subject to removal in a future version.Useissuer()instead.getType()Deprecated, for removal: This API element is subject to removal in a future version.Usetype()instead.final inthashCode()Returns a hash code value for this object.Returns the value of theisBusinessrecord component.Returns the value of theisIssuedInBillingAddressCountryrecord component.Returns the value of theisPrepaidrecord component.issuer()Returns the value of theissuerrecord component.Returns the value of theisVirtualrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
CreditCard
-
CreditCard
public CreditCard()Constructs an instance ofCreditCardwith no data.
-
-
Method Details
-
getIssuer
Deprecated, for removal: This API element is subject to removal in a future version.Useissuer()instead. This method will be removed in 5.0.0.- Returns:
- The
Issuermodel object.
-
getBrand
Deprecated, for removal: This API element is subject to removal in a future version.Usebrand()instead. This method will be removed in 5.0.0.- Returns:
- The credit card brand.
-
getCountry
Deprecated, for removal: This API element is subject to removal in a future version.Usecountry()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, for removal: This API element is subject to removal in a future version.Usetype()instead. This method will be removed in 5.0.0.- Returns:
- The credit card type.
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
brand
-
country
-
isBusiness
Returns the value of theisBusinessrecord component.- Returns:
- the value of the
isBusinessrecord component
-
isIssuedInBillingAddressCountry
Returns the value of theisIssuedInBillingAddressCountryrecord component.- Returns:
- the value of the
isIssuedInBillingAddressCountryrecord component
-
isPrepaid
-
isVirtual
-
issuer
-
type
-
brand()instead.