Class: WhiteLabelMachineName::TokenizationMode

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

Constant Summary collapse

FORCE_UPDATE =
'FORCE_UPDATE'.freeze
FORCE_CREATION =
'FORCE_CREATION'.freeze
FORCE_CREATION_WITH_ONE_CLICK_PAYMENT =
'FORCE_CREATION_WITH_ONE_CLICK_PAYMENT'.freeze
ALLOW_ONE_CLICK_PAYMENT =
'ALLOW_ONE_CLICK_PAYMENT'.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



31
32
33
34
35
# File 'lib/whitelabelmachinename-ruby-sdk/models/tokenization_mode.rb', line 31

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