Class: Minfraud::Model::CreditCard
- Inherits:
-
Abstract
- Object
- Abstract
- Minfraud::Model::CreditCard
- Defined in:
- lib/minfraud/model/credit_card.rb
Overview
Model with details about the credit card used.
Instance Attribute Summary collapse
-
#brand ⇒ String?
readonly
The card brand, such as “Visa”, “Discover”, “American Express”, etc.
-
#country ⇒ String?
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.
-
#is_business ⇒ Boolean?
readonly
This property is true if the card is a business card.
-
#is_issued_in_billing_address_country ⇒ Boolean?
readonly
This property is true if the country of the billing address matches the country of the majority of customers using this credit card.
-
#is_prepaid ⇒ Boolean?
readonly
This property is true if the card is a prepaid card.
-
#is_virtual ⇒ Boolean?
readonly
This property is true if the card is a virtual card.
-
#issuer ⇒ Minfraud::Model::Issuer
readonly
An object containing information about the credit card issuer.
-
#type ⇒ String?
readonly
The card’s type.
Instance Attribute Details
#brand ⇒ String? (readonly)
The card brand, such as “Visa”, “Discover”, “American Express”, etc.
13 14 15 |
# File 'lib/minfraud/model/credit_card.rb', line 13 def brand @brand end |
#country ⇒ String? (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.
23 24 25 |
# File 'lib/minfraud/model/credit_card.rb', line 23 def country @country end |
#is_business ⇒ Boolean? (readonly)
This property is true if the card is a business card.
28 29 30 |
# File 'lib/minfraud/model/credit_card.rb', line 28 def is_business @is_business end |
#is_issued_in_billing_address_country ⇒ Boolean? (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.
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_prepaid ⇒ Boolean? (readonly)
This property is true if the card is a prepaid card.
41 42 43 |
# File 'lib/minfraud/model/credit_card.rb', line 41 def is_prepaid @is_prepaid end |
#is_virtual ⇒ Boolean? (readonly)
This property is true if the card is a virtual card.
46 47 48 |
# File 'lib/minfraud/model/credit_card.rb', line 46 def is_virtual @is_virtual end |
#issuer ⇒ Minfraud::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 |
#type ⇒ String? (readonly)
The card’s type. The valid values are: charge, credit, debit.
56 57 58 |
# File 'lib/minfraud/model/credit_card.rb', line 56 def type @type end |