class Io::Flow::V0::Models::PaymentRequestReviewCheckStatus
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24495 def PaymentRequestReviewCheckStatus.ALL @@all ||= [PaymentRequestReviewCheckStatus.passed, PaymentRequestReviewCheckStatus.failed] end
apply(value)
click to toggle source
Returns the instance of PaymentRequestReviewCheckStatus
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 24480 def PaymentRequestReviewCheckStatus.apply(value) if value.instance_of?(PaymentRequestReviewCheckStatus) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PaymentRequestReviewCheckStatus.new(value)) end end
failed()
click to toggle source
The check has failed.
# File lib/flow_commerce/flow_api_v0_client.rb, line 24505 def PaymentRequestReviewCheckStatus.failed @@_failed ||= PaymentRequestReviewCheckStatus.new('failed') end
from_string(value)
click to toggle source
Returns the instance of PaymentRequestReviewCheckStatus
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 24490 def PaymentRequestReviewCheckStatus.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentRequestReviewCheckStatus.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24475 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
passed()
click to toggle source
The check has passed.
# File lib/flow_commerce/flow_api_v0_client.rb, line 24500 def PaymentRequestReviewCheckStatus.passed @@_passed ||= PaymentRequestReviewCheckStatus.new('passed') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24509 def to_hash value end