Class: CybridApiBank::IdentityVerificationMethodBankModel
- Inherits:
-
Object
- Object
- CybridApiBank::IdentityVerificationMethodBankModel
- Defined in:
- lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb
Constant Summary collapse
- ATTESTED =
"attested".freeze
- DOCUMENT_SUBMISSION =
"document_submission".freeze
- ENHANCED_DUE_DILIGENCE =
"enhanced_due_diligence".freeze
- ID_AND_SELFIE =
"id_and_selfie".freeze
- TAX_ID_AND_SELFIE =
"tax_id_and_selfie".freeze
- BUSINESS_REGISTRATION =
"business_registration".freeze
- ATTESTED_ID_AND_SELFIE =
"attested_id_and_selfie".freeze
- ATTESTED_BUSINESS_REGISTRATION =
"attested_business_registration".freeze
- ATTESTED_BUSINESS_ASSOCIATE =
"attested_business_associate".freeze
- ATTESTED_ID_AND_DATABASE =
"attested_id_and_database".freeze
- ATTESTED_DATABASE =
"attested_database".freeze
- DATABASE =
"database".freeze
- WATCHLISTS =
"watchlists".freeze
- ATTESTED_OWNERSHIP =
"attested_ownership".freeze
- ACCOUNT_OWNERSHIP =
"account_ownership".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
34 35 36 |
# File 'lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb', line 34 def self.all_vars @all_vars ||= [ATTESTED, DOCUMENT_SUBMISSION, ENHANCED_DUE_DILIGENCE, ID_AND_SELFIE, TAX_ID_AND_SELFIE, BUSINESS_REGISTRATION, ATTESTED_ID_AND_SELFIE, ATTESTED_BUSINESS_REGISTRATION, ATTESTED_BUSINESS_ASSOCIATE, ATTESTED_ID_AND_DATABASE, ATTESTED_DATABASE, DATABASE, WATCHLISTS, ATTESTED_OWNERSHIP, ACCOUNT_OWNERSHIP].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
41 42 43 |
# File 'lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb', line 41 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
48 49 50 51 |
# File 'lib/cybrid_api_bank_ruby/models/identity_verification_method_bank_model.rb', line 48 def build_from_hash(value) return value if IdentityVerificationMethodBankModel.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #IdentityVerificationMethodBankModel" end |