Class: Straddle::Models::Customers::ReputationCheck

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/straddle/models/customers/reputation_check.rb,
sig/straddle/models/customers/reputation_check.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(codes: nil, decision: nil, insights: nil, risk_score: nil) ⇒ Object

Parameters:



# File 'lib/straddle/models/customers/reputation_check.rb', line 29

Instance Attribute Details

#codes ⇒ Array<String>?

Specific codes related to the Straddle reputation screening results.

Parameters:

  • value (::Array[String], nil)

Returns:

  • (Array<String>, nil)


11
# File 'lib/straddle/models/customers/reputation_check.rb', line 11

optional :codes, Straddle::Internal::Type::ArrayOf[String], nil?: true

#decision ⇒ Symbol, ...



16
# File 'lib/straddle/models/customers/reputation_check.rb', line 16

optional :decision, enum: -> { Straddle::Customers::VerificationDecision }

#insights ⇒ Straddle::Models::Customers::ReputationInsights?



21
# File 'lib/straddle/models/customers/reputation_check.rb', line 21

optional :insights, -> { Straddle::Customers::ReputationInsights }

#risk_score ⇒ Float?

Risk score produced by the reputation check.

Parameters:

  • value (Float, nil)

Returns:

  • (Float, nil)


27
# File 'lib/straddle/models/customers/reputation_check.rb', line 27

optional :risk_score, Float, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


36
# File 'sig/straddle/models/customers/reputation_check.rbs', line 36

def to_hash: -> {