class Io::Flow::V0::Models::FraudStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20823 def FraudStatus.ALL @@all ||= [FraudStatus.pending, FraudStatus.approved, FraudStatus.declined, FraudStatus.review] end
apply(value)
click to toggle source
Returns the instance of FraudStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 20808 def FraudStatus.apply(value) if value.instance_of?(FraudStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || FraudStatus.new(value)) end end
approved()
click to toggle source
Fraud check has passed and the order is approved.
# File lib/flow_commerce/flow_api_v0_client.rb, line 20833 def FraudStatus.approved @@_approved ||= FraudStatus.new('approved') end
declined()
click to toggle source
Indicates the fraud check has been declined by the fraud providing service.
# File lib/flow_commerce/flow_api_v0_client.rb, line 20838 def FraudStatus.declined @@_declined ||= FraudStatus.new('declined') end
from_string(value)
click to toggle source
Returns the instance of FraudStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 20818 def FraudStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) FraudStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20803 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
pending()
click to toggle source
If an immediate response is not available, the state will be ‘pending’.
# File lib/flow_commerce/flow_api_v0_client.rb, line 20828 def FraudStatus.pending @@_pending ||= FraudStatus.new('pending') end
review()
click to toggle source
Indicates the fraud check decision from the fraud providing service is being reviewed.
# File lib/flow_commerce/flow_api_v0_client.rb, line 20844 def FraudStatus.review @@_review ||= FraudStatus.new('review') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 20848 def to_hash value end