class Io::Flow::V0::Models::OrganizationPaymentMethodTag
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23913 def OrganizationPaymentMethodTag.ALL @@all ||= [OrganizationPaymentMethodTag.deny] end
apply(value)
click to toggle source
Returns the instance of OrganizationPaymentMethodTag
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 23898 def OrganizationPaymentMethodTag.apply(value) if value.instance_of?(OrganizationPaymentMethodTag) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrganizationPaymentMethodTag.new(value)) end end
deny()
click to toggle source
A denied payment method cannot be used for an organization in any experience.
# File lib/flow_commerce/flow_api_v0_client.rb, line 23918 def OrganizationPaymentMethodTag.deny @@_deny ||= OrganizationPaymentMethodTag.new('deny') end
from_string(value)
click to toggle source
Returns the instance of OrganizationPaymentMethodTag
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 23908 def OrganizationPaymentMethodTag.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrganizationPaymentMethodTag.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 23892 def initialize(value) super(:name => PaymentMethodTag::Types::ORGANIZATION_PAYMENT_METHOD_TAG, :discriminator => 'organization_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 23922 def subtype_to_hash value end