Class: SyncteraRubySdk::DisclosureType
- Inherits:
-
Object
- Object
- SyncteraRubySdk::DisclosureType
- Defined in:
- lib/synctera_ruby_sdk/models/disclosure_type.rb
Constant Summary collapse
- ACH_AUTHORIZATION =
"ACH_AUTHORIZATION".freeze
- CARDHOLDER_AGREEMENT =
"CARDHOLDER_AGREEMENT".freeze
- E_SIGN =
"E_SIGN".freeze
- KYC_DATA_COLLECTION =
"KYC_DATA_COLLECTION".freeze
- PRIVACY_NOTICE =
"PRIVACY_NOTICE".freeze
- OWNER_CERTIFICATION =
"OWNER_CERTIFICATION".freeze
- REG_CC =
"REG_CC".freeze
- REG_DD =
"REG_DD".freeze
- REG_E =
"REG_E".freeze
- TERMS_AND_CONDITIONS =
"TERMS_AND_CONDITIONS".freeze
- SC_ACCOUNT_AGREEMENT =
"SC_ACCOUNT_AGREEMENT".freeze
- SC_SECURITY_AGREEMENT =
"SC_SECURITY_AGREEMENT".freeze
- SC_AUTO_PAYMENT =
"SC_AUTO_PAYMENT".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
32 33 34 |
# File 'lib/synctera_ruby_sdk/models/disclosure_type.rb', line 32 def self.all_vars @all_vars ||= [ACH_AUTHORIZATION, CARDHOLDER_AGREEMENT, E_SIGN, KYC_DATA_COLLECTION, PRIVACY_NOTICE, OWNER_CERTIFICATION, REG_CC, REG_DD, REG_E, TERMS_AND_CONDITIONS, SC_ACCOUNT_AGREEMENT, SC_SECURITY_AGREEMENT, SC_AUTO_PAYMENT].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
39 40 41 |
# File 'lib/synctera_ruby_sdk/models/disclosure_type.rb', line 39 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
46 47 48 49 |
# File 'lib/synctera_ruby_sdk/models/disclosure_type.rb', line 46 def build_from_hash(value) return value if DisclosureType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #DisclosureType" end |