Class: PostFinanceCheckout::PaymentInitiationAdviceFileState

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

Constant Summary collapse

CREATING =
'CREATING'.freeze
FAILED =
'FAILED'.freeze
CREATED =
'CREATED'.freeze
OVERDUE =
'OVERDUE'.freeze
UPLOADED =
'UPLOADED'.freeze
DOWNLOADED =
'DOWNLOADED'.freeze
PROCESSED =
'PROCESSED'.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/postfinancecheckout-ruby-sdk/models/payment_initiation_advice_file_state.rb', line 34

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