Class: Io::Flow::V0::Models::PayoutStatusFailureCode
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PayoutStatusFailureCode
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of PayoutStatusFailureCode for this value, creating a new instance for an unknown value.
- .could_not_process ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of PayoutStatusFailureCode for this value, or nil if not found.
- .invalid_account_number ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ PayoutStatusFailureCode
constructor
A new instance of PayoutStatusFailureCode.
- #to_hash ⇒ Object
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
#value ⇒ Object (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
.ALL ⇒ Object
24942 24943 24944 |
# 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) ⇒ 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_process ⇒ Object
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_number ⇒ Object
24946 24947 24948 |
# 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 |
Instance Method Details
#to_hash ⇒ Object
24954 24955 24956 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24954 def to_hash value end |