class Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureResults

@attr [String] acs_transaction_id @attr [String] applied_exemption @attr [Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney] authentication_amount @attr [String] cavv @attr [String] directory_server_transaction_id @attr [String] eci @attr [Ingenico::Connect::SDK::Domain::Payment::ExemptionOutput] exemption_output @attr [Integer] scheme_risk_score @attr [Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput] sdk_data @attr [Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData] three_d_secure_data @attr [String] three_d_secure_version @attr [String] three_d_server_transaction_id @attr [String] xid

Attributes

acs_transaction_id[RW]
applied_exemption[RW]
authentication_amount[RW]
cavv[RW]
directory_server_transaction_id[RW]
eci[RW]
exemption_output[RW]
scheme_risk_score[RW]
sdk_data[RW]
three_d_secure_data[RW]
three_d_secure_version[RW]
three_d_server_transaction_id[RW]
xid[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb, line 75
def from_hash(hash)
  super
  if hash.has_key? 'acsTransactionId'
    @acs_transaction_id = hash['acsTransactionId']
  end
  if hash.has_key? 'appliedExemption'
    @applied_exemption = hash['appliedExemption']
  end
  if hash.has_key? 'authenticationAmount'
    raise TypeError, "value '%s' is not a Hash" % [hash['authenticationAmount']] unless hash['authenticationAmount'].is_a? Hash
    @authentication_amount = Ingenico::Connect::SDK::Domain::Definitions::AmountOfMoney.new_from_hash(hash['authenticationAmount'])
  end
  if hash.has_key? 'cavv'
    @cavv = hash['cavv']
  end
  if hash.has_key? 'directoryServerTransactionId'
    @directory_server_transaction_id = hash['directoryServerTransactionId']
  end
  if hash.has_key? 'eci'
    @eci = hash['eci']
  end
  if hash.has_key? 'exemptionOutput'
    raise TypeError, "value '%s' is not a Hash" % [hash['exemptionOutput']] unless hash['exemptionOutput'].is_a? Hash
    @exemption_output = Ingenico::Connect::SDK::Domain::Payment::ExemptionOutput.new_from_hash(hash['exemptionOutput'])
  end
  if hash.has_key? 'schemeRiskScore'
    @scheme_risk_score = hash['schemeRiskScore']
  end
  if hash.has_key? 'sdkData'
    raise TypeError, "value '%s' is not a Hash" % [hash['sdkData']] unless hash['sdkData'].is_a? Hash
    @sdk_data = Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput.new_from_hash(hash['sdkData'])
  end
  if hash.has_key? 'threeDSecureData'
    raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureData']] unless hash['threeDSecureData'].is_a? Hash
    @three_d_secure_data = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData.new_from_hash(hash['threeDSecureData'])
  end
  if hash.has_key? 'threeDSecureVersion'
    @three_d_secure_version = hash['threeDSecureVersion']
  end
  if hash.has_key? 'threeDServerTransactionId'
    @three_d_server_transaction_id = hash['threeDServerTransactionId']
  end
  if hash.has_key? 'xid'
    @xid = hash['xid']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb, line 57
def to_h
  hash = super
  hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
  hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
  hash['authenticationAmount'] = @authentication_amount.to_h unless @authentication_amount.nil?
  hash['cavv'] = @cavv unless @cavv.nil?
  hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
  hash['eci'] = @eci unless @eci.nil?
  hash['exemptionOutput'] = @exemption_output.to_h unless @exemption_output.nil?
  hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil?
  hash['sdkData'] = @sdk_data.to_h unless @sdk_data.nil?
  hash['threeDSecureData'] = @three_d_secure_data.to_h unless @three_d_secure_data.nil?
  hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil?
  hash['threeDServerTransactionId'] = @three_d_server_transaction_id unless @three_d_server_transaction_id.nil?
  hash['xid'] = @xid unless @xid.nil?
  hash
end