class Io::Flow::V0::Models::RefundDeclineCode
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25778 def RefundDeclineCode.ALL @@all ||= [RefundDeclineCode.expired, RefundDeclineCode.insufficient_funds, RefundDeclineCode.unknown] end
apply(value)
click to toggle source
Returns the instance of RefundDeclineCode
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 25763 def RefundDeclineCode.apply(value) if value.instance_of?(RefundDeclineCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || RefundDeclineCode.new(value)) end end
expired()
click to toggle source
All associated payment captures have expired; refunds can no longer be issued
# File lib/flow_commerce/flow_api_v0_client.rb, line 25783 def RefundDeclineCode.expired @@_expired ||= RefundDeclineCode.new('expired') end
from_string(value)
click to toggle source
Returns the instance of RefundDeclineCode
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 25773 def RefundDeclineCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) RefundDeclineCode.ALL.find { |v| v.value == value } end
insufficient_funds()
click to toggle source
The requested refund amount exceeded the amount of remaining unrefunded funds
# File lib/flow_commerce/flow_api_v0_client.rb, line 25788 def RefundDeclineCode.insufficient_funds @@_insufficient_funds ||= RefundDeclineCode.new('insufficient_funds') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25758 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
unknown()
click to toggle source
Failed due to another reason (details not known)
# File lib/flow_commerce/flow_api_v0_client.rb, line 25793 def RefundDeclineCode.unknown @@_unknown ||= RefundDeclineCode.new('unknown') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 25797 def to_hash value end