Class: PostFinanceCheckout::TransactionInvoiceState
- Inherits:
-
Object
- Object
- PostFinanceCheckout::TransactionInvoiceState
- 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 =
'PAID'.freeze
- DERECOGNIZED =
'DERECOGNIZED'.freeze
- NOT_APPLICABLE =
'NOT_APPLICABLE'.freeze
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
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 |