Class: SyncteraRubySdk::DisclosureType

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Class Method Details

.all_varsObject



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



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