class Io::Flow::V0::Models::FulfillmentItemQuantityStatus

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20922
def FulfillmentItemQuantityStatus.ALL
  @@all ||= [FulfillmentItemQuantityStatus.new, FulfillmentItemQuantityStatus.shipped, FulfillmentItemQuantityStatus.cancelled]
end
apply(value) click to toggle source

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

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

Item will not be fulfilled.

# File lib/flow_commerce/flow_api_v0_client.rb, line 20937
def FulfillmentItemQuantityStatus.cancelled
  @@_cancelled ||= FulfillmentItemQuantityStatus.new('cancelled')
end
from_string(value) click to toggle source

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

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

Item may be shipped or cancelled

# File lib/flow_commerce/flow_api_v0_client.rb, line 20927
def FulfillmentItemQuantityStatus.new
  @@_new ||= FulfillmentItemQuantityStatus.new('new')
end
shipped() click to toggle source

Item has been packaged for shipment; can no longer be cancelled.

# File lib/flow_commerce/flow_api_v0_client.rb, line 20932
def FulfillmentItemQuantityStatus.shipped
  @@_shipped ||= FulfillmentItemQuantityStatus.new('shipped')
end

Public Instance Methods

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