class Minfraud::Model::CreditCard
Model
with details about the credit card used.
Attributes
The card brand, such as “Visa”, “Discover”, “American Express”, etc.
@return [String, nil]
This property contains the two letter ISO 3166-1 alpha-2 country code (en.wikipedia.org/wiki/ISO_3166-1_alpha-2) 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.
@return [String, nil]
This property is true if the card is a business card.
@return [Boolean, nil]
This property is true if the country of the billing address matches the country of the majority of customers using this credit card. In cases where the location of customers is highly mixed, the match is to the country of the bank issuing the card.
@return [Boolean, nil]
This property is true if the card is a prepaid card.
@return [Boolean, nil]
This property is true if the card is a virtual card.
@return [Boolean, nil]
An object containing information about the credit card issuer.
@return [Minfraud::Model::Issuer]
The card's type. The valid values are: charge, credit, debit.
@return [String, nil]
Public Class Methods
@!visibility private
Minfraud::Model::Abstract::new
# File lib/minfraud/model/credit_card.rb, line 59 def initialize(record) super(record) @brand = get('brand') @country = get('country') @is_business = get('is_business') @is_issued_in_billing_address_country = get( 'is_issued_in_billing_address_country' ) @is_prepaid = get('is_prepaid') @is_virtual = get('is_virtual') @issuer = Minfraud::Model::Issuer.new(get('issuer')) @type = get('type') end