class Io::Flow::V0::Models::PaymentPaymentRequestReference
Attributes
payment_request_id[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::PaymentOrderReference::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 58265 def initialize(incoming={}) super(:discriminator => PaymentOrderReference::Types::PAYMENT_PAYMENT_REQUEST_REFERENCE) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:payment_request_id], 'PaymentPaymentRequestReference') @payment_request_id = HttpClient::Preconditions.assert_class('payment_request_id', opts.delete(:payment_request_id), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 58276 def copy(incoming={}) PaymentPaymentRequestReference.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 58280 def subtype_to_hash { :payment_request_id => payment_request_id } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 58272 def to_json JSON.dump(to_hash) end