class Io::Flow::V0::Models::PaymentMethodStoredDetailsCardSubsequent
Indicates that this is a transaction with a previously stored card. In those cases, CVV may not be required, but additional information can help ensure that the transaction is approved.
Attributes
previous_transaction_details[R]
reference[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::PaymentMethodStoredDetailsCard::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 57900 def initialize(incoming={}) super(:type => PaymentMethodStoredDetailsCard::Types::PAYMENT_METHOD_STORED_DETAILS_CARD_SUBSEQUENT) opts = HttpClient::Helper.symbolize_keys(incoming) @reference = (x = opts.delete(:reference); x.nil? ? nil : HttpClient::Preconditions.assert_class('reference', x, String)) @previous_transaction_details = (x = opts.delete(:previous_transaction_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 57911 def copy(incoming={}) PaymentMethodStoredDetailsCardSubsequent.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 57915 def subtype_to_hash { :reference => reference, :previous_transaction_details => previous_transaction_details.nil? ? nil : previous_transaction_details.to_hash } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57907 def to_json JSON.dump(to_hash) end