class Io::Flow::V0::Models::LabelRequestMethod

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21840
def LabelRequestMethod.ALL
  @@all ||= [LabelRequestMethod.flow_web_sync, LabelRequestMethod.channel_web_async, LabelRequestMethod.direct_api_sync, LabelRequestMethod.direct_api_async, LabelRequestMethod.bridge_api_sync, LabelRequestMethod.partner_api_sync, LabelRequestMethod.notification_requiring_crossdock, LabelRequestMethod.autogenerated]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 21825
def LabelRequestMethod.apply(value)
  if value.instance_of?(LabelRequestMethod)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || LabelRequestMethod.new(value))
  end
end
autogenerated() click to toggle source

Label was provided by an event condition in our system (e.g. Fraud Clearance or Order Received)

# File lib/flow_commerce/flow_api_v0_client.rb, line 21881
def LabelRequestMethod.autogenerated
  @@_autogenerated ||= LabelRequestMethod.new('autogenerated')
end
bridge_api_sync() click to toggle source

Label was provided by the Global-e Bridge

# File lib/flow_commerce/flow_api_v0_client.rb, line 21865
def LabelRequestMethod.bridge_api_sync
  @@_bridge_api_sync ||= LabelRequestMethod.new('bridge_api_sync')
end
channel_web_async() click to toggle source

Label was provided by Shopify

# File lib/flow_commerce/flow_api_v0_client.rb, line 21850
def LabelRequestMethod.channel_web_async
  @@_channel_web_async ||= LabelRequestMethod.new('channel_web_async')
end
direct_api_async() click to toggle source

Label was provided by third party directly integrated with our async API

# File lib/flow_commerce/flow_api_v0_client.rb, line 21860
def LabelRequestMethod.direct_api_async
  @@_direct_api_async ||= LabelRequestMethod.new('direct_api_async')
end
direct_api_sync() click to toggle source

Label was provided by third party directly integrated with our sync API

# File lib/flow_commerce/flow_api_v0_client.rb, line 21855
def LabelRequestMethod.direct_api_sync
  @@_direct_api_sync ||= LabelRequestMethod.new('direct_api_sync')
end
flow_web_sync() click to toggle source

Label was provided by the Flow Console

# File lib/flow_commerce/flow_api_v0_client.rb, line 21845
def LabelRequestMethod.flow_web_sync
  @@_flow_web_sync ||= LabelRequestMethod.new('flow_web_sync')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 21835
def LabelRequestMethod.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  LabelRequestMethod.ALL.find { |v| v.value == value }
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21820
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
notification_requiring_crossdock() click to toggle source

Label was provided by an external logistics provider going to a crossdock

# File lib/flow_commerce/flow_api_v0_client.rb, line 21875
def LabelRequestMethod.notification_requiring_crossdock
  @@_notification_requiring_crossdock ||= LabelRequestMethod.new('notification_requiring_crossdock')
end
partner_api_sync() click to toggle source

Label was provided by non-Global-e logistics partner

# File lib/flow_commerce/flow_api_v0_client.rb, line 21870
def LabelRequestMethod.partner_api_sync
  @@_partner_api_sync ||= LabelRequestMethod.new('partner_api_sync')
end

Public Instance Methods

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