Class: Worldline::Connect::SDK::V1::Domain::ExternalCardholderAuthenticationData

Inherits:
Domain::DataObject
  • Object
show all
Defined in:
lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#acs_transaction_idString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def acs_transaction_id
  @acs_transaction_id
end

#applied_exemptionString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def applied_exemption
  @applied_exemption
end

#cavvString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def cavv
  @cavv
end

#cavv_algorithmString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def cavv_algorithm
  @cavv_algorithm
end

#directory_server_transaction_idString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def directory_server_transaction_id
  @directory_server_transaction_id
end

#eciInteger



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def eci
  @eci
end

#scheme_risk_scoreInteger



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def scheme_risk_score
  @scheme_risk_score
end

#three_d_secure_versionString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def three_d_secure_version
  @three_d_secure_version
end

#three_d_server_transaction_idObject

Deprecated.

No replacement



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def three_d_server_transaction_id
  @three_d_server_transaction_id
end

#validation_resultString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def validation_result
  @validation_result
end

#xidString



23
24
25
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 23

def xid
  @xid
end

Instance Method Details

#from_hash(hash) ⇒ Object



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
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 65

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? 'schemeRiskScore'
    @scheme_risk_score = hash['schemeRiskScore']
  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? 'validationResult'
    @validation_result = hash['validationResult']
  end
  if hash.has_key? 'xid'
    @xid = hash['xid']
  end
end

#to_hHash



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb', line 49

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['threeDServerTransactionId'] = @three_d_server_transaction_id unless @three_d_server_transaction_id.nil?
  hash['validationResult'] = @validation_result unless @validation_result.nil?
  hash['xid'] = @xid unless @xid.nil?
  hash
end