Class: Wallee::InstallmentPaymentSliceState

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

Constant Summary collapse

CREATE =
'CREATE'.freeze
SCHEDULED =
'SCHEDULED'.freeze
CANCELED =
'CANCELED'.freeze
PREPARE_PROCESSING =
'PREPARE_PROCESSING'.freeze
PROCESSING =
'PROCESSING'.freeze
FAILED =
'FAILED'.freeze
SUCCESSFUL =
'SUCCESSFUL'.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/installment_payment_slice_state.rb', line 34

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