Class: OnlinePayments::SDK::Domain::ExternalCardholderAuthenticationData

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from OnlinePayments::SDK::DataObject

new_from_hash

Instance Attribute Details

#acs_transaction_idString

Returns the current value of acs_transaction_id.

Returns:

  • (String)

    the current value of acs_transaction_id



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def acs_transaction_id
  @acs_transaction_id
end

#applied_exemptionString

Returns the current value of applied_exemption.

Returns:

  • (String)

    the current value of applied_exemption



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def applied_exemption
  @applied_exemption
end

#cavvString

Returns the current value of cavv.

Returns:

  • (String)

    the current value of cavv



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def cavv
  @cavv
end

#cavv_algorithmString

Returns the current value of cavv_algorithm.

Returns:

  • (String)

    the current value of cavv_algorithm



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def cavv_algorithm
  @cavv_algorithm
end

#directory_server_transaction_idString

Returns the current value of directory_server_transaction_id.

Returns:

  • (String)

    the current value of directory_server_transaction_id



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def directory_server_transaction_id
  @directory_server_transaction_id
end

#eciInteger

Returns the current value of eci.

Returns:

  • (Integer)

    the current value of eci



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def eci
  @eci
end

#scheme_risk_scoreInteger

Returns the current value of scheme_risk_score.

Returns:

  • (Integer)

    the current value of scheme_risk_score



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def scheme_risk_score
  @scheme_risk_score
end

#three_d_secure_versionString

Returns the current value of three_d_secure_version.

Returns:

  • (String)

    the current value of three_d_secure_version



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def three_d_secure_version
  @three_d_secure_version
end

#xidString

Returns the current value of xid.

Returns:

  • (String)

    the current value of xid



18
19
20
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 18

def xid
  @xid
end

Instance Method Details

#from_hash(hash) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 44

def from_hash(hash)
  super
  @acs_transaction_id = hash['acsTransactionId'] if hash.key? 'acsTransactionId'
  @applied_exemption = hash['appliedExemption'] if hash.key? 'appliedExemption'
  @cavv = hash['cavv'] if hash.key? 'cavv'
  @cavv_algorithm = hash['cavvAlgorithm'] if hash.key? 'cavvAlgorithm'
  @directory_server_transaction_id = hash['directoryServerTransactionId'] if hash.key? 'directoryServerTransactionId'
  @eci = hash['eci'] if hash.key? 'eci'
  @scheme_risk_score = hash['schemeRiskScore'] if hash.key? 'schemeRiskScore'
  @three_d_secure_version = hash['threeDSecureVersion'] if hash.key? 'threeDSecureVersion'
  @xid = hash['xid'] if hash.key? 'xid'
end

#to_hHash

Returns:

  • (Hash)


30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 30

def to_h
  hash = super
  hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
  hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
  hash['cavv'] = @cavv unless @cavv.nil?
  hash['cavvAlgorithm'] = @cavv_algorithm unless @cavv_algorithm.nil?
  hash['directoryServerTransactionId'] = @directory_server_transaction_id unless @directory_server_transaction_id.nil?
  hash['eci'] = @eci unless @eci.nil?
  hash['schemeRiskScore'] = @scheme_risk_score unless @scheme_risk_score.nil?
  hash['threeDSecureVersion'] = @three_d_secure_version unless @three_d_secure_version.nil?
  hash['xid'] = @xid unless @xid.nil?
  hash
end