class Vantiv::Api::TiedTransactionResponse
Constants
- RESPONSE_CODES
- TIED_TRANSACTION_RESPONSE_NAMES
Public Class Methods
new(transaction_name)
click to toggle source
# File lib/vantiv/api/tied_transaction_response.rb, line 16 def initialize(transaction_name) unless @transaction_response_name = TIED_TRANSACTION_RESPONSE_NAMES[transaction_name] raise "Implementation Error: Tied transactions do not include #{transaction_name}" end end
Public Instance Methods
failure?()
click to toggle source
# File lib/vantiv/api/tied_transaction_response.rb, line 26 def failure? !success? end
success?()
click to toggle source
# File lib/vantiv/api/tied_transaction_response.rb, line 22 def success? !api_level_failure? && response_code == RESPONSE_CODES[:transaction_received] end