Class: OpenapiClient::PaymentMethodType

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_client/models/payment_method_type.rb

Constant Summary collapse

ALIPAY =
'ALIPAY'.freeze
ALIPAY_PAYSECURE_US =
'ALIPAY_PAYSECURE_US'.freeze
ALIPAY_DOMESTIC =
'ALIPAY_DOMESTIC'.freeze
APM =
'APM'.freeze
CUP_DOMESTIC =
'CUP_DOMESTIC'.freeze
DEBITDE =
'DEBITDE'.freeze
EMI =
'EMI'.freeze
GIROPAY =
'GIROPAY'.freeze
IDEAL =
'IDEAL'.freeze
INDIAWALLET =
'INDIAWALLET'.freeze
KLARNA =
'KLARNA'.freeze
NETBANKING =
'NETBANKING'.freeze
PAYMENT_CARD =
'PAYMENT_CARD'.freeze
PAYMENT_TOKEN =
'PAYMENT_TOKEN'.freeze
PAYPAL =
'PAYPAL'.freeze
SEPA =
'SEPA'.freeze
SOFORT =
'SOFORT'.freeze
WALLET =
'WALLET'.freeze
WECHAT_DOMESTIC =
'WECHAT_DOMESTIC'.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



41
42
43
44
45
# File 'lib/openapi_client/models/payment_method_type.rb', line 41

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