class Io::Flow::V0::Models::PayoutStatusFailureCode

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24942
def PayoutStatusFailureCode.ALL
  @@all ||= [PayoutStatusFailureCode.invalid_account_number, PayoutStatusFailureCode.could_not_process]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 24927
def PayoutStatusFailureCode.apply(value)
  if value.instance_of?(PayoutStatusFailureCode)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || PayoutStatusFailureCode.new(value))
  end
end
could_not_process() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24950
def PayoutStatusFailureCode.could_not_process
  @@_could_not_process ||= PayoutStatusFailureCode.new('could_not_process')
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 24937
def PayoutStatusFailureCode.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  PayoutStatusFailureCode.ALL.find { |v| v.value == value }
end
invalid_account_number() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24946
def PayoutStatusFailureCode.invalid_account_number
  @@_invalid_account_number ||= PayoutStatusFailureCode.new('invalid_account_number')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24922
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 24954
def to_hash
  value
end