Class: Wallee::InstallmentPaymentState

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

Constant Summary collapse

CREATE =
'CREATE'.freeze
CONFIRMED =
'CONFIRMED'.freeze
AUTHORIZED =
'AUTHORIZED'.freeze
REJECTED =
'REJECTED'.freeze
COMPLETED =
'COMPLETED'.freeze
RUNNING =
'RUNNING'.freeze
DONE =
'DONE'.freeze
DEFAULTED =
'DEFAULTED'.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



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

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