class Io::Flow::V0::Models::CvvCode
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18400 def CvvCode.ALL @@all ||= [CvvCode.match, CvvCode.suspicious, CvvCode.unsupported, CvvCode.no_match] end
apply(value)
click to toggle source
Returns the instance of CvvCode
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 18385 def CvvCode.apply(value) if value.instance_of?(CvvCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || CvvCode.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of CvvCode
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 18395 def CvvCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) CvvCode.ALL.find { |v| v.value == value } end
match()
click to toggle source
CVV matches
# File lib/flow_commerce/flow_api_v0_client.rb, line 18405 def CvvCode.match @@_match ||= CvvCode.new('match') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18380 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
no_match()
click to toggle source
CVV did not match; Specific reason not available
# File lib/flow_commerce/flow_api_v0_client.rb, line 18420 def CvvCode.no_match @@_no_match ||= CvvCode.new('no_match') end
suspicious()
click to toggle source
CVV did not match; Transaction
is possibly fraudulent
# File lib/flow_commerce/flow_api_v0_client.rb, line 18410 def CvvCode.suspicious @@_suspicious ||= CvvCode.new('suspicious') end
unsupported()
click to toggle source
CVV did not match; Issuer does not support card verification numbers
# File lib/flow_commerce/flow_api_v0_client.rb, line 18415 def CvvCode.unsupported @@_unsupported ||= CvvCode.new('unsupported') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18424 def to_hash value end