Class: PostFinanceCheckout::TransactionInvoiceState

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

Constant Summary collapse

CREATE =
'CREATE'.freeze
OPEN =
'OPEN'.freeze
OVERDUE =
'OVERDUE'.freeze
CANCELED =
'CANCELED'.freeze
'PAID'.freeze
DERECOGNIZED =
'DERECOGNIZED'.freeze
NOT_APPLICABLE =
'NOT_APPLICABLE'.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/transaction_invoice_state.rb', line 34

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