Class: MangoModel::Card
- Inherits:
-
EntityBase
- Object
- EntityBase
- MangoModel::Card
- Includes:
- MangoPay::Jsonifier
- Defined in:
- lib/mangopay/model/entity/card.rb
Overview
Card entity
Constant Summary
Constants included from MangoPay::Jsonifier
Instance Attribute Summary collapse
-
#active ⇒ Object
- true/false
-
Whether or not it is active.
-
#alias ⇒ Object
- String
-
A partially obfuscated version of its credit card number.
-
#bank_code ⇒ Object
- String
-
Its bank code.
-
#card_provider ⇒ Object
- String
-
Its provider.
-
#card_type ⇒ Object
- CardType
-
Its type.
-
#country ⇒ Object
- String
-
Country of its address.
-
#currency ⇒ Object
- CurrencyIso
-
Its currency.
-
#expiration_date ⇒ Object
- Integer
-
Its expiry date (MM/YY format).
-
#fingerprint ⇒ Object
- String
-
A unique representation of a 16-digit card number.
-
#product ⇒ Object
- String
-
Its product type.
-
#user_id ⇒ Object
- String
-
ID of its owner.
-
#validity ⇒ Object
- CardValidity
-
Whether or not it is valid.
Attributes inherited from EntityBase
Method Summary
Methods included from MangoPay::Jsonifier
Methods included from NonInstantiable
Instance Attribute Details
#active ⇒ Object
- true/false
-
Whether or not it is active
31 32 33 |
# File 'lib/mangopay/model/entity/card.rb', line 31 def active @active end |
#alias ⇒ Object
- String
-
A partially obfuscated version of its credit card number
13 14 15 |
# File 'lib/mangopay/model/entity/card.rb', line 13 def alias @alias end |
#bank_code ⇒ Object
- String
-
Its bank code
28 29 30 |
# File 'lib/mangopay/model/entity/card.rb', line 28 def bank_code @bank_code end |
#card_provider ⇒ Object
- String
-
Its provider
16 17 18 |
# File 'lib/mangopay/model/entity/card.rb', line 16 def card_provider @card_provider end |
#card_type ⇒ Object
- CardType
-
Its type
19 20 21 |
# File 'lib/mangopay/model/entity/card.rb', line 19 def card_type @card_type end |
#country ⇒ Object
- String
-
Country of its address
22 23 24 |
# File 'lib/mangopay/model/entity/card.rb', line 22 def country @country end |
#currency ⇒ Object
- CurrencyIso
-
Its currency
34 35 36 |
# File 'lib/mangopay/model/entity/card.rb', line 34 def currency @currency end |
#expiration_date ⇒ Object
- Integer
-
Its expiry date (MM/YY format)
10 11 12 |
# File 'lib/mangopay/model/entity/card.rb', line 10 def expiration_date @expiration_date end |
#fingerprint ⇒ Object
- String
-
A unique representation of a 16-digit card number
40 41 42 |
# File 'lib/mangopay/model/entity/card.rb', line 40 def fingerprint @fingerprint end |
#product ⇒ Object
- String
-
Its product type
25 26 27 |
# File 'lib/mangopay/model/entity/card.rb', line 25 def product @product end |
#user_id ⇒ Object
- String
-
ID of its owner
43 44 45 |
# File 'lib/mangopay/model/entity/card.rb', line 43 def user_id @user_id end |
#validity ⇒ Object
- CardValidity
-
Whether or not it is valid
37 38 39 |
# File 'lib/mangopay/model/entity/card.rb', line 37 def validity @validity end |