Class: OnlinePayments::SDK::Domain::ThreeDSecureResults

Inherits:
OnlinePayments::SDK::DataObject show all
Defined in:
lib/onlinepayments/sdk/domain/three_d_secure_results.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



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

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



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def applied_exemption
  @applied_exemption
end

#authentication_statusString

Returns the current value of authentication_status.

Returns:

  • (String)

    the current value of authentication_status



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def authentication_status
  @authentication_status
end

#cavvString

Returns the current value of cavv.

Returns:

  • (String)

    the current value of cavv



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def cavv
  @cavv
end

#challenge_indicatorString

Returns the current value of challenge_indicator.

Returns:

  • (String)

    the current value of challenge_indicator



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def challenge_indicator
  @challenge_indicator
end

#ds_transaction_idString

Returns the current value of ds_transaction_id.

Returns:

  • (String)

    the current value of ds_transaction_id



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def ds_transaction_id
  @ds_transaction_id
end

#eciString

Returns the current value of eci.

Returns:

  • (String)

    the current value of eci



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def eci
  @eci
end

#exemption_engine_flowString

Returns the current value of exemption_engine_flow.

Returns:

  • (String)

    the current value of exemption_engine_flow



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def exemption_engine_flow
  @exemption_engine_flow
end

#flowString

Returns the current value of flow.

Returns:

  • (String)

    the current value of flow



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def flow
  @flow
end

#liabilityString

Returns the current value of liability.

Returns:

  • (String)

    the current value of liability



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def liability
  @liability
end

#scheme_eciString

Returns the current value of scheme_eci.

Returns:

  • (String)

    the current value of scheme_eci



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def scheme_eci
  @scheme_eci
end

#versionString

Returns the current value of version.

Returns:

  • (String)

    the current value of version



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def version
  @version
end

#xidString

Returns the current value of xid.

Returns:

  • (String)

    the current value of xid



22
23
24
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 22

def xid
  @xid
end

Instance Method Details

#from_hash(hash) ⇒ Object



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 56

def from_hash(hash)
  super
  @acs_transaction_id = hash['acsTransactionId'] if hash.key? 'acsTransactionId'
  @applied_exemption = hash['appliedExemption'] if hash.key? 'appliedExemption'
  @authentication_status = hash['authenticationStatus'] if hash.key? 'authenticationStatus'
  @cavv = hash['cavv'] if hash.key? 'cavv'
  @challenge_indicator = hash['challengeIndicator'] if hash.key? 'challengeIndicator'
  @ds_transaction_id = hash['dsTransactionId'] if hash.key? 'dsTransactionId'
  @eci = hash['eci'] if hash.key? 'eci'
  @exemption_engine_flow = hash['exemptionEngineFlow'] if hash.key? 'exemptionEngineFlow'
  @flow = hash['flow'] if hash.key? 'flow'
  @liability = hash['liability'] if hash.key? 'liability'
  @scheme_eci = hash['schemeEci'] if hash.key? 'schemeEci'
  @version = hash['version'] if hash.key? 'version'
  @xid = hash['xid'] if hash.key? 'xid'
end

#to_hHash

Returns:

  • (Hash)


38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 38

def to_h
  hash = super
  hash['acsTransactionId'] = @acs_transaction_id unless @acs_transaction_id.nil?
  hash['appliedExemption'] = @applied_exemption unless @applied_exemption.nil?
  hash['authenticationStatus'] = @authentication_status unless @authentication_status.nil?
  hash['cavv'] = @cavv unless @cavv.nil?
  hash['challengeIndicator'] = @challenge_indicator unless @challenge_indicator.nil?
  hash['dsTransactionId'] = @ds_transaction_id unless @ds_transaction_id.nil?
  hash['eci'] = @eci unless @eci.nil?
  hash['exemptionEngineFlow'] = @exemption_engine_flow unless @exemption_engine_flow.nil?
  hash['flow'] = @flow unless @flow.nil?
  hash['liability'] = @liability unless @liability.nil?
  hash['schemeEci'] = @scheme_eci unless @scheme_eci.nil?
  hash['version'] = @version unless @version.nil?
  hash['xid'] = @xid unless @xid.nil?
  hash
end