Class: Straddle::Models::Customers::CustomerKYCVerification

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

Defined Under Namespace

Classes: Validations

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(validations:, codes: nil, decision: nil) ⇒ Object

Parameters:



# File 'lib/straddle/models/customers/customer_kyc_verification.rb', line 24

Instance Attribute Details

#codes ⇒ Array<String>?

Result codes from Know Your Customer (KYC) screening.

Parameters:

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

Returns:

  • (Array<String>, nil)


17
# File 'lib/straddle/models/customers/customer_kyc_verification.rb', line 17

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

#decision ⇒ Symbol, ...



22
# File 'lib/straddle/models/customers/customer_kyc_verification.rb', line 22

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

#validations ⇒ Straddle::Models::Customers::CustomerKYCVerification::Validations

Results for each Know Your Customer (KYC) validation.

Parameters:

  • value (Straddle::Customers::CustomerKYCVerification::Validations)

Returns:



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

required :validations, -> { Straddle::Customers::CustomerKYCVerification::Validations }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


30
# File 'sig/straddle/models/customers/customer_kyc_verification.rbs', line 30

def to_hash: -> {