class Ingenico::Direct::SDK::Domain::CardFraudResults

@attr [String] avs_result @attr [String] cvv_result @attr [String] fraud_service_result

Attributes

avs_result[RW]
cvv_result[RW]
fraud_service_result[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/direct/sdk/domain/card_fraud_results.rb, line 27
def from_hash(hash)
  super
  @avs_result = hash['avsResult'] if hash.key? 'avsResult'
  @cvv_result = hash['cvvResult'] if hash.key? 'cvvResult'
  @fraud_service_result = hash['fraudServiceResult'] if hash.key? 'fraudServiceResult'
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/card_fraud_results.rb, line 19
def to_h
  hash = super
  hash['avsResult'] = @avs_result unless @avs_result.nil?
  hash['cvvResult'] = @cvv_result unless @cvv_result.nil?
  hash['fraudServiceResult'] = @fraud_service_result unless @fraud_service_result.nil?
  hash
end