class OpenapiClient::PaymentMethodType

Constants

ALIPAY
ALIPAY_DOMESTIC
ALIPAY_PAYSECURE_US
APM
BLIK
CONEKTA
CUP_DOMESTIC
DEBITDE
EMI
GIROPAY
IDEAL
INDIAWALLET
KLARNA
KPS
NETBANKING
PAYMENT_CARD
PAYMENT_TOKEN
PAYPAL
SEPA
SOFORT
TELECHECK
WALLET
WECHAT
WECHAT_DOMESTIC

Public Class 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/openapi_client/models/payment_method_type.rb, line 45
def self.build_from_hash(value)
  new.build_from_hash(value)
end

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/openapi_client/models/payment_method_type.rb, line 52
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