Class: Worldline::Connect::SDK::V1::Domain::FraudResultsRetailDecisions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#fraud_codeString

Returns the current value of fraud_code.

Returns:

  • (String)

    the current value of fraud_code



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb', line 15

def fraud_code
  @fraud_code
end

#fraud_neuralString

Returns the current value of fraud_neural.

Returns:

  • (String)

    the current value of fraud_neural



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb', line 15

def fraud_neural
  @fraud_neural
end

#fraud_rcfString

Returns the current value of fraud_rcf.

Returns:

  • (String)

    the current value of fraud_rcf



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb', line 15

def fraud_rcf
  @fraud_rcf
end

Instance Method Details

#from_hash(hash) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb', line 32

def from_hash(hash)
  super
  if hash.has_key? 'fraudCode'
    @fraud_code = hash['fraudCode']
  end
  if hash.has_key? 'fraudNeural'
    @fraud_neural = hash['fraudNeural']
  end
  if hash.has_key? 'fraudRCF'
    @fraud_rcf = hash['fraudRCF']
  end
end

#to_hHash

Returns:

  • (Hash)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/fraud_results_retail_decisions.rb', line 24

def to_h
  hash = super
  hash['fraudCode'] = @fraud_code unless @fraud_code.nil?
  hash['fraudNeural'] = @fraud_neural unless @fraud_neural.nil?
  hash['fraudRCF'] = @fraud_rcf unless @fraud_rcf.nil?
  hash
end