class Io::Flow::V0::Models::FraudPaymentRequestReference
Attributes
reference[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::FraudOrderReference::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 43431 def initialize(incoming={}) super(:discriminator => FraudOrderReference::Types::FRAUD_PAYMENT_REQUEST_REFERENCE) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:reference], 'FraudPaymentRequestReference') @reference = (x = opts.delete(:reference); x.is_a?(::Io::Flow::V0::Models::PaymentRequestReference) ? x : ::Io::Flow::V0::Models::PaymentRequestReference.new(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43442 def copy(incoming={}) FraudPaymentRequestReference.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 43446 def subtype_to_hash { :reference => reference.to_hash } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 43438 def to_json JSON.dump(to_hash) end