Class: MangoModel::CardRegistration

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

Overview

Card Registration 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

#access_keyObject

String

Its access key (a special key needed for registering a card)



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

def access_key
  @access_key
end

#card_idObject

String

The card’s ID



32
33
34
# File 'lib/mangopay/model/entity/card_registration.rb', line 32

def card_id
  @card_id
end

#card_registration_urlObject

String

The URL to submit the card details form to



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

def card_registration_url
  @card_registration_url
end

#card_typeObject

CardType

The type of card



29
30
31
# File 'lib/mangopay/model/entity/card_registration.rb', line 29

def card_type
  @card_type
end

#currencyObject

CurrencyIso

Its currency



13
14
15
# File 'lib/mangopay/model/entity/card_registration.rb', line 13

def currency
  @currency
end

#preregistration_dataObject

String

A specific value to pass to the card registration URL



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

def preregistration_data
  @preregistration_data
end

#registration_dataObject

String

Having registered a card, this confirmation hash needs to be

updated to the card item



26
27
28
# File 'lib/mangopay/model/entity/card_registration.rb', line 26

def registration_data
  @registration_data
end

#result_codeObject

String

The result code



35
36
37
# File 'lib/mangopay/model/entity/card_registration.rb', line 35

def result_code
  @result_code
end

#result_messageObject

String

Explanation of the result



38
39
40
# File 'lib/mangopay/model/entity/card_registration.rb', line 38

def result_message
  @result_message
end

#statusObject

CardStatus

Status of the registration



41
42
43
# File 'lib/mangopay/model/entity/card_registration.rb', line 41

def status
  @status
end

#user_idObject

String

Its owner’s ID



10
11
12
# File 'lib/mangopay/model/entity/card_registration.rb', line 10

def user_id
  @user_id
end