class Io::Flow::V0::Models::FulfillmentRouting
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21056 def FulfillmentRouting.ALL @@all ||= [FulfillmentRouting.fulfilled_from_center, FulfillmentRouting.fulfillment_service] end
apply(value)
click to toggle source
Returns the instance of FulfillmentRouting
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 21041 def FulfillmentRouting.apply(value) if value.instance_of?(FulfillmentRouting) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || FulfillmentRouting.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of FulfillmentRouting
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 21051 def FulfillmentRouting.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) FulfillmentRouting.ALL.find { |v| v.value == value } end
fulfilled_from_center()
click to toggle source
Fulfillment
should occur from the center listed in the delivery.
# File lib/flow_commerce/flow_api_v0_client.rb, line 21061 def FulfillmentRouting.fulfilled_from_center @@_fulfilled_from_center ||= FulfillmentRouting.new('fulfilled_from_center') end
fulfillment_service()
click to toggle source
Fulfillment
is going to be performed by a service with multiple fulfillment locations. It is not guaranteed that the center identified with this delivery will be used.
# File lib/flow_commerce/flow_api_v0_client.rb, line 21068 def FulfillmentRouting.fulfillment_service @@_fulfillment_service ||= FulfillmentRouting.new('fulfillment_service') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21036 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 21072 def to_hash value end