class Io::Flow::V0::Models::MerchantRejectedReason
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22532 def MerchantRejectedReason.ALL @@all ||= [MerchantRejectedReason.merchant_ubo_is_pep, MerchantRejectedReason.merchant_catalog_is_unsupportable, MerchantRejectedReason.merchant_failed_kyb_review] end
apply(value)
click to toggle source
Returns the instance of MerchantRejectedReason
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 22517 def MerchantRejectedReason.apply(value) if value.instance_of?(MerchantRejectedReason) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || MerchantRejectedReason.new(value)) end end
from_string(value)
click to toggle source
Returns the instance of MerchantRejectedReason
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 22527 def MerchantRejectedReason.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) MerchantRejectedReason.ALL.find { |v| v.value == value } end
merchant_catalog_is_unsupportable()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22540 def MerchantRejectedReason.merchant_catalog_is_unsupportable @@_merchant_catalog_is_unsupportable ||= MerchantRejectedReason.new('merchant_catalog_is_unsupportable') end
merchant_failed_kyb_review()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22544 def MerchantRejectedReason.merchant_failed_kyb_review @@_merchant_failed_kyb_review ||= MerchantRejectedReason.new('merchant_failed_kyb_review') end
merchant_ubo_is_pep()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22536 def MerchantRejectedReason.merchant_ubo_is_pep @@_merchant_ubo_is_pep ||= MerchantRejectedReason.new('merchant_ubo_is_pep') end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22512 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 22548 def to_hash value end