Class: MangoModel::Card

Inherits:
EntityBase show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/entity/card.rb

Overview

Card entity

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Attributes inherited from EntityBase

#creation_date, #id, #tag

Method Summary

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Methods included from NonInstantiable

#initialize

Instance Attribute Details

#activeObject

true/false

Whether or not it is active



31
32
33
# File 'lib/mangopay/model/entity/card.rb', line 31

def active
  @active
end

#aliasObject

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_codeObject

String

Its bank code



28
29
30
# File 'lib/mangopay/model/entity/card.rb', line 28

def bank_code
  @bank_code
end

#card_providerObject

String

Its provider



16
17
18
# File 'lib/mangopay/model/entity/card.rb', line 16

def card_provider
  @card_provider
end

#card_typeObject

CardType

Its type



19
20
21
# File 'lib/mangopay/model/entity/card.rb', line 19

def card_type
  @card_type
end

#countryObject

String

Country of its address



22
23
24
# File 'lib/mangopay/model/entity/card.rb', line 22

def country
  @country
end

#currencyObject

CurrencyIso

Its currency



34
35
36
# File 'lib/mangopay/model/entity/card.rb', line 34

def currency
  @currency
end

#expiration_dateObject

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

#fingerprintObject

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

#productObject

String

Its product type



25
26
27
# File 'lib/mangopay/model/entity/card.rb', line 25

def product
  @product
end

#user_idObject

String

ID of its owner



43
44
45
# File 'lib/mangopay/model/entity/card.rb', line 43

def user_id
  @user_id
end

#validityObject

CardValidity

Whether or not it is valid



37
38
39
# File 'lib/mangopay/model/entity/card.rb', line 37

def validity
  @validity
end