Class: Io::Flow::V0::Models::PaymentSourceConfirmationActionType
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::PaymentSourceConfirmationActionType
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
- .ALL ⇒ Object
-
.apply(value) ⇒ Object
Returns the instance of PaymentSourceConfirmationActionType for this value, creating a new instance for an unknown value.
- .billing_address ⇒ Object
- .cvv ⇒ Object
-
.from_string(value) ⇒ Object
Returns the instance of PaymentSourceConfirmationActionType for this value, or nil if not found.
- .number ⇒ Object
Instance Method Summary collapse
-
#initialize(value) ⇒ PaymentSourceConfirmationActionType
constructor
A new instance of PaymentSourceConfirmationActionType.
- #to_hash ⇒ Object
Constructor Details
#initialize(value) ⇒ PaymentSourceConfirmationActionType
Returns a new instance of PaymentSourceConfirmationActionType.
17787 17788 17789 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17787 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
17785 17786 17787 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17785 def value @value end |
Class Method Details
.ALL ⇒ Object
17807 17808 17809 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17807 def PaymentSourceConfirmationActionType.ALL @@all ||= [PaymentSourceConfirmationActionType.cvv, PaymentSourceConfirmationActionType.billing_address, PaymentSourceConfirmationActionType.number] end |
.apply(value) ⇒ Object
Returns the instance of PaymentSourceConfirmationActionType for this value, creating a new instance for an unknown value
17792 17793 17794 17795 17796 17797 17798 17799 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17792 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 ⇒ Object
17815 17816 17817 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17815 def PaymentSourceConfirmationActionType.billing_address @@_billing_address ||= PaymentSourceConfirmationActionType.new('billing_address') end |
.cvv ⇒ Object
17811 17812 17813 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17811 def PaymentSourceConfirmationActionType.cvv @@_cvv ||= PaymentSourceConfirmationActionType.new('cvv') end |
.from_string(value) ⇒ Object
Returns the instance of PaymentSourceConfirmationActionType for this value, or nil if not found
17802 17803 17804 17805 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17802 def PaymentSourceConfirmationActionType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentSourceConfirmationActionType.ALL.find { |v| v.value == value } end |
.number ⇒ Object
17819 17820 17821 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17819 def PaymentSourceConfirmationActionType.number @@_number ||= PaymentSourceConfirmationActionType.new('number') end |
Instance Method Details
#to_hash ⇒ Object
17823 17824 17825 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 17823 def to_hash value end |