class BudgeaClient::PaymentState

Constants

CREATED
DONE
ERROR
EXPIRED
PENDING
REJECTED
VALIDATING

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/budgea_client/models/payment_state.rb, line 29
def build_from_hash(value)
  constantValues = PaymentState.constants.select { |c| PaymentState::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #PaymentState" if constantValues.empty?
  value
end