Class: Vantiv::Api::AccountUpdaterResponse

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/vantiv/api/account_updater_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAccountUpdaterResponse

Returns a new instance of AccountUpdaterResponse.



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

def initialize
  @new_card_token_info = CardTokenInfo.new
  @extended_card_response = ExtendedCardResponse.new
end

Instance Attribute Details

#extended_card_responseObject

Returns the value of attribute extended_card_response.



21
22
23
# File 'lib/vantiv/api/account_updater_response.rb', line 21

def extended_card_response
  @extended_card_response
end

#new_card_token_infoObject

Returns the value of attribute new_card_token_info.



21
22
23
# File 'lib/vantiv/api/account_updater_response.rb', line 21

def new_card_token_info
  @new_card_token_info
end

#original_card_token_infoObject

Returns the value of attribute original_card_token_info.



21
22
23
# File 'lib/vantiv/api/account_updater_response.rb', line 21

def original_card_token_info
  @original_card_token_info
end

Instance Method Details

#extended_card_response?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/vantiv/api/account_updater_response.rb', line 42

def extended_card_response?
  !!extended_card_response_code || !!extended_card_response_message
end

#extended_card_response_codeObject



30
31
32
# File 'lib/vantiv/api/account_updater_response.rb', line 30

def extended_card_response_code
  extended_card_response.code
end

#extended_card_response_messageObject



34
35
36
# File 'lib/vantiv/api/account_updater_response.rb', line 34

def extended_card_response_message
  extended_card_response.message
end

#new_card_token?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/vantiv/api/account_updater_response.rb', line 38

def new_card_token?
  !!
end