class Io::Flow::V0::Models::CvvResultCode

Attributes

value[R]

Public Class Methods

ALL() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18454
def CvvResultCode.ALL
  @@all ||= [CvvResultCode.matched, CvvResultCode.not_available, CvvResultCode.not_checked, CvvResultCode.not_matched]
end
apply(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 18439
def CvvResultCode.apply(value)
  if value.instance_of?(CvvResultCode)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || CvvResultCode.new(value))
  end
end
from_string(value) click to toggle source

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

# File lib/flow_commerce/flow_api_v0_client.rb, line 18449
def CvvResultCode.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  CvvResultCode.ALL.find { |v| v.value == value }
end
matched() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18458
def CvvResultCode.matched
  @@_matched ||= CvvResultCode.new('matched')
end
new(value) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18434
def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end
not_available() click to toggle source

Cvv verification could not be performed due to a technical issue

# File lib/flow_commerce/flow_api_v0_client.rb, line 18463
def CvvResultCode.not_available
  @@_not_available ||= CvvResultCode.new('not_available')
end
not_checked() click to toggle source

Issuer did not perform cvv verification

# File lib/flow_commerce/flow_api_v0_client.rb, line 18468
def CvvResultCode.not_checked
  @@_not_checked ||= CvvResultCode.new('not_checked')
end
not_matched() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18472
def CvvResultCode.not_matched
  @@_not_matched ||= CvvResultCode.new('not_matched')
end

Public Instance Methods

to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 18476
def to_hash
  value
end