Class: Io::Flow::V0::Models::TransactionDetailsCard
- Inherits:
-
TransactionDetails
- Object
- TransactionDetails
- Io::Flow::V0::Models::TransactionDetailsCard
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#address_verification_result ⇒ Object
readonly
Returns the value of attribute address_verification_result.
-
#cvv_result ⇒ Object
readonly
Returns the value of attribute cvv_result.
-
#network_details ⇒ Object
readonly
Returns the value of attribute network_details.
Attributes inherited from TransactionDetails
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ TransactionDetailsCard
constructor
A new instance of TransactionDetailsCard.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from TransactionDetails
Constructor Details
#initialize(incoming = {}) ⇒ TransactionDetailsCard
Returns a new instance of TransactionDetailsCard.
71895 71896 71897 71898 71899 71900 71901 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71895 def initialize(incoming={}) super(:type => TransactionDetails::Types::TRANSACTION_DETAILS_CARD) opts = HttpClient::Helper.symbolize_keys(incoming) @address_verification_result = (x = opts.delete(:address_verification_result); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::AddressVerificationResult) ? x : ::Io::Flow::V0::Models::AddressVerificationResult.new(x))) @cvv_result = (x = opts.delete(:cvv_result); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::CvvResult) ? x : ::Io::Flow::V0::Models::CvvResult.new(x))) @network_details = (x = opts.delete(:network_details); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::TransactionNetworkDetailsCard) ? x : ::Io::Flow::V0::Models::TransactionNetworkDetailsCard.new(x))) end |
Instance Attribute Details
#address_verification_result ⇒ Object (readonly)
Returns the value of attribute address_verification_result.
71893 71894 71895 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71893 def address_verification_result @address_verification_result end |
#cvv_result ⇒ Object (readonly)
Returns the value of attribute cvv_result.
71893 71894 71895 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71893 def cvv_result @cvv_result end |
#network_details ⇒ Object (readonly)
Returns the value of attribute network_details.
71893 71894 71895 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71893 def network_details @network_details end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
71907 71908 71909 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71907 def copy(incoming={}) TransactionDetailsCard.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
71911 71912 71913 71914 71915 71916 71917 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71911 def subtype_to_hash { :address_verification_result => address_verification_result.nil? ? nil : address_verification_result.to_hash, :cvv_result => cvv_result.nil? ? nil : cvv_result.to_hash, :network_details => network_details.nil? ? nil : network_details.to_hash } end |
#to_json ⇒ Object
71903 71904 71905 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 71903 def to_json JSON.dump(to_hash) end |