Class: Wallee::DebtCollectionCaseState

Inherits:
Object
  • Object
show all
Defined in:
lib/wallee-ruby-sdk/models/debt_collection_case_state.rb

Constant Summary collapse

CREATE =
'CREATE'.freeze
PREPARING =
'PREPARING'.freeze
REVIEWING =
'REVIEWING'.freeze
PENDING =
'PENDING'.freeze
PROCESSING =
'PROCESSING'.freeze
CLOSED =
'CLOSED'.freeze
FAILED =
'FAILED'.freeze

Instance Method Summary collapse

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



34
35
36
37
38
# File 'lib/wallee-ruby-sdk/models/debt_collection_case_state.rb', line 34

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