class Io::Flow::V0::Models::OrderMerchantOfRecord

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23092
def OrderMerchantOfRecord.ALL
  @@all ||= [OrderMerchantOfRecord.flow, OrderMerchantOfRecord.organization, OrderMerchantOfRecord.mixed]
end
apply(value) click to toggle source

Returns the instance of OrderMerchantOfRecord for this value, creating a new instance for an unknown value

# File lib/flow_commerce/flow_api_v0_client.rb, line 23077
def OrderMerchantOfRecord.apply(value)
  if value.instance_of?(OrderMerchantOfRecord)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || OrderMerchantOfRecord.new(value))
  end
end
flow() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23096
def OrderMerchantOfRecord.flow
  @@_flow ||= OrderMerchantOfRecord.new('flow')
end
from_string(value) click to toggle source

Returns the instance of OrderMerchantOfRecord for this value, or nil if not found

# File lib/flow_commerce/flow_api_v0_client.rb, line 23087
def OrderMerchantOfRecord.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  OrderMerchantOfRecord.ALL.find { |v| v.value == value }
end
mixed() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23104
def OrderMerchantOfRecord.mixed
  @@_mixed ||= OrderMerchantOfRecord.new('mixed')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23072
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
organization() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23100
def OrderMerchantOfRecord.organization
  @@_organization ||= OrderMerchantOfRecord.new('organization')
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23108
def to_hash
  value
end