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.
21557 21558 21559 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21557 def initialize(value) @value = HttpClient::Preconditions.assert_class('value', value, String) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
21555 21556 21557 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21555 def value @value end |
Class Method Details
.ALL ⇒ Object
21577 21578 21579 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21577 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
21562 21563 21564 21565 21566 21567 21568 21569 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21562 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
21585 21586 21587 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21585 def PaymentSourceConfirmationActionType.billing_address @@_billing_address ||= PaymentSourceConfirmationActionType.new('billing_address') end |
.cvv ⇒ Object
21581 21582 21583 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21581 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
21572 21573 21574 21575 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21572 def PaymentSourceConfirmationActionType.from_string(value) HttpClient::Preconditions.assert_class('value', value, String) PaymentSourceConfirmationActionType.ALL.find { |v| v.value == value } end |
.number ⇒ Object
21589 21590 21591 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21589 def PaymentSourceConfirmationActionType.number @@_number ||= PaymentSourceConfirmationActionType.new('number') end |
Instance Method Details
#to_hash ⇒ Object
21593 21594 21595 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21593 def to_hash value end |