class Io::Flow::V0::Models::OrderQuoteLineErrorCode
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23638 def OrderQuoteLineErrorCode.ALL @@all ||= [OrderQuoteLineErrorCode.line_item_number_invalid, OrderQuoteLineErrorCode.line_item_number_not_available, OrderQuoteLineErrorCode.line_quantity_invalid, OrderQuoteLineErrorCode.line_value_threshold_exceeded] end
apply(value)
click to toggle source
Returns the instance of OrderQuoteLineErrorCode
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 23623 def OrderQuoteLineErrorCode.apply(value) if value.instance_of?(OrderQuoteLineErrorCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || OrderQuoteLineErrorCode.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of OrderQuoteLineErrorCode
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 23633 def OrderQuoteLineErrorCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) OrderQuoteLineErrorCode.ALL.find { |v| v.value == value } end
line_item_number_invalid()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23642 def OrderQuoteLineErrorCode.line_item_number_invalid @@_line_item_number_invalid ||= OrderQuoteLineErrorCode.new('line_item_number_invalid') end
line_item_number_not_available()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23646 def OrderQuoteLineErrorCode.line_item_number_not_available @@_line_item_number_not_available ||= OrderQuoteLineErrorCode.new('line_item_number_not_available') end
line_quantity_invalid()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23650 def OrderQuoteLineErrorCode.line_quantity_invalid @@_line_quantity_invalid ||= OrderQuoteLineErrorCode.new('line_quantity_invalid') end
line_value_threshold_exceeded()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23654 def OrderQuoteLineErrorCode.line_value_threshold_exceeded @@_line_value_threshold_exceeded ||= OrderQuoteLineErrorCode.new('line_value_threshold_exceeded') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23618 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 23658 def to_hash value end