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

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



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



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
101
102
103
104
105
106
107
108
109
110
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 69

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? 'authenticationStatus'
    @authentication_status = hash['authenticationStatus']
  end
  if hash.has_key? 'cavv'
    @cavv = hash['cavv']
  end
  if hash.has_key? 'challengeIndicator'
    @challenge_indicator = hash['challengeIndicator']
  end
  if hash.has_key? 'dsTransactionId'
    @ds_transaction_id = hash['dsTransactionId']
  end
  if hash.has_key? 'eci'
    @eci = hash['eci']
  end
  if hash.has_key? 'exemptionEngineFlow'
    @exemption_engine_flow = hash['exemptionEngineFlow']
  end
  if hash.has_key? 'flow'
    @flow = hash['flow']
  end
  if hash.has_key? 'liability'
    @liability = hash['liability']
  end
  if hash.has_key? 'schemeEci'
    @scheme_eci = hash['schemeEci']
  end
  if hash.has_key? 'version'
    @version = hash['version']
  end
  if hash.has_key? 'xid'
    @xid = hash['xid']
  end
end

#to_hHash

Returns:

  • (Hash)


51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/onlinepayments/sdk/domain/three_d_secure_results.rb', line 51

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