class Io::Flow::V0::Models::AddressVerificationResultFieldCode

Attributes

value[R]

Public Class Methods

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

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

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

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

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

Issuer does not support address verification or a technical issue occurred

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

Issuer did not perform address verification

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

Public Instance Methods

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