class Io::Flow::V0::Models::ReturnItemStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25927 def ReturnItemStatus.ALL @@all ||= [ReturnItemStatus.returnable, ReturnItemStatus.non_returnable] end
apply(value)
click to toggle source
Returns the instance of ReturnItemStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 25912 def ReturnItemStatus.apply(value) if value.instance_of?(ReturnItemStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ReturnItemStatus.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of ReturnItemStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 25922 def ReturnItemStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ReturnItemStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25907 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
non_returnable()
click to toggle source
The item in the catalog cannot be returned
# File lib/flow_commerce/flow_api_v0_client.rb, line 25937 def ReturnItemStatus.non_returnable @@_non_returnable ||= ReturnItemStatus.new('non-returnable') end
returnable()
click to toggle source
The item in the catalog can be returned
# File lib/flow_commerce/flow_api_v0_client.rb, line 25932 def ReturnItemStatus.returnable @@_returnable ||= ReturnItemStatus.new('returnable') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25941 def to_hash value end