class Io::Flow::V0::Models::EcommercePlatformType

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19105
def EcommercePlatformType.ALL
  @@all ||= [EcommercePlatformType.commercetools, EcommercePlatformType.custom, EcommercePlatformType.hybris, EcommercePlatformType.magento, EcommercePlatformType.shopify, EcommercePlatformType.shopify_markets, EcommercePlatformType.sfcc, EcommercePlatformType.solidus, EcommercePlatformType.workarea]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 19090
def EcommercePlatformType.apply(value)
  if value.instance_of?(EcommercePlatformType)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || EcommercePlatformType.new(value))
  end
end
commercetools() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19109
def EcommercePlatformType.commercetools
  @@_commercetools ||= EcommercePlatformType.new('commercetools')
end
custom() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19113
def EcommercePlatformType.custom
  @@_custom ||= EcommercePlatformType.new('custom')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 19100
def EcommercePlatformType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  EcommercePlatformType.ALL.find { |v| v.value == value }
end
hybris() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19117
def EcommercePlatformType.hybris
  @@_hybris ||= EcommercePlatformType.new('hybris')
end
magento() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19121
def EcommercePlatformType.magento
  @@_magento ||= EcommercePlatformType.new('magento')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19085
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
sfcc() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19135
def EcommercePlatformType.sfcc
  @@_sfcc ||= EcommercePlatformType.new('sfcc')
end
shopify() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19125
def EcommercePlatformType.shopify
  @@_shopify ||= EcommercePlatformType.new('shopify')
end
shopify_markets() click to toggle source

Indicates that the organization is participating in the Shopify Markets channel - See

# File lib/flow_commerce/flow_api_v0_client.rb, line 19131
def EcommercePlatformType.shopify_markets
  @@_shopify_markets ||= EcommercePlatformType.new('shopify_markets')
end
solidus() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19139
def EcommercePlatformType.solidus
  @@_solidus ||= EcommercePlatformType.new('solidus')
end
workarea() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 19143
def EcommercePlatformType.workarea
  @@_workarea ||= EcommercePlatformType.new('workarea')
end

Public Instance Methods

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