class Io::Flow::V0::Models::ShipmentIntegrationType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26479 def ShipmentIntegrationType.ALL @@all ||= [ShipmentIntegrationType.direct, ShipmentIntegrationType.information, ShipmentIntegrationType.preadvice] end
apply(value)
click to toggle source
Returns the instance of ShipmentIntegrationType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 26464 def ShipmentIntegrationType.apply(value) if value.instance_of?(ShipmentIntegrationType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ShipmentIntegrationType.new(value)) end end
direct()
click to toggle source
Always generate a label for the chosen delivery option.
# File lib/flow_commerce/flow_api_v0_client.rb, line 26484 def ShipmentIntegrationType.direct @@_direct ||= ShipmentIntegrationType.new('direct') end
from_string(value)
click to toggle source
Returns the instance of ShipmentIntegrationType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 26474 def ShipmentIntegrationType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ShipmentIntegrationType.ALL.find { |v| v.value == value } end
information()
click to toggle source
Booking and label generation is not available. Just use Flow
to calculate delivery window estimates and shipment prices to display.
# File lib/flow_commerce/flow_api_v0_client.rb, line 26490 def ShipmentIntegrationType.information @@_information ||= ShipmentIntegrationType.new('information') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26459 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
preadvice()
click to toggle source
A generic label will be provided by the client organization when available as pre-advice shipment notification to carrier partner.
# File lib/flow_commerce/flow_api_v0_client.rb, line 26496 def ShipmentIntegrationType.preadvice @@_preadvice ||= ShipmentIntegrationType.new('preadvice') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26500 def to_hash value end