class Io::Flow::V0::Models::ExperiencePaymentMethodTag
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20322 def ExperiencePaymentMethodTag.ALL @@all ||= [ExperiencePaymentMethodTag.display] end
apply(value)
click to toggle source
Returns the instance of ExperiencePaymentMethodTag
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 20307 def ExperiencePaymentMethodTag.apply(value) if value.instance_of?(ExperiencePaymentMethodTag) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ExperiencePaymentMethodTag.new(value)) end end
display()
click to toggle source
A displayed payment method will be highlighted during the checkout process for an experience.
# File lib/flow_commerce/flow_api_v0_client.rb, line 20328 def ExperiencePaymentMethodTag.display @@_display ||= ExperiencePaymentMethodTag.new('display') end
from_string(value)
click to toggle source
Returns the instance of ExperiencePaymentMethodTag
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 20317 def ExperiencePaymentMethodTag.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ExperiencePaymentMethodTag.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
Calls superclass method
Io::Flow::V0::Models::PaymentMethodTag::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 20301 def initialize(value) super(:name => PaymentMethodTag::Types::EXPERIENCE_PAYMENT_METHOD_TAG, :discriminator => 'experience_payment_method_tag') @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20332 def subtype_to_hash value end