Class: TransferZero::PayinMethodUxFlow

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

Constant Summary collapse

USSD_POPUP =
"ussd_popup".freeze
USSD_VOUCHER =
"ussd_voucher".freeze
USSD_MENU_APPROVAL =
"ussd_menu_approval".freeze
OTP_VERIFIED_USSD_POPUP =
"otp_verified_ussd_popup".freeze
BANK_TRANSFER =
"bank_transfer".freeze
HTTP_REDIRECT =
"http_redirect".freeze
BLOCKCHAIN =
"blockchain".freeze
UNKNOWN =
"unknown".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



30
31
32
33
34
# File 'lib/transferzero-sdk/models/payin_method_ux_flow.rb', line 30

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