class Io::Flow::V0::Models::PaymentSourceConfirmationActionType
Attributes
value[R]
Public Class Methods
ALL()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24671 def PaymentSourceConfirmationActionType.ALL @@all ||= [PaymentSourceConfirmationActionType.cvv, PaymentSourceConfirmationActionType.billing_address, PaymentSourceConfirmationActionType.number] end
apply(value)
click to toggle source
Returns the instance of PaymentSourceConfirmationActionType
for this value, creating a new instance for an unknown value
# File lib/flow_commerce/flow_api_v0_client.rb, line 24656 def PaymentSourceConfirmationActionType.apply(value) if value.instance_of?(PaymentSourceConfirmationActionType) value else HttpClient::Preconditions.assert_class_or_nil('value', value, String) value.nil? ? nil : (from_string(value) || PaymentSourceConfirmationActionType.new(value)) end end
billing_address()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24679 def PaymentSourceConfirmationActionType.billing_address @@_billing_address ||= PaymentSourceConfirmationActionType.new('billing_address') end
cvv()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24675 def PaymentSourceConfirmationActionType.cvv @@_cvv ||= PaymentSourceConfirmationActionType.new('cvv') end
from_string(value)
click to toggle source
Returns the instance of PaymentSourceConfirmationActionType
for this value, or nil if not found
# File lib/flow_commerce/flow_api_v0_client.rb, line 24666 def PaymentSourceConfirmationActionType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentSourceConfirmationActionType.ALL.find { |v| v.value == value } end
new(value)
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24651 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end
number()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24683 def PaymentSourceConfirmationActionType.number @@_number ||= PaymentSourceConfirmationActionType.new('number') end
Public Instance Methods
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 24687 def to_hash value end