Class: Worldline::Connect::SDK::V1::Domain::ResultDoRiskAssessment
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::ResultDoRiskAssessment
- Defined in:
- lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb
Instance Attribute Summary collapse
-
#category ⇒ String
The current value of category.
-
#result ⇒ String
The current value of result.
-
#retaildecisions_cc_fraud_check_output ⇒ Worldline::Connect::SDK::V1::Domain::RetailDecisionsCCFraudCheckOutput
The current value of retaildecisions_cc_fraud_check_output.
-
#validation_bank_account_output ⇒ Worldline::Connect::SDK::V1::Domain::ValidationBankAccountOutput
The current value of validation_bank_account_output.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#category ⇒ String
Returns the current value of category.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb', line 18 def category @category end |
#result ⇒ String
Returns the current value of result.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb', line 18 def result @result end |
#retaildecisions_cc_fraud_check_output ⇒ Worldline::Connect::SDK::V1::Domain::RetailDecisionsCCFraudCheckOutput
Returns the current value of retaildecisions_cc_fraud_check_output.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb', line 18 def retaildecisions_cc_fraud_check_output @retaildecisions_cc_fraud_check_output end |
#validation_bank_account_output ⇒ Worldline::Connect::SDK::V1::Domain::ValidationBankAccountOutput
Returns the current value of validation_bank_account_output.
18 19 20 |
# File 'lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb', line 18 def validation_bank_account_output @validation_bank_account_output end |
Instance Method Details
#from_hash(hash) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb', line 38 def from_hash(hash) super if hash.has_key? 'category' @category = hash['category'] end if hash.has_key? 'result' @result = hash['result'] end if hash.has_key? 'retaildecisionsCCFraudCheckOutput' raise TypeError, "value '%s' is not a Hash" % [hash['retaildecisionsCCFraudCheckOutput']] unless hash['retaildecisionsCCFraudCheckOutput'].is_a? Hash @retaildecisions_cc_fraud_check_output = Worldline::Connect::SDK::V1::Domain::RetailDecisionsCCFraudCheckOutput.new_from_hash(hash['retaildecisionsCCFraudCheckOutput']) end if hash.has_key? 'validationBankAccountOutput' raise TypeError, "value '%s' is not a Hash" % [hash['validationBankAccountOutput']] unless hash['validationBankAccountOutput'].is_a? Hash @validation_bank_account_output = Worldline::Connect::SDK::V1::Domain::ValidationBankAccountOutput.new_from_hash(hash['validationBankAccountOutput']) end end |
#to_h ⇒ Hash
29 30 31 32 33 34 35 36 |
# File 'lib/worldline/connect/sdk/v1/domain/result_do_risk_assessment.rb', line 29 def to_h hash = super hash['category'] = @category unless @category.nil? hash['result'] = @result unless @result.nil? hash['retaildecisionsCCFraudCheckOutput'] = @retaildecisions_cc_fraud_check_output.to_h unless @retaildecisions_cc_fraud_check_output.nil? hash['validationBankAccountOutput'] = @validation_bank_account_output.to_h unless @validation_bank_account_output.nil? hash end |