Class: CybridApiBank::ComplianceCheckTypeBankModel

Inherits:
Object
  • Object
show all
Defined in:
lib/cybrid_api_bank_ruby/models/compliance_check_type_bank_model.rb

Constant Summary collapse

BUSINESS_WATCHLISTS =
"business_watchlists".freeze
BUSINESS_VERIFICATION =
"business_verification".freeze
BUSINESS_TAX_ID_VERIFICATION =
"business_tax_id_verification".freeze
PERSON_ATTESTED =
"person_attested".freeze
PERSON_TAX_ID_ATTESTED =
"person_tax_id_attested".freeze
PERSON_WATCHLISTS =
"person_watchlists".freeze
PERSON_VERIFICATION =
"person_verification".freeze
PERSON_AUTHENTICATION =
"person_authentication".freeze
PERSON_GOV_ID_VERIFICATION =
"person_gov_id_verification".freeze
PERSON_TAX_ID_VERIFICATION =
"person_tax_id_verification".freeze
EXTERNAL_BANK_ACCOUNT_VERIFICATION =
"external_bank_account_verification".freeze
EXTERNAL_BANK_ACCOUNT_ATTESTED =
"external_bank_account_attested".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



34
35
36
# File 'lib/cybrid_api_bank_ruby/models/compliance_check_type_bank_model.rb', line 34

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



41
42
43
44
45
# File 'lib/cybrid_api_bank_ruby/models/compliance_check_type_bank_model.rb', line 41

def build_from_hash(value)
  constantValues = ComplianceCheckTypeBankModel.constants.select { |c| ComplianceCheckTypeBankModel::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #ComplianceCheckTypeBankModel" if constantValues.empty?
  value
end