Class: Minfraud::Model::CreditCard

Inherits:
Abstract
  • Object
show all
Defined in:
lib/minfraud/model/credit_card.rb

Overview

Model with details about the credit card used.

Instance Attribute Summary collapse

Instance Attribute Details

#brandString? (readonly)

The card brand, such as “Visa”, “Discover”, “American Express”, etc.

Returns:

  • (String, nil)


13
14
15
# File 'lib/minfraud/model/credit_card.rb', line 13

def brand
  @brand
end

#countryString? (readonly)

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.

Returns:

  • (String, nil)


23
24
25
# File 'lib/minfraud/model/credit_card.rb', line 23

def country
  @country
end

#is_businessBoolean? (readonly)

This property is true if the card is a business card.

Returns:

  • (Boolean, nil)


28
29
30
# File 'lib/minfraud/model/credit_card.rb', line 28

def is_business
  @is_business
end

#is_issued_in_billing_address_countryBoolean? (readonly)

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.

Returns:

  • (Boolean, nil)


36
37
38
# File 'lib/minfraud/model/credit_card.rb', line 36

def is_issued_in_billing_address_country
  @is_issued_in_billing_address_country
end

#is_prepaidBoolean? (readonly)

This property is true if the card is a prepaid card.

Returns:

  • (Boolean, nil)


41
42
43
# File 'lib/minfraud/model/credit_card.rb', line 41

def is_prepaid
  @is_prepaid
end

#is_virtualBoolean? (readonly)

This property is true if the card is a virtual card.

Returns:

  • (Boolean, nil)


46
47
48
# File 'lib/minfraud/model/credit_card.rb', line 46

def is_virtual
  @is_virtual
end

#issuerMinfraud::Model::Issuer (readonly)

An object containing information about the credit card issuer.



51
52
53
# File 'lib/minfraud/model/credit_card.rb', line 51

def issuer
  @issuer
end

#typeString? (readonly)

The card’s type. The valid values are: charge, credit, debit.

Returns:

  • (String, nil)


56
57
58
# File 'lib/minfraud/model/credit_card.rb', line 56

def type
  @type
end