class Io::Flow::V0::Models::PaymentMethodDataAuthorizeApplepay
Attributes
result[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::PaymentMethodData::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 57118 def initialize(incoming={}) super(:type => PaymentMethodData::Types::PAYMENT_METHOD_DATA_AUTHORIZE_APPLEPAY) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:result], 'PaymentMethodDataAuthorizeApplepay') @result = (x = opts.delete(:result); x.is_a?(::Io::Flow::V0::Models::PaymentMethodDataAuthorizeApplepayResult) ? x : ::Io::Flow::V0::Models::PaymentMethodDataAuthorizeApplepayResult.from_json(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57129 def copy(incoming={}) PaymentMethodDataAuthorizeApplepay.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 57133 def subtype_to_hash { :result => result.to_hash } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57125 def to_json JSON.dump(to_hash) end