Class: FeratelCheckApiClient::TransactStateEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/feratel-check-api-client/models/transact_state_enum.rb

Constant Summary collapse

NO_CHECKPOINT_NOT_FOUND =
"NO_CHECKPOINT_NOT_FOUND".freeze
NO_USAGE_DEF_NOT_FOUND =
"NO_USAGE_DEF_NOT_FOUND".freeze
NO_DOUBLE_SEND =
"NO_DOUBLE_SEND".freeze
NO_DOUBLE_SEND_BOOK =
"NO_DOUBLE_SEND_BOOK".freeze
NO_DOUBLE_SEND_FIRST_USE =
"NO_DOUBLE_SEND_FIRST_USE".freeze
NO_DOUBLE_SEND_FIRST_USE_CORRECTION =
"NO_DOUBLE_SEND_FIRST_USE_CORRECTION".freeze
NO_DOUBLE_SEND_FIRST_USE_SLAVE =
"NO_DOUBLE_SEND_FIRST_USE_SLAVE".freeze
NO_CHECK_ERROR =
"NO_CHECK_ERROR".freeze
NO_TRANSACTION_DATE_NOT_VALID =
"NO_TRANSACTION_DATE_NOT_VALID".freeze
OK =
"OK".freeze
OK_BOOK =
"OK_BOOK".freeze
OK_BOOK_FIRST_USE =
"OK_BOOK_FIRST_USE".freeze
OK_FIRST_USE =
"OK_FIRST_USE".freeze
OK_FIRST_USE_CORRECTION =
"OK_FIRST_USE_CORRECTION".freeze
OK_FIRST_USE_SLAVE =
"OK_FIRST_USE_SLAVE".freeze
UNDEFINED =
"UNDEFINED".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class 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
# File 'lib/feratel-check-api-client/models/transact_state_enum.rb', line 42

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


49
50
51
52
# File 'lib/feratel-check-api-client/models/transact_state_enum.rb', line 49

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