class Io::Flow::V0::Models::OrganizationStatus

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23952
def OrganizationStatus.ALL
  @@all ||= [OrganizationStatus.active, OrganizationStatus.inactive, OrganizationStatus.deactivated, OrganizationStatus.provisioned]
end
active() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23956
def OrganizationStatus.active
  @@_active ||= OrganizationStatus.new('active')
end
apply(value) click to toggle source

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

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

Manually deactivated

# File lib/flow_commerce/flow_api_v0_client.rb, line 23967
def OrganizationStatus.deactivated
  @@_deactivated ||= OrganizationStatus.new('deactivated')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 23947
def OrganizationStatus.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  OrganizationStatus.ALL.find { |v| v.value == value }
end
inactive() click to toggle source

Determined by usage: ex: orders placed, experience updated, catalog items updated, etc…

# File lib/flow_commerce/flow_api_v0_client.rb, line 23962
def OrganizationStatus.inactive
  @@_inactive ||= OrganizationStatus.new('inactive')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 23932
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
provisioned() click to toggle source

Created but not ready for transactions.

# File lib/flow_commerce/flow_api_v0_client.rb, line 23972
def OrganizationStatus.provisioned
  @@_provisioned ||= OrganizationStatus.new('provisioned')
end

Public Instance Methods

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