class Io::Flow::V0::Models::PaymentSourceConfirmationAction
Represents confirmation details & any additional confirmation actions required to execute the payment.
Attributes
type[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59069 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:type], 'PaymentSourceConfirmationAction') @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::PaymentSourceConfirmationActionType) ? x : ::Io::Flow::V0::Models::PaymentSourceConfirmationActionType.apply(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59079 def copy(incoming={}) PaymentSourceConfirmationAction.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59083 def to_hash { :type => type.value } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 59075 def to_json JSON.dump(to_hash) end