Class: Vantiv::Api::Card

Inherits:
Object
  • Object
show all
Defined in:
lib/vantiv/api/card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expiry_month: nil, expiry_year: nil, cvv: nil, card_number: nil, account_number: nil, paypage_registration_id: nil) ⇒ Card

Returns a new instance of Card.



7
8
9
10
11
12
13
14
# File 'lib/vantiv/api/card.rb', line 7

def initialize(expiry_month: nil, expiry_year: nil, cvv: nil, card_number: nil, account_number: nil, paypage_registration_id: nil)
  @expiry_month = expiry_month
  @expiry_year = expiry_year
  @cvv = cvv
  @card_number = card_number
  @account_number = 
  @paypage_registration_id = paypage_registration_id
end

Instance Attribute Details

#account_numberObject



28
29
30
# File 'lib/vantiv/api/card.rb', line 28

def 
  format_card_number(@account_number) if @account_number
end

#card_numberObject



24
25
26
# File 'lib/vantiv/api/card.rb', line 24

def card_number
  format_card_number(@card_number) if @card_number
end

#cvvObject



32
33
34
# File 'lib/vantiv/api/card.rb', line 32

def cvv
  @cvv.to_s if @cvv
end

#expiry_monthObject

Returns the value of attribute expiry_month.



5
6
7
# File 'lib/vantiv/api/card.rb', line 5

def expiry_month
  @expiry_month
end

#expiry_yearObject

Returns the value of attribute expiry_year.



5
6
7
# File 'lib/vantiv/api/card.rb', line 5

def expiry_year
  @expiry_year
end

#payment_account_idObject

Returns the value of attribute payment_account_id.



5
6
7
# File 'lib/vantiv/api/card.rb', line 5

def 
  @payment_account_id
end

#paypage_registration_idObject

Returns the value of attribute paypage_registration_id.



5
6
7
# File 'lib/vantiv/api/card.rb', line 5

def paypage_registration_id
  @paypage_registration_id
end

#typeObject

Returns the value of attribute type.



5
6
7
# File 'lib/vantiv/api/card.rb', line 5

def type
  @type
end