Class: SyncteraRubySdk::SchemasBypassableErrors

Inherits:
Object
  • Object
show all
Defined in:
lib/synctera_ruby_sdk/models/schemas_bypassable_errors.rb

Constant Summary collapse

IMPROPER_ACCOUNT_CUSTOMER_RELATIONSHIP =
"IMPROPER_ACCOUNT_CUSTOMER_RELATIONSHIP".freeze
IMPROPER_ACCOUNT_STATUS =
"IMPROPER_ACCOUNT_STATUS".freeze
IMPROPER_CUSTOMER_VERIFICATION_STATUS =
"IMPROPER_CUSTOMER_VERIFICATION_STATUS".freeze
IMPROPER_CUSTOMER_STATUS =
"IMPROPER_CUSTOMER_STATUS".freeze
IMPROPER_PARTNER_LIFECYCLE_STATUS =
"IMPROPER_PARTNER_LIFECYCLE_STATUS".freeze
IMPROPER_PARTNER_VERIFICATION_STATUS =
"IMPROPER_PARTNER_VERIFICATION_STATUS".freeze
ACCOUNT_OWNER_WATCHLIST =
"ACCOUNT_OWNER_WATCHLIST".freeze
SUSPECTED_FRAUD =
"SUSPECTED_FRAUD".freeze
SPEND_CONTROL_VIOLATION =
"SPEND_CONTROL_VIOLATION".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



28
29
30
# File 'lib/synctera_ruby_sdk/models/schemas_bypassable_errors.rb', line 28

def self.all_vars
  @all_vars ||= [IMPROPER_ACCOUNT_CUSTOMER_RELATIONSHIP, IMPROPER_ACCOUNT_STATUS, IMPROPER_CUSTOMER_VERIFICATION_STATUS, IMPROPER_CUSTOMER_STATUS, IMPROPER_PARTNER_LIFECYCLE_STATUS, IMPROPER_PARTNER_VERIFICATION_STATUS, ACCOUNT_OWNER_WATCHLIST, SUSPECTED_FRAUD, SPEND_CONTROL_VIOLATION].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



35
36
37
# File 'lib/synctera_ruby_sdk/models/schemas_bypassable_errors.rb', line 35

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



42
43
44
45
# File 'lib/synctera_ruby_sdk/models/schemas_bypassable_errors.rb', line 42

def build_from_hash(value)
  return value if SchemasBypassableErrors.all_vars.include?(value)
  raise "Invalid ENUM value #{value} for class #SchemasBypassableErrors"
end