class Io::Flow::V0::Models::PaymentMethodStoredDetailsCardInitial
Indicates that this transaction is the first in a sequence.
Attributes
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 57871 def initialize(incoming={}) super(:type => PaymentMethodStoredDetailsCard::Types::PAYMENT_METHOD_STORED_DETAILS_CARD_INITIAL) opts = HttpClient::Helper.symbolize_keys(incoming) @reference = (x = opts.delete(:reference); x.nil? ? nil : HttpClient::Preconditions.assert_class('reference', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57881 def copy(incoming={}) PaymentMethodStoredDetailsCardInitial.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 57885 def subtype_to_hash { :reference => reference } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57877 def to_json JSON.dump(to_hash) end