class Io::Flow::V0::Models::TransactionDetailsCard
Attributes
address_verification_result[R]
cvv_result[R]
network_details[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::TransactionDetails::new
# 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
Public Instance Methods
copy(incoming={})
click to toggle source
# 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()
click to toggle source
# 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()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 71903 def to_json JSON.dump(to_hash) end