class Io::Flow::V0::Models::ThreeDSecureCode
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27498 def ThreeDSecureCode.ALL @@all ||= [ThreeDSecureCode.verified, ThreeDSecureCode.not_verified, ThreeDSecureCode.failed] end
apply(value)
click to toggle source
Returns the instance of ThreeDSecureCode
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 27483 def ThreeDSecureCode.apply(value) if value.instance_of?(ThreeDSecureCode) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || ThreeDSecureCode.new(value)) end end
failed()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27510 def ThreeDSecureCode.failed @@_failed ||= ThreeDSecureCode.new('failed') end
from_string(value)
click to toggle source
Returns the instance of ThreeDSecureCode
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 27493 def ThreeDSecureCode.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) ThreeDSecureCode.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27478 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
not_verified()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27506 def ThreeDSecureCode.not_verified @@_not_verified ||= ThreeDSecureCode.new('not_verified') end
verified()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27502 def ThreeDSecureCode.verified @@_verified ||= ThreeDSecureCode.new('verified') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 27514 def to_hash value end