class Io::Flow::V0::Models::ReversalStatus

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 26251
def ReversalStatus.ALL
  @@all ||= [ReversalStatus.pending, ReversalStatus.processed, ReversalStatus.failed]
end
apply(value) click to toggle source

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

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

Reversal failed to process.

# File lib/flow_commerce/flow_api_v0_client.rb, line 26266
def ReversalStatus.failed
  @@_failed ||= ReversalStatus.new('failed')
end
from_string(value) click to toggle source

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

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

Reversal is pending processing.

# File lib/flow_commerce/flow_api_v0_client.rb, line 26256
def ReversalStatus.pending
  @@_pending ||= ReversalStatus.new('pending')
end
processed() click to toggle source

Reversal has been processed successfully.

# File lib/flow_commerce/flow_api_v0_client.rb, line 26261
def ReversalStatus.processed
  @@_processed ||= ReversalStatus.new('processed')
end

Public Instance Methods

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