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.
18657 18658 18659 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18657 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
18655 18656 18657 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18655 def value @value end |
Class Method Details
.ALL ⇒ Object
18677 18678 18679 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18677 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
18662 18663 18664 18665 18666 18667 18668 18669 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18662 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
18685 18686 18687 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18685 def PaymentSourceConfirmationActionType.billing_address @@_billing_address ||= PaymentSourceConfirmationActionType.new('billing_address') end |
.cvv ⇒ Object
18681 18682 18683 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18681 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
18672 18673 18674 18675 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18672 def PaymentSourceConfirmationActionType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentSourceConfirmationActionType.ALL.find { |v| v.value == value } end |
.number ⇒ Object
18689 18690 18691 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18689 def PaymentSourceConfirmationActionType.number @@_number ||= PaymentSourceConfirmationActionType.new('number') end |
Instance Method Details
#to_hash ⇒ Object
18693 18694 18695 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 18693 def to_hash value end |