Class: TransferZero::PayoutMethodPixKeyTypeEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/transferzero-sdk/models/payout_method_pix_key_type_enum.rb

Constant Summary collapse

CPF =
"cpf".freeze
CNPJ =
"cnpj".freeze
PHONE =
"phone".freeze
EMAIL =
"email".freeze
EVP =
"evp".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



27
28
29
30
31
# File 'lib/transferzero-sdk/models/payout_method_pix_key_type_enum.rb', line 27

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