class Io::Flow::V0::Models::PaymentMethodDataOptionType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24367 def PaymentMethodDataOptionType.ALL @@all ||= [PaymentMethodDataOptionType.ideal_issuer_option] end
apply(value)
click to toggle source
Returns the instance of PaymentMethodDataOptionType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 24352 def PaymentMethodDataOptionType.apply(value) if value.instance_of?(PaymentMethodDataOptionType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PaymentMethodDataOptionType.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of PaymentMethodDataOptionType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 24362 def PaymentMethodDataOptionType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentMethodDataOptionType.ALL.find { |v| v.value == value } end
ideal_issuer_option()
click to toggle source
Describes the process of selecting ideal issuers options
# File lib/flow_commerce/flow_api_v0_client.rb, line 24372 def PaymentMethodDataOptionType.ideal_issuer_option @@_ideal_issuer_option ||= PaymentMethodDataOptionType.new('ideal_issuer_option') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24347 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24376 def to_hash value end