Class: Io::Flow::V0::Models::PayoutStatusFailureCode

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ PayoutStatusFailureCode

Returns a new instance of PayoutStatusFailureCode.



24922
24923
24924
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24922

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



24920
24921
24922
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24920

def value
  @value
end

Class Method Details

.ALLObject



24942
24943
24944
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24942

def PayoutStatusFailureCode.ALL
  @@all ||= [PayoutStatusFailureCode., PayoutStatusFailureCode.could_not_process]
end

.apply(value) ⇒ Object

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



24927
24928
24929
24930
24931
24932
24933
24934
# 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_processObject



24950
24951
24952
# 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) ⇒ Object

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



24937
24938
24939
24940
# 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_numberObject



24946
24947
24948
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24946

def PayoutStatusFailureCode.
  @@_invalid_account_number ||= PayoutStatusFailureCode.new('invalid_account_number')
end

Instance Method Details

#to_hashObject



24954
24955
24956
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24954

def to_hash
  value
end