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

Inherits:
DataObject
  • Object
show all
Defined in:
lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from 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



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

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



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

def applied_exemption
  @applied_exemption
end

#cavvString

Returns the current value of cavv.

Returns:

  • (String)

    the current value of cavv



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

def cavv
  @cavv
end

#cavv_algorithmString

Returns the current value of cavv_algorithm.

Returns:

  • (String)

    the current value of cavv_algorithm



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

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



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

def directory_server_transaction_id
  @directory_server_transaction_id
end

#eciInteger

Returns the current value of eci.

Returns:

  • (Integer)

    the current value of eci



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

def eci
  @eci
end

#flowString

Returns the current value of flow.

Returns:

  • (String)

    the current value of flow



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

def flow
  @flow
end

#scheme_risk_scoreInteger

Returns the current value of scheme_risk_score.

Returns:

  • (Integer)

    the current value of scheme_risk_score



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

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



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

def three_d_secure_version
  @three_d_secure_version
end

#xidString

Returns the current value of xid.

Returns:

  • (String)

    the current value of xid



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

def xid
  @xid
end

Instance Method Details

#from_hash(hash) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/onlinepayments/sdk/domain/external_cardholder_authentication_data.rb', line 57

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? 'cavv'
    @cavv = hash['cavv']
  end
  if hash.has_key? 'cavvAlgorithm'
    @cavv_algorithm = hash['cavvAlgorithm']
  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? 'flow'
    @flow = hash['flow']
  end
  if hash.has_key? 'schemeRiskScore'
    @scheme_risk_score = hash['schemeRiskScore']
  end
  if hash.has_key? 'threeDSecureVersion'
    @three_d_secure_version = hash['threeDSecureVersion']
  end
  if hash.has_key? 'xid'
    @xid = hash['xid']
  end
end

#to_hHash

Returns:

  • (Hash)


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

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['flow'] = @flow unless @flow.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