Class: OpenapiClient::PaymentMethodType
- Inherits:
-
Object
- Object
- OpenapiClient::PaymentMethodType
- 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
- BLIK =
"BLIK".freeze
- CONEKTA =
"CONEKTA".freeze
- CUP_DOMESTIC =
"CUP_DOMESTIC".freeze
- DEBITDE =
"DEBITDE".freeze
- EMI =
"EMI".freeze
- GIROPAY =
"GIROPAY".freeze
- IDEAL =
"IDEAL".freeze
- INDIAWALLET =
"INDIAWALLET".freeze
- KLARNA =
"KLARNA".freeze
- KPS =
"KPS".freeze
- NETBANKING =
"NETBANKING".freeze
- PAYMENT_CARD =
"PAYMENT_CARD".freeze
- PAYMENT_TOKEN =
"PAYMENT_TOKEN".freeze
- PAYPAL =
"PAYPAL".freeze
- SEPA =
"SEPA".freeze
- SOFORT =
"SOFORT".freeze
- TELECHECK =
"TELECHECK".freeze
- WALLET =
"WALLET".freeze
- WECHAT =
"WECHAT".freeze
- WECHAT_DOMESTIC =
"WECHAT_DOMESTIC".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
45 46 47 |
# File 'lib/openapi_client/models/payment_method_type.rb', line 45 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
52 53 54 55 56 |
# 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 |